akeyless-client-commons 1.0.143 → 1.0.145
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.
- package/dist/components/index.js +21 -3
- package/dist/components/index.mjs +22 -4
- package/dist/helpers/index.d.mts +6 -2
- package/dist/helpers/index.d.ts +6 -2
- package/dist/helpers/index.js +61 -0
- package/dist/helpers/index.mjs +59 -2
- package/dist/hooks/index.mjs +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -4902,13 +4902,18 @@ var import_exceljs = __toESM(require("exceljs"));
|
|
|
4902
4902
|
var import_file_saver = require("file-saver");
|
|
4903
4903
|
var exportToExcel = /*#__PURE__*/ function() {
|
|
4904
4904
|
var _ref = _async_to_generator(function(param) {
|
|
4905
|
-
var columns, data, headline, fileName, cellStyle, workbook, worksheet, titleRow, buffer, blob;
|
|
4905
|
+
var columns, data, headline, fileName, cellStyle, direction, workbook, worksheet, titleRow, buffer, blob;
|
|
4906
4906
|
return _ts_generator(this, function(_state) {
|
|
4907
4907
|
switch(_state.label){
|
|
4908
4908
|
case 0:
|
|
4909
|
-
columns = param.columns, data = param.data, headline = param.headline, fileName = param.fileName, cellStyle = param.cellStyle;
|
|
4909
|
+
columns = param.columns, data = param.data, headline = param.headline, fileName = param.fileName, cellStyle = param.cellStyle, direction = param.direction;
|
|
4910
4910
|
workbook = new import_exceljs.default.Workbook();
|
|
4911
4911
|
worksheet = workbook.addWorksheet("Report");
|
|
4912
|
+
worksheet.views = [
|
|
4913
|
+
{
|
|
4914
|
+
rightToLeft: direction === "rtl"
|
|
4915
|
+
}
|
|
4916
|
+
];
|
|
4912
4917
|
worksheet.columns = columns.map(function(col) {
|
|
4913
4918
|
return {
|
|
4914
4919
|
header: col.header,
|
|
@@ -4934,6 +4939,18 @@ var exportToExcel = /*#__PURE__*/ function() {
|
|
|
4934
4939
|
data.forEach(function(rowData) {
|
|
4935
4940
|
var row = worksheet.addRow(rowData);
|
|
4936
4941
|
row.eachCell(function(cell) {
|
|
4942
|
+
if (typeof cell.value === "string" && cell.value.startsWith("https://")) {
|
|
4943
|
+
cell.value = {
|
|
4944
|
+
text: cell.value,
|
|
4945
|
+
hyperlink: cell.value
|
|
4946
|
+
};
|
|
4947
|
+
cell.font = {
|
|
4948
|
+
color: {
|
|
4949
|
+
argb: "FF0000FF"
|
|
4950
|
+
},
|
|
4951
|
+
underline: true
|
|
4952
|
+
};
|
|
4953
|
+
}
|
|
4937
4954
|
cell.alignment = cellStyle;
|
|
4938
4955
|
});
|
|
4939
4956
|
});
|
|
@@ -5133,7 +5150,8 @@ var ExportToExcel = (0, import_react11.memo)(function() {
|
|
|
5133
5150
|
cellStyle: {
|
|
5134
5151
|
horizontal: direction === "ltr" ? "left" : "right",
|
|
5135
5152
|
readingOrder: direction
|
|
5136
|
-
}
|
|
5153
|
+
},
|
|
5154
|
+
direction: direction
|
|
5137
5155
|
})
|
|
5138
5156
|
];
|
|
5139
5157
|
case 1:
|
|
@@ -371,7 +371,7 @@ var local_israel_phone_format = function(international_number) {
|
|
|
371
371
|
return international_number.replace("+972", "0");
|
|
372
372
|
};
|
|
373
373
|
// src/helpers/global.ts
|
|
374
|
-
import { CountryOptions } from "akeyless-types-commons";
|
|
374
|
+
import { CountryOptions, LanguageOptions } from "akeyless-types-commons";
|
|
375
375
|
import axios from "axios";
|
|
376
376
|
import { isEqual } from "lodash";
|
|
377
377
|
var renderOnce = function() {
|
|
@@ -4689,13 +4689,18 @@ import ExcelJS from "exceljs";
|
|
|
4689
4689
|
import { saveAs } from "file-saver";
|
|
4690
4690
|
var exportToExcel = /*#__PURE__*/ function() {
|
|
4691
4691
|
var _ref = _async_to_generator(function(param) {
|
|
4692
|
-
var columns, data, headline, fileName, cellStyle, workbook, worksheet, titleRow, buffer, blob;
|
|
4692
|
+
var columns, data, headline, fileName, cellStyle, direction, workbook, worksheet, titleRow, buffer, blob;
|
|
4693
4693
|
return _ts_generator(this, function(_state) {
|
|
4694
4694
|
switch(_state.label){
|
|
4695
4695
|
case 0:
|
|
4696
|
-
columns = param.columns, data = param.data, headline = param.headline, fileName = param.fileName, cellStyle = param.cellStyle;
|
|
4696
|
+
columns = param.columns, data = param.data, headline = param.headline, fileName = param.fileName, cellStyle = param.cellStyle, direction = param.direction;
|
|
4697
4697
|
workbook = new ExcelJS.Workbook();
|
|
4698
4698
|
worksheet = workbook.addWorksheet("Report");
|
|
4699
|
+
worksheet.views = [
|
|
4700
|
+
{
|
|
4701
|
+
rightToLeft: direction === "rtl"
|
|
4702
|
+
}
|
|
4703
|
+
];
|
|
4699
4704
|
worksheet.columns = columns.map(function(col) {
|
|
4700
4705
|
return {
|
|
4701
4706
|
header: col.header,
|
|
@@ -4721,6 +4726,18 @@ var exportToExcel = /*#__PURE__*/ function() {
|
|
|
4721
4726
|
data.forEach(function(rowData) {
|
|
4722
4727
|
var row = worksheet.addRow(rowData);
|
|
4723
4728
|
row.eachCell(function(cell) {
|
|
4729
|
+
if (typeof cell.value === "string" && cell.value.startsWith("https://")) {
|
|
4730
|
+
cell.value = {
|
|
4731
|
+
text: cell.value,
|
|
4732
|
+
hyperlink: cell.value
|
|
4733
|
+
};
|
|
4734
|
+
cell.font = {
|
|
4735
|
+
color: {
|
|
4736
|
+
argb: "FF0000FF"
|
|
4737
|
+
},
|
|
4738
|
+
underline: true
|
|
4739
|
+
};
|
|
4740
|
+
}
|
|
4724
4741
|
cell.alignment = cellStyle;
|
|
4725
4742
|
});
|
|
4726
4743
|
});
|
|
@@ -4920,7 +4937,8 @@ var ExportToExcel = memo(function() {
|
|
|
4920
4937
|
cellStyle: {
|
|
4921
4938
|
horizontal: direction === "ltr" ? "left" : "right",
|
|
4922
4939
|
readingOrder: direction
|
|
4923
|
-
}
|
|
4940
|
+
},
|
|
4941
|
+
direction: direction
|
|
4924
4942
|
})
|
|
4925
4943
|
];
|
|
4926
4944
|
case 1:
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { FirebaseStorage } from 'firebase/storage';
|
|
|
3
3
|
import { Auth, GoogleAuthProvider, User } from 'firebase/auth';
|
|
4
4
|
import { AppCheck } from 'firebase/app-check';
|
|
5
5
|
import { WhereFilterOp, Unsubscribe, Firestore, CollectionReference, DocumentData, Timestamp, DocumentSnapshot } from 'firebase/firestore';
|
|
6
|
-
import { TObject, NxUser, CountryOptions, Client } from 'akeyless-types-commons';
|
|
6
|
+
import { TObject, NxUser, CountryOptions, Client, LanguageOptions } from 'akeyless-types-commons';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
9
|
|
|
@@ -171,6 +171,10 @@ declare const isNodeEnv: NodeJS.ProcessEnv;
|
|
|
171
171
|
declare const mode: string;
|
|
172
172
|
declare const isLocal: boolean;
|
|
173
173
|
declare const getFixedNumber: (number?: number, fix?: number) => string;
|
|
174
|
+
declare const getAddressByGeo: ({ lat, lng }: {
|
|
175
|
+
lat: any;
|
|
176
|
+
lng: any;
|
|
177
|
+
}, currentLanguage: LanguageOptions) => Promise<any>;
|
|
174
178
|
|
|
175
179
|
declare const textRegex: RegExp;
|
|
176
180
|
declare const numbersRegex: RegExp;
|
|
@@ -234,4 +238,4 @@ type Method = "GET" | "POST" | "PUT" | "DELETE";
|
|
|
234
238
|
type ServerName = "devices" | "bi" | "call-center";
|
|
235
239
|
declare const nx_api_call: (serverName: ServerName, method: Method, url: string, data?: TObject<any>) => Promise<any>;
|
|
236
240
|
|
|
237
|
-
export { type ValidationType, addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterDomain, carsRegex, chartsRegex, cleanNxSites, cn, collections, colorRegex, createSelectors, db, delete_document, devicesDomain, displayFormatPhoneNumber, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_iccid, local_israel_phone_format, mode, multiStringFormat, numbersOnlyRegex, numbersRegex, nx_api_call, parseMultiSelectInput, parsePermissions, priceRegex, propsAreEqual, query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateUserStatusAndPermissions };
|
|
241
|
+
export { type ValidationType, addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterDomain, carsRegex, chartsRegex, cleanNxSites, cn, collections, colorRegex, createSelectors, db, delete_document, devicesDomain, displayFormatPhoneNumber, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getAddressByGeo, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_iccid, local_israel_phone_format, mode, multiStringFormat, numbersOnlyRegex, numbersRegex, nx_api_call, parseMultiSelectInput, parsePermissions, priceRegex, propsAreEqual, query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateUserStatusAndPermissions };
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { FirebaseStorage } from 'firebase/storage';
|
|
|
3
3
|
import { Auth, GoogleAuthProvider, User } from 'firebase/auth';
|
|
4
4
|
import { AppCheck } from 'firebase/app-check';
|
|
5
5
|
import { WhereFilterOp, Unsubscribe, Firestore, CollectionReference, DocumentData, Timestamp, DocumentSnapshot } from 'firebase/firestore';
|
|
6
|
-
import { TObject, NxUser, CountryOptions, Client } from 'akeyless-types-commons';
|
|
6
|
+
import { TObject, NxUser, CountryOptions, Client, LanguageOptions } from 'akeyless-types-commons';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
9
|
|
|
@@ -171,6 +171,10 @@ declare const isNodeEnv: NodeJS.ProcessEnv;
|
|
|
171
171
|
declare const mode: string;
|
|
172
172
|
declare const isLocal: boolean;
|
|
173
173
|
declare const getFixedNumber: (number?: number, fix?: number) => string;
|
|
174
|
+
declare const getAddressByGeo: ({ lat, lng }: {
|
|
175
|
+
lat: any;
|
|
176
|
+
lng: any;
|
|
177
|
+
}, currentLanguage: LanguageOptions) => Promise<any>;
|
|
174
178
|
|
|
175
179
|
declare const textRegex: RegExp;
|
|
176
180
|
declare const numbersRegex: RegExp;
|
|
@@ -234,4 +238,4 @@ type Method = "GET" | "POST" | "PUT" | "DELETE";
|
|
|
234
238
|
type ServerName = "devices" | "bi" | "call-center";
|
|
235
239
|
declare const nx_api_call: (serverName: ServerName, method: Method, url: string, data?: TObject<any>) => Promise<any>;
|
|
236
240
|
|
|
237
|
-
export { type ValidationType, addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterDomain, carsRegex, chartsRegex, cleanNxSites, cn, collections, colorRegex, createSelectors, db, delete_document, devicesDomain, displayFormatPhoneNumber, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_iccid, local_israel_phone_format, mode, multiStringFormat, numbersOnlyRegex, numbersRegex, nx_api_call, parseMultiSelectInput, parsePermissions, priceRegex, propsAreEqual, query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateUserStatusAndPermissions };
|
|
241
|
+
export { type ValidationType, addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterDomain, carsRegex, chartsRegex, cleanNxSites, cn, collections, colorRegex, createSelectors, db, delete_document, devicesDomain, displayFormatPhoneNumber, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getAddressByGeo, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_iccid, local_israel_phone_format, mode, multiStringFormat, numbersOnlyRegex, numbersRegex, nx_api_call, parseMultiSelectInput, parsePermissions, priceRegex, propsAreEqual, query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateUserStatusAndPermissions };
|
package/dist/helpers/index.js
CHANGED
|
@@ -392,6 +392,9 @@ __export(index_exports, {
|
|
|
392
392
|
formatCarNumber: function() {
|
|
393
393
|
return formatCarNumber;
|
|
394
394
|
},
|
|
395
|
+
getAddressByGeo: function() {
|
|
396
|
+
return getAddressByGeo;
|
|
397
|
+
},
|
|
395
398
|
getFixedNumber: function() {
|
|
396
399
|
return getFixedNumber;
|
|
397
400
|
},
|
|
@@ -787,6 +790,63 @@ var getFixedNumber = function() {
|
|
|
787
790
|
var sum_value = number % 1 === 0 ? number : number.toFixed(fix).replace(/\.?0+$/, "");
|
|
788
791
|
return String(sum_value);
|
|
789
792
|
};
|
|
793
|
+
var getAddressByGeo = /*#__PURE__*/ function() {
|
|
794
|
+
var _ref = _async_to_generator(function(param, currentLanguage) {
|
|
795
|
+
var lat, lng, language, apiKey, url, _response_data, response, error;
|
|
796
|
+
return _ts_generator(this, function(_state) {
|
|
797
|
+
switch(_state.label){
|
|
798
|
+
case 0:
|
|
799
|
+
lat = param.lat, lng = param.lng;
|
|
800
|
+
language = currentLanguage === import_akeyless_types_commons.LanguageOptions.He ? "iw" : "en";
|
|
801
|
+
apiKey = import_meta.env.VITE_api_google_key;
|
|
802
|
+
url = "https://maps.googleapis.com/maps/api/geocode/json?latlng=".concat(lat, ",").concat(lng, "&key=").concat(apiKey, "&language=").concat(language);
|
|
803
|
+
_state.label = 1;
|
|
804
|
+
case 1:
|
|
805
|
+
_state.trys.push([
|
|
806
|
+
1,
|
|
807
|
+
3,
|
|
808
|
+
,
|
|
809
|
+
4
|
|
810
|
+
]);
|
|
811
|
+
return [
|
|
812
|
+
4,
|
|
813
|
+
import_axios.default.get(url)
|
|
814
|
+
];
|
|
815
|
+
case 2:
|
|
816
|
+
response = _state.sent();
|
|
817
|
+
if (response === null || response === void 0 ? void 0 : (_response_data = response.data) === null || _response_data === void 0 ? void 0 : _response_data.results[0]) {
|
|
818
|
+
return [
|
|
819
|
+
2,
|
|
820
|
+
response.data.results[0].formatted_address.slice(0, 35)
|
|
821
|
+
];
|
|
822
|
+
} else {
|
|
823
|
+
return [
|
|
824
|
+
2,
|
|
825
|
+
"address not found"
|
|
826
|
+
];
|
|
827
|
+
}
|
|
828
|
+
return [
|
|
829
|
+
3,
|
|
830
|
+
4
|
|
831
|
+
];
|
|
832
|
+
case 3:
|
|
833
|
+
error = _state.sent();
|
|
834
|
+
console.error("getAddressByGeo error:", error);
|
|
835
|
+
return [
|
|
836
|
+
3,
|
|
837
|
+
4
|
|
838
|
+
];
|
|
839
|
+
case 4:
|
|
840
|
+
return [
|
|
841
|
+
2
|
|
842
|
+
];
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
});
|
|
846
|
+
return function getAddressByGeo(_, currentLanguage) {
|
|
847
|
+
return _ref.apply(this, arguments);
|
|
848
|
+
};
|
|
849
|
+
}();
|
|
790
850
|
// src/helpers/firebase.ts
|
|
791
851
|
var import_meta2 = {};
|
|
792
852
|
var initApp = function() {
|
|
@@ -2093,6 +2153,7 @@ var nx_api_call = /*#__PURE__*/ function() {
|
|
|
2093
2153
|
extractSiteData: extractSiteData,
|
|
2094
2154
|
fire_base_TIME_TEMP: fire_base_TIME_TEMP,
|
|
2095
2155
|
formatCarNumber: formatCarNumber,
|
|
2156
|
+
getAddressByGeo: getAddressByGeo,
|
|
2096
2157
|
getFixedNumber: getFixedNumber,
|
|
2097
2158
|
getFormCheckboxValue: getFormCheckboxValue,
|
|
2098
2159
|
getFormElementValue: getFormElementValue,
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -277,7 +277,7 @@ var is_iccid = function(number) {
|
|
|
277
277
|
return true;
|
|
278
278
|
};
|
|
279
279
|
// src/helpers/global.ts
|
|
280
|
-
import { CountryOptions } from "akeyless-types-commons";
|
|
280
|
+
import { CountryOptions, LanguageOptions } from "akeyless-types-commons";
|
|
281
281
|
import axios from "axios";
|
|
282
282
|
import { isEqual } from "lodash";
|
|
283
283
|
var calculateBearing = function(startLat, startLng, endLat, endLng) {
|
|
@@ -460,6 +460,63 @@ var getFixedNumber = function() {
|
|
|
460
460
|
var sum_value = number % 1 === 0 ? number : number.toFixed(fix).replace(/\.?0+$/, "");
|
|
461
461
|
return String(sum_value);
|
|
462
462
|
};
|
|
463
|
+
var getAddressByGeo = /*#__PURE__*/ function() {
|
|
464
|
+
var _ref = _async_to_generator(function(param, currentLanguage) {
|
|
465
|
+
var lat, lng, language, apiKey, url, _response_data, response, error;
|
|
466
|
+
return _ts_generator(this, function(_state) {
|
|
467
|
+
switch(_state.label){
|
|
468
|
+
case 0:
|
|
469
|
+
lat = param.lat, lng = param.lng;
|
|
470
|
+
language = currentLanguage === LanguageOptions.He ? "iw" : "en";
|
|
471
|
+
apiKey = import.meta.env.VITE_api_google_key;
|
|
472
|
+
url = "https://maps.googleapis.com/maps/api/geocode/json?latlng=".concat(lat, ",").concat(lng, "&key=").concat(apiKey, "&language=").concat(language);
|
|
473
|
+
_state.label = 1;
|
|
474
|
+
case 1:
|
|
475
|
+
_state.trys.push([
|
|
476
|
+
1,
|
|
477
|
+
3,
|
|
478
|
+
,
|
|
479
|
+
4
|
|
480
|
+
]);
|
|
481
|
+
return [
|
|
482
|
+
4,
|
|
483
|
+
axios.get(url)
|
|
484
|
+
];
|
|
485
|
+
case 2:
|
|
486
|
+
response = _state.sent();
|
|
487
|
+
if (response === null || response === void 0 ? void 0 : (_response_data = response.data) === null || _response_data === void 0 ? void 0 : _response_data.results[0]) {
|
|
488
|
+
return [
|
|
489
|
+
2,
|
|
490
|
+
response.data.results[0].formatted_address.slice(0, 35)
|
|
491
|
+
];
|
|
492
|
+
} else {
|
|
493
|
+
return [
|
|
494
|
+
2,
|
|
495
|
+
"address not found"
|
|
496
|
+
];
|
|
497
|
+
}
|
|
498
|
+
return [
|
|
499
|
+
3,
|
|
500
|
+
4
|
|
501
|
+
];
|
|
502
|
+
case 3:
|
|
503
|
+
error = _state.sent();
|
|
504
|
+
console.error("getAddressByGeo error:", error);
|
|
505
|
+
return [
|
|
506
|
+
3,
|
|
507
|
+
4
|
|
508
|
+
];
|
|
509
|
+
case 4:
|
|
510
|
+
return [
|
|
511
|
+
2
|
|
512
|
+
];
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
return function getAddressByGeo(_, currentLanguage) {
|
|
517
|
+
return _ref.apply(this, arguments);
|
|
518
|
+
};
|
|
519
|
+
}();
|
|
463
520
|
// src/helpers/firebase.ts
|
|
464
521
|
var initApp = function() {
|
|
465
522
|
var isNodeEnv2 = typeof process !== "undefined" && process.env;
|
|
@@ -1730,5 +1787,5 @@ var nx_api_call = /*#__PURE__*/ function() {
|
|
|
1730
1787
|
return _ref.apply(this, arguments);
|
|
1731
1788
|
};
|
|
1732
1789
|
}();
|
|
1733
|
-
export { addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterDomain, carsRegex, chartsRegex, cleanNxSites, cn, collections, colorRegex, createSelectors, db, delete_document, devicesDomain, displayFormatPhoneNumber, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_iccid, local_israel_phone_format, mode, multiStringFormat, numbersOnlyRegex, numbersRegex, nx_api_call, parseMultiSelectInput, parsePermissions, priceRegex, propsAreEqual, query_document2 as query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateUserStatusAndPermissions };
|
|
1790
|
+
export { addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterDomain, carsRegex, chartsRegex, cleanNxSites, cn, collections, colorRegex, createSelectors, db, delete_document, devicesDomain, displayFormatPhoneNumber, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getAddressByGeo, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_iccid, local_israel_phone_format, mode, multiStringFormat, numbersOnlyRegex, numbersRegex, nx_api_call, parseMultiSelectInput, parsePermissions, priceRegex, propsAreEqual, query_document2 as query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateUserStatusAndPermissions };
|
|
1734
1791
|
//# sourceMappingURL=index.mjs.map
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -188,7 +188,7 @@ import { useCallback } from "react";
|
|
|
188
188
|
// src/helpers/phoneNumber.ts
|
|
189
189
|
import { parsePhoneNumberFromString } from "libphonenumber-js";
|
|
190
190
|
// src/helpers/global.ts
|
|
191
|
-
import { CountryOptions } from "akeyless-types-commons";
|
|
191
|
+
import { CountryOptions, LanguageOptions } from "akeyless-types-commons";
|
|
192
192
|
import axios from "axios";
|
|
193
193
|
import { isEqual } from "lodash";
|
|
194
194
|
var getUserCountryByIp = /*#__PURE__*/ function() {
|