mftsccs-browser 2.0.9-beta → 2.0.11-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
  }
@@ -11378,7 +11379,6 @@ class ApplicationMonitor {
11378
11379
  };
11379
11380
  _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("INFO", "Network Request", networkDetails);
11380
11381
  return originalFetch(...args);
11381
- // return new Response(null, { status: 200 });
11382
11382
  }
11383
11383
  let networkDetails = {
11384
11384
  "request": {
@@ -11653,6 +11653,8 @@ class Logger {
11653
11653
  // this.saveLogToLocalStorage(this.mftsccsBrowser, logEntry)
11654
11654
  }
11655
11655
  static log(level, message, data) {
11656
+ if (!this.logPackageActivationStatus)
11657
+ return;
11656
11658
  try {
11657
11659
  Logger.formatLogData(level, message, data || null);
11658
11660
  }
@@ -11661,87 +11663,109 @@ class Logger {
11661
11663
  }
11662
11664
  }
11663
11665
  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);
11666
+ try {
11667
+ const sessionId = getCookie("SessionId");
11668
+ const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11669
+ const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11670
+ const logData = {
11671
+ userId,
11672
+ operationType,
11673
+ requestFrom,
11674
+ requestIP,
11675
+ responseStatus,
11676
+ responseTime,
11677
+ responseSize,
11678
+ sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11679
+ functionName,
11680
+ functionParameters,
11681
+ userAgent,
11682
+ conceptsUsed,
11683
+ };
11684
+ Logger.log("INFO", `Information logged for ${functionName}`, logData);
11685
+ }
11686
+ catch (error) {
11687
+ console.error("Error on logInfo");
11688
+ }
11682
11689
  }
11683
11690
  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);
11691
+ try {
11692
+ const sessionId = getCookie("SessionId");
11693
+ const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11694
+ const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11695
+ const logData = {
11696
+ userId,
11697
+ operationType,
11698
+ requestFrom,
11699
+ requestIP,
11700
+ responseStatus,
11701
+ responseTime,
11702
+ responseSize,
11703
+ sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11704
+ functionName,
11705
+ functionParameters,
11706
+ userAgent,
11707
+ conceptsUsed,
11708
+ };
11709
+ Logger.formatLogData("ERROR", `Information logged for ${functionName}`, logData);
11710
+ }
11711
+ catch (error) {
11712
+ console.error("Error on logError");
11713
+ }
11702
11714
  }
11703
11715
  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);
11716
+ try {
11717
+ const sessionId = getCookie("SessionId");
11718
+ const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11719
+ const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11720
+ const logData = {
11721
+ userId,
11722
+ operationType,
11723
+ requestFrom,
11724
+ requestIP,
11725
+ responseStatus,
11726
+ responseTime,
11727
+ responseSize,
11728
+ sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11729
+ functionName,
11730
+ functionParameters,
11731
+ userAgent,
11732
+ conceptsUsed,
11733
+ };
11734
+ Logger.formatLogData("WARNING", `Information logged for ${functionName}`, logData);
11735
+ }
11736
+ catch (error) {
11737
+ console.error("Error on logWarning");
11738
+ }
11722
11739
  }
11723
11740
  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);
11741
+ try {
11742
+ const sessionId = getCookie("SessionId");
11743
+ const responseTime = `${(performance.now() - startTime).toFixed(3)}ms`;
11744
+ const responseSize = responseData ? `${JSON.stringify(responseData).length}` : "0";
11745
+ const logData = {
11746
+ userId,
11747
+ operationType,
11748
+ requestFrom,
11749
+ requestIP,
11750
+ responseStatus,
11751
+ responseTime,
11752
+ responseSize,
11753
+ sessionId: sessionId === null || sessionId === void 0 ? void 0 : sessionId.toString(),
11754
+ functionName,
11755
+ functionParameters,
11756
+ userAgent,
11757
+ conceptsUsed,
11758
+ };
11759
+ Logger.formatLogData("DEBUG", `Information logged for ${functionName}`, logData);
11760
+ }
11761
+ catch (error) {
11762
+ console.error("Error on logDebug");
11763
+ }
11742
11764
  }
11743
11765
  // Log Application Activity
11744
11766
  static logApplication(type, message, data) {
11767
+ if (!this.logApplicationActivationStatus)
11768
+ return;
11745
11769
  try {
11746
11770
  const timestamp = new Date().toLocaleString();
11747
11771
  const logEntry = {
@@ -11763,18 +11787,13 @@ class Logger {
11763
11787
  static sendApplicationLogsToServer() {
11764
11788
  return __awaiter(this, void 0, void 0, function* () {
11765
11789
  try {
11766
- console.log("Application Log To Server : \n");
11767
- // console.log("Log To Server : \n", this.applicationLogsData);
11768
- if (this.applicationLogsData.length < 0) {
11790
+ if (this.applicationLogsData.length === 0) {
11769
11791
  return;
11770
11792
  }
11771
11793
  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
11794
  if (!accessToken)
11775
11795
  return;
11776
- if (storedLogs.length === 0)
11777
- return;
11796
+ const storedLogs = this.applicationLogsData;
11778
11797
  const chunkSize = 50;
11779
11798
  for (let i = 0; i < storedLogs.length; i += chunkSize) {
11780
11799
  const chunk = storedLogs.slice(i, i + chunkSize);
@@ -11797,8 +11816,6 @@ class Logger {
11797
11816
  }
11798
11817
  // clear application log from memory
11799
11818
  this.applicationLogsData = [];
11800
- // this.clearLogsFromLocalStorage(this.appLogs)
11801
- // Logger.log("INFO", "Sync Application Logs to server")
11802
11819
  }
11803
11820
  catch (error) {
11804
11821
  console.error("Error while sending logs to server:", error);
@@ -11808,18 +11825,15 @@ class Logger {
11808
11825
  static sendLogsToServer() {
11809
11826
  return __awaiter(this, void 0, void 0, function* () {
11810
11827
  try {
11811
- console.warn("Log sending to server...");
11812
- // console.log("Log To Server : \n", this.logsData);
11813
11828
  if (this.logsData.length === 0)
11814
11829
  return;
11830
+ if (this.logsData.length === 0) {
11831
+ return;
11832
+ }
11815
11833
  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
11834
  if (!accessToken)
11819
11835
  return;
11820
- // const storedLogs = this.logs
11821
- if (storedLogs.length === 0)
11822
- return;
11836
+ const storedLogs = this.logsData;
11823
11837
  const chunkSize = 50;
11824
11838
  for (let i = 0; i < storedLogs.length; i += chunkSize) {
11825
11839
  const chunk = storedLogs.slice(i, i + chunkSize);
@@ -11842,8 +11856,6 @@ class Logger {
11842
11856
  }
11843
11857
  // clear mftsccs log from memory
11844
11858
  this.logsData = [];
11845
- // this.clearLogsFromLocalStorage(this.mftsccsBrowser)
11846
- // Logger.log("INFO", "Sync Application Logs to server")
11847
11859
  }
11848
11860
  catch (error) {
11849
11861
  console.error("Error while sending logs to server:", error);
@@ -11889,6 +11901,8 @@ Logger.SYNC_INTERVAL_MS = 120 * 1000; // 120 Sec
11889
11901
  Logger.nextSyncTime = null;
11890
11902
  Logger.appLogs = "app";
11891
11903
  Logger.mftsccsBrowser = "mftsccs";
11904
+ Logger.logApplicationActivationStatus = false;
11905
+ Logger.logPackageActivationStatus = false;
11892
11906
  // Private auto-sync interval management
11893
11907
  Logger.autoSyncInterval = null;
11894
11908
  // Ensure logs are managed automatically
@@ -11901,19 +11915,25 @@ Logger.autoSyncInterval = null;
11901
11915
  * @returns Cookie value
11902
11916
  */
11903
11917
  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);
11918
+ try {
11919
+ let name = cname + "=";
11920
+ let decodedCookie = decodeURIComponent(document.cookie);
11921
+ let ca = decodedCookie.split(';');
11922
+ for (let i = 0; i < ca.length; i++) {
11923
+ let c = ca[i];
11924
+ while (c.charAt(0) == ' ') {
11925
+ c = c.substring(1);
11926
+ }
11927
+ if (c.indexOf(name) == 0) {
11928
+ return c.substring(name.length, c.length);
11929
+ }
11914
11930
  }
11931
+ return "";
11932
+ }
11933
+ catch (error) {
11934
+ console.error("Error on getcookie");
11935
+ return "";
11915
11936
  }
11916
- return "";
11917
11937
  }
11918
11938
 
11919
11939
 
@@ -21385,6 +21405,8 @@ class WidgetTree {
21385
21405
  this.after_render = "";
21386
21406
  this.before_render = "";
21387
21407
  this.update = "";
21408
+ this.origin = 0;
21409
+ this.version = 0;
21388
21410
  this.mount_child = "";
21389
21411
  this.children = [];
21390
21412
  this.wrapper = 0;
@@ -22574,12 +22596,14 @@ __webpack_require__.r(__webpack_exports__);
22574
22596
  /* harmony export */ getFromDatabaseWithType: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.getFromDatabaseWithType),
22575
22597
  /* harmony export */ getObjectsFromIndexDb: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.getObjectsFromIndexDb),
22576
22598
  /* harmony export */ handleServiceWorkerException: () => (/* binding */ handleServiceWorkerException),
22599
+ /* harmony export */ hasActivatedSW: () => (/* binding */ hasActivatedSW),
22577
22600
  /* harmony export */ init: () => (/* binding */ init),
22578
22601
  /* harmony export */ recursiveFetch: () => (/* reexport safe */ _Services_GetComposition__WEBPACK_IMPORTED_MODULE_7__.recursiveFetch),
22579
22602
  /* harmony export */ recursiveFetchNew: () => (/* reexport safe */ _Services_Composition_BuildComposition__WEBPACK_IMPORTED_MODULE_45__.recursiveFetchNew),
22580
22603
  /* harmony export */ searchLinkMultipleListener: () => (/* reexport safe */ _WrapperFunctions_SearchLinkMultipleAllObservable__WEBPACK_IMPORTED_MODULE_69__.searchLinkMultipleListener),
22581
22604
  /* harmony export */ sendMessage: () => (/* binding */ sendMessage),
22582
22605
  /* harmony export */ serviceWorker: () => (/* binding */ serviceWorker),
22606
+ /* harmony export */ setHasActivatedSW: () => (/* binding */ setHasActivatedSW),
22583
22607
  /* harmony export */ storeToDatabase: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.storeToDatabase),
22584
22608
  /* harmony export */ subscribedListeners: () => (/* binding */ subscribedListeners),
22585
22609
  /* harmony export */ updateAccessToken: () => (/* binding */ updateAccessToken)
@@ -22838,6 +22862,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
22838
22862
 
22839
22863
 
22840
22864
 
22865
+
22841
22866
 
22842
22867
 
22843
22868
  var serviceWorker;
@@ -22845,6 +22870,10 @@ const TABID = Date.now().toString(36) + Math.random().toString(36).substring(2);
22845
22870
  let subscribedListeners = [];
22846
22871
  let serviceWorkerReady = false;
22847
22872
  let messageQueue = [];
22873
+ // for sw use only START
22874
+ let hasActivatedSW = false;
22875
+ function setHasActivatedSW(value) { hasActivatedSW = value; }
22876
+ // for sw use only END
22848
22877
  /**
22849
22878
  * This function lets you update the access token that the package uses. If this is not passed you cannot create, update, view or delete
22850
22879
  * Your concepts using this package.
@@ -22867,7 +22896,7 @@ function updateAccessToken(accessToken = "") {
22867
22896
  * @param enableSW {activate: boolean, scope?: string, pathToSW?: string, manual?: boolean} | undefined - This is for enabling service worker with its scope
22868
22897
  */
22869
22898
  function init() {
22870
- return __awaiter(this, arguments, void 0, function* (url = "", aiurl = "", accessToken = "", nodeUrl = "", enableAi = true, applicationName = "", enableSW = undefined, flag = { logApplication: false, accessTracker: false, isTest: false }) {
22899
+ 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 }) {
22871
22900
  try {
22872
22901
  _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.BASE_URL = url;
22873
22902
  _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.AI_URL = aiurl;
@@ -22890,19 +22919,31 @@ function init() {
22890
22919
  _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isLocalConnectionLoaded = true;
22891
22920
  return true;
22892
22921
  }
22893
- if (flag.logApplication) {
22894
- _Middleware_ApplicationMonitor__WEBPACK_IMPORTED_MODULE_103__.ApplicationMonitor.initialize();
22895
- console.warn("Application log started...");
22922
+ // Flag setup
22923
+ try {
22924
+ if (flag.logApplication) {
22925
+ _Middleware_ApplicationMonitor__WEBPACK_IMPORTED_MODULE_103__.ApplicationMonitor.initialize();
22926
+ _app__WEBPACK_IMPORTED_MODULE_105__.Logger.logApplicationActivationStatus = true;
22927
+ console.warn("Application log started...");
22928
+ }
22929
+ if (flag.logPackage) {
22930
+ _app__WEBPACK_IMPORTED_MODULE_105__.Logger.logPackageActivationStatus = true;
22931
+ console.warn("Package log started...");
22932
+ }
22933
+ if (flag.accessTracker) {
22934
+ _app__WEBPACK_IMPORTED_MODULE_105__.AccessTracker.activateStatus = true;
22935
+ console.warn("Access Tracker Activated...");
22936
+ }
22896
22937
  }
22897
- if (flag.accessTracker) {
22898
- _app__WEBPACK_IMPORTED_MODULE_105__.AccessTracker.activateStatus = true;
22899
- console.warn("Access Tracker Activated...");
22938
+ catch (error) {
22939
+ console.error("Flag setup failed in init");
22900
22940
  }
22901
22941
  if (!("serviceWorker" in navigator)) {
22902
22942
  yield initConceptConnection();
22903
22943
  console.warn("Service Worker not supported in this browser.");
22904
22944
  return;
22905
22945
  }
22946
+ listenPostMessagaes();
22906
22947
  listenBroadCastMessages();
22907
22948
  if (enableSW && enableSW.activate && enableSW.manual) {
22908
22949
  yield new Promise((resolve, reject) => {
@@ -22968,48 +23009,45 @@ function init() {
22968
23009
  .then((registration) => __awaiter(this, void 0, void 0, function* () {
22969
23010
  console.log("Service Worker registered:", registration);
22970
23011
  // If the service worker is already active, mark it as ready
22971
- if (registration.active) {
22972
- serviceWorkerReady = true;
22973
- console.log("active sw");
22974
- serviceWorker = registration.active;
22975
- yield sendMessage("init", {
22976
- url,
22977
- aiurl,
22978
- accessToken,
22979
- nodeUrl,
22980
- enableAi,
22981
- applicationName,
22982
- flag
22983
- });
22984
- processMessageQueue();
22985
- resolve();
22986
- }
22987
- else {
22988
- // Handle if on state change didn't trigger
22989
- setTimeout(() => {
22990
- if (!success)
22991
- reject("Not Completed Initialization");
22992
- }, 5000);
22993
- }
23012
+ // if (registration.active) {
23013
+ // serviceWorkerReady = true;
23014
+ // console.log("active sw");
23015
+ // serviceWorker = registration.active;
23016
+ // await sendMessage("init", {
23017
+ // url,
23018
+ // aiurl,
23019
+ // accessToken,
23020
+ // nodeUrl,
23021
+ // enableAi,
23022
+ // applicationName,
23023
+ // flag
23024
+ // });
23025
+ // processMessageQueue();
23026
+ // resolve();
23027
+ // } else {
23028
+ // // Handle if on state change didn't trigger
23029
+ // setTimeout(() => {
23030
+ // if (!success) reject("Not Completed Initialization");
23031
+ // }, 5000);
23032
+ // }
22994
23033
  // state change
22995
- if (registration.installing || registration.waiting || registration.active) {
22996
- registration.addEventListener('statechange', (event) => __awaiter(this, void 0, void 0, function* () {
22997
- var _a;
22998
- if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.state) === 'activating') {
22999
- serviceWorker = navigator.serviceWorker.controller;
23000
- console.log('Service Worker is activating statechange');
23001
- yield sendMessage("init", {
23002
- url,
23003
- aiurl,
23004
- accessToken,
23005
- nodeUrl,
23006
- enableAi,
23007
- applicationName,
23008
- flag
23009
- });
23010
- }
23011
- }));
23012
- }
23034
+ // if (registration.installing || registration.waiting || registration.active) {
23035
+ // registration.addEventListener('statechange', async (event: any) => {
23036
+ // if (event?.target?.state === 'activating') {
23037
+ // serviceWorker = navigator.serviceWorker.controller
23038
+ // console.log('Service Worker is activating statechange');
23039
+ // await sendMessage("init", {
23040
+ // url,
23041
+ // aiurl,
23042
+ // accessToken,
23043
+ // nodeUrl,
23044
+ // enableAi,
23045
+ // applicationName,
23046
+ // flag
23047
+ // });
23048
+ // }
23049
+ // });
23050
+ // }
23013
23051
  // Add Listeners before initializing the service worker
23014
23052
  // Listen for updates to the service worker
23015
23053
  console.log("update listen start");
@@ -23018,7 +23056,7 @@ function init() {
23018
23056
  console.log("new worker", newWorker);
23019
23057
  if (newWorker) {
23020
23058
  newWorker.onstatechange = () => __awaiter(this, void 0, void 0, function* () {
23021
- console.log("on state change triggered", (newWorker.state === "installed" || newWorker.state === "activated" || newWorker.state === 'redundant'), navigator.serviceWorker.controller);
23059
+ console.warn("on state change triggered", (newWorker.state === "installed" || newWorker.state === "activated" || newWorker.state === 'redundant'), navigator.serviceWorker.controller);
23022
23060
  if (newWorker.state === "installing") {
23023
23061
  console.log("Service Worker installing");
23024
23062
  serviceWorker = undefined;
@@ -23053,7 +23091,7 @@ function init() {
23053
23091
  console.warn('controller change triggered', navigator.serviceWorker.controller);
23054
23092
  if (navigator.serviceWorker.controller) {
23055
23093
  serviceWorker = navigator.serviceWorker.controller;
23056
- console.log('Service worker has been activated');
23094
+ console.warn('Service worker has been activated; controller change');
23057
23095
  yield sendMessage("init", {
23058
23096
  url,
23059
23097
  aiurl,
@@ -23073,7 +23111,7 @@ function init() {
23073
23111
  var _a;
23074
23112
  if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.state) === 'activating') {
23075
23113
  serviceWorker = navigator.serviceWorker.controller;
23076
- console.log('Service Worker is activating statechange');
23114
+ console.warn('Service Worker is activating statechange');
23077
23115
  yield sendMessage("init", {
23078
23116
  url,
23079
23117
  aiurl,
@@ -23108,7 +23146,7 @@ function init() {
23108
23146
  setTimeout(() => {
23109
23147
  if (!success)
23110
23148
  reject("Not Completed Initialization");
23111
- }, 5000);
23149
+ }, 10000);
23112
23150
  }
23113
23151
  }))
23114
23152
  .catch((error) => __awaiter(this, void 0, void 0, function* () {
@@ -23156,6 +23194,7 @@ function sendMessage(type, payload) {
23156
23194
  return new Promise((resolve, reject) => {
23157
23195
  // navigator.serviceWorker.ready
23158
23196
  // .then((registration) => {
23197
+ console.debug('debug', navigator.serviceWorker.controller, serviceWorker, serviceWorkerReady, type == 'init');
23159
23198
  if ((navigator.serviceWorker.controller || serviceWorker) && (serviceWorkerReady || type == 'init')) {
23160
23199
  const responseHandler = (event) => {
23161
23200
  var _a, _b, _c, _d, _e, _f;
@@ -23194,7 +23233,7 @@ function sendMessage(type, payload) {
23194
23233
  serviceWorker.postMessage({ type, payload: newPayload });
23195
23234
  }
23196
23235
  catch (err) {
23197
- console.log(err);
23236
+ console.log('Retrying again on catch service worker', err);
23198
23237
  // serviceWorker.postMessage({ type, payload: newPayload });
23199
23238
  serviceWorker.postMessage({ type, payload: newPayload });
23200
23239
  }
@@ -23204,6 +23243,7 @@ function sendMessage(type, payload) {
23204
23243
  console.warn(`Service Worker hasn't loaded yet. messageId: ${messageId}, type: ${type}`);
23205
23244
  if (serviceWorkerReady)
23206
23245
  console.warn('service worker was registered already but is not available NOW!!!');
23246
+ console.info('ready', navigator.serviceWorker.ready);
23207
23247
  // wait one second before checking again
23208
23248
  setTimeout(() => {
23209
23249
  console.warn(`Re-Trying after certain time. messageId: ${messageId}, type: ${type}`);
@@ -23223,7 +23263,7 @@ function sendMessage(type, payload) {
23223
23263
  setTimeout(() => {
23224
23264
  reject(`No response from service worker after timeout: ${type}`);
23225
23265
  navigator.serviceWorker.removeEventListener("message", responseHandler);
23226
- }, 90000); // 90 sec
23266
+ }, 210000); // 3.5 minutes
23227
23267
  }
23228
23268
  else {
23229
23269
  messageQueue.push({ message: { type, payload: newPayload } });
@@ -23298,7 +23338,47 @@ function listenBroadCastMessages() {
23298
23338
  responseData = yield broadcastActions[type](payload);
23299
23339
  }
23300
23340
  else {
23301
- console.log(`Unable to handle "${type}" case in BC service worker`);
23341
+ console.warn(`Unable to handle "${type}" case in BC service worker`);
23342
+ }
23343
+ }));
23344
+ }
23345
+ /**
23346
+ * Method to trigger broadcast message listener
23347
+ */
23348
+ function listenPostMessagaes() {
23349
+ // broadcast event can be listened through both the service worker and other tabs
23350
+ navigator.serviceWorker.addEventListener('message', (event) => __awaiter(this, void 0, void 0, function* () {
23351
+ var _a, _b, _c, _d;
23352
+ try {
23353
+ if (event.data && event.data.type === 'API_401') {
23354
+ const { requestDetails } = event.data;
23355
+ // Re-create the POST request with the same headers and body
23356
+ const requestOptions = {
23357
+ method: requestDetails.method,
23358
+ headers: new Headers(requestDetails.headers),
23359
+ body: requestDetails.body // Pass the original body
23360
+ };
23361
+ // Re-hit the API with the same details
23362
+ const apiResponse = yield fetch(requestDetails.url, requestOptions);
23363
+ const responseBody = yield (apiResponse === null || apiResponse === void 0 ? void 0 : apiResponse.json()); // Get the response text
23364
+ // Send the response back to the Service Worker (same client)
23365
+ (_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({
23366
+ type: 'API_RESPONSE',
23367
+ messageId: event.data.messageId,
23368
+ response: new Response(responseBody, {
23369
+ status: apiResponse.status,
23370
+ statusText: apiResponse.statusText,
23371
+ headers: apiResponse.headers
23372
+ })
23373
+ });
23374
+ }
23375
+ }
23376
+ catch (error) {
23377
+ console.error("Error during listenPostMessage", error);
23378
+ (_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({
23379
+ type: 'API_RESPONSE',
23380
+ messageId: event.data.messageId
23381
+ });
23302
23382
  }
23303
23383
  }));
23304
23384
  }
@@ -23427,10 +23507,12 @@ function processMessageQueue() {
23427
23507
  });
23428
23508
  }
23429
23509
  const handleServiceWorkerException = (error) => {
23510
+ // if (error instanceof FreeSchemaResponse && error.getStatus() != 401) {
23430
23511
  if (error instanceof _DataStructures_Responses_ErrorResponse__WEBPACK_IMPORTED_MODULE_104__.FreeSchemaResponse) {
23431
23512
  console.error('FreeSchemaResponse Error', error);
23432
23513
  throw error;
23433
23514
  }
23515
+ // if (error instanceof FreeSchemaResponse && error.getStatus() == 401) console.error('401 triggered in sw defaulting')
23434
23516
  console.error('Service Worker Error', error);
23435
23517
  };
23436
23518
 
@@ -23652,16 +23734,18 @@ const handleServiceWorkerException = (error) => {
23652
23734
  /******/ var __webpack_exports__getFromDatabaseWithType = __webpack_exports__.getFromDatabaseWithType;
23653
23735
  /******/ var __webpack_exports__getObjectsFromIndexDb = __webpack_exports__.getObjectsFromIndexDb;
23654
23736
  /******/ var __webpack_exports__handleServiceWorkerException = __webpack_exports__.handleServiceWorkerException;
23737
+ /******/ var __webpack_exports__hasActivatedSW = __webpack_exports__.hasActivatedSW;
23655
23738
  /******/ var __webpack_exports__init = __webpack_exports__.init;
23656
23739
  /******/ var __webpack_exports__recursiveFetch = __webpack_exports__.recursiveFetch;
23657
23740
  /******/ var __webpack_exports__recursiveFetchNew = __webpack_exports__.recursiveFetchNew;
23658
23741
  /******/ var __webpack_exports__searchLinkMultipleListener = __webpack_exports__.searchLinkMultipleListener;
23659
23742
  /******/ var __webpack_exports__sendMessage = __webpack_exports__.sendMessage;
23660
23743
  /******/ var __webpack_exports__serviceWorker = __webpack_exports__.serviceWorker;
23744
+ /******/ var __webpack_exports__setHasActivatedSW = __webpack_exports__.setHasActivatedSW;
23661
23745
  /******/ var __webpack_exports__storeToDatabase = __webpack_exports__.storeToDatabase;
23662
23746
  /******/ var __webpack_exports__subscribedListeners = __webpack_exports__.subscribedListeners;
23663
23747
  /******/ var __webpack_exports__updateAccessToken = __webpack_exports__.updateAccessToken;
23664
- /******/ 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 };
23748
+ /******/ 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 };
23665
23749
  /******/
23666
23750
 
23667
23751
  //# sourceMappingURL=main.bundle.js.map