mftsccs-browser 2.0.10-beta → 2.0.12-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.
@@ -93,10 +93,7 @@ class AccessTracker {
93
93
  static sendToServer() {
94
94
  return __awaiter(this, void 0, void 0, function* () {
95
95
  try {
96
- const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
97
- if (!accessToken)
98
- return;
99
- yield this.syncToServer(accessToken);
96
+ yield this.syncToServer();
100
97
  }
101
98
  catch (error) {
102
99
  console.error("Failed to process Access Tracker Sync with Server");
@@ -106,16 +103,18 @@ class AccessTracker {
106
103
  /**
107
104
  * Syncs the concept and connection data with the server.
108
105
  */
109
- static syncToServer(accessToken) {
106
+ static syncToServer() {
110
107
  return __awaiter(this, void 0, void 0, function* () {
111
108
  try {
112
109
  if (!Object.keys(this.conceptsData).length && !Object.keys(this.connectionsData).length) {
113
110
  return;
114
111
  }
112
+ const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
113
+ if (!accessToken)
114
+ return;
115
115
  // Ensure conceptsData and connectionsData are not undefined or null
116
116
  const conceptsToSend = this.conceptsData && Object.keys(this.conceptsData).length > 0 ? this.conceptsData : {};
117
117
  const connectionsToSend = this.connectionsData && Object.keys(this.connectionsData).length > 0 ? this.connectionsData : {};
118
- console.log("Access Tracker Sent to SERVER..", conceptsToSend, connectionsToSend);
119
118
  const response = yield fetch(_app__WEBPACK_IMPORTED_MODULE_0__.BaseUrl.PostPrefetchConceptConnections(), {
120
119
  method: 'POST',
121
120
  headers: {
@@ -130,7 +129,7 @@ class AccessTracker {
130
129
  if (!response.ok) {
131
130
  throw new Error('Failed to sync data to the server.');
132
131
  }
133
- const serverData = yield response.json();
132
+ yield response.json();
134
133
  this.conceptsData = {};
135
134
  this.connectionsData = {};
136
135
  this.setNextSyncTime();
@@ -154,13 +153,10 @@ class AccessTracker {
154
153
  * This will automatically call `syncToServer` every 5 minutes
155
154
  */
156
155
  static startAutoSync() {
157
- const tokenString = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
158
- if (tokenString) {
159
- this.syncNow().catch(console.error);
160
- }
161
156
  setInterval(() => {
162
157
  const currentTime = Date.now();
163
158
  // console.log(`[CHECK] Current Time: ${new Date(currentTime).toISOString()}`);
159
+ // console.log(`Update Time: ${this.nextSyncTime}`);
164
160
  if (this.nextSyncTime && currentTime >= this.nextSyncTime) {
165
161
  // console.log(`[SYNC TRIGGER] Time to sync! Triggering sync at: ${new Date(currentTime).toISOString()}`);
166
162
  this.syncNow().catch(console.error);
@@ -172,12 +168,17 @@ class AccessTracker {
172
168
  */
173
169
  static syncNow() {
174
170
  return __awaiter(this, void 0, void 0, function* () {
175
- const tokenString = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
176
- if (tokenString) {
177
- yield this.syncToServer(tokenString);
171
+ try {
172
+ // console.log("Status of Access Tracker is : ", this.activateStatus);
173
+ if (this.activateStatus) {
174
+ yield this.syncToServer();
175
+ }
176
+ else {
177
+ console.warn("Access Tracker inactive.");
178
+ }
178
179
  }
179
- else {
180
- console.warn("[MANUAL SYNC] No valid access token found. Sync aborted.");
180
+ catch (error) {
181
+ console.error("Error on sync access tracker");
181
182
  }
182
183
  });
183
184
  }
@@ -1782,6 +1783,9 @@ function GetConcept(id) {
1782
1783
  }
1783
1784
  }
1784
1785
  let result = (0,_app__WEBPACK_IMPORTED_MODULE_3__.CreateDefaultConcept)();
1786
+ if (id == 0 || id == undefined || id == null) {
1787
+ return result;
1788
+ }
1785
1789
  var conceptUse = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_0__.ConceptsData.GetConcept(id);
1786
1790
  let isNpc = _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_0__.ConceptsData.GetNpc(id);
1787
1791
  if (conceptUse.id != 0 || isNpc) {
@@ -5287,6 +5291,9 @@ class ConceptsData {
5287
5291
  (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
5288
5292
  }
5289
5293
  }
5294
+ if (id == 0 || id == undefined || id == null) {
5295
+ return (0,_Services_CreateDefaultConcept__WEBPACK_IMPORTED_MODULE_4__.CreateDefaultConcept)();
5296
+ }
5290
5297
  var myConcept = (0,_Services_CreateDefaultConcept__WEBPACK_IMPORTED_MODULE_4__.CreateDefaultConcept)();
5291
5298
  var node = yield _BinaryTree__WEBPACK_IMPORTED_MODULE_1__.BinaryTree.getNodeFromTree(id);
5292
5299
  if (node === null || node === void 0 ? void 0 : node.value) {
@@ -11378,7 +11385,6 @@ class ApplicationMonitor {
11378
11385
  };
11379
11386
  _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("INFO", "Network Request", networkDetails);
11380
11387
  return originalFetch(...args);
11381
- // return new Response(null, { status: 200 });
11382
11388
  }
11383
11389
  let networkDetails = {
11384
11390
  "request": {
@@ -11653,6 +11659,8 @@ class Logger {
11653
11659
  // this.saveLogToLocalStorage(this.mftsccsBrowser, logEntry)
11654
11660
  }
11655
11661
  static log(level, message, data) {
11662
+ if (!this.logPackageActivationStatus)
11663
+ return;
11656
11664
  try {
11657
11665
  Logger.formatLogData(level, message, data || null);
11658
11666
  }
@@ -11661,87 +11669,109 @@ class Logger {
11661
11669
  }
11662
11670
  }
11663
11671
  static logInfo(startTime, userId, operationType, requestFrom, requestIP, responseStatus, responseData, functionName, functionParameters, userAgent, conceptsUsed) {
11664
- const sessionId = getCookie("SessionId");
11665
- const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11666
- const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11667
- const logData = {
11668
- userId,
11669
- operationType,
11670
- requestFrom,
11671
- requestIP,
11672
- responseStatus,
11673
- responseTime,
11674
- responseSize,
11675
- sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11676
- functionName,
11677
- functionParameters,
11678
- userAgent,
11679
- conceptsUsed,
11680
- };
11681
- Logger.log("INFO", `Information logged for ${functionName}`, logData);
11672
+ try {
11673
+ const sessionId = getCookie("SessionId");
11674
+ const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11675
+ const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11676
+ const logData = {
11677
+ userId,
11678
+ operationType,
11679
+ requestFrom,
11680
+ requestIP,
11681
+ responseStatus,
11682
+ responseTime,
11683
+ responseSize,
11684
+ sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11685
+ functionName,
11686
+ functionParameters,
11687
+ userAgent,
11688
+ conceptsUsed,
11689
+ };
11690
+ Logger.log("INFO", `Information logged for ${functionName}`, logData);
11691
+ }
11692
+ catch (error) {
11693
+ console.error("Error on logInfo");
11694
+ }
11682
11695
  }
11683
11696
  static logError(startTime, userId, operationType, requestFrom, requestIP, responseStatus, responseData, functionName, functionParameters, userAgent, conceptsUsed) {
11684
- const sessionId = getCookie("SessionId");
11685
- const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11686
- const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11687
- const logData = {
11688
- userId,
11689
- operationType,
11690
- requestFrom,
11691
- requestIP,
11692
- responseStatus,
11693
- responseTime,
11694
- responseSize,
11695
- sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11696
- functionName,
11697
- functionParameters,
11698
- userAgent,
11699
- conceptsUsed,
11700
- };
11701
- Logger.formatLogData("ERROR", `Information logged for ${functionName}`, logData);
11697
+ try {
11698
+ const sessionId = getCookie("SessionId");
11699
+ const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11700
+ const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11701
+ const logData = {
11702
+ userId,
11703
+ operationType,
11704
+ requestFrom,
11705
+ requestIP,
11706
+ responseStatus,
11707
+ responseTime,
11708
+ responseSize,
11709
+ sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11710
+ functionName,
11711
+ functionParameters,
11712
+ userAgent,
11713
+ conceptsUsed,
11714
+ };
11715
+ Logger.formatLogData("ERROR", `Information logged for ${functionName}`, logData);
11716
+ }
11717
+ catch (error) {
11718
+ console.error("Error on logError");
11719
+ }
11702
11720
  }
11703
11721
  static logWarning(startTime, userId, operationType, requestFrom, requestIP, responseStatus, responseData, functionName, functionParameters, userAgent, conceptsUsed) {
11704
- const sessionId = getCookie("SessionId");
11705
- const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11706
- const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11707
- const logData = {
11708
- userId,
11709
- operationType,
11710
- requestFrom,
11711
- requestIP,
11712
- responseStatus,
11713
- responseTime,
11714
- responseSize,
11715
- sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11716
- functionName,
11717
- functionParameters,
11718
- userAgent,
11719
- conceptsUsed,
11720
- };
11721
- Logger.formatLogData("WARNING", `Information logged for ${functionName}`, logData);
11722
+ try {
11723
+ const sessionId = getCookie("SessionId");
11724
+ const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11725
+ const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11726
+ const logData = {
11727
+ userId,
11728
+ operationType,
11729
+ requestFrom,
11730
+ requestIP,
11731
+ responseStatus,
11732
+ responseTime,
11733
+ responseSize,
11734
+ sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11735
+ functionName,
11736
+ functionParameters,
11737
+ userAgent,
11738
+ conceptsUsed,
11739
+ };
11740
+ Logger.formatLogData("WARNING", `Information logged for ${functionName}`, logData);
11741
+ }
11742
+ catch (error) {
11743
+ console.error("Error on logWarning");
11744
+ }
11722
11745
  }
11723
11746
  static logDebug(startTime, userId, operationType, requestFrom, requestIP, responseStatus, responseData, functionName, functionParameters, userAgent, conceptsUsed) {
11724
- const sessionId = getCookie("SessionId");
11725
- const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11726
- const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11727
- const logData = {
11728
- userId,
11729
- operationType,
11730
- requestFrom,
11731
- requestIP,
11732
- responseStatus,
11733
- responseTime,
11734
- responseSize,
11735
- sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11736
- functionName,
11737
- functionParameters,
11738
- userAgent,
11739
- conceptsUsed,
11740
- };
11741
- Logger.formatLogData("DEBUG", `Information logged for ${functionName}`, logData);
11747
+ try {
11748
+ const sessionId = getCookie("SessionId");
11749
+ const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11750
+ const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11751
+ const logData = {
11752
+ userId,
11753
+ operationType,
11754
+ requestFrom,
11755
+ requestIP,
11756
+ responseStatus,
11757
+ responseTime,
11758
+ responseSize,
11759
+ sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11760
+ functionName,
11761
+ functionParameters,
11762
+ userAgent,
11763
+ conceptsUsed,
11764
+ };
11765
+ Logger.formatLogData("DEBUG", `Information logged for ${functionName}`, logData);
11766
+ }
11767
+ catch (error) {
11768
+ console.error("Error on logDebug");
11769
+ }
11742
11770
  }
11743
11771
  // Log Application Activity
11744
11772
  static logApplication(type, message, data) {
11773
+ if (!this.logApplicationActivationStatus)
11774
+ return;
11745
11775
  try {
11746
11776
  const timestamp = new Date().toLocaleString();
11747
11777
  const logEntry = {
@@ -11763,18 +11793,13 @@ class Logger {
11763
11793
  static sendApplicationLogsToServer() {
11764
11794
  return __awaiter(this, void 0, void 0, function* () {
11765
11795
  try {
11766
- console.log("Application Log To Server : \n");
11767
- // console.log("Log To Server : \n", this.applicationLogsData);
11768
- if (this.applicationLogsData.length < 0) {
11796
+ if (this.applicationLogsData.length === 0) {
11769
11797
  return;
11770
11798
  }
11771
11799
  const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
11772
- const storedLogs = this.applicationLogsData;
11773
- console.log("Application Logs of AppLog : ", storedLogs);
11774
11800
  if (!accessToken)
11775
11801
  return;
11776
- if (storedLogs.length === 0)
11777
- return;
11802
+ const storedLogs = this.applicationLogsData;
11778
11803
  const chunkSize = 50;
11779
11804
  for (let i = 0; i < storedLogs.length; i += chunkSize) {
11780
11805
  const chunk = storedLogs.slice(i, i + chunkSize);
@@ -11797,8 +11822,6 @@ class Logger {
11797
11822
  }
11798
11823
  // clear application log from memory
11799
11824
  this.applicationLogsData = [];
11800
- // this.clearLogsFromLocalStorage(this.appLogs)
11801
- // Logger.log("INFO", "Sync Application Logs to server")
11802
11825
  }
11803
11826
  catch (error) {
11804
11827
  console.error("Error while sending logs to server:", error);
@@ -11808,18 +11831,15 @@ class Logger {
11808
11831
  static sendLogsToServer() {
11809
11832
  return __awaiter(this, void 0, void 0, function* () {
11810
11833
  try {
11811
- console.warn("Log sending to server...");
11812
- // console.log("Log To Server : \n", this.logsData);
11813
11834
  if (this.logsData.length === 0)
11814
11835
  return;
11836
+ if (this.logsData.length === 0) {
11837
+ return;
11838
+ }
11815
11839
  const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
11816
- const storedLogs = this.logsData;
11817
- console.log("Package Logs for syncing... ", storedLogs);
11818
11840
  if (!accessToken)
11819
11841
  return;
11820
- // const storedLogs = this.logs
11821
- if (storedLogs.length === 0)
11822
- return;
11842
+ const storedLogs = this.logsData;
11823
11843
  const chunkSize = 50;
11824
11844
  for (let i = 0; i < storedLogs.length; i += chunkSize) {
11825
11845
  const chunk = storedLogs.slice(i, i + chunkSize);
@@ -11842,8 +11862,6 @@ class Logger {
11842
11862
  }
11843
11863
  // clear mftsccs log from memory
11844
11864
  this.logsData = [];
11845
- // this.clearLogsFromLocalStorage(this.mftsccsBrowser)
11846
- // Logger.log("INFO", "Sync Application Logs to server")
11847
11865
  }
11848
11866
  catch (error) {
11849
11867
  console.error("Error while sending logs to server:", error);
@@ -11889,6 +11907,8 @@ Logger.SYNC_INTERVAL_MS = 120 * 1000; // 120 Sec
11889
11907
  Logger.nextSyncTime = null;
11890
11908
  Logger.appLogs = "app";
11891
11909
  Logger.mftsccsBrowser = "mftsccs";
11910
+ Logger.logApplicationActivationStatus = false;
11911
+ Logger.logPackageActivationStatus = false;
11892
11912
  // Private auto-sync interval management
11893
11913
  Logger.autoSyncInterval = null;
11894
11914
  // Ensure logs are managed automatically
@@ -11901,19 +11921,25 @@ Logger.autoSyncInterval = null;
11901
11921
  * @returns Cookie value
11902
11922
  */
11903
11923
  function getCookie(cname) {
11904
- let name = cname + "=";
11905
- let decodedCookie = decodeURIComponent(document.cookie);
11906
- let ca = decodedCookie.split(';');
11907
- for (let i = 0; i < ca.length; i++) {
11908
- let c = ca[i];
11909
- while (c.charAt(0) == ' ') {
11910
- c = c.substring(1);
11911
- }
11912
- if (c.indexOf(name) == 0) {
11913
- return c.substring(name.length, c.length);
11924
+ try {
11925
+ let name = cname + "=";
11926
+ let decodedCookie = decodeURIComponent(document.cookie);
11927
+ let ca = decodedCookie.split(';');
11928
+ for (let i = 0; i < ca.length; i++) {
11929
+ let c = ca[i];
11930
+ while (c.charAt(0) == ' ') {
11931
+ c = c.substring(1);
11932
+ }
11933
+ if (c.indexOf(name) == 0) {
11934
+ return c.substring(name.length, c.length);
11935
+ }
11914
11936
  }
11937
+ return "";
11938
+ }
11939
+ catch (error) {
11940
+ console.error("Error on getcookie");
11941
+ return "";
11915
11942
  }
11916
- return "";
11917
11943
  }
11918
11944
 
11919
11945
 
@@ -21389,7 +21415,7 @@ class WidgetTree {
21389
21415
  this.version = 0;
21390
21416
  this.mount_child = "";
21391
21417
  this.children = [];
21392
- this.wrapper = 0;
21418
+ this.wrapper = '0';
21393
21419
  this.widget = new _BuilderStatefulWidget__WEBPACK_IMPORTED_MODULE_0__.BuilderStatefulWidget();
21394
21420
  }
21395
21421
  }
@@ -22576,12 +22602,14 @@ __webpack_require__.r(__webpack_exports__);
22576
22602
  /* harmony export */ getFromDatabaseWithType: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.getFromDatabaseWithType),
22577
22603
  /* harmony export */ getObjectsFromIndexDb: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.getObjectsFromIndexDb),
22578
22604
  /* harmony export */ handleServiceWorkerException: () => (/* binding */ handleServiceWorkerException),
22605
+ /* harmony export */ hasActivatedSW: () => (/* binding */ hasActivatedSW),
22579
22606
  /* harmony export */ init: () => (/* binding */ init),
22580
22607
  /* harmony export */ recursiveFetch: () => (/* reexport safe */ _Services_GetComposition__WEBPACK_IMPORTED_MODULE_7__.recursiveFetch),
22581
22608
  /* harmony export */ recursiveFetchNew: () => (/* reexport safe */ _Services_Composition_BuildComposition__WEBPACK_IMPORTED_MODULE_45__.recursiveFetchNew),
22582
22609
  /* harmony export */ searchLinkMultipleListener: () => (/* reexport safe */ _WrapperFunctions_SearchLinkMultipleAllObservable__WEBPACK_IMPORTED_MODULE_69__.searchLinkMultipleListener),
22583
22610
  /* harmony export */ sendMessage: () => (/* binding */ sendMessage),
22584
22611
  /* harmony export */ serviceWorker: () => (/* binding */ serviceWorker),
22612
+ /* harmony export */ setHasActivatedSW: () => (/* binding */ setHasActivatedSW),
22585
22613
  /* harmony export */ storeToDatabase: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.storeToDatabase),
22586
22614
  /* harmony export */ subscribedListeners: () => (/* binding */ subscribedListeners),
22587
22615
  /* harmony export */ updateAccessToken: () => (/* binding */ updateAccessToken)
@@ -22840,6 +22868,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
22840
22868
 
22841
22869
 
22842
22870
 
22871
+
22843
22872
 
22844
22873
 
22845
22874
  var serviceWorker;
@@ -22847,6 +22876,10 @@ const TABID = Date.now().toString(36) + Math.random().toString(36).substring(2);
22847
22876
  let subscribedListeners = [];
22848
22877
  let serviceWorkerReady = false;
22849
22878
  let messageQueue = [];
22879
+ // for sw use only START
22880
+ let hasActivatedSW = false;
22881
+ function setHasActivatedSW(value) { hasActivatedSW = value; }
22882
+ // for sw use only END
22850
22883
  /**
22851
22884
  * This function lets you update the access token that the package uses. If this is not passed you cannot create, update, view or delete
22852
22885
  * Your concepts using this package.
@@ -22869,7 +22902,7 @@ function updateAccessToken(accessToken = "") {
22869
22902
  * @param enableSW {activate: boolean, scope?: string, pathToSW?: string, manual?: boolean} | undefined - This is for enabling service worker with its scope
22870
22903
  */
22871
22904
  function init() {
22872
- return __awaiter(this, arguments, void 0, function* (url = "", aiurl = "", accessToken = "", nodeUrl = "", enableAi = true, applicationName = "", enableSW = undefined, flag = { logApplication: false, accessTracker: false, isTest: false }) {
22905
+ return __awaiter(this, arguments, void 0, function* (url = "", aiurl = "", accessToken = "", nodeUrl = "", enableAi = true, applicationName = "", enableSW = undefined, flag = { logApplication: false, logPackage: false, accessTracker: false, isTest: false }) {
22873
22906
  try {
22874
22907
  _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.BASE_URL = url;
22875
22908
  _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.AI_URL = aiurl;
@@ -22892,19 +22925,31 @@ function init() {
22892
22925
  _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isLocalConnectionLoaded = true;
22893
22926
  return true;
22894
22927
  }
22895
- if (flag.logApplication) {
22896
- _Middleware_ApplicationMonitor__WEBPACK_IMPORTED_MODULE_103__.ApplicationMonitor.initialize();
22897
- console.warn("Application log started...");
22928
+ // Flag setup
22929
+ try {
22930
+ if (flag.logApplication) {
22931
+ _Middleware_ApplicationMonitor__WEBPACK_IMPORTED_MODULE_103__.ApplicationMonitor.initialize();
22932
+ _app__WEBPACK_IMPORTED_MODULE_105__.Logger.logApplicationActivationStatus = true;
22933
+ console.warn("Application log started...");
22934
+ }
22935
+ if (flag.logPackage) {
22936
+ _app__WEBPACK_IMPORTED_MODULE_105__.Logger.logPackageActivationStatus = true;
22937
+ console.warn("Package log started...");
22938
+ }
22939
+ if (flag.accessTracker) {
22940
+ _app__WEBPACK_IMPORTED_MODULE_105__.AccessTracker.activateStatus = true;
22941
+ console.warn("Access Tracker Activated...");
22942
+ }
22898
22943
  }
22899
- if (flag.accessTracker) {
22900
- _app__WEBPACK_IMPORTED_MODULE_105__.AccessTracker.activateStatus = true;
22901
- console.warn("Access Tracker Activated...");
22944
+ catch (error) {
22945
+ console.error("Flag setup failed in init");
22902
22946
  }
22903
22947
  if (!("serviceWorker" in navigator)) {
22904
22948
  yield initConceptConnection();
22905
22949
  console.warn("Service Worker not supported in this browser.");
22906
22950
  return;
22907
22951
  }
22952
+ listenPostMessagaes();
22908
22953
  listenBroadCastMessages();
22909
22954
  if (enableSW && enableSW.activate && enableSW.manual) {
22910
22955
  yield new Promise((resolve, reject) => {
@@ -22970,48 +23015,45 @@ function init() {
22970
23015
  .then((registration) => __awaiter(this, void 0, void 0, function* () {
22971
23016
  console.log("Service Worker registered:", registration);
22972
23017
  // If the service worker is already active, mark it as ready
22973
- if (registration.active) {
22974
- serviceWorkerReady = true;
22975
- console.log("active sw");
22976
- serviceWorker = registration.active;
22977
- yield sendMessage("init", {
22978
- url,
22979
- aiurl,
22980
- accessToken,
22981
- nodeUrl,
22982
- enableAi,
22983
- applicationName,
22984
- flag
22985
- });
22986
- processMessageQueue();
22987
- resolve();
22988
- }
22989
- else {
22990
- // Handle if on state change didn't trigger
22991
- setTimeout(() => {
22992
- if (!success)
22993
- reject("Not Completed Initialization");
22994
- }, 5000);
22995
- }
23018
+ // if (registration.active) {
23019
+ // serviceWorkerReady = true;
23020
+ // console.log("active sw");
23021
+ // serviceWorker = registration.active;
23022
+ // await sendMessage("init", {
23023
+ // url,
23024
+ // aiurl,
23025
+ // accessToken,
23026
+ // nodeUrl,
23027
+ // enableAi,
23028
+ // applicationName,
23029
+ // flag
23030
+ // });
23031
+ // processMessageQueue();
23032
+ // resolve();
23033
+ // } else {
23034
+ // // Handle if on state change didn't trigger
23035
+ // setTimeout(() => {
23036
+ // if (!success) reject("Not Completed Initialization");
23037
+ // }, 5000);
23038
+ // }
22996
23039
  // state change
22997
- if (registration.installing || registration.waiting || registration.active) {
22998
- registration.addEventListener('statechange', (event) => __awaiter(this, void 0, void 0, function* () {
22999
- var _a;
23000
- if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.state) === 'activating') {
23001
- serviceWorker = navigator.serviceWorker.controller;
23002
- console.log('Service Worker is activating statechange');
23003
- yield sendMessage("init", {
23004
- url,
23005
- aiurl,
23006
- accessToken,
23007
- nodeUrl,
23008
- enableAi,
23009
- applicationName,
23010
- flag
23011
- });
23012
- }
23013
- }));
23014
- }
23040
+ // if (registration.installing || registration.waiting || registration.active) {
23041
+ // registration.addEventListener('statechange', async (event: any) => {
23042
+ // if (event?.target?.state === 'activating') {
23043
+ // serviceWorker = navigator.serviceWorker.controller
23044
+ // console.log('Service Worker is activating statechange');
23045
+ // await sendMessage("init", {
23046
+ // url,
23047
+ // aiurl,
23048
+ // accessToken,
23049
+ // nodeUrl,
23050
+ // enableAi,
23051
+ // applicationName,
23052
+ // flag
23053
+ // });
23054
+ // }
23055
+ // });
23056
+ // }
23015
23057
  // Add Listeners before initializing the service worker
23016
23058
  // Listen for updates to the service worker
23017
23059
  console.log("update listen start");
@@ -23020,7 +23062,7 @@ function init() {
23020
23062
  console.log("new worker", newWorker);
23021
23063
  if (newWorker) {
23022
23064
  newWorker.onstatechange = () => __awaiter(this, void 0, void 0, function* () {
23023
- console.log("on state change triggered", (newWorker.state === "installed" || newWorker.state === "activated" || newWorker.state === 'redundant'), navigator.serviceWorker.controller);
23065
+ console.warn("on state change triggered", (newWorker.state === "installed" || newWorker.state === "activated" || newWorker.state === 'redundant'), navigator.serviceWorker.controller);
23024
23066
  if (newWorker.state === "installing") {
23025
23067
  console.log("Service Worker installing");
23026
23068
  serviceWorker = undefined;
@@ -23055,7 +23097,7 @@ function init() {
23055
23097
  console.warn('controller change triggered', navigator.serviceWorker.controller);
23056
23098
  if (navigator.serviceWorker.controller) {
23057
23099
  serviceWorker = navigator.serviceWorker.controller;
23058
- console.log('Service worker has been activated');
23100
+ console.warn('Service worker has been activated; controller change');
23059
23101
  yield sendMessage("init", {
23060
23102
  url,
23061
23103
  aiurl,
@@ -23075,7 +23117,7 @@ function init() {
23075
23117
  var _a;
23076
23118
  if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.state) === 'activating') {
23077
23119
  serviceWorker = navigator.serviceWorker.controller;
23078
- console.log('Service Worker is activating statechange');
23120
+ console.warn('Service Worker is activating statechange');
23079
23121
  yield sendMessage("init", {
23080
23122
  url,
23081
23123
  aiurl,
@@ -23110,7 +23152,7 @@ function init() {
23110
23152
  setTimeout(() => {
23111
23153
  if (!success)
23112
23154
  reject("Not Completed Initialization");
23113
- }, 5000);
23155
+ }, 10000);
23114
23156
  }
23115
23157
  }))
23116
23158
  .catch((error) => __awaiter(this, void 0, void 0, function* () {
@@ -23158,6 +23200,7 @@ function sendMessage(type, payload) {
23158
23200
  return new Promise((resolve, reject) => {
23159
23201
  // navigator.serviceWorker.ready
23160
23202
  // .then((registration) => {
23203
+ console.debug('debug', navigator.serviceWorker.controller, serviceWorker, serviceWorkerReady, type == 'init');
23161
23204
  if ((navigator.serviceWorker.controller || serviceWorker) && (serviceWorkerReady || type == 'init')) {
23162
23205
  const responseHandler = (event) => {
23163
23206
  var _a, _b, _c, _d, _e, _f;
@@ -23196,7 +23239,7 @@ function sendMessage(type, payload) {
23196
23239
  serviceWorker.postMessage({ type, payload: newPayload });
23197
23240
  }
23198
23241
  catch (err) {
23199
- console.log(err);
23242
+ console.log('Retrying again on catch service worker', err);
23200
23243
  // serviceWorker.postMessage({ type, payload: newPayload });
23201
23244
  serviceWorker.postMessage({ type, payload: newPayload });
23202
23245
  }
@@ -23206,6 +23249,7 @@ function sendMessage(type, payload) {
23206
23249
  console.warn(`Service Worker hasn't loaded yet. messageId: ${messageId}, type: ${type}`);
23207
23250
  if (serviceWorkerReady)
23208
23251
  console.warn('service worker was registered already but is not available NOW!!!');
23252
+ console.info('ready', navigator.serviceWorker.ready);
23209
23253
  // wait one second before checking again
23210
23254
  setTimeout(() => {
23211
23255
  console.warn(`Re-Trying after certain time. messageId: ${messageId}, type: ${type}`);
@@ -23225,7 +23269,7 @@ function sendMessage(type, payload) {
23225
23269
  setTimeout(() => {
23226
23270
  reject(`No response from service worker after timeout: ${type}`);
23227
23271
  navigator.serviceWorker.removeEventListener("message", responseHandler);
23228
- }, 90000); // 90 sec
23272
+ }, 210000); // 3.5 minutes
23229
23273
  }
23230
23274
  else {
23231
23275
  messageQueue.push({ message: { type, payload: newPayload } });
@@ -23300,7 +23344,47 @@ function listenBroadCastMessages() {
23300
23344
  responseData = yield broadcastActions[type](payload);
23301
23345
  }
23302
23346
  else {
23303
- console.log(`Unable to handle "${type}" case in BC service worker`);
23347
+ console.warn(`Unable to handle "${type}" case in BC service worker`);
23348
+ }
23349
+ }));
23350
+ }
23351
+ /**
23352
+ * Method to trigger broadcast message listener
23353
+ */
23354
+ function listenPostMessagaes() {
23355
+ // broadcast event can be listened through both the service worker and other tabs
23356
+ navigator.serviceWorker.addEventListener('message', (event) => __awaiter(this, void 0, void 0, function* () {
23357
+ var _a, _b, _c, _d;
23358
+ try {
23359
+ if (event.data && event.data.type === 'API_401') {
23360
+ const { requestDetails } = event.data;
23361
+ // Re-create the POST request with the same headers and body
23362
+ const requestOptions = {
23363
+ method: requestDetails.method,
23364
+ headers: new Headers(requestDetails.headers),
23365
+ body: requestDetails.body // Pass the original body
23366
+ };
23367
+ // Re-hit the API with the same details
23368
+ const apiResponse = yield fetch(requestDetails.url, requestOptions);
23369
+ const responseBody = yield (apiResponse === null || apiResponse === void 0 ? void 0 : apiResponse.json()); // Get the response text
23370
+ // Send the response back to the Service Worker (same client)
23371
+ (_b = (_a = navigator === null || navigator === void 0 ? void 0 : navigator.serviceWorker) === null || _a === void 0 ? void 0 : _a.controller) === null || _b === void 0 ? void 0 : _b.postMessage({
23372
+ type: 'API_RESPONSE',
23373
+ messageId: event.data.messageId,
23374
+ response: new Response(responseBody, {
23375
+ status: apiResponse.status,
23376
+ statusText: apiResponse.statusText,
23377
+ headers: apiResponse.headers
23378
+ })
23379
+ });
23380
+ }
23381
+ }
23382
+ catch (error) {
23383
+ console.error("Error during listenPostMessage", error);
23384
+ (_d = (_c = navigator === null || navigator === void 0 ? void 0 : navigator.serviceWorker) === null || _c === void 0 ? void 0 : _c.controller) === null || _d === void 0 ? void 0 : _d.postMessage({
23385
+ type: 'API_RESPONSE',
23386
+ messageId: event.data.messageId
23387
+ });
23304
23388
  }
23305
23389
  }));
23306
23390
  }
@@ -23429,10 +23513,12 @@ function processMessageQueue() {
23429
23513
  });
23430
23514
  }
23431
23515
  const handleServiceWorkerException = (error) => {
23516
+ // if (error instanceof FreeSchemaResponse && error.getStatus() != 401) {
23432
23517
  if (error instanceof _DataStructures_Responses_ErrorResponse__WEBPACK_IMPORTED_MODULE_104__.FreeSchemaResponse) {
23433
23518
  console.error('FreeSchemaResponse Error', error);
23434
23519
  throw error;
23435
23520
  }
23521
+ // if (error instanceof FreeSchemaResponse && error.getStatus() == 401) console.error('401 triggered in sw defaulting')
23436
23522
  console.error('Service Worker Error', error);
23437
23523
  };
23438
23524
 
@@ -23654,16 +23740,18 @@ const handleServiceWorkerException = (error) => {
23654
23740
  /******/ var __webpack_exports__getFromDatabaseWithType = __webpack_exports__.getFromDatabaseWithType;
23655
23741
  /******/ var __webpack_exports__getObjectsFromIndexDb = __webpack_exports__.getObjectsFromIndexDb;
23656
23742
  /******/ var __webpack_exports__handleServiceWorkerException = __webpack_exports__.handleServiceWorkerException;
23743
+ /******/ var __webpack_exports__hasActivatedSW = __webpack_exports__.hasActivatedSW;
23657
23744
  /******/ var __webpack_exports__init = __webpack_exports__.init;
23658
23745
  /******/ var __webpack_exports__recursiveFetch = __webpack_exports__.recursiveFetch;
23659
23746
  /******/ var __webpack_exports__recursiveFetchNew = __webpack_exports__.recursiveFetchNew;
23660
23747
  /******/ var __webpack_exports__searchLinkMultipleListener = __webpack_exports__.searchLinkMultipleListener;
23661
23748
  /******/ var __webpack_exports__sendMessage = __webpack_exports__.sendMessage;
23662
23749
  /******/ var __webpack_exports__serviceWorker = __webpack_exports__.serviceWorker;
23750
+ /******/ var __webpack_exports__setHasActivatedSW = __webpack_exports__.setHasActivatedSW;
23663
23751
  /******/ var __webpack_exports__storeToDatabase = __webpack_exports__.storeToDatabase;
23664
23752
  /******/ var __webpack_exports__subscribedListeners = __webpack_exports__.subscribedListeners;
23665
23753
  /******/ var __webpack_exports__updateAccessToken = __webpack_exports__.updateAccessToken;
23666
- /******/ 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__CreateConnectionBetweenEntityLocal as CreateConnectionBetweenEntityLocal, __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 };
23754
+ /******/ 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__CreateConnectionBetweenEntityLocal as CreateConnectionBetweenEntityLocal, __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__hasActivatedSW as hasActivatedSW, __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__setHasActivatedSW as setHasActivatedSW, __webpack_exports__storeToDatabase as storeToDatabase, __webpack_exports__subscribedListeners as subscribedListeners, __webpack_exports__updateAccessToken as updateAccessToken };
23667
23755
  /******/
23668
23756
 
23669
23757
  //# sourceMappingURL=main.bundle.js.map