mftsccs-browser 1.1.24-beta → 1.1.26-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.
@@ -3133,6 +3133,7 @@ function Signin(signinInfo) {
3133
3133
 
3134
3134
  __webpack_require__.r(__webpack_exports__);
3135
3135
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3136
+ /* harmony export */ SignupEntity: () => (/* binding */ SignupEntity),
3136
3137
  /* harmony export */ "default": () => (/* binding */ Signup)
3137
3138
  /* harmony export */ });
3138
3139
  /* harmony import */ var _Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Services/Common/ErrorPosting */ "./src/Services/Common/ErrorPosting.ts");
@@ -3197,6 +3198,92 @@ function postData() {
3197
3198
  }
3198
3199
  });
3199
3200
  }
3201
+ // export async function submitSignupForm(e: any) {
3202
+ // e.preventDefault();
3203
+ // // alert("Are you sure to want to signup?");
3204
+ // const inputType = <HTMLInputElement>document.getElementById("type");
3205
+ // const typeValue = inputType?.value;
3206
+ // const inputUsername = <HTMLInputElement>document.getElementById("username");
3207
+ // const usernameValue = inputUsername?.value;
3208
+ // const inputEmail = <HTMLInputElement>document.getElementById("email");
3209
+ // const emailValue = inputEmail?.value;
3210
+ // const inputGender = <HTMLInputElement>document.getElementById("gender");
3211
+ // const genderValue = inputGender?.value;
3212
+ // const inputFirstName = <HTMLInputElement>document.getElementById("firstName");
3213
+ // const firstNameValue = inputFirstName?.value;
3214
+ // const inputLastName = <HTMLInputElement>document.getElementById("lastName");
3215
+ // const lastNameValue = inputLastName?.value;
3216
+ // const inputPassword = <HTMLInputElement>document.getElementById("password");
3217
+ // const passwordValue = inputPassword?.value;
3218
+ // const inputConfirmPassword = <HTMLInputElement>(
3219
+ // document.getElementById("confirmPassword")
3220
+ // );
3221
+ // const confirmPasswordValue = inputConfirmPassword?.value;
3222
+ // // console.log(confirmPasswordValue,"confirmPasswordValue");
3223
+ // const inputprivacyPolicy = <HTMLInputElement>(
3224
+ // document.getElementById("privacyPolicy")
3225
+ // );
3226
+ // const privacyPolicy = inputprivacyPolicy?.checked;
3227
+ // const inputPrivacyPolicyError = <HTMLInputElement>(
3228
+ // document.getElementById("privacyPolicyError")
3229
+ // );
3230
+ // if (!privacyPolicy) {
3231
+ // inputPrivacyPolicyError.style.display = "block";
3232
+ // }
3233
+ // const signupData: any = {
3234
+ // type: typeValue,
3235
+ // username: usernameValue,
3236
+ // title: genderValue,
3237
+ // email: emailValue,
3238
+ // password: passwordValue,
3239
+ // timestamp: new Date().toISOString(),
3240
+ // fname: firstNameValue,
3241
+ // lname: lastNameValue,
3242
+ // };
3243
+ // if (privacyPolicy) {
3244
+ // const signupResponse = await signupEntity(signupData);
3245
+ // if (!signupResponse?.error && signupResponse?.data) {
3246
+ // updateContent("/login");
3247
+ // }
3248
+ // }
3249
+ // }
3250
+ /**
3251
+ *
3252
+ * @param signupData
3253
+ * const signupData: any = {
3254
+ * type: typeValue,
3255
+ * username: usernameValue,
3256
+ * title: genderValue,
3257
+ * email: emailValue,
3258
+ * password: passwordValue,
3259
+ * timestamp: new Date().toISOString(),
3260
+ * fname: firstNameValue,
3261
+ * lname: lastNameValue,
3262
+ * };
3263
+ * @returns
3264
+ */
3265
+ function SignupEntity(signupData) {
3266
+ return __awaiter(this, void 0, void 0, function* () {
3267
+ const baseURL = _app__WEBPACK_IMPORTED_MODULE_1__.BaseUrl.NODE_URL;
3268
+ const response = yield fetch(`${baseURL}/api/v1/entity/signup`, {
3269
+ method: "POST",
3270
+ headers: {
3271
+ "Content-Type": "application/json",
3272
+ },
3273
+ body: JSON.stringify(signupData),
3274
+ });
3275
+ if (response.ok) {
3276
+ return response.json();
3277
+ }
3278
+ else {
3279
+ if (response.status === 404)
3280
+ throw new Error("404, Not found");
3281
+ if (response.status === 500)
3282
+ throw new Error("500, internal server error");
3283
+ throw new Error(response.status);
3284
+ }
3285
+ });
3286
+ }
3200
3287
 
3201
3288
 
3202
3289
  /***/ }),
@@ -8730,6 +8817,7 @@ class FreeschemaQuery {
8730
8817
  this.inpage = 10;
8731
8818
  this.page = 1;
8732
8819
  this.concepts = [];
8820
+ this.conceptIds = [];
8733
8821
  this.selectors = [];
8734
8822
  this.freeschemaQueries = [];
8735
8823
  this.filters = [];
@@ -15746,7 +15834,11 @@ function publishMessage(topic, message) {
15746
15834
  __webpack_require__.r(__webpack_exports__);
15747
15835
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
15748
15836
  /* harmony export */ FormatConceptsAndConnectionsNormalList: () => (/* binding */ FormatConceptsAndConnectionsNormalList),
15749
- /* harmony export */ FormatFromConnectionsAlteredArrayExternal: () => (/* binding */ FormatFromConnectionsAlteredArrayExternal)
15837
+ /* harmony export */ FormatFromConnectionsAlteredArrayExternal: () => (/* binding */ FormatFromConnectionsAlteredArrayExternal),
15838
+ /* harmony export */ FormatFunctionData: () => (/* binding */ FormatFunctionData),
15839
+ /* harmony export */ FormatFunctionDataForData: () => (/* binding */ FormatFunctionDataForData),
15840
+ /* harmony export */ formatFunction: () => (/* binding */ formatFunction),
15841
+ /* harmony export */ formatFunctionForData: () => (/* binding */ formatFunctionForData)
15750
15842
  /* harmony export */ });
15751
15843
  /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app */ "./src/app.ts");
15752
15844
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
@@ -15769,8 +15861,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
15769
15861
  * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
15770
15862
  * @returns
15771
15863
  */
15772
- function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1, mainComposition_1) {
15773
- return __awaiter(this, arguments, void 0, function* (connections, compositionData, mainComposition, reverse = []) {
15864
+ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1, mainComposition_1, newCompositionData_1) {
15865
+ return __awaiter(this, arguments, void 0, function* (connections, compositionData, mainComposition, newCompositionData, reverse = []) {
15774
15866
  var _a, _b, _c, _d;
15775
15867
  let mainData = [];
15776
15868
  let myConcepts = [];
@@ -15782,6 +15874,248 @@ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1
15782
15874
  connections.sort(function (x, y) {
15783
15875
  return y.id - x.id;
15784
15876
  });
15877
+ for (let i = 0; i < connections.length; i++) {
15878
+ let reverseFlag = false;
15879
+ if (reverse.includes(connections[i].id)) {
15880
+ reverseFlag = true;
15881
+ }
15882
+ let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
15883
+ let toTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].toTheConceptId);
15884
+ if (reverseFlag == true) {
15885
+ if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
15886
+ if (toTheConcept.id in compositionData) {
15887
+ let newData;
15888
+ let key = (_b = (_a = toTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
15889
+ if (connections[i].toTheConceptId in compositionData) {
15890
+ newData = compositionData[connections[i].toTheConceptId];
15891
+ }
15892
+ else {
15893
+ newData = {};
15894
+ newData[key] = {};
15895
+ compositionData[connections[i].toTheConceptId] = newData;
15896
+ }
15897
+ let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
15898
+ try {
15899
+ let reverseCharater = linkerConcept.characterValue + "_reverse";
15900
+ let data = compositionData[connections[i].ofTheConceptId];
15901
+ if (data) {
15902
+ if (Array.isArray(newData[key][reverseCharater])) {
15903
+ newData[key][reverseCharater].push(data);
15904
+ }
15905
+ else {
15906
+ if (linkerConcept.characterValue.includes("_s_")) {
15907
+ newData[key][reverseCharater] = [];
15908
+ newData[key][reverseCharater].push(data);
15909
+ }
15910
+ else {
15911
+ newData[key][reverseCharater] = data;
15912
+ }
15913
+ }
15914
+ }
15915
+ }
15916
+ catch (ex) {
15917
+ console.log("this is error", ex);
15918
+ }
15919
+ }
15920
+ }
15921
+ }
15922
+ else {
15923
+ if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
15924
+ if (ofTheConcept.id in compositionData) {
15925
+ let newData;
15926
+ let key = (_d = (_c = ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "self";
15927
+ if (connections[i].ofTheConceptId in compositionData) {
15928
+ newData = compositionData[connections[i].ofTheConceptId];
15929
+ }
15930
+ else {
15931
+ newData = {};
15932
+ newData[key] = {};
15933
+ compositionData[connections[i].ofTheConceptId] = newData;
15934
+ }
15935
+ let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
15936
+ try {
15937
+ let data = compositionData[connections[i].toTheConceptId];
15938
+ if (data) {
15939
+ if (Array.isArray(newData[key][linkerConcept.characterValue])) {
15940
+ newData[key][linkerConcept.characterValue].push(data);
15941
+ }
15942
+ else {
15943
+ if (linkerConcept.characterValue.includes("_s_")) {
15944
+ newData[key][linkerConcept.characterValue] = [];
15945
+ newData[key][linkerConcept.characterValue].push(data);
15946
+ }
15947
+ else {
15948
+ newData[key][linkerConcept.characterValue] = data;
15949
+ }
15950
+ }
15951
+ }
15952
+ }
15953
+ catch (ex) {
15954
+ console.log("this is error", ex);
15955
+ }
15956
+ }
15957
+ }
15958
+ }
15959
+ }
15960
+ for (let i = 0; i < mainComposition.length; i++) {
15961
+ let mymainData = compositionData[mainComposition[i]];
15962
+ mymainData["id"] = mainComposition[i];
15963
+ mainData.push(mymainData);
15964
+ }
15965
+ return mainData;
15966
+ });
15967
+ }
15968
+ /**
15969
+ * ############ Format is data-id and is used for list. ############
15970
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
15971
+ * The list format is helpful because you do not have to go over each individual query.
15972
+ * @param connections the type connections that need (external connections) to be passed
15973
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
15974
+ * @param mainComposition this is list of ids of the main composition that builds the tree
15975
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
15976
+ * @returns
15977
+ */
15978
+ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionData_1, newCompositionData_1, mainComposition_1) {
15979
+ return __awaiter(this, arguments, void 0, function* (connections, compositionData, newCompositionData, mainComposition, reverse = []) {
15980
+ var _a, _b, _c, _d;
15981
+ let startTime = new Date().getTime();
15982
+ let mainData = [];
15983
+ let myConcepts = [];
15984
+ for (let i = 0; i < connections.length; i++) {
15985
+ myConcepts.push(connections[i].toTheConceptId);
15986
+ myConcepts.push(connections[i].ofTheConceptId);
15987
+ myConcepts.push(connections[i].typeId);
15988
+ }
15989
+ connections.sort(function (x, y) {
15990
+ return y.id - x.id;
15991
+ });
15992
+ for (let i = 0; i < connections.length; i++) {
15993
+ let reverseFlag = false;
15994
+ let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
15995
+ let toTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].toTheConceptId);
15996
+ if (reverse.includes(connections[i].id)) {
15997
+ reverseFlag = true;
15998
+ }
15999
+ if (reverseFlag == true) {
16000
+ if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
16001
+ if (toTheConcept.id in compositionData) {
16002
+ let newData;
16003
+ let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
16004
+ let key = (_b = (_a = toTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
16005
+ let flag = false;
16006
+ if (connections[i].toTheConceptId in compositionData) {
16007
+ flag = true;
16008
+ }
16009
+ if (connections[i].toTheConceptId in compositionData) {
16010
+ newData = compositionData[connections[i].toTheConceptId];
16011
+ }
16012
+ else {
16013
+ newData = {};
16014
+ newData[key] = {};
16015
+ compositionData[connections[i].toTheConceptId] = newData;
16016
+ }
16017
+ try {
16018
+ let isComp = compositionData[connections[i].ofTheConceptId];
16019
+ if (isComp) {
16020
+ let data = {
16021
+ "id": ofTheConcept.id,
16022
+ "data": compositionData[connections[i].ofTheConceptId]
16023
+ };
16024
+ let reverseCharater = linkerConcept.characterValue + "_reverse";
16025
+ if (Array.isArray(newData[key][reverseCharater])) {
16026
+ newData[key][reverseCharater].push(data);
16027
+ }
16028
+ else {
16029
+ if (reverseCharater.includes("_s_")) {
16030
+ newData[key][reverseCharater] = [];
16031
+ newData[key][reverseCharater].push(data);
16032
+ }
16033
+ else {
16034
+ newData[key][reverseCharater] = data;
16035
+ }
16036
+ }
16037
+ }
16038
+ }
16039
+ catch (ex) {
16040
+ console.log("this is error", ex);
16041
+ }
16042
+ }
16043
+ }
16044
+ }
16045
+ else {
16046
+ if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
16047
+ if (ofTheConcept.id in compositionData) {
16048
+ let newData;
16049
+ let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
16050
+ let key = (_d = (_c = ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "self";
16051
+ let flag = false;
16052
+ if (connections[i].toTheConceptId in compositionData) {
16053
+ flag = true;
16054
+ }
16055
+ if (connections[i].ofTheConceptId in compositionData) {
16056
+ newData = compositionData[connections[i].ofTheConceptId];
16057
+ }
16058
+ else {
16059
+ newData = {};
16060
+ newData[key] = {};
16061
+ compositionData[connections[i].ofTheConceptId] = newData;
16062
+ }
16063
+ try {
16064
+ let isComp = compositionData[connections[i].toTheConceptId];
16065
+ if (isComp) {
16066
+ let data = {
16067
+ "id": toTheConcept.id,
16068
+ "data": compositionData[connections[i].toTheConceptId]
16069
+ };
16070
+ if (Array.isArray(newData[key][linkerConcept.characterValue])) {
16071
+ newData[key][linkerConcept.characterValue].push(data);
16072
+ }
16073
+ else {
16074
+ if (linkerConcept.characterValue.includes("_s_")) {
16075
+ newData[key][linkerConcept.characterValue] = [];
16076
+ newData[key][linkerConcept.characterValue].push(data);
16077
+ }
16078
+ else {
16079
+ newData[key][linkerConcept.characterValue] = data;
16080
+ }
16081
+ }
16082
+ }
16083
+ }
16084
+ catch (ex) {
16085
+ console.log("this is error", ex);
16086
+ }
16087
+ }
16088
+ }
16089
+ }
16090
+ }
16091
+ console.log("these are the main datas", compositionData);
16092
+ for (let i = 0; i < mainComposition.length; i++) {
16093
+ let mymainData = {};
16094
+ mymainData["id"] = mainComposition[i];
16095
+ mymainData["data"] = compositionData[mainComposition[i]];
16096
+ mainData.push(mymainData);
16097
+ }
16098
+ return mainData;
16099
+ });
16100
+ }
16101
+ /**
16102
+ *
16103
+ * ## Format Normal ##
16104
+ * This function takes in the connections and then converts the connections to the single level objects for further processing
16105
+ * This function is the builder of the arrays/ objects from the connections.
16106
+ */
16107
+ function formatFunction(connections, compositionData, reverse) {
16108
+ return __awaiter(this, void 0, void 0, function* () {
16109
+ var _a, _b, _c, _d, _e, _f, _g, _h;
16110
+ let myConcepts = [];
16111
+ for (let i = 0; i < connections.length; i++) {
16112
+ myConcepts.push(connections[i].toTheConceptId);
16113
+ myConcepts.push(connections[i].ofTheConceptId);
16114
+ myConcepts.push(connections[i].typeId);
16115
+ }
16116
+ connections.sort(function (x, y) {
16117
+ return y.id - x.id;
16118
+ });
15785
16119
  for (let i = 0; i < connections.length; i++) {
15786
16120
  let reverseFlag = false;
15787
16121
  if (reverse.includes(connections[i].id)) {
@@ -15803,18 +16137,116 @@ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1
15803
16137
  }
15804
16138
  let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
15805
16139
  try {
16140
+ let mytype = (_d = (_c = ofTheConcept === null || ofTheConcept === void 0 ? void 0 : ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "none";
16141
+ let value = ofTheConcept.characterValue;
16142
+ let data = {
16143
+ [mytype]: value
16144
+ };
15806
16145
  let reverseCharater = linkerConcept.characterValue + "_reverse";
15807
- if (Array.isArray(newData[key][reverseCharater])) {
15808
- newData[key][reverseCharater].push(compositionData[connections[i].ofTheConceptId]);
16146
+ if (linkerConcept.characterValue.includes("_s_")) {
16147
+ if (!(ofTheConcept.id in compositionData)) {
16148
+ compositionData[ofTheConcept.id] = {};
16149
+ }
16150
+ compositionData[ofTheConcept.id][mytype] = value;
15809
16151
  }
15810
- else {
15811
- if (linkerConcept.characterValue.includes("_s_")) {
15812
- newData[key][reverseCharater] = [];
15813
- newData[key][reverseCharater].push(ofTheConcept.characterValue);
16152
+ }
16153
+ catch (ex) {
16154
+ console.log("this is error", ex);
16155
+ }
16156
+ }
16157
+ }
16158
+ else {
16159
+ if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
16160
+ let newData;
16161
+ let key = (_f = (_e = ofTheConcept.type) === null || _e === void 0 ? void 0 : _e.characterValue) !== null && _f !== void 0 ? _f : "self";
16162
+ if (connections[i].ofTheConceptId in compositionData) {
16163
+ newData = compositionData[connections[i].ofTheConceptId];
16164
+ }
16165
+ else {
16166
+ newData = {};
16167
+ newData[key] = {};
16168
+ compositionData[connections[i].ofTheConceptId] = newData;
16169
+ }
16170
+ let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
16171
+ try {
16172
+ let mytype = (_h = (_g = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _g === void 0 ? void 0 : _g.characterValue) !== null && _h !== void 0 ? _h : "none";
16173
+ let value = toTheConcept.characterValue;
16174
+ let data = {
16175
+ [mytype]: value
16176
+ };
16177
+ if (linkerConcept.characterValue.includes("_s_")) {
16178
+ if (!(toTheConcept.id in compositionData)) {
16179
+ compositionData[toTheConcept.id] = {};
15814
16180
  }
15815
- else {
15816
- newData[key][reverseCharater] = ofTheConcept.characterValue;
16181
+ compositionData[toTheConcept.id][mytype] = value;
16182
+ }
16183
+ }
16184
+ catch (ex) {
16185
+ console.log("this is error", ex);
16186
+ }
16187
+ }
16188
+ }
16189
+ }
16190
+ return compositionData;
16191
+ });
16192
+ }
16193
+ /**
16194
+ *
16195
+ * ## Format Normal ##
16196
+ * This function takes in the connections and then converts the connections to the single level objects for further processing
16197
+ * This function is the builder of the arrays/ objects from the connections.
16198
+ */
16199
+ function formatFunctionForData(connections, compositionData, reverse) {
16200
+ return __awaiter(this, void 0, void 0, function* () {
16201
+ var _a, _b, _c, _d, _e, _f, _g, _h;
16202
+ let myConcepts = [];
16203
+ for (let i = 0; i < connections.length; i++) {
16204
+ myConcepts.push(connections[i].toTheConceptId);
16205
+ myConcepts.push(connections[i].ofTheConceptId);
16206
+ myConcepts.push(connections[i].typeId);
16207
+ }
16208
+ connections.sort(function (x, y) {
16209
+ return y.id - x.id;
16210
+ });
16211
+ for (let i = 0; i < connections.length; i++) {
16212
+ let reverseFlag = false;
16213
+ if (reverse.includes(connections[i].id)) {
16214
+ reverseFlag = true;
16215
+ }
16216
+ let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
16217
+ let toTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].toTheConceptId);
16218
+ if (reverseFlag == true) {
16219
+ if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
16220
+ let newData;
16221
+ let key = (_b = (_a = toTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
16222
+ if (connections[i].toTheConceptId in compositionData) {
16223
+ newData = compositionData[connections[i].toTheConceptId];
16224
+ if (!(key in newData)) {
16225
+ newData[key] = {};
16226
+ }
16227
+ }
16228
+ else {
16229
+ newData = {};
16230
+ newData[key] = {};
16231
+ compositionData[connections[i].toTheConceptId] = newData;
16232
+ }
16233
+ let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
16234
+ try {
16235
+ let mytype = (_d = (_c = ofTheConcept === null || ofTheConcept === void 0 ? void 0 : ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "none";
16236
+ let value = ofTheConcept.characterValue;
16237
+ let data = {
16238
+ [mytype]: value
16239
+ };
16240
+ let reverseCharater = linkerConcept.characterValue + "_reverse";
16241
+ if (linkerConcept.characterValue.includes("_s_")) {
16242
+ // newData[key][reverseCharater] = [];
16243
+ // newData[key][reverseCharater].push(data);
16244
+ }
16245
+ else {
16246
+ if (typeof newData[key] == "string") {
16247
+ newData[key] = {};
15817
16248
  }
16249
+ newData[key][reverseCharater] = data;
15818
16250
  }
15819
16251
  }
15820
16252
  catch (ex) {
@@ -15825,9 +16257,12 @@ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1
15825
16257
  else {
15826
16258
  if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
15827
16259
  let newData;
15828
- let key = (_d = (_c = ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "self";
16260
+ let key = (_f = (_e = ofTheConcept.type) === null || _e === void 0 ? void 0 : _e.characterValue) !== null && _f !== void 0 ? _f : "self";
15829
16261
  if (connections[i].ofTheConceptId in compositionData) {
15830
16262
  newData = compositionData[connections[i].ofTheConceptId];
16263
+ if (!(key in newData)) {
16264
+ newData[key] = {};
16265
+ }
15831
16266
  }
15832
16267
  else {
15833
16268
  newData = {};
@@ -15836,17 +16271,20 @@ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1
15836
16271
  }
15837
16272
  let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
15838
16273
  try {
15839
- if (Array.isArray(newData[key][linkerConcept.characterValue])) {
15840
- newData[key][linkerConcept.characterValue].push(toTheConcept.characterValue);
16274
+ let mytype = (_h = (_g = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _g === void 0 ? void 0 : _g.characterValue) !== null && _h !== void 0 ? _h : "none";
16275
+ let value = toTheConcept.characterValue;
16276
+ let data = {
16277
+ [mytype]: value
16278
+ };
16279
+ if (linkerConcept.characterValue.includes("_s_")) {
16280
+ // newData[key][linkerConcept.characterValue] = [];
16281
+ // newData[key][linkerConcept.characterValue].push(data);
15841
16282
  }
15842
16283
  else {
15843
- if (linkerConcept.characterValue.includes("_s_")) {
15844
- newData[key][linkerConcept.characterValue] = [];
15845
- newData[key][linkerConcept.characterValue].push(toTheConcept.characterValue);
15846
- }
15847
- else {
15848
- newData[key][linkerConcept.characterValue] = toTheConcept.characterValue;
16284
+ if (typeof newData[key] == "string") {
16285
+ newData[key] = {};
15849
16286
  }
16287
+ newData[key][linkerConcept.characterValue] = data;
15850
16288
  }
15851
16289
  }
15852
16290
  catch (ex) {
@@ -15855,29 +16293,21 @@ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1
15855
16293
  }
15856
16294
  }
15857
16295
  }
15858
- for (let i = 0; i < mainComposition.length; i++) {
15859
- let mymainData = compositionData[mainComposition[i]];
15860
- console.log(mainData, mymainData);
15861
- mainData.push(mymainData);
15862
- }
15863
- return mainData;
16296
+ return compositionData;
15864
16297
  });
15865
16298
  }
15866
16299
  /**
15867
- * ############ Format is data-id and is used for list. ############
15868
- * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
15869
- * The list format is helpful because you do not have to go over each individual query.
15870
- * @param connections the type connections that need (external connections) to be passed
15871
- * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
15872
- * @param mainComposition this is list of ids of the main composition that builds the tree
15873
- * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
16300
+ * ## Format DATA-ID ##
16301
+ * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
16302
+ * This is then passed on further for stiching.
16303
+ * @param connections
16304
+ * @param compositionData
16305
+ * @param reverse
15874
16306
  * @returns
15875
16307
  */
15876
- function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionData_1, mainComposition_1) {
15877
- return __awaiter(this, arguments, void 0, function* (connections, compositionData, mainComposition, reverse = []) {
16308
+ function FormatFunctionData(connections_1, compositionData_1) {
16309
+ return __awaiter(this, arguments, void 0, function* (connections, compositionData, reverse = []) {
15878
16310
  var _a, _b, _c, _d, _e, _f, _g, _h;
15879
- let startTime = new Date().getTime();
15880
- let mainData = [];
15881
16311
  let myConcepts = [];
15882
16312
  for (let i = 0; i < connections.length; i++) {
15883
16313
  myConcepts.push(connections[i].toTheConceptId);
@@ -15898,7 +16328,36 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
15898
16328
  if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
15899
16329
  let newData;
15900
16330
  let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
15901
- let key = (_b = (_a = ofTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
16331
+ let key = (_b = (_a = toTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
16332
+ if (connections[i].toTheConceptId in compositionData) {
16333
+ newData = compositionData[connections[i].toTheConceptId];
16334
+ }
16335
+ else {
16336
+ newData = {};
16337
+ newData[key] = {};
16338
+ compositionData[connections[i].toTheConceptId] = newData;
16339
+ }
16340
+ try {
16341
+ let mytype = (_d = (_c = ofTheConcept === null || ofTheConcept === void 0 ? void 0 : ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "none";
16342
+ let value = ofTheConcept.characterValue;
16343
+ let reverseCharater = linkerConcept.characterValue + "_reverse";
16344
+ if (reverseCharater.includes("_s_")) {
16345
+ if (!(ofTheConcept.id in compositionData)) {
16346
+ compositionData[ofTheConcept.id] = {};
16347
+ }
16348
+ compositionData[ofTheConcept.id][mytype] = value;
16349
+ }
16350
+ }
16351
+ catch (ex) {
16352
+ console.log("this is error", ex);
16353
+ }
16354
+ }
16355
+ }
16356
+ else {
16357
+ if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
16358
+ let newData;
16359
+ let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
16360
+ let key = (_f = (_e = ofTheConcept.type) === null || _e === void 0 ? void 0 : _e.characterValue) !== null && _f !== void 0 ? _f : "self";
15902
16361
  if (connections[i].ofTheConceptId in compositionData) {
15903
16362
  newData = compositionData[connections[i].ofTheConceptId];
15904
16363
  }
@@ -15908,21 +16367,86 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
15908
16367
  compositionData[connections[i].ofTheConceptId] = newData;
15909
16368
  }
15910
16369
  try {
16370
+ let mytype = (_h = (_g = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _g === void 0 ? void 0 : _g.characterValue) !== null && _h !== void 0 ? _h : "none";
16371
+ let value = toTheConcept.characterValue;
16372
+ if (linkerConcept.characterValue.includes("_s_")) {
16373
+ if (!(toTheConcept.id in compositionData)) {
16374
+ compositionData[toTheConcept.id] = {};
16375
+ }
16376
+ compositionData[toTheConcept.id][mytype] = value;
16377
+ }
16378
+ }
16379
+ catch (ex) {
16380
+ console.log("this is error", ex);
16381
+ }
16382
+ }
16383
+ }
16384
+ }
16385
+ return compositionData;
16386
+ });
16387
+ }
16388
+ /**
16389
+ * ## Format DATA-ID ##
16390
+ * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
16391
+ * This is then passed on further for stiching.
16392
+ * @param connections
16393
+ * @param compositionData
16394
+ * @param reverse
16395
+ * @returns
16396
+ */
16397
+ function FormatFunctionDataForData(connections_1, compositionData_1) {
16398
+ return __awaiter(this, arguments, void 0, function* (connections, compositionData, reverse = []) {
16399
+ var _a, _b, _c, _d, _e, _f, _g, _h;
16400
+ let myConcepts = [];
16401
+ for (let i = 0; i < connections.length; i++) {
16402
+ myConcepts.push(connections[i].toTheConceptId);
16403
+ myConcepts.push(connections[i].ofTheConceptId);
16404
+ myConcepts.push(connections[i].typeId);
16405
+ }
16406
+ connections.sort(function (x, y) {
16407
+ return y.id - x.id;
16408
+ });
16409
+ for (let i = 0; i < connections.length; i++) {
16410
+ let reverseFlag = false;
16411
+ let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
16412
+ let toTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].toTheConceptId);
16413
+ if (reverse.includes(connections[i].id)) {
16414
+ reverseFlag = true;
16415
+ }
16416
+ if (reverseFlag == true) {
16417
+ if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
16418
+ let newData;
16419
+ let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
16420
+ let key = (_b = (_a = toTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
16421
+ if (connections[i].toTheConceptId in compositionData) {
16422
+ newData = compositionData[connections[i].toTheConceptId];
16423
+ if (!(key in newData)) {
16424
+ newData[key] = {};
16425
+ }
16426
+ }
16427
+ else {
16428
+ newData = {};
16429
+ newData[key] = {};
16430
+ compositionData[connections[i].toTheConceptId] = newData;
16431
+ }
16432
+ try {
16433
+ let mytype = (_d = (_c = ofTheConcept === null || ofTheConcept === void 0 ? void 0 : ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "none";
16434
+ let value = ofTheConcept.characterValue;
16435
+ let data = {
16436
+ "id": ofTheConcept.id,
16437
+ "data": {
16438
+ [mytype]: value
16439
+ }
16440
+ };
15911
16441
  let reverseCharater = linkerConcept.characterValue + "_reverse";
15912
- if (Array.isArray(newData[key][reverseCharater])) {
15913
- newData[key][reverseCharater].push(compositionData[connections[i].ofTheConceptId]);
16442
+ if (reverseCharater.includes("_s_")) {
16443
+ // do nothing
15914
16444
  }
15915
16445
  else {
15916
- let mytype = (_d = (_c = ofTheConcept === null || ofTheConcept === void 0 ? void 0 : ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "none";
15917
- let value = ofTheConcept.characterValue;
15918
- let data = {
15919
- "id": ofTheConcept.id,
15920
- "data": {
15921
- [mytype]: value
15922
- }
15923
- };
15924
- newData[key][reverseCharater] = [];
15925
- newData[key][reverseCharater].push(data);
16446
+ if (typeof newData[key] == "string") {
16447
+ newData[key] = {};
16448
+ }
16449
+ newData[key][reverseCharater] = data;
15926
16450
  }
15927
16451
  }
15928
16452
  catch (ex) {
@@ -15937,6 +16461,9 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
15937
16461
  let key = (_f = (_e = ofTheConcept.type) === null || _e === void 0 ? void 0 : _e.characterValue) !== null && _f !== void 0 ? _f : "self";
15938
16462
  if (connections[i].ofTheConceptId in compositionData) {
15939
16463
  newData = compositionData[connections[i].ofTheConceptId];
16464
+ if (!(key in newData)) {
16465
+ newData[key] = {};
16466
+ }
15940
16467
  }
15941
16468
  else {
15942
16469
  newData = {};
@@ -15944,25 +16471,22 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
15944
16471
  compositionData[connections[i].ofTheConceptId] = newData;
15945
16472
  }
15946
16473
  try {
15947
- if (Array.isArray(newData[key][linkerConcept.characterValue])) {
15948
- newData[key][linkerConcept.characterValue].push(compositionData[connections[i].toTheConceptId]);
16474
+ let mytype = (_h = (_g = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _g === void 0 ? void 0 : _g.characterValue) !== null && _h !== void 0 ? _h : "none";
16475
+ let value = toTheConcept.characterValue;
16476
+ let data = {
16477
+ "id": toTheConcept.id,
16478
+ "data": {
16479
+ [mytype]: value
16480
+ }
16481
+ };
16482
+ if (linkerConcept.characterValue.includes("_s_")) {
16483
+ // do nothing
15949
16484
  }
15950
16485
  else {
15951
- let mytype = (_h = (_g = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _g === void 0 ? void 0 : _g.characterValue) !== null && _h !== void 0 ? _h : "none";
15952
- let value = toTheConcept.characterValue;
15953
- let data = {
15954
- "id": toTheConcept.id,
15955
- "data": {
15956
- [mytype]: value
15957
- }
15958
- };
15959
- if (linkerConcept.characterValue.includes("_s_")) {
15960
- newData[key][linkerConcept.characterValue] = [];
15961
- newData[key][linkerConcept.characterValue].push(data);
15962
- }
15963
- else {
15964
- newData[key][linkerConcept.characterValue] = data;
16486
+ if (typeof newData[key] == "string") {
16487
+ newData[key] = {};
15965
16488
  }
16489
+ newData[key][linkerConcept.characterValue] = data;
15966
16490
  }
15967
16491
  }
15968
16492
  catch (ex) {
@@ -15971,12 +16495,7 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
15971
16495
  }
15972
16496
  }
15973
16497
  }
15974
- for (let i = 0; i < mainComposition.length; i++) {
15975
- let mymainData = compositionData[mainComposition[i]];
15976
- console.log(mainData, mymainData);
15977
- mainData.push(mymainData);
15978
- }
15979
- return mainData;
16498
+ return compositionData;
15980
16499
  });
15981
16500
  }
15982
16501
 
@@ -16634,19 +17153,49 @@ function formatLinkersNormal(linkers, conceptIds, connections, mainCompositionId
16634
17153
  return output;
16635
17154
  });
16636
17155
  }
17156
+ /**
17157
+ * ## Format Normal ##
17158
+ * This function fetches all the connections and then converts all the connections to the single level connections
17159
+ * Then those single level objects are then stiched together to create a complex json/ array.
17160
+ * @param linkers
17161
+ * @param conceptIds
17162
+ * @param mainCompositionIds
17163
+ * @param reverse
17164
+ * @returns
17165
+ */
16637
17166
  function formatConnections(linkers, conceptIds, mainCompositionIds, reverse) {
16638
17167
  return __awaiter(this, void 0, void 0, function* () {
16639
17168
  let prefetchConnections = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionDataPrefetch)(linkers);
16640
17169
  let compositionData = [];
16641
- let output = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatConceptsAndConnectionsNormalList)(prefetchConnections, compositionData, mainCompositionIds, reverse);
17170
+ let newCompositionData = [];
17171
+ compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.formatFunction)(prefetchConnections, compositionData, reverse);
17172
+ console.log("this is the format normal builders BEFORE", compositionData);
17173
+ compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.formatFunctionForData)(prefetchConnections, compositionData, reverse);
17174
+ console.log("this is the format normal builders", compositionData);
17175
+ let output = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatConceptsAndConnectionsNormalList)(prefetchConnections, compositionData, mainCompositionIds, newCompositionData, reverse);
16642
17176
  return output;
16643
17177
  });
16644
17178
  }
17179
+ /**
17180
+ * ## Format DATA-ID ##
17181
+ * This function fetches all the connections and then converts all the connections to the single level connections
17182
+ * Then those single level objects are then stiched together to create a complex json/ array.
17183
+ * @param linkers
17184
+ * @param conceptIds
17185
+ * @param mainCompositionIds
17186
+ * @param reverse
17187
+ * @returns
17188
+ */
16645
17189
  function formatConnectionsDataId(linkers, conceptIds, mainCompositionIds, reverse) {
16646
17190
  return __awaiter(this, void 0, void 0, function* () {
16647
17191
  let prefetchConnections = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionDataPrefetch)(linkers);
16648
17192
  let compositionData = [];
16649
- let output = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFromConnectionsAlteredArrayExternal)(prefetchConnections, compositionData, mainCompositionIds, reverse);
17193
+ let newCompositionData = [];
17194
+ compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFunctionData)(prefetchConnections, compositionData, reverse);
17195
+ console.log("this is the format data builders BEFORE", compositionData);
17196
+ compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFunctionDataForData)(prefetchConnections, compositionData, reverse);
17197
+ console.log("this is the format data builders", compositionData);
17198
+ let output = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFromConnectionsAlteredArrayExternal)(prefetchConnections, compositionData, newCompositionData, mainCompositionIds, reverse);
16650
17199
  return output;
16651
17200
  });
16652
17201
  }
@@ -17521,6 +18070,414 @@ class BaseWidget extends _BaseObserver__WEBPACK_IMPORTED_MODULE_0__.BaseObserver
17521
18070
  }
17522
18071
 
17523
18072
 
18073
+ /***/ }),
18074
+
18075
+ /***/ "./src/Widgets/BuilderStatefulWidget.ts":
18076
+ /*!**********************************************!*\
18077
+ !*** ./src/Widgets/BuilderStatefulWidget.ts ***!
18078
+ \**********************************************/
18079
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
18080
+
18081
+ __webpack_require__.r(__webpack_exports__);
18082
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18083
+ /* harmony export */ BuilderStatefulWidget: () => (/* binding */ BuilderStatefulWidget)
18084
+ /* harmony export */ });
18085
+ /* harmony import */ var _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StatefulWidget */ "./src/Widgets/StatefulWidget.ts");
18086
+ /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../app */ "./src/app.ts");
18087
+ /* harmony import */ var _Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Services/Common/ErrorPosting */ "./src/Services/Common/ErrorPosting.ts");
18088
+ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
18089
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18090
+ return new (P || (P = Promise))(function (resolve, reject) {
18091
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18092
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18093
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18094
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18095
+ });
18096
+ };
18097
+
18098
+
18099
+
18100
+
18101
+ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__.StatefulWidget {
18102
+ constructor() {
18103
+ super(...arguments);
18104
+ this.childComponents = [];
18105
+ this.elementIdentifier = 0;
18106
+ this.componentMounted = false;
18107
+ this.parentElement = "";
18108
+ this.oldHtml = null;
18109
+ // subscribers: any = [];
18110
+ this.element = null;
18111
+ this.phonebooks = [];
18112
+ this.html = "";
18113
+ this.childWidgets = [];
18114
+ this.typeValueList = [];
18115
+ this.widgetType = "the_element_name";
18116
+ this.parentConceptList = [];
18117
+ }
18118
+ getWidgetCodeFromId(widgetId, token) {
18119
+ return __awaiter(this, void 0, void 0, function* () {
18120
+ console.log("getWidgetCodeFromId", widgetId, token);
18121
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
18122
+ try {
18123
+ let searchFirst = new _app__WEBPACK_IMPORTED_MODULE_1__.SearchQuery();
18124
+ searchFirst.composition = widgetId;
18125
+ searchFirst.fullLinkers = [
18126
+ "the_widgetcode",
18127
+ "the_widgetcode_widget",
18128
+ "the_widgetcode_name",
18129
+ "the_widgetcode_html",
18130
+ "the_widgetcode_css",
18131
+ "the_widgetcode_js",
18132
+ "the_widgetcode_timestamp",
18133
+ "the_widgetcode_typevalue",
18134
+ "the_widgetcode_addevent",
18135
+ "the_widgetcode_onmount",
18136
+ "the_widgetcode_onupdate",
18137
+ "the_widgetcode_mountChildWidgets",
18138
+ "the_widgetcode_cleanhtml",
18139
+ "the_widgetcode_s_child",
18140
+ ];
18141
+ searchFirst.inpage = 100;
18142
+ let searchSecond = new _app__WEBPACK_IMPORTED_MODULE_1__.SearchQuery();
18143
+ searchSecond.fullLinkers = [
18144
+ "the_childwidget",
18145
+ "the_childwidget_typevalue",
18146
+ "the_childwidget_widget",
18147
+ "the_childwidget_wrapperId",
18148
+ ];
18149
+ searchSecond.inpage = 100;
18150
+ const queryParams = [searchFirst, searchSecond];
18151
+ const output = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.SearchLinkMultipleAll)(queryParams, token);
18152
+ console.log("getWidgetCodeFromId output ->", output);
18153
+ resolve(output);
18154
+ return output;
18155
+ }
18156
+ catch (error) {
18157
+ console.error("error", error);
18158
+ if ((error === null || error === void 0 ? void 0 : error.status) === 401) {
18159
+ (0,_Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_2__.HandleHttpError)(error === null || error === void 0 ? void 0 : error.response);
18160
+ }
18161
+ reject(error);
18162
+ }
18163
+ }));
18164
+ });
18165
+ }
18166
+ getUserId() {
18167
+ return __awaiter(this, void 0, void 0, function* () {
18168
+ const profileData = yield new Promise((resolve) => {
18169
+ let dataFromLocalStorage = (localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem("profile")) || "";
18170
+ if (dataFromLocalStorage) {
18171
+ const profileData = JSON.parse(dataFromLocalStorage);
18172
+ return profileData;
18173
+ }
18174
+ else {
18175
+ return;
18176
+ }
18177
+ });
18178
+ const userId = profileData === null || profileData === void 0 ? void 0 : profileData.userId;
18179
+ return userId;
18180
+ });
18181
+ }
18182
+ getTypeValueList() {
18183
+ return __awaiter(this, arguments, void 0, function* (typeName = "") {
18184
+ return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
18185
+ typeName = this.widgetType;
18186
+ // typeName e.g. "the_element_name"
18187
+ const match = typeName === null || typeName === void 0 ? void 0 : typeName.match(/^[a-z0-9]+_[a-z0-9]+/i);
18188
+ const mainComposition = match ? match[0] : "";
18189
+ // Output: "the_element"
18190
+ const nextMatch = typeName === null || typeName === void 0 ? void 0 : typeName.match(/^([a-z0-9]+).*_([a-z0-9]+)$/i);
18191
+ const typevalueKey = nextMatch ? `${nextMatch[1]}_${nextMatch[2]}` : "";
18192
+ // Output: "the_name"
18193
+ // const profileData: any = await getLocalStorageProfileData();
18194
+ // const token = profileData?.token;
18195
+ // const userId = profileData?.userId;
18196
+ // const compositionSerach: tsccs.SearchStructure = {
18197
+ // type: "",
18198
+ // search: "",
18199
+ // // composition: "the_element",
18200
+ // composition: mainComposition,
18201
+ // internalComposition: "",
18202
+ // userId: userId,
18203
+ // inpage: 100,
18204
+ // page: 1,
18205
+ // auth: true,
18206
+ // };
18207
+ // let searchFirst = new tsccs.SearchQuery();
18208
+ // // searchFirst.type = "the_element_name";
18209
+ // // searchFirst.fullLinkers = ["the_element_name"];
18210
+ // searchFirst.type = typeName;
18211
+ // searchFirst.fullLinkers = [typeName];
18212
+ // searchFirst.inpage = 100;
18213
+ // const queryParams = [searchFirst];
18214
+ // tsccs
18215
+ // .GetLinkListListener(
18216
+ // compositionSerach,
18217
+ // queryParams,
18218
+ // token,
18219
+ // tsccs.NORMAL
18220
+ // )
18221
+ // .subscribe((output: any) => {
18222
+ // if (output?.length) {
18223
+ // const result = output?.map((item: any, index: number) => {
18224
+ // const itemName =
18225
+ // item[mainComposition][typeName]?.[0]?.[typevalueKey];
18226
+ // return {
18227
+ // id: index,
18228
+ // name: itemName,
18229
+ // text: itemName,
18230
+ // };
18231
+ // });
18232
+ // this.typeValueList = result;
18233
+ // resolve(this.typeValueList);
18234
+ // return result;
18235
+ // }
18236
+ // });
18237
+ // NEW SEARCH WITH FILTER
18238
+ // filters
18239
+ let filters = [];
18240
+ let filter = new _app__WEBPACK_IMPORTED_MODULE_1__.FilterSearch();
18241
+ // filter.type = "the_email";
18242
+ filter.type = typevalueKey;
18243
+ filter.search = "1";
18244
+ filter.logicoperator = ">";
18245
+ filter.name = "emailfilter";
18246
+ filter.operateon = "entityEmail";
18247
+ filter.composition = false;
18248
+ filters.push(filter);
18249
+ let emailQuery = new _app__WEBPACK_IMPORTED_MODULE_1__.FreeschemaQuery();
18250
+ // emailQuery.typeConnection = "the_entity_email";
18251
+ emailQuery.typeConnection = typeName;
18252
+ emailQuery.name = "entityEmail";
18253
+ let freeschemaQuery = new _app__WEBPACK_IMPORTED_MODULE_1__.FreeschemaQuery();
18254
+ // freeschemaQuery.type = "the_entity",
18255
+ (freeschemaQuery.type = mainComposition),
18256
+ (freeschemaQuery.filterLogic = "( emailfilter )");
18257
+ freeschemaQuery.filters = filters;
18258
+ freeschemaQuery.name = "top";
18259
+ freeschemaQuery.inpage = 100;
18260
+ freeschemaQuery.freeschemaQueries = [emailQuery];
18261
+ freeschemaQuery.outputFormat = _app__WEBPACK_IMPORTED_MODULE_1__.DATAID;
18262
+ (0,_app__WEBPACK_IMPORTED_MODULE_1__.SchemaQueryListener)(freeschemaQuery, "")
18263
+ .subscribe((output) => {
18264
+ console.log("This is the data received", output);
18265
+ if (output === null || output === void 0 ? void 0 : output.length) {
18266
+ const result = output === null || output === void 0 ? void 0 : output.map((item) => {
18267
+ var _a, _b, _c, _d, _e;
18268
+ const itemName = (_c = (_b = (_a = item[mainComposition]) === null || _a === void 0 ? void 0 : _a[typeName]) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[typevalueKey];
18269
+ const itemId = (_e = (_d = item[mainComposition]) === null || _d === void 0 ? void 0 : _d[typeName]) === null || _e === void 0 ? void 0 : _e.id;
18270
+ return {
18271
+ id: itemId,
18272
+ name: itemName,
18273
+ text: itemName,
18274
+ };
18275
+ });
18276
+ console.log("result =>", result);
18277
+ this.typeValueList = result;
18278
+ resolve(this.typeValueList);
18279
+ return result;
18280
+ }
18281
+ });
18282
+ }));
18283
+ });
18284
+ }
18285
+ setTitle(title) {
18286
+ document.title = title;
18287
+ }
18288
+ getHtml() {
18289
+ return this.html;
18290
+ }
18291
+ createRandomNumber() {
18292
+ this.elementIdentifier = Math.random() * 10000;
18293
+ return this.elementIdentifier;
18294
+ }
18295
+ mountChildWidgets() {
18296
+ return __awaiter(this, void 0, void 0, function* () {
18297
+ const AsyncFunction = Object.getPrototypeOf(function () {
18298
+ return __awaiter(this, void 0, void 0, function* () { });
18299
+ }).constructor;
18300
+ const renderOnmount = AsyncFunction("tsccs", this.mountChildWidgetsFunction);
18301
+ renderOnmount.call(this, _app__WEBPACK_IMPORTED_MODULE_1__);
18302
+ });
18303
+ }
18304
+ setProperty(widgetTypeName) {
18305
+ return __awaiter(this, void 0, void 0, function* () {
18306
+ this.widgetType = widgetTypeName;
18307
+ this.getTypeValueList(this.widgetType).then(() => {
18308
+ var _a, _b, _c;
18309
+ console.log("this =->", this);
18310
+ console.log("this.element", this.element);
18311
+ (_a = this.element) === null || _a === void 0 ? void 0 : _a.setAttribute("data-type-value", this.widgetType);
18312
+ (_c = (_b = this.element) === null || _b === void 0 ? void 0 : _b.parentElement) === null || _c === void 0 ? void 0 : _c.setAttribute("data-type-value", this.widgetType);
18313
+ this.render();
18314
+ });
18315
+ return this;
18316
+ });
18317
+ }
18318
+ /**
18319
+ *
18320
+ * @param parent This is the function that creates a new div and then mounts the html element to the parent.
18321
+ */
18322
+ mount(parent) {
18323
+ return __awaiter(this, void 0, void 0, function* () {
18324
+ if (parent) {
18325
+ this.element = document.createElement("div");
18326
+ const inputVal = document.querySelector("#widget-properties .flex-column");
18327
+ let that = this;
18328
+ this.element.onclick = function (event) {
18329
+ event.preventDefault();
18330
+ event.stopPropagation();
18331
+ const existedInputEl = inputVal === null || inputVal === void 0 ? void 0 : inputVal.querySelectorAll("input");
18332
+ existedInputEl === null || existedInputEl === void 0 ? void 0 : existedInputEl.forEach((inputItem) => {
18333
+ inputItem === null || inputItem === void 0 ? void 0 : inputItem.remove();
18334
+ });
18335
+ console.log("event.target", event.target);
18336
+ const elementParent = event.target.closest(".added-widget-container");
18337
+ const elementDivParent = event.target.closest("div");
18338
+ let typeValue = "";
18339
+ if (elementParent) {
18340
+ typeValue = elementParent === null || elementParent === void 0 ? void 0 : elementParent.getAttribute("data-type-value");
18341
+ }
18342
+ else if (elementDivParent) {
18343
+ typeValue = elementDivParent === null || elementDivParent === void 0 ? void 0 : elementDivParent.getAttribute("data-type-value");
18344
+ }
18345
+ console.log("typeValue", typeValue);
18346
+ that.widgetType = typeValue;
18347
+ const inputEl = document.createElement("input");
18348
+ inputEl.setAttribute("type", "text");
18349
+ inputEl.setAttribute("name", "input-widgetTypeValue");
18350
+ inputEl.setAttribute("class", "form-control");
18351
+ inputEl.setAttribute("id", "widgetTypeValue");
18352
+ if (typeValue) {
18353
+ inputEl.value = typeValue;
18354
+ }
18355
+ else {
18356
+ inputEl.setAttribute("placeholder", "e.g. the_entity_type");
18357
+ }
18358
+ inputEl.onchange = function (event) {
18359
+ var _a;
18360
+ event.preventDefault();
18361
+ event.stopPropagation();
18362
+ console.log("THAT ->", that);
18363
+ const inputValue = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value;
18364
+ console.log("inputValue", inputValue);
18365
+ that.setProperty(inputValue);
18366
+ };
18367
+ inputVal === null || inputVal === void 0 ? void 0 : inputVal.appendChild(inputEl);
18368
+ };
18369
+ this.element.id = this.createRandomNumber().toString();
18370
+ this.element.className = "p-2";
18371
+ this.element.innerHTML = yield this.getHtml();
18372
+ console.log("this.element ==>", this.element);
18373
+ parent.appendChild(this.element);
18374
+ const elementParent = this.element.closest(".added-widget-container");
18375
+ const elementDivParent = this.element.closest("div");
18376
+ let typeValueOne = "";
18377
+ if (elementParent) {
18378
+ typeValueOne = elementParent === null || elementParent === void 0 ? void 0 : elementParent.getAttribute("data-type-value");
18379
+ }
18380
+ else if (elementDivParent) {
18381
+ typeValueOne = elementDivParent === null || elementDivParent === void 0 ? void 0 : elementDivParent.getAttribute("data-type-value");
18382
+ }
18383
+ if (typeValueOne)
18384
+ this.widgetType = typeValueOne;
18385
+ this.parentElement = parent.id;
18386
+ if (this.componentMounted == false) {
18387
+ // Simulate componentDidMount by calling it after the component is inserted into the DOM
18388
+ this.componentDidMount();
18389
+ this.mountChildWidgets();
18390
+ this.componentMounted = true;
18391
+ }
18392
+ else {
18393
+ this.render();
18394
+ }
18395
+ }
18396
+ });
18397
+ }
18398
+ /**
18399
+ * This function will be called after the component mounts.
18400
+ */
18401
+ componentDidMount(onmountVal = "") {
18402
+ console.log("onmountVal", onmountVal);
18403
+ const AsyncFunction = Object.getPrototypeOf(function () {
18404
+ return __awaiter(this, void 0, void 0, function* () { });
18405
+ }).constructor;
18406
+ const renderOnmount = AsyncFunction("tsccs", this.componentDidMountFunction);
18407
+ renderOnmount.call(this, _app__WEBPACK_IMPORTED_MODULE_1__);
18408
+ }
18409
+ addEvents() {
18410
+ const AsyncFunction = Object.getPrototypeOf(function () {
18411
+ return __awaiter(this, void 0, void 0, function* () { });
18412
+ }).constructor;
18413
+ const renderOnmount = AsyncFunction("tsccs", this.addEventFunction);
18414
+ renderOnmount.call(this, _app__WEBPACK_IMPORTED_MODULE_1__);
18415
+ }
18416
+ getWidgetClassFunction(widgetId) {
18417
+ return __awaiter(this, void 0, void 0, function* () {
18418
+ return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
18419
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
18420
+ const profileData = yield new Promise((resolve) => {
18421
+ let dataFromLocalStorage = (localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem("profile")) || "";
18422
+ if (dataFromLocalStorage) {
18423
+ const profileData = JSON.parse(dataFromLocalStorage);
18424
+ return profileData;
18425
+ }
18426
+ else {
18427
+ return;
18428
+ }
18429
+ });
18430
+ const token = profileData === null || profileData === void 0 ? void 0 : profileData.token;
18431
+ let output = yield this.getWidgetCodeFromId(widgetId, token);
18432
+ const widgetInfo = (_a = output === null || output === void 0 ? void 0 : output.data) === null || _a === void 0 ? void 0 : _a.the_widgetcode;
18433
+ const widgetName = (_d = (_c = (_b = widgetInfo === null || widgetInfo === void 0 ? void 0 : widgetInfo.the_widgetcode_name) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.the_name;
18434
+ const widgetHTML = (_g = (_f = (_e = widgetInfo === null || widgetInfo === void 0 ? void 0 : widgetInfo.the_widgetcode_html) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.data) === null || _g === void 0 ? void 0 : _g.the_html;
18435
+ const widgetCSS = (_k = (_j = (_h = widgetInfo === null || widgetInfo === void 0 ? void 0 : widgetInfo.the_widgetcode_css) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.data) === null || _k === void 0 ? void 0 : _k.the_css;
18436
+ const widgetJS = (_o = (_m = (_l = widgetInfo === null || widgetInfo === void 0 ? void 0 : widgetInfo.the_widgetcode_js) === null || _l === void 0 ? void 0 : _l[0]) === null || _m === void 0 ? void 0 : _m.data) === null || _o === void 0 ? void 0 : _o.the_js;
18437
+ const widgetTimestamp = (_r = (_q = (_p = widgetInfo === null || widgetInfo === void 0 ? void 0 : widgetInfo.the_widgetcode_timestamp) === null || _p === void 0 ? void 0 : _p[0]) === null || _q === void 0 ? void 0 : _q.data) === null || _r === void 0 ? void 0 : _r.the_timestamp;
18438
+ const widgetPackageId = (_s = widgetInfo === null || widgetInfo === void 0 ? void 0 : widgetInfo.the_widgetcode_widget) === null || _s === void 0 ? void 0 : _s[0].id;
18439
+ const widgetAddEvent = (_v = (_u = (_t = widgetInfo === null || widgetInfo === void 0 ? void 0 : widgetInfo.the_widgetcode_addevent) === null || _t === void 0 ? void 0 : _t[0]) === null || _u === void 0 ? void 0 : _u.data) === null || _v === void 0 ? void 0 : _v.the_addevent;
18440
+ const widgetOnmount = (_y = (_x = (_w = widgetInfo === null || widgetInfo === void 0 ? void 0 : widgetInfo.the_widgetcode_onmount) === null || _w === void 0 ? void 0 : _w[0]) === null || _x === void 0 ? void 0 : _x.data) === null || _y === void 0 ? void 0 : _y.the_onmount;
18441
+ const widgetOnupdate = (_1 = (_0 = (_z = widgetInfo === null || widgetInfo === void 0 ? void 0 : widgetInfo.the_widgetcode_onupdate) === null || _z === void 0 ? void 0 : _z[0]) === null || _0 === void 0 ? void 0 : _0.data) === null || _1 === void 0 ? void 0 : _1.the_onupdate;
18442
+ const widgetMountChildWidgets = (_4 = (_3 = (_2 = widgetInfo === null || widgetInfo === void 0 ? void 0 : widgetInfo.the_widgetcode_mountChildWidgets) === null || _2 === void 0 ? void 0 : _2[0]) === null || _3 === void 0 ? void 0 : _3.data) === null || _4 === void 0 ? void 0 : _4.the_mountChildWidgets;
18443
+ const widgetData = {
18444
+ id: output === null || output === void 0 ? void 0 : output.id,
18445
+ name: widgetName,
18446
+ html: widgetHTML,
18447
+ css: widgetCSS,
18448
+ js: widgetJS,
18449
+ timestamp: widgetTimestamp,
18450
+ widgetId: widgetPackageId,
18451
+ addevent: widgetAddEvent,
18452
+ onmount: widgetOnmount,
18453
+ onupdate: widgetOnupdate,
18454
+ mountChildWidgets: widgetMountChildWidgets,
18455
+ };
18456
+ const widgetInstance = new BuilderStatefulWidget();
18457
+ widgetInstance.componentDidMountFunction = widgetData === null || widgetData === void 0 ? void 0 : widgetData.onmount;
18458
+ widgetInstance.addEventFunction = widgetData === null || widgetData === void 0 ? void 0 : widgetData.addevent;
18459
+ widgetInstance.mountChildWidgetsFunction = widgetData === null || widgetData === void 0 ? void 0 : widgetData.mountChildWidgets;
18460
+ resolve(widgetInstance);
18461
+ }));
18462
+ });
18463
+ }
18464
+ CreateConnectionBetweenEntityLocal(concept1Data, concept2Data, linker) {
18465
+ return __awaiter(this, void 0, void 0, function* () {
18466
+ var _a;
18467
+ const userId = concept1Data.userId;
18468
+ const sessionInformationId = 999;
18469
+ const sessionInformationUserId = 999;
18470
+ const prefix = (_a = concept1Data.type) === null || _a === void 0 ? void 0 : _a.characterValue;
18471
+ const linkerAdd = linker;
18472
+ const forwardLinker = prefix + "_" + linkerAdd;
18473
+ const connectionConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.MakeTheTypeConceptLocal)(forwardLinker, sessionInformationId, sessionInformationUserId, userId);
18474
+ yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.CreateTheConnectionLocal)(concept1Data.id, concept2Data.id, connectionConcept.id, 1000);
18475
+ return "connection created";
18476
+ });
18477
+ }
18478
+ }
18479
+
18480
+
17524
18481
  /***/ }),
17525
18482
 
17526
18483
  /***/ "./src/Widgets/StatefulWidget.ts":
@@ -18694,9 +19651,10 @@ __webpack_require__.r(__webpack_exports__);
18694
19651
  /* harmony export */ ADMIN: () => (/* reexport safe */ _Constants_AccessConstants__WEBPACK_IMPORTED_MODULE_66__.ADMIN),
18695
19652
  /* harmony export */ ALLID: () => (/* reexport safe */ _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_65__.ALLID),
18696
19653
  /* harmony export */ AddGhostConcept: () => (/* reexport safe */ _Services_User_UserTranslation__WEBPACK_IMPORTED_MODULE_50__.AddGhostConcept),
18697
- /* harmony export */ Anomaly: () => (/* reexport safe */ _Anomaly_anomaly__WEBPACK_IMPORTED_MODULE_102__.Anomaly),
19654
+ /* harmony export */ Anomaly: () => (/* reexport safe */ _Anomaly_anomaly__WEBPACK_IMPORTED_MODULE_103__.Anomaly),
18698
19655
  /* harmony export */ BaseUrl: () => (/* reexport safe */ _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl),
18699
19656
  /* harmony export */ BinaryTree: () => (/* reexport safe */ _DataStructures_BinaryTree__WEBPACK_IMPORTED_MODULE_83__.BinaryTree),
19657
+ /* harmony export */ BuilderStatefulWidget: () => (/* reexport safe */ _Widgets_BuilderStatefulWidget__WEBPACK_IMPORTED_MODULE_101__.BuilderStatefulWidget),
18700
19658
  /* harmony export */ Composition: () => (/* reexport safe */ _DataStructures_Composition_Composition__WEBPACK_IMPORTED_MODULE_87__.Composition),
18701
19659
  /* harmony export */ CompositionBinaryTree: () => (/* reexport safe */ _DataStructures_Composition_CompositionBinaryTree__WEBPACK_IMPORTED_MODULE_88__.CompositionBinaryTree),
18702
19660
  /* harmony export */ CompositionNode: () => (/* reexport safe */ _DataStructures_Composition_CompositionNode__WEBPACK_IMPORTED_MODULE_89__.CompositionNode),
@@ -18723,13 +19681,13 @@ __webpack_require__.r(__webpack_exports__);
18723
19681
  /* harmony export */ DeleteConceptById: () => (/* reexport safe */ _Services_DeleteConcept__WEBPACK_IMPORTED_MODULE_24__.DeleteConceptById),
18724
19682
  /* harmony export */ DeleteConceptLocal: () => (/* reexport safe */ _Services_Local_DeleteConceptLocal__WEBPACK_IMPORTED_MODULE_61__.DeleteConceptLocal),
18725
19683
  /* harmony export */ DeleteConnectionById: () => (/* reexport safe */ _Services_DeleteConnection__WEBPACK_IMPORTED_MODULE_25__.DeleteConnectionById),
18726
- /* harmony export */ DeleteConnectionByType: () => (/* reexport safe */ _Services_DeleteConnectionByType__WEBPACK_IMPORTED_MODULE_106__.DeleteConnectionByType),
19684
+ /* harmony export */ DeleteConnectionByType: () => (/* reexport safe */ _Services_DeleteConnectionByType__WEBPACK_IMPORTED_MODULE_107__.DeleteConnectionByType),
18727
19685
  /* harmony export */ DependencyObserver: () => (/* reexport safe */ _WrapperFunctions_DepenedencyObserver__WEBPACK_IMPORTED_MODULE_68__.DependencyObserver),
18728
19686
  /* harmony export */ FilterSearch: () => (/* reexport safe */ _DataStructures_FilterSearch__WEBPACK_IMPORTED_MODULE_92__.FilterSearch),
18729
19687
  /* harmony export */ FormatFromConnections: () => (/* reexport safe */ _Services_Search_SearchLinkMultiple__WEBPACK_IMPORTED_MODULE_51__.FormatFromConnections),
18730
19688
  /* harmony export */ FormatFromConnectionsAltered: () => (/* reexport safe */ _Services_Search_SearchLinkMultiple__WEBPACK_IMPORTED_MODULE_51__.FormatFromConnectionsAltered),
18731
- /* harmony export */ FreeschemaQuery: () => (/* reexport safe */ _DataStructures_Search_FreeschemaQuery__WEBPACK_IMPORTED_MODULE_107__.FreeschemaQuery),
18732
- /* harmony export */ FreeschemaQueryApi: () => (/* reexport safe */ _Api_Search_FreeschemaQueryApi__WEBPACK_IMPORTED_MODULE_108__.FreeschemaQueryApi),
19689
+ /* harmony export */ FreeschemaQuery: () => (/* reexport safe */ _DataStructures_Search_FreeschemaQuery__WEBPACK_IMPORTED_MODULE_108__.FreeschemaQuery),
19690
+ /* harmony export */ FreeschemaQueryApi: () => (/* reexport safe */ _Api_Search_FreeschemaQueryApi__WEBPACK_IMPORTED_MODULE_109__.FreeschemaQueryApi),
18733
19691
  /* harmony export */ GetAllConnectionsOfComposition: () => (/* reexport safe */ _Api_GetAllConnectionsOfComposition__WEBPACK_IMPORTED_MODULE_6__.GetAllConnectionsOfComposition),
18734
19692
  /* harmony export */ GetAllConnectionsOfCompositionBulk: () => (/* reexport safe */ _Api_GetAllConnectionsOfCompositionBulk__WEBPACK_IMPORTED_MODULE_33__.GetAllConnectionsOfCompositionBulk),
18735
19693
  /* harmony export */ GetComposition: () => (/* reexport safe */ _Services_GetComposition__WEBPACK_IMPORTED_MODULE_7__.GetComposition),
@@ -18783,7 +19741,7 @@ __webpack_require__.r(__webpack_exports__);
18783
19741
  /* harmony export */ LISTNORMAL: () => (/* reexport safe */ _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_65__.LISTNORMAL),
18784
19742
  /* harmony export */ LocalConceptsData: () => (/* reexport safe */ _DataStructures_Local_LocalConceptData__WEBPACK_IMPORTED_MODULE_94__.LocalConceptsData),
18785
19743
  /* harmony export */ LocalSyncData: () => (/* reexport safe */ _DataStructures_Local_LocalSyncData__WEBPACK_IMPORTED_MODULE_90__.LocalSyncData),
18786
- /* harmony export */ LocalTransaction: () => (/* reexport safe */ _Services_Transaction_LocalTransaction__WEBPACK_IMPORTED_MODULE_101__.LocalTransaction),
19744
+ /* harmony export */ LocalTransaction: () => (/* reexport safe */ _Services_Transaction_LocalTransaction__WEBPACK_IMPORTED_MODULE_102__.LocalTransaction),
18787
19745
  /* harmony export */ LoginToBackend: () => (/* reexport safe */ _Api_Login__WEBPACK_IMPORTED_MODULE_34__.LoginToBackend),
18788
19746
  /* harmony export */ MakeTheInstanceConcept: () => (/* reexport safe */ _Services_MakeTheInstanceConcept__WEBPACK_IMPORTED_MODULE_13__["default"]),
18789
19747
  /* harmony export */ MakeTheInstanceConceptLocal: () => (/* reexport safe */ _Services_Local_MakeTheInstanceConceptLocal__WEBPACK_IMPORTED_MODULE_14__.MakeTheInstanceConceptLocal),
@@ -18801,7 +19759,7 @@ __webpack_require__.r(__webpack_exports__);
18801
19759
  /* harmony export */ RecursiveSearchApiRaw: () => (/* reexport safe */ _Api_RecursiveSearch__WEBPACK_IMPORTED_MODULE_29__.RecursiveSearchApiRaw),
18802
19760
  /* harmony export */ RecursiveSearchApiRawFullLinker: () => (/* reexport safe */ _Api_RecursiveSearch__WEBPACK_IMPORTED_MODULE_29__.RecursiveSearchApiRawFullLinker),
18803
19761
  /* harmony export */ RecursiveSearchListener: () => (/* reexport safe */ _WrapperFunctions_RecursiveSearchObservable__WEBPACK_IMPORTED_MODULE_74__.RecursiveSearchListener),
18804
- /* harmony export */ SchemaQueryListener: () => (/* reexport safe */ _WrapperFunctions_SchemaQueryObservable__WEBPACK_IMPORTED_MODULE_109__.SchemaQueryListener),
19762
+ /* harmony export */ SchemaQueryListener: () => (/* reexport safe */ _WrapperFunctions_SchemaQueryObservable__WEBPACK_IMPORTED_MODULE_110__.SchemaQueryListener),
18805
19763
  /* harmony export */ SearchAllConcepts: () => (/* reexport safe */ _Api_Search_Search__WEBPACK_IMPORTED_MODULE_39__.SearchAllConcepts),
18806
19764
  /* harmony export */ SearchLinkInternal: () => (/* reexport safe */ _Services_Search_SearchLinkInternal__WEBPACK_IMPORTED_MODULE_59__.SearchLinkInternal),
18807
19765
  /* harmony export */ SearchLinkInternalAll: () => (/* reexport safe */ _Services_Search_SearchLinkInternal__WEBPACK_IMPORTED_MODULE_59__.SearchLinkInternalAll),
@@ -18816,19 +19774,20 @@ __webpack_require__.r(__webpack_exports__);
18816
19774
  /* harmony export */ SessionData: () => (/* reexport safe */ _DataStructures_Session_SessionData__WEBPACK_IMPORTED_MODULE_86__.SessionData),
18817
19775
  /* harmony export */ Signin: () => (/* reexport safe */ _Api_Signin__WEBPACK_IMPORTED_MODULE_37__["default"]),
18818
19776
  /* harmony export */ Signup: () => (/* reexport safe */ _Api_Signup__WEBPACK_IMPORTED_MODULE_36__["default"]),
19777
+ /* harmony export */ SignupEntity: () => (/* reexport safe */ _Api_Signup__WEBPACK_IMPORTED_MODULE_36__.SignupEntity),
18819
19778
  /* harmony export */ SplitStrings: () => (/* reexport safe */ _Services_SplitStrings__WEBPACK_IMPORTED_MODULE_3__.SplitStrings),
18820
- /* harmony export */ StatefulWidget: () => (/* reexport safe */ _Widgets_StatefulWidget__WEBPACK_IMPORTED_MODULE_105__.StatefulWidget),
19779
+ /* harmony export */ StatefulWidget: () => (/* reexport safe */ _Widgets_StatefulWidget__WEBPACK_IMPORTED_MODULE_106__.StatefulWidget),
18821
19780
  /* harmony export */ SyncData: () => (/* reexport safe */ _DataStructures_SyncData__WEBPACK_IMPORTED_MODULE_76__.SyncData),
18822
19781
  /* harmony export */ TrashTheConcept: () => (/* reexport safe */ _Api_Delete_DeleteConceptInBackend__WEBPACK_IMPORTED_MODULE_26__.TrashTheConcept),
18823
19782
  /* harmony export */ UpdateComposition: () => (/* reexport safe */ _Services_UpdateComposition__WEBPACK_IMPORTED_MODULE_38__["default"]),
18824
19783
  /* harmony export */ UpdateCompositionLocal: () => (/* reexport safe */ _Services_Local_UpdateCompositionLocal__WEBPACK_IMPORTED_MODULE_53__.UpdateCompositionLocal),
18825
19784
  /* harmony export */ UserBinaryTree: () => (/* reexport safe */ _DataStructures_User_UserBinaryTree__WEBPACK_IMPORTED_MODULE_91__.UserBinaryTree),
18826
- /* harmony export */ Validator: () => (/* reexport safe */ _Validator_validator__WEBPACK_IMPORTED_MODULE_103__.Validator),
19785
+ /* harmony export */ Validator: () => (/* reexport safe */ _Validator_validator__WEBPACK_IMPORTED_MODULE_104__.Validator),
18827
19786
  /* harmony export */ ViewInternalData: () => (/* reexport safe */ _Services_View_ViewInternalData__WEBPACK_IMPORTED_MODULE_56__.ViewInternalData),
18828
19787
  /* harmony export */ ViewInternalDataApi: () => (/* reexport safe */ _Api_View_ViewInternalDataApi__WEBPACK_IMPORTED_MODULE_57__.ViewInternalDataApi),
18829
19788
  /* harmony export */ convertFromConceptToLConcept: () => (/* reexport safe */ _Services_Conversion_ConvertConcepts__WEBPACK_IMPORTED_MODULE_58__.convertFromConceptToLConcept),
18830
19789
  /* harmony export */ convertFromLConceptToConcept: () => (/* reexport safe */ _Services_Conversion_ConvertConcepts__WEBPACK_IMPORTED_MODULE_58__.convertFromLConceptToConcept),
18831
- /* harmony export */ createFormFieldData: () => (/* reexport safe */ _Validator_utils__WEBPACK_IMPORTED_MODULE_104__.createFormFieldData),
19790
+ /* harmony export */ createFormFieldData: () => (/* reexport safe */ _Validator_utils__WEBPACK_IMPORTED_MODULE_105__.createFormFieldData),
18832
19791
  /* harmony export */ dispatchIdEvent: () => (/* binding */ dispatchIdEvent),
18833
19792
  /* harmony export */ getFromDatabaseWithType: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.getFromDatabaseWithType),
18834
19793
  /* harmony export */ getObjectsFromIndexDb: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.getObjectsFromIndexDb),
@@ -18943,15 +19902,16 @@ __webpack_require__.r(__webpack_exports__);
18943
19902
  /* harmony import */ var _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! ./DataStructures/BaseUrl */ "./src/DataStructures/BaseUrl.ts");
18944
19903
  /* harmony import */ var _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(/*! ./DataStructures/Security/TokenStorage */ "./src/DataStructures/Security/TokenStorage.ts");
18945
19904
  /* harmony import */ var _Constants_general_const__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(/*! ./Constants/general.const */ "./src/Constants/general.const.ts");
18946
- /* harmony import */ var _Services_Transaction_LocalTransaction__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./Services/Transaction/LocalTransaction */ "./src/Services/Transaction/LocalTransaction.ts");
18947
- /* harmony import */ var _Anomaly_anomaly__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./Anomaly/anomaly */ "./src/Anomaly/anomaly.ts");
18948
- /* harmony import */ var _Validator_validator__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./Validator/validator */ "./src/Validator/validator.ts");
18949
- /* harmony import */ var _Validator_utils__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./Validator/utils */ "./src/Validator/utils.ts");
18950
- /* harmony import */ var _Widgets_StatefulWidget__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./Widgets/StatefulWidget */ "./src/Widgets/StatefulWidget.ts");
18951
- /* harmony import */ var _Services_DeleteConnectionByType__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./Services/DeleteConnectionByType */ "./src/Services/DeleteConnectionByType.ts");
18952
- /* harmony import */ var _DataStructures_Search_FreeschemaQuery__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./DataStructures/Search/FreeschemaQuery */ "./src/DataStructures/Search/FreeschemaQuery.ts");
18953
- /* harmony import */ var _Api_Search_FreeschemaQueryApi__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./Api/Search/FreeschemaQueryApi */ "./src/Api/Search/FreeschemaQueryApi.ts");
18954
- /* harmony import */ var _WrapperFunctions_SchemaQueryObservable__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./WrapperFunctions/SchemaQueryObservable */ "./src/WrapperFunctions/SchemaQueryObservable.ts");
19905
+ /* harmony import */ var _Widgets_BuilderStatefulWidget__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./Widgets/BuilderStatefulWidget */ "./src/Widgets/BuilderStatefulWidget.ts");
19906
+ /* harmony import */ var _Services_Transaction_LocalTransaction__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./Services/Transaction/LocalTransaction */ "./src/Services/Transaction/LocalTransaction.ts");
19907
+ /* harmony import */ var _Anomaly_anomaly__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./Anomaly/anomaly */ "./src/Anomaly/anomaly.ts");
19908
+ /* harmony import */ var _Validator_validator__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./Validator/validator */ "./src/Validator/validator.ts");
19909
+ /* harmony import */ var _Validator_utils__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./Validator/utils */ "./src/Validator/utils.ts");
19910
+ /* harmony import */ var _Widgets_StatefulWidget__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./Widgets/StatefulWidget */ "./src/Widgets/StatefulWidget.ts");
19911
+ /* harmony import */ var _Services_DeleteConnectionByType__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./Services/DeleteConnectionByType */ "./src/Services/DeleteConnectionByType.ts");
19912
+ /* harmony import */ var _DataStructures_Search_FreeschemaQuery__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./DataStructures/Search/FreeschemaQuery */ "./src/DataStructures/Search/FreeschemaQuery.ts");
19913
+ /* harmony import */ var _Api_Search_FreeschemaQueryApi__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./Api/Search/FreeschemaQueryApi */ "./src/Api/Search/FreeschemaQueryApi.ts");
19914
+ /* harmony import */ var _WrapperFunctions_SchemaQueryObservable__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./WrapperFunctions/SchemaQueryObservable */ "./src/WrapperFunctions/SchemaQueryObservable.ts");
18955
19915
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
18956
19916
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18957
19917
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -19075,6 +20035,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
19075
20035
 
19076
20036
 
19077
20037
 
20038
+
20039
+
19078
20040
 
19079
20041
 
19080
20042
 
@@ -19229,10 +20191,11 @@ function init() {
19229
20191
  newWorker.onstatechange = () => __awaiter(this, void 0, void 0, function* () {
19230
20192
  console.log("on state change triggered");
19231
20193
  // if (newWorker.state === 'activated' && navigator.serviceWorker.controller) {
19232
- if (newWorker.state === "activated") {
20194
+ if (newWorker.state === "activated" || newWorker.state === 'redundant') {
19233
20195
  // && navigator.serviceWorker.controller) {
19234
20196
  console.log("New Service Worker is active", registration);
19235
- serviceWorker = registration.active;
20197
+ serviceWorker = newWorker;
20198
+ // serviceWorker = registration.active;
19236
20199
  // Send init message now that it's active
19237
20200
  yield sendMessage("init", {
19238
20201
  url,
@@ -19564,6 +20527,7 @@ function initConceptConnection() {
19564
20527
  /******/ var __webpack_exports__Anomaly = __webpack_exports__.Anomaly;
19565
20528
  /******/ var __webpack_exports__BaseUrl = __webpack_exports__.BaseUrl;
19566
20529
  /******/ var __webpack_exports__BinaryTree = __webpack_exports__.BinaryTree;
20530
+ /******/ var __webpack_exports__BuilderStatefulWidget = __webpack_exports__.BuilderStatefulWidget;
19567
20531
  /******/ var __webpack_exports__Composition = __webpack_exports__.Composition;
19568
20532
  /******/ var __webpack_exports__CompositionBinaryTree = __webpack_exports__.CompositionBinaryTree;
19569
20533
  /******/ var __webpack_exports__CompositionNode = __webpack_exports__.CompositionNode;
@@ -19683,6 +20647,7 @@ function initConceptConnection() {
19683
20647
  /******/ var __webpack_exports__SessionData = __webpack_exports__.SessionData;
19684
20648
  /******/ var __webpack_exports__Signin = __webpack_exports__.Signin;
19685
20649
  /******/ var __webpack_exports__Signup = __webpack_exports__.Signup;
20650
+ /******/ var __webpack_exports__SignupEntity = __webpack_exports__.SignupEntity;
19686
20651
  /******/ var __webpack_exports__SplitStrings = __webpack_exports__.SplitStrings;
19687
20652
  /******/ var __webpack_exports__StatefulWidget = __webpack_exports__.StatefulWidget;
19688
20653
  /******/ var __webpack_exports__SyncData = __webpack_exports__.SyncData;
@@ -19708,7 +20673,7 @@ function initConceptConnection() {
19708
20673
  /******/ var __webpack_exports__storeToDatabase = __webpack_exports__.storeToDatabase;
19709
20674
  /******/ var __webpack_exports__subscribedListeners = __webpack_exports__.subscribedListeners;
19710
20675
  /******/ var __webpack_exports__updateAccessToken = __webpack_exports__.updateAccessToken;
19711
- /******/ export { __webpack_exports__ADMIN as ADMIN, __webpack_exports__ALLID as ALLID, __webpack_exports__AddGhostConcept as AddGhostConcept, __webpack_exports__Anomaly as Anomaly, __webpack_exports__BaseUrl as BaseUrl, __webpack_exports__BinaryTree as BinaryTree, __webpack_exports__Composition as Composition, __webpack_exports__CompositionBinaryTree as CompositionBinaryTree, __webpack_exports__CompositionNode as CompositionNode, __webpack_exports__Concept as Concept, __webpack_exports__ConceptsData as ConceptsData, __webpack_exports__Connection as Connection, __webpack_exports__ConnectionData as ConnectionData, __webpack_exports__CreateComposition as CreateComposition, __webpack_exports__CreateConnectionBetweenTwoConcepts as CreateConnectionBetweenTwoConcepts, __webpack_exports__CreateConnectionBetweenTwoConceptsGeneral as CreateConnectionBetweenTwoConceptsGeneral, __webpack_exports__CreateConnectionBetweenTwoConceptsLocal as CreateConnectionBetweenTwoConceptsLocal, __webpack_exports__CreateDefaultConcept as CreateDefaultConcept, __webpack_exports__CreateDefaultLConcept as CreateDefaultLConcept, __webpack_exports__CreateSession as CreateSession, __webpack_exports__CreateSessionVisit as CreateSessionVisit, __webpack_exports__CreateTheCompositionLocal as CreateTheCompositionLocal, __webpack_exports__CreateTheCompositionWithCache as CreateTheCompositionWithCache, __webpack_exports__CreateTheConnection as CreateTheConnection, __webpack_exports__CreateTheConnectionGeneral as CreateTheConnectionGeneral, __webpack_exports__CreateTheConnectionLocal as CreateTheConnectionLocal, __webpack_exports__DATAID as DATAID, __webpack_exports__DATAIDDATE as DATAIDDATE, __webpack_exports__DelayFunctionExecution as DelayFunctionExecution, __webpack_exports__DeleteConceptById as DeleteConceptById, __webpack_exports__DeleteConceptLocal as DeleteConceptLocal, __webpack_exports__DeleteConnectionById as DeleteConnectionById, __webpack_exports__DeleteConnectionByType as DeleteConnectionByType, __webpack_exports__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__GetComposition as GetComposition, __webpack_exports__GetCompositionBulk as GetCompositionBulk, __webpack_exports__GetCompositionBulkWithDataId as GetCompositionBulkWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataId as GetCompositionFromConnectionsWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataIdInObject as GetCompositionFromConnectionsWithDataIdInObject, __webpack_exports__GetCompositionFromConnectionsWithDataIdIndex as GetCompositionFromConnectionsWithDataIdIndex, __webpack_exports__GetCompositionFromConnectionsWithIndex as GetCompositionFromConnectionsWithIndex, __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__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__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__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__convertFromConceptToLConcept as convertFromConceptToLConcept, __webpack_exports__convertFromLConceptToConcept as convertFromLConceptToConcept, __webpack_exports__createFormFieldData as createFormFieldData, __webpack_exports__dispatchIdEvent as dispatchIdEvent, __webpack_exports__getFromDatabaseWithType as getFromDatabaseWithType, __webpack_exports__getObjectsFromIndexDb as getObjectsFromIndexDb, __webpack_exports__init as init, __webpack_exports__recursiveFetch as recursiveFetch, __webpack_exports__recursiveFetchNew as recursiveFetchNew, __webpack_exports__searchLinkMultipleListener as searchLinkMultipleListener, __webpack_exports__sendMessage as sendMessage, __webpack_exports__serviceWorker as serviceWorker, __webpack_exports__storeToDatabase as storeToDatabase, __webpack_exports__subscribedListeners as subscribedListeners, __webpack_exports__updateAccessToken as updateAccessToken };
20676
+ /******/ export { __webpack_exports__ADMIN as ADMIN, __webpack_exports__ALLID as ALLID, __webpack_exports__AddGhostConcept as AddGhostConcept, __webpack_exports__Anomaly as Anomaly, __webpack_exports__BaseUrl as BaseUrl, __webpack_exports__BinaryTree as BinaryTree, __webpack_exports__BuilderStatefulWidget as BuilderStatefulWidget, __webpack_exports__Composition as Composition, __webpack_exports__CompositionBinaryTree as CompositionBinaryTree, __webpack_exports__CompositionNode as CompositionNode, __webpack_exports__Concept as Concept, __webpack_exports__ConceptsData as ConceptsData, __webpack_exports__Connection as Connection, __webpack_exports__ConnectionData as ConnectionData, __webpack_exports__CreateComposition as CreateComposition, __webpack_exports__CreateConnectionBetweenTwoConcepts as CreateConnectionBetweenTwoConcepts, __webpack_exports__CreateConnectionBetweenTwoConceptsGeneral as CreateConnectionBetweenTwoConceptsGeneral, __webpack_exports__CreateConnectionBetweenTwoConceptsLocal as CreateConnectionBetweenTwoConceptsLocal, __webpack_exports__CreateDefaultConcept as CreateDefaultConcept, __webpack_exports__CreateDefaultLConcept as CreateDefaultLConcept, __webpack_exports__CreateSession as CreateSession, __webpack_exports__CreateSessionVisit as CreateSessionVisit, __webpack_exports__CreateTheCompositionLocal as CreateTheCompositionLocal, __webpack_exports__CreateTheCompositionWithCache as CreateTheCompositionWithCache, __webpack_exports__CreateTheConnection as CreateTheConnection, __webpack_exports__CreateTheConnectionGeneral as CreateTheConnectionGeneral, __webpack_exports__CreateTheConnectionLocal as CreateTheConnectionLocal, __webpack_exports__DATAID as DATAID, __webpack_exports__DATAIDDATE as DATAIDDATE, __webpack_exports__DelayFunctionExecution as DelayFunctionExecution, __webpack_exports__DeleteConceptById as DeleteConceptById, __webpack_exports__DeleteConceptLocal as DeleteConceptLocal, __webpack_exports__DeleteConnectionById as DeleteConnectionById, __webpack_exports__DeleteConnectionByType as DeleteConnectionByType, __webpack_exports__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__GetComposition as GetComposition, __webpack_exports__GetCompositionBulk as GetCompositionBulk, __webpack_exports__GetCompositionBulkWithDataId as GetCompositionBulkWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataId as GetCompositionFromConnectionsWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataIdInObject as GetCompositionFromConnectionsWithDataIdInObject, __webpack_exports__GetCompositionFromConnectionsWithDataIdIndex as GetCompositionFromConnectionsWithDataIdIndex, __webpack_exports__GetCompositionFromConnectionsWithIndex as GetCompositionFromConnectionsWithIndex, __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__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__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__convertFromConceptToLConcept as convertFromConceptToLConcept, __webpack_exports__convertFromLConceptToConcept as convertFromLConceptToConcept, __webpack_exports__createFormFieldData as createFormFieldData, __webpack_exports__dispatchIdEvent as dispatchIdEvent, __webpack_exports__getFromDatabaseWithType as getFromDatabaseWithType, __webpack_exports__getObjectsFromIndexDb as getObjectsFromIndexDb, __webpack_exports__init as init, __webpack_exports__recursiveFetch as recursiveFetch, __webpack_exports__recursiveFetchNew as recursiveFetchNew, __webpack_exports__searchLinkMultipleListener as searchLinkMultipleListener, __webpack_exports__sendMessage as sendMessage, __webpack_exports__serviceWorker as serviceWorker, __webpack_exports__storeToDatabase as storeToDatabase, __webpack_exports__subscribedListeners as subscribedListeners, __webpack_exports__updateAccessToken as updateAccessToken };
19712
20677
  /******/
19713
20678
 
19714
20679
  //# sourceMappingURL=main.bundle.js.map