@frankieone/one-sdk 1.8.1 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/cli/darwin-amd64/onesdk-cli +0 -0
  2. package/dist/cli/darwin-arm64/onesdk-cli +0 -0
  3. package/dist/cli/linux-amd64/onesdk-cli +0 -0
  4. package/dist/cli/linux-arm64/onesdk-cli +0 -0
  5. package/dist/cli/windows-amd64/onesdk-cli.exe +0 -0
  6. package/dist/commit.txt +1 -1
  7. package/dist/esm/modules/common/shared/utils/getCountryDetails.d.ts +1 -0
  8. package/dist/esm/modules/common/shared/utils/getCountryDetails.d.ts.map +1 -1
  9. package/dist/esm/modules/common/shared/utils/getCountryDetails.js +4 -0
  10. package/dist/esm/modules/common/shared/utils/getCountryDetails.js.map +1 -1
  11. package/dist/esm/modules/common/vendors/incode/startCamera.d.ts.map +1 -1
  12. package/dist/esm/modules/common/vendors/incode/startCamera.js +23 -16
  13. package/dist/esm/modules/common/vendors/incode/startCamera.js.map +1 -1
  14. package/dist/esm/modules/form/definition.d.ts +1 -0
  15. package/dist/esm/modules/form/definition.d.ts.map +1 -1
  16. package/dist/esm/modules/form/vendors/react/App.d.ts +2 -1
  17. package/dist/esm/modules/form/vendors/react/App.d.ts.map +1 -1
  18. package/dist/esm/modules/form/vendors/react/App.js +2 -1
  19. package/dist/esm/modules/form/vendors/react/App.js.map +1 -1
  20. package/dist/esm/modules/form/vendors/react/components/base/StandardDate/StandardDate.js +1 -1
  21. package/dist/esm/modules/form/vendors/react/components/base/StandardDate/StandardDate.js.map +1 -1
  22. package/dist/esm/modules/form/vendors/react/components/view/FrankieAddress/FrankieAddress.d.ts.map +1 -1
  23. package/dist/esm/modules/form/vendors/react/components/view/FrankieAddress/FrankieAddress.js.map +1 -1
  24. package/dist/esm/modules/form/vendors/react/components/view/SearchableAddress/SearchableAddress.d.ts +1 -1
  25. package/dist/esm/modules/form/vendors/react/components/view/SearchableAddress/SearchableAddress.d.ts.map +1 -1
  26. package/dist/esm/modules/form/vendors/react/components/view/SearchableAddress/SearchableAddress.js +12 -2
  27. package/dist/esm/modules/form/vendors/react/components/view/SearchableAddress/SearchableAddress.js.map +1 -1
  28. package/dist/esm/modules/form/vendors/react/features/IdSelection/manualIdSelection.config.d.ts.map +1 -1
  29. package/dist/esm/modules/form/vendors/react/features/IdSelection/manualIdSelection.config.js +3 -1
  30. package/dist/esm/modules/form/vendors/react/features/IdSelection/manualIdSelection.config.js.map +1 -1
  31. package/dist/esm/modules/form/vendors/react/features/Review/fields/passport.config.d.ts.map +1 -1
  32. package/dist/esm/modules/form/vendors/react/features/Review/fields/passport.config.js +3 -1
  33. package/dist/esm/modules/form/vendors/react/features/Review/fields/passport.config.js.map +1 -1
  34. package/dist/esm/modules/form/vendors/react/hooks/useAddressSearch.d.ts +9 -4
  35. package/dist/esm/modules/form/vendors/react/hooks/useAddressSearch.d.ts.map +1 -1
  36. package/dist/esm/modules/form/vendors/react/hooks/useAddressSearch.js +29 -78
  37. package/dist/esm/modules/form/vendors/react/hooks/useAddressSearch.js.map +1 -1
  38. package/dist/esm/modules/form/vendors/react/hooks/useEventContext.d.ts +1 -0
  39. package/dist/esm/modules/form/vendors/react/hooks/useEventContext.d.ts.map +1 -1
  40. package/dist/esm/modules/form/vendors/react/hooks/useEventContext.js.map +1 -1
  41. package/dist/esm/modules/form/vendors/react/index.d.ts.map +1 -1
  42. package/dist/esm/modules/form/vendors/react/index.js +8 -5
  43. package/dist/esm/modules/form/vendors/react/index.js.map +1 -1
  44. package/dist/esm/modules/meta.json +1 -1
  45. package/dist/esm/modules/services/google/address.const.d.ts +20 -0
  46. package/dist/esm/modules/services/google/address.const.d.ts.map +1 -0
  47. package/dist/esm/modules/services/google/address.const.js +21 -0
  48. package/dist/esm/modules/services/google/address.const.js.map +1 -0
  49. package/dist/esm/modules/services/google/autocomplete.service.d.ts +14 -0
  50. package/dist/esm/modules/services/google/autocomplete.service.d.ts.map +1 -0
  51. package/dist/esm/modules/services/google/autocomplete.service.js +43 -0
  52. package/dist/esm/modules/services/google/autocomplete.service.js.map +1 -0
  53. package/dist/esm/modules/services/google/autocompleteSuggestion.service.d.ts +13 -0
  54. package/dist/esm/modules/services/google/autocompleteSuggestion.service.d.ts.map +1 -0
  55. package/dist/esm/modules/services/google/autocompleteSuggestion.service.js +40 -0
  56. package/dist/esm/modules/services/google/autocompleteSuggestion.service.js.map +1 -0
  57. package/dist/esm/modules/services/google/geocode.service.d.ts +16 -0
  58. package/dist/esm/modules/services/google/geocode.service.d.ts.map +1 -0
  59. package/dist/esm/modules/services/google/geocode.service.js +73 -0
  60. package/dist/esm/modules/services/google/geocode.service.js.map +1 -0
  61. package/dist/esm/modules/{form/vendors/react/model → services/google}/googleAddress.model.d.ts +4 -2
  62. package/dist/esm/modules/services/google/googleAddress.model.d.ts.map +1 -0
  63. package/dist/esm/modules/services/google/googleAddress.model.js +110 -0
  64. package/dist/esm/modules/services/google/googleAddress.model.js.map +1 -0
  65. package/dist/esm/modules/services/google/googleService.types.d.ts +81 -0
  66. package/dist/esm/modules/services/google/googleService.types.d.ts.map +1 -0
  67. package/dist/esm/modules/services/google/googleService.types.js +2 -0
  68. package/dist/esm/modules/services/google/googleService.types.js.map +1 -0
  69. package/dist/esm/modules/services/google/utils.d.ts +2 -0
  70. package/dist/esm/modules/services/google/utils.d.ts.map +1 -0
  71. package/dist/esm/modules/services/google/utils.js +29 -0
  72. package/dist/esm/modules/services/google/utils.js.map +1 -0
  73. package/package.json +1 -1
  74. package/dist/esm/modules/form/vendors/react/constants/address.const.d.ts +0 -14
  75. package/dist/esm/modules/form/vendors/react/constants/address.const.d.ts.map +0 -1
  76. package/dist/esm/modules/form/vendors/react/constants/address.const.js +0 -15
  77. package/dist/esm/modules/form/vendors/react/constants/address.const.js.map +0 -1
  78. package/dist/esm/modules/form/vendors/react/model/googleAddress.model.d.ts.map +0 -1
  79. package/dist/esm/modules/form/vendors/react/model/googleAddress.model.js +0 -63
  80. package/dist/esm/modules/form/vendors/react/model/googleAddress.model.js.map +0 -1
@@ -9,91 +9,42 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  // eslint-disable-next-line check-file/filename-naming-convention
11
11
  import { useCallback, useContext } from 'react';
12
- import { loadAsyncAsset } from '../../../../common/index.js';
13
12
  import { EventContext } from './useEventContext.js';
14
- import { GoogleSearchAddress } from '../model/googleAddress.model.js';
13
+ import { googlePlaceAutocompleteService } from '../../../../services/google/autocomplete.service.js';
14
+ import { googlePlaceAutocompleteSuggestionService } from '../../../../services/google/autocompleteSuggestion.service.js';
15
+ import { initializeGoogleMaps } from '../../../../services/google/utils.js';
15
16
  export const useAddressSearch = () => {
16
17
  var _a;
17
- const { googleApiKey } = (_a = useContext(EventContext)) !== null && _a !== void 0 ? _a : {};
18
- const initializeGoogleMaps = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
19
- const source = `https://maps.googleapis.com/maps/api/js?key=${googleApiKey}&libraries=places`;
20
- if (!isScriptAlreadyIncluded(source)) {
21
- yield loadAsyncAsset(source, 'script');
18
+ const { googleApiKey, useGoogleAutoCompleteSuggestion } = (_a = useContext(EventContext)) !== null && _a !== void 0 ? _a : {};
19
+ const getAddressList = useCallback((_a) => __awaiter(void 0, [_a], void 0, function* ({ text, setAddressOptions, countries, requiredComponents, }) {
20
+ yield initializeGoogleMaps(googleApiKey);
21
+ if (!text || text.trim().length === 0) {
22
+ setAddressOptions === null || setAddressOptions === void 0 ? void 0 : setAddressOptions([]);
23
+ return [];
22
24
  }
23
- }), [googleApiKey]);
24
- const getAddressList = useCallback((text_1, setAddressOptions_1, ...args_1) => __awaiter(void 0, [text_1, setAddressOptions_1, ...args_1], void 0, function* (text, setAddressOptions, country = [], requiredComponents = []) {
25
- yield initializeGoogleMaps();
26
- return new Promise((resolve) => {
27
- let addressList = [];
28
- if (text) {
29
- const placeServiceRequest = {
30
- input: text,
31
- // REMARKS: restriction based on country
32
- componentRestrictions: { country },
33
- };
34
- const service = new google.maps.places.AutocompleteService();
35
- service.getPlacePredictions(placeServiceRequest, (predictions, status) => {
36
- if (status == google.maps.places.PlacesServiceStatus.OK) {
37
- addressList = predictions.map((item) => ({
38
- label: item.description,
39
- value: item.place_id,
40
- }));
41
- }
42
- getFullAddress(addressList).then((dataList) => {
43
- const filteredDataList = dataList.filter((item) => !requiredComponents.some((component) => !item[component]));
44
- setAddressOptions && setAddressOptions(filteredDataList);
45
- resolve(filteredDataList);
46
- });
25
+ try {
26
+ if (!useGoogleAutoCompleteSuggestion) {
27
+ const addressList = yield googlePlaceAutocompleteService({
28
+ text,
29
+ countries,
30
+ requiredComponents,
47
31
  });
32
+ setAddressOptions === null || setAddressOptions === void 0 ? void 0 : setAddressOptions(addressList);
33
+ return addressList;
48
34
  }
49
- else {
50
- setAddressOptions && setAddressOptions(addressList);
51
- resolve(addressList);
52
- }
53
- });
54
- }), [initializeGoogleMaps]);
55
- /**
56
- *
57
- * @param placesInfo have the all information about the place, placeId, name
58
- * @returns formated Address with, OptionsTypes & it have AddressInfomation, country, fullAddrss, state etc of list
59
- */
60
- const getFullAddress = (placesInfo) => {
61
- return new Promise((resolve, reject) => {
62
- const geocoder = new google.maps.Geocoder();
63
- const addressPromises = [];
64
- placesInfo.forEach((place) => {
65
- const geocodeRequest = {
66
- placeId: place.value,
67
- };
68
- const promise = new Promise((resolve, reject) => {
69
- geocoder.geocode(geocodeRequest, (results, status) => {
70
- if (status === google.maps.GeocoderStatus.OK) {
71
- const googleSearchData = new GoogleSearchAddress(results[0]);
72
- googleSearchData['label'] = googleSearchData.fullAddress;
73
- googleSearchData['value'] = place.value;
74
- resolve(googleSearchData);
75
- }
76
- else {
77
- reject(new Error('Geocode request failed'));
78
- }
79
- });
80
- });
81
- addressPromises.push(promise);
35
+ const addressList = yield googlePlaceAutocompleteSuggestionService({
36
+ text,
37
+ countries,
38
+ requiredComponents,
82
39
  });
83
- Promise.all(addressPromises)
84
- .then((addresses) => resolve(addresses))
85
- .catch((error) => reject(error));
86
- });
87
- };
88
- const isScriptAlreadyIncluded = (src) => {
89
- const scripts = document.getElementsByTagName('script');
90
- for (let i = 0; i < scripts.length; i++) {
91
- if (scripts[i].getAttribute('src') === src) {
92
- return true;
93
- }
40
+ setAddressOptions === null || setAddressOptions === void 0 ? void 0 : setAddressOptions(addressList);
41
+ return addressList;
42
+ }
43
+ catch (_b) {
44
+ setAddressOptions === null || setAddressOptions === void 0 ? void 0 : setAddressOptions([]);
45
+ return [];
94
46
  }
95
- return false;
96
- };
97
- return { getAddressList, getFullAddress };
47
+ }), [googleApiKey, useGoogleAutoCompleteSuggestion]);
48
+ return { getAddressList };
98
49
  };
99
50
  //# sourceMappingURL=useAddressSearch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAddressSearch.js","sourceRoot":"","sources":["../../../../../../../modules/form/vendors/react/hooks/useAddressSearch.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,iEAAiE;AACjE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,kDAAkD,CAAC;AAEhF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAYnE,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;;IACnC,MAAM,EAAE,YAAY,EAAE,GAAG,MAAA,UAAU,CAAC,YAAY,CAAC,mCAAI,EAAE,CAAC;IAExD,MAAM,oBAAoB,GAAG,WAAW,CAAC,GAAS,EAAE;QAClD,MAAM,MAAM,GAAG,+CAA+C,YAAY,mBAAmB,CAAC;QAC9F,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC;YACrC,MAAM,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACzC,CAAC;IACH,CAAC,CAAA,EAAE,CAAC,YAAY,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C,CAAC;oBACH,CAAC,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAChC,CAAC,CAAC,CAAC;YAEH,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;iBACzB,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;iBACvC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,uBAAuB,GAAG,CAAC,GAAW,EAAE,EAAE;QAC9C,MAAM,OAAO,GAAG,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QACxD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACxC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC;gBAC3C,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAEF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"file":"useAddressSearch.js","sourceRoot":"","sources":["../../../../../../../modules/form/vendors/react/hooks/useAddressSearch.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,iEAAiE;AACjE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,kDAAkD,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,wCAAwC,EAAE,MAAM,wDAAwD,CAAC;AAKlH,OAAO,EAAE,oBAAoB,EAAE,MAAM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5B,CAAC,CAAC"}
@@ -11,6 +11,7 @@ export type EventContextType = {
11
11
  localEventHub: EventHub<FormEvents>;
12
12
  config?: PartialDeep<ReactFormConfig>;
13
13
  googleApiKey: string;
14
+ useGoogleAutoCompleteSuggestion?: boolean;
14
15
  utilityConfig: UtilityConfiguration;
15
16
  };
16
17
  export declare const EventContext: import("react").Context<EventContextType | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"useEventContext.d.ts","sourceRoot":"","sources":["../../../../../../../modules/form/vendors/react/hooks/useEventContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAKnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC/B,aAAa,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,oBAAoB,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,YAAY,uDAExB,CAAC;AAEF,eAAO,MAAM,eAAe;mCAOP,aAAa,mBACX,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;sCAcnC,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,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CAAC,CAAC;iCAa5C,MAAM,eAAe;8BAkBpB;QACP,aAAa,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;QACnC,cAAc,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC;QACpD,SAAS,EAAE,MAAM,eAAe,CAAC;KAClC;;CAqBJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useEventContext.js","sourceRoot":"","sources":["../../../../../../../modules/form/vendors/react/hooks/useEventContext.tsx"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAY1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AActD,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CACvC,SAAS,CACV,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;;IAClC,MAAM,EAAE,WAAW,EAAE,GAAG,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEtD,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,MAAA,UAAU,CAAC,YAAY,CAAC,mCAAI,EAAE,CAAC;IAE3E,MAAM,aAAa,GAAG,WAAW,CAC/B,CACE,YAA4B,EAC5B,cAAmD,EACnD,EAAE;QACF,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,cAAc,CAAC;YAChD,WAAW,EAAE,WAAW;YACxB,YAAY,EAAE,YAAY;YAC1B,SAAS,EAAE,OAAO;YAClB,cAAc;SACf,CAAC,CAAC;QACH,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC9C,CAAC,EACD,CAAC,aAAa,EAAE,WAAW,C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E,WAAW,CAAC,CACvC,CAAC;IAEF,OAAO;QACL,aAAa;QACb,cAAc;QACd,mBAAmB;QACnB,eAAe;QACf,MAAM;KACP,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"useEventContext.js","sourceRoot":"","sources":["../../../../../../../modules/form/vendors/react/hooks/useEventContext.tsx"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAY1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAetD,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CACvC,SAAS,CACV,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;;IAClC,MAAM,EAAE,WAAW,EAAE,GAAG,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEtD,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,MAAA,UAAU,CAAC,YAAY,CAAC,mCAAI,EAAE,CAAC;IAE3E,MAAM,aAAa,GAAG,WAAW,CAC/B,CACE,YAA4B,EAC5B,cAAmD,EACnD,EAAE;QACF,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,cAAc,CAAC;YAChD,WAAW,EAAE,WAAW;YACxB,YAAY,EAAE,YAAY;YAC1B,SAAS,EAAE,OAAO;YAClB,cAAc;SACf,CAAC,CAAC;QACH,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC9C,CAAC,EACD,CAAC,aAAa,EAAE,WAAW,CAAC,CAC7B,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,cAAmD,EAAE,EAAE;QACtD,MAAM,EAAE,SAAS,EAA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AACJ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/form/vendors/react/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,qBAAqB,CAAC;AAQvE,OAAO,iCAAiC,CAAC;AACzC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,+BAA+B,CAAC;AAwBvC,eAAO,MAAM,UAAU;;;;;;;;;;CAmGtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/form/vendors/react/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,qBAAqB,CAAC;AAQvE,OAAO,iCAAiC,CAAC;AACzC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,+BAA+B,CAAC;AAwBvC,eAAO,MAAM,UAAU;;;;;;;;;;CAwGtB,CAAC"}
@@ -37,7 +37,7 @@ let reactRoot;
37
37
  let previousScreenName;
38
38
  let cleanUpInstance;
39
39
  export const initialise = defineWrapper('react', (shared, options) => __awaiter(void 0, void 0, void 0, function* () {
40
- var _a, _b, _c, _d, _e;
40
+ var _a, _b, _c, _d, _e, _f;
41
41
  const { mountElement, eventHub } = options;
42
42
  const { oneSdkInstance, localEventHub, recipe: { form: { provider } = {} } = {}, utilityConfig, } = shared;
43
43
  if ((provider === null || provider === void 0 ? void 0 : provider.name) !== 'react')
@@ -45,11 +45,14 @@ export const initialise = defineWrapper('react', (shared, options) => __awaiter(
45
45
  // Retrieving the screen info from the recipe, default to WELCOME
46
46
  const config = provider === null || provider === void 0 ? void 0 : provider.config;
47
47
  const googleApiKey = (provider === null || provider === void 0 ? void 0 : provider.name) === 'react' ? (_a = provider === null || provider === void 0 ? void 0 : provider.googleApiKey) !== null && _a !== void 0 ? _a : '' : '';
48
+ const useGoogleAutoCompleteSuggestion = (provider === null || provider === void 0 ? void 0 : provider.name) === 'react'
49
+ ? (_b = provider === null || provider === void 0 ? void 0 : provider.useGoogleAutoCompleteSuggestion) !== null && _b !== void 0 ? _b : false
50
+ : false;
48
51
  const getEventName = (screenName, type = 'ready') => `form:${screenName}:${type}`;
49
- const currentScreenName = React_Form_IDS[(_b = config === null || config === void 0 ? void 0 : config.name) !== null && _b !== void 0 ? _b : 'WELCOME'];
52
+ const currentScreenName = React_Form_IDS[(_c = config === null || config === void 0 ? void 0 : config.name) !== null && _c !== void 0 ? _c : 'WELCOME'];
50
53
  try {
51
54
  // Load font dynamically based on config
52
- const { name: fontName, url: fontUrl } = (_d = (_c = config === null || config === void 0 ? void 0 : config.style) === null || _c === void 0 ? void 0 : _c['font']) !== null && _d !== void 0 ? _d : {};
55
+ const { name: fontName, url: fontUrl } = (_e = (_d = config === null || config === void 0 ? void 0 : config.style) === null || _d === void 0 ? void 0 : _d['font']) !== null && _e !== void 0 ? _e : {};
53
56
  yield downloadFont(fontUrl);
54
57
  if ((config === null || config === void 0 ? void 0 : config.mode) === 'business' &&
55
58
  !oneSdkInstance.business().access('entityId').getValue()) {
@@ -76,7 +79,7 @@ export const initialise = defineWrapper('react', (shared, options) => __awaiter(
76
79
  return attachDiv(mountElement, fontName);
77
80
  })();
78
81
  reactRoot = ReactDOM.createRoot(styledMountElement);
79
- reactRoot.render(_jsx(App, { oneSDK: oneSdkInstance, eventHub: eventHub, localEventHub: localEventHub, config: config, googleApiKey: googleApiKey, utilityConfig: utilityConfig }));
82
+ reactRoot.render(_jsx(App, { oneSDK: oneSdkInstance, eventHub: eventHub, localEventHub: localEventHub, config: config, googleApiKey: googleApiKey, useGoogleAutoCompleteSuggestion: useGoogleAutoCompleteSuggestion, utilityConfig: utilityConfig }));
80
83
  cleanUpInstance = () => {
81
84
  mountElement.innerHTML = '';
82
85
  reactRoot.unmount();
@@ -94,7 +97,7 @@ export const initialise = defineWrapper('react', (shared, options) => __awaiter(
94
97
  message: error === null || error === void 0 ? void 0 : error.toString(),
95
98
  });
96
99
  }
97
- previousScreenName = React_Form_IDS[(_e = config === null || config === void 0 ? void 0 : config.name) !== null && _e !== void 0 ? _e : 'WELCOME'];
100
+ previousScreenName = React_Form_IDS[(_f = config === null || config === void 0 ? void 0 : config.name) !== null && _f !== void 0 ? _f : 'WELCOME'];
98
101
  return {
99
102
  cleanup: () => { },
100
103
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../modules/form/vendors/react/index.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,iEAAiE;AACjE,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAIpE,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,OAAO,iCAAiC,CAAC;AACzC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,+BAA+B,CAAC;AAIvC,MAAM,aAAa,GAAG;IACpB,qBAAqB;IACrB,oBAAoB;IACpB,qBAAqB;IACrB,qBAAqB;IACrB,mBAAmB;IACnB,qBAAqB;IACrB,oBAAoB;IACpB,qBAAqB;IACrB,qBAAqB;IACrB,mBAAmB;CACT,CAAC;AAEb,mCAAmC;AACnC,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;AAE/D,IAAI,SAAwB,CAAC;AAC7B,IAAI,kBAAkC,CAAC;AACvC,IAAI,eAA2B,CAAC;AAEhC,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CACrC,OAAO,EACP,CAAO,MAAM,EAAE,OAAO,EAAE,EAAE;;IACxB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;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,YAAyB,EACzB,QAAiB,EACqB,EAAE;IACxC,wDAAwD;IACxD,MAAM,UAAU,GAAG,YAAY,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/D,MAAM,oBAAoB,GAAG,YAAY,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IAClE,OAAO,CAAC,oBAAoB,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;AACpD,CAAC,CAAA,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../modules/form/vendors/react/index.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,iEAAiE;AACjE,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAIpE,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,OAAO,iCAAiC,CAAC;AACzC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,+BAA+B,CAAC;AAIvC,MAAM,aAAa,GAAG;IACpB,qBAAqB;IACrB,oBAAoB;IACpB,qBAAqB;IACrB,qBAAqB;IACrB,mBAAmB;IACnB,qBAAqB;IACrB,oBAAoB;IACpB,qBAAqB;IACrB,qBAAqB;IACrB,mBAAmB;CACT,CAAC;AAEb,mCAAmC;AACnC,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;AAE/D,IAAI,SAAwB,CAAC;AAC7B,IAAI,kBAAkC,CAAC;AACvC,IAAI,eAA2B,CAAC;AAEhC,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CACrC,OAAO,EACP,CAAO,MA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CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC,CAAC;AAEF,gDAAgD;AAChD,MAAM,SAAS,GAAG,CAChB,YAAyB,EACzB,QAAiB,EACqB,EAAE;IACxC,MAAM,oBAAoB,GAAG,YAAY,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IAClE,OAAO,CAAC,oBAAoB,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC,CAAA,CAAC;AAEF,wDAAwD;AACxD,MAAM,YAAY,GAAG,CACnB,YAAyB,EACzB,QAAiB,EACqB,EAAE;IACxC,wDAAwD;IACxD,MAAM,UAAU,GAAG,YAAY,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/D,MAAM,oBAAoB,GAAG,YAAY,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IAClE,OAAO,CAAC,oBAAoB,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;AACpD,CAAC,CAAA,CAAC"}
@@ -1 +1 @@
1
- { "version": "1.8.1" }
1
+ { "version": "1.8.2" }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * docs: https://developers.google.com/maps/documentation/javascript/geocoding#GeocodingAddressTypes
3
+ */
4
+ export declare enum GOOGLE_ADDRESS_INFO_ENUM {
5
+ PREMISE = "premise",
6
+ FLOOR = "floor",
7
+ SUBLOCALITY_LEVEL_1 = "sublocality_level_1",
8
+ ROUTE = "route",
9
+ STREET_ADDRESS = "street_address",
10
+ LOCALITY = "locality",
11
+ ADMINISTRATIVE_AREA_LEVEL_1 = "administrative_area_level_1",
12
+ ADMINISTRATIVE_AREA_LEVEL_2 = "administrative_area_level_2",
13
+ ADMINISTRATIVE_AREA_LEVEL_3 = "administrative_area_level_3",
14
+ ADMINISTRATIVE_AREA_LEVEL_4 = "administrative_area_level_4",
15
+ COUNTRY = "country",
16
+ POSTAL_CODE = "postal_code",
17
+ STREET_NUMBER = "street_number",
18
+ SUB_PREMISE = "subpremise"
19
+ }
20
+ //# sourceMappingURL=address.const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.const.d.ts","sourceRoot":"","sources":["../../../../../modules/services/google/address.const.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,wBAAwB;IAClC,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,mBAAmB,wBAAwB;IAC3C,KAAK,UAAU;IACf,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,2BAA2B,gCAAgC;IAC3D,2BAA2B,gCAAgC;IAC3D,2BAA2B,gCAAgC;IAC3D,2BAA2B,gCAAgC;IAC3D,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,WAAW,eAAe;CAC3B"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * docs: https://developers.google.com/maps/documentation/javascript/geocoding#GeocodingAddressTypes
3
+ */
4
+ export var GOOGLE_ADDRESS_INFO_ENUM;
5
+ (function (GOOGLE_ADDRESS_INFO_ENUM) {
6
+ GOOGLE_ADDRESS_INFO_ENUM["PREMISE"] = "premise";
7
+ GOOGLE_ADDRESS_INFO_ENUM["FLOOR"] = "floor";
8
+ GOOGLE_ADDRESS_INFO_ENUM["SUBLOCALITY_LEVEL_1"] = "sublocality_level_1";
9
+ GOOGLE_ADDRESS_INFO_ENUM["ROUTE"] = "route";
10
+ GOOGLE_ADDRESS_INFO_ENUM["STREET_ADDRESS"] = "street_address";
11
+ GOOGLE_ADDRESS_INFO_ENUM["LOCALITY"] = "locality";
12
+ GOOGLE_ADDRESS_INFO_ENUM["ADMINISTRATIVE_AREA_LEVEL_1"] = "administrative_area_level_1";
13
+ GOOGLE_ADDRESS_INFO_ENUM["ADMINISTRATIVE_AREA_LEVEL_2"] = "administrative_area_level_2";
14
+ GOOGLE_ADDRESS_INFO_ENUM["ADMINISTRATIVE_AREA_LEVEL_3"] = "administrative_area_level_3";
15
+ GOOGLE_ADDRESS_INFO_ENUM["ADMINISTRATIVE_AREA_LEVEL_4"] = "administrative_area_level_4";
16
+ GOOGLE_ADDRESS_INFO_ENUM["COUNTRY"] = "country";
17
+ GOOGLE_ADDRESS_INFO_ENUM["POSTAL_CODE"] = "postal_code";
18
+ GOOGLE_ADDRESS_INFO_ENUM["STREET_NUMBER"] = "street_number";
19
+ GOOGLE_ADDRESS_INFO_ENUM["SUB_PREMISE"] = "subpremise";
20
+ })(GOOGLE_ADDRESS_INFO_ENUM || (GOOGLE_ADDRESS_INFO_ENUM = {}));
21
+ //# sourceMappingURL=address.const.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.const.js","sourceRoot":"","sources":["../../../../../modules/services/google/address.const.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,wBAeX;AAfD,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,2CAAe,CAAA;IACf,uEAA2C,CAAA;IAC3C,2CAAe,CAAA;IACf,6DAAiC,CAAA;IACjC,iDAAqB,CAAA;IACrB,uFAA2D,CAAA;IAC3D,uFAA2D,CAAA;IAC3D,uFAA2D,CAAA;IAC3D,uFAA2D,CAAA;IAC3D,+CAAmB,CAAA;IACnB,uDAA2B,CAAA;IAC3B,2DAA+B,CAAA;IAC/B,sDAA0B,CAAA;AAC5B,CAAC,EAfW,wBAAwB,KAAxB,wBAAwB,QAenC"}
@@ -0,0 +1,14 @@
1
+ import type { Address } from '../../common/shared/models/Address';
2
+ import type { GoogleSearchAddress } from './googleAddress.model';
3
+ interface Props {
4
+ text: string;
5
+ countries: string[] | undefined;
6
+ requiredComponents: (keyof Address)[];
7
+ }
8
+ /**
9
+ * @deprecated use `googlePlaceAutocompleteSuggestionService` instead
10
+ * Google Place Autocomplete Service.
11
+ */
12
+ export declare const googlePlaceAutocompleteService: ({ text, countries, requiredComponents, }: Props) => Promise<GoogleSearchAddress[]>;
13
+ export {};
14
+ //# sourceMappingURL=autocomplete.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autocomplete.service.d.ts","sourceRoot":"","sources":["../../../../../modules/services/google/autocomplete.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAIpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAKjE,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAChC,kBAAkB,EAAE,CAAC,MAAM,OAAO,CAAC,EAAE,CAAC;CACvC;AAED;;;GAGG;AACH,eAAO,MAAM,8BAA8B,6CAIxC,KAAK,KAAG,OAAO,CAAC,mBAAmB,EAAE,CAkCvC,CAAC"}
@@ -0,0 +1,43 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { getFullAddressDeprecated } from './geocode.service.js';
11
+ /**
12
+ * @deprecated use `googlePlaceAutocompleteSuggestionService` instead
13
+ * Google Place Autocomplete Service.
14
+ */
15
+ export const googlePlaceAutocompleteService = (_a) => __awaiter(void 0, [_a], void 0, function* ({ text, countries = [], requiredComponents = [], }) {
16
+ return new Promise((resolve) => {
17
+ let addressList = [];
18
+ if (text) {
19
+ const placeServiceRequest = {
20
+ input: text,
21
+ // REMARKS: restriction based on country
22
+ componentRestrictions: { country: countries },
23
+ };
24
+ const service = new google.maps.places.AutocompleteService();
25
+ service.getPlacePredictions(placeServiceRequest, (predictions, status) => {
26
+ if (status == google.maps.places.PlacesServiceStatus.OK) {
27
+ addressList = predictions.map((item) => ({
28
+ label: item.description,
29
+ value: item.place_id,
30
+ }));
31
+ }
32
+ getFullAddressDeprecated(addressList).then((dataList) => {
33
+ const filteredDataList = dataList.filter((item) => !requiredComponents.some((component) => !item[component]));
34
+ resolve(filteredDataList);
35
+ });
36
+ });
37
+ }
38
+ else {
39
+ resolve(addressList);
40
+ }
41
+ });
42
+ });
43
+ //# sourceMappingURL=autocomplete.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autocomplete.service.js","sourceRoot":"","sources":["../../../../../modules/services/google/autocomplete.service.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAa7D;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,KAIJ,EAAE,4CAJS,EACnD,IAAI,EACJ,SAAS,GAAG,EAAE,EACd,kBAAkB,GAAG,EAAE,GACjB;IACN,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,IAAI,WAAW,GAA0B,EAAE,CAAC;QAC5C,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,mBAAmB,GAAG;gBAC1B,KAAK,EAAE,IAAI;gBACX,wCAAwC;gBACxC,qBAAqB,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;aAC9C,CAAC;YACF,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,CAAC;YAE7D,OAAO,CAAC,mBAAmB,CACzB,mBAAmB,EACnB,CAAC,WAAW,EAAE,MAAc,EAAE,EAAE;gBAC9B,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,EAAE,CAAC;oBACxD,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;wBACvC,KAAK,EAAE,IAAI,CAAC,WAAW;wBACvB,KAAK,EAAE,IAAI,CAAC,QAAQ;qBACrB,CAAC,CAA0B,CAAC;gBAC/B,CAAC;gBACD,wBAAwB,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;oBACtD,MAAM,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CACtC,CAAC,IAAI,EAAE,EAAE,CACP,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAC5D,CAAC;oBAEF,OAAO,CAAC,gBAAgB,CAAC,CAAC;gBAC5B,CAAC,CAAC,CAAC;YACL,CAAC,CACF,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,WAAW,CAAC,CAAC;QACvB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAA,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Address } from '../../common/shared/models/Address';
2
+ interface Props {
3
+ text: string;
4
+ countries: string[] | undefined;
5
+ requiredComponents: (keyof Address)[];
6
+ }
7
+ /**
8
+ * Google Place Autocomplete Suggestion Service.
9
+ * Use this as the replacement for `googlePlaceAutocompleteService`
10
+ */
11
+ export declare const googlePlaceAutocompleteSuggestionService: ({ text, countries, requiredComponents, }: Props) => Promise<import("./googleAddress.model").GoogleSearchAddress[]>;
12
+ export {};
13
+ //# sourceMappingURL=autocompleteSuggestion.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autocompleteSuggestion.service.d.ts","sourceRoot":"","sources":["../../../../../modules/services/google/autocompleteSuggestion.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AASpE,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAChC,kBAAkB,EAAE,CAAC,MAAM,OAAO,CAAC,EAAE,CAAC;CACvC;AAED;;;GAGG;AACH,eAAO,MAAM,wCAAwC,6CAIlD,KAAK,mEAkCP,CAAC"}
@@ -0,0 +1,40 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { getCountryAlpha2Code } from '../../common/shared/utils/index.js';
11
+ import { getFullAddress } from './geocode.service.js';
12
+ /**
13
+ * Google Place Autocomplete Suggestion Service.
14
+ * Use this as the replacement for `googlePlaceAutocompleteService`
15
+ */
16
+ export const googlePlaceAutocompleteSuggestionService = (_a) => __awaiter(void 0, [_a], void 0, function* ({ text, countries = [], requiredComponents = [], }) {
17
+ if (!text || text.trim().length === 0) {
18
+ return [];
19
+ }
20
+ try {
21
+ const includedRegionCodes = countries
22
+ .map((code) => getCountryAlpha2Code(code))
23
+ .filter((code) => code !== undefined);
24
+ const { suggestions } = yield google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions({
25
+ input: text,
26
+ includedRegionCodes,
27
+ });
28
+ const placeIds = suggestions.map((suggestion) => { var _a, _b; return (_b = (_a = suggestion.placePrediction) === null || _a === void 0 ? void 0 : _a.placeId) !== null && _b !== void 0 ? _b : ''; });
29
+ const fullAddresses = yield getFullAddress(placeIds);
30
+ const filteredDataList = fullAddresses.filter((item) => {
31
+ const isRequiredComponentExists = !requiredComponents.some((component) => !item[component]);
32
+ return item.isVisible() && isRequiredComponentExists;
33
+ });
34
+ return filteredDataList;
35
+ }
36
+ catch (_b) {
37
+ return [];
38
+ }
39
+ });
40
+ //# sourceMappingURL=autocompleteSuggestion.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autocompleteSuggestion.service.js","sourceRoot":"","sources":["../../../../../modules/services/google/autocompleteSuggestion.service.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAYnD;;;GAGG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,KAI9C,EAAE,4CAJmD,EAC7D,IAAI,EACJ,SAAS,GAAG,EAAE,EACd,kBAAkB,GAAG,EAAE,GACjB;IACN,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,CAAC;QACH,MAAM,mBAAmB,GAAG,SAAS;aAClC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;aACzC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;QAExC,MAAM,EAAE,WAAW,EAAE,GACnB,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,4BAA4B,CAC1E;YACE,KAAK,EAAE,IAAI;YACX,mBAAmB;SACpB,CACF,CAAC;QAEJ,MAAM,QAAQ,GAAa,WAAW,CAAC,GAAG,CACxC,CAAC,UAAU,EAAE,EAAE,eAAC,OAAA,MAAA,MAAA,UAAU,CAAC,eAAe,0CAAE,OAAO,mCAAI,EAAE,CAAA,EAAA,CAC1D,CAAC;QAEF,MAAM,aAAa,GAAG,MAAM,cAAc,CAAC,QAAQ,CAAC,CAAC;QACrD,MAAM,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;YACrD,MAAM,yBAAyB,GAAG,CAAC,kBAAkB,CAAC,IAAI,CACxD,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAChC,CAAC;YACF,OAAO,IAAI,CAAC,SAAS,EAAE,IAAI,yBAAyB,CAAC;QACvD,CAAC,CAAC,CAAC;QAEH,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC,CAAA,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { FrankieSelectOptions } from '../../form/vendors/react/types/form';
2
+ import { GoogleSearchAddress } from './googleAddress.model';
3
+ /**
4
+ *
5
+ * @deprecated use `getFullAddress` instead
6
+ * @param placesInfo have the all information about the place, placeId, name
7
+ * @returns formated Address with, OptionsTypes & it have AddressInfomation, country, fullAddrss, state etc of list
8
+ */
9
+ export declare const getFullAddressDeprecated: (placesInfo: FrankieSelectOptions[]) => Promise<GoogleSearchAddress[]>;
10
+ /**
11
+ *
12
+ * @param placeIds list of placeIds
13
+ * @returns formated Address with, OptionsTypes & it have AddressInfomation, country, fullAddrss, state etc of list
14
+ */
15
+ export declare const getFullAddress: (placeIds: string[]) => Promise<GoogleSearchAddress[]>;
16
+ //# sourceMappingURL=geocode.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode.service.d.ts","sourceRoot":"","sources":["../../../../../modules/services/google/geocode.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAElF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,eACvB,oBAAoB,EAAE,mCAgCnC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,aAAc,MAAM,EAAE,mCAoChD,CAAC"}
@@ -0,0 +1,73 @@
1
+ import { GoogleSearchAddress } from './googleAddress.model.js';
2
+ /**
3
+ *
4
+ * @deprecated use `getFullAddress` instead
5
+ * @param placesInfo have the all information about the place, placeId, name
6
+ * @returns formated Address with, OptionsTypes & it have AddressInfomation, country, fullAddrss, state etc of list
7
+ */
8
+ export const getFullAddressDeprecated = (placesInfo) => {
9
+ return new Promise((resolve, reject) => {
10
+ const geocoder = new google.maps.Geocoder();
11
+ const addressPromises = [];
12
+ placesInfo.forEach((place) => {
13
+ const geocodeRequest = {
14
+ placeId: place.value,
15
+ };
16
+ const promise = new Promise((resolve, reject) => {
17
+ geocoder.geocode(geocodeRequest, (results, status) => {
18
+ if (status === google.maps.GeocoderStatus.OK) {
19
+ const googleSearchData = new GoogleSearchAddress(results[0]);
20
+ googleSearchData['label'] = googleSearchData.fullAddress;
21
+ googleSearchData['value'] = place.value;
22
+ resolve(googleSearchData);
23
+ }
24
+ else {
25
+ reject(new Error('Geocode request failed'));
26
+ }
27
+ });
28
+ });
29
+ addressPromises.push(promise);
30
+ });
31
+ Promise.all(addressPromises)
32
+ .then((addresses) => resolve(addresses))
33
+ .catch((error) => reject(error));
34
+ });
35
+ };
36
+ /**
37
+ *
38
+ * @param placeIds list of placeIds
39
+ * @returns formated Address with, OptionsTypes & it have AddressInfomation, country, fullAddrss, state etc of list
40
+ */
41
+ export const getFullAddress = (placeIds) => {
42
+ return new Promise((resolve, reject) => {
43
+ const geocoder = new google.maps.Geocoder();
44
+ const addressPromises = [];
45
+ placeIds.forEach((placeId) => {
46
+ const geocodeRequest = {
47
+ placeId,
48
+ };
49
+ const promise = new Promise((resolve, reject) => {
50
+ geocoder.geocode(geocodeRequest, (results, status) => {
51
+ if (status === google.maps.GeocoderStatus.OK) {
52
+ const googleSearchData = new GoogleSearchAddress(results[0]);
53
+ if (!googleSearchData.isVisible()) {
54
+ resolve(new GoogleSearchAddress(null));
55
+ return;
56
+ }
57
+ googleSearchData['label'] = googleSearchData.formattedAddress();
58
+ googleSearchData['value'] = placeId;
59
+ resolve(googleSearchData);
60
+ }
61
+ else {
62
+ reject(new Error('Geocode request failed'));
63
+ }
64
+ });
65
+ });
66
+ addressPromises.push(promise);
67
+ });
68
+ Promise.all(addressPromises)
69
+ .then((addresses) => resolve(addresses))
70
+ .catch((error) => reject(error));
71
+ });
72
+ };
73
+ //# sourceMappingURL=geocode.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode.service.js","sourceRoot":"","sources":["../../../../../modules/services/google/geocode.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,UAAkC,EAClC,EAAE;IACF,OAAO,IAAI,OAAO,CAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC5D,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC5C,MAAM,eAAe,GAAmC,EAAE,CAAC;QAE3D,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC3B,MAAM,cAAc,GAAG;gBACrB,OAAO,EAAE,KAAK,CAAC,KAAK;aACrB,CAAC;YAEF,MAAM,OAAO,GAAG,IAAI,OAAO,CAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACnE,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;oBACnD,IAAI,MAAM,KAAK,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC;wBAC7C,MAAM,gBAAgB,GAAG,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC7D,gBAAgB,CAAC,OAAO,CAAC,GAAG,gBAAgB,CAAC,WAAW,CAAC;wBACzD,gBAAgB,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;wBAExC,OAAO,CAAC,gBAAgB,CAAC,CAAC;oBAC5B,CAAC;yBAAM,CAAC;wBACN,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C,CAAC,CAAC;4BACvC,OAAO;wBACT,CAAC;wBAED,gBAAgB,CAAC,OAAO,CAAC,GAAG,gBAAgB,CAAC,gBAAgB,EAAE,CAAC;wBAChE,gBAAgB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;wBAEpC,OAAO,CAAC,gBAAgB,CAAC,CAAC;oBAC5B,CAAC;yBAAM,CAAC;wBACN,MAAM,CAAC,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC;oBAC9C,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;aACzB,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;aACvC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Address } from '../../../../common/shared/models/Address';
1
+ import { Address } from '../../common/shared/models/Address';
2
2
  export interface GoogleSearchAddressDetails {
3
3
  address_components: {
4
4
  long_name: string;
@@ -36,6 +36,8 @@ export declare class GoogleSearchAddress extends Address {
36
36
  streetAddress: string;
37
37
  label: string;
38
38
  value: string;
39
- constructor(result: google.maps.GeocoderResult);
39
+ constructor(result: google.maps.GeocoderResult | null, newPlaceService?: boolean);
40
+ isVisible(): boolean;
41
+ formattedAddress(): string;
40
42
  }
41
43
  //# sourceMappingURL=googleAddress.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"googleAddress.model.d.ts","sourceRoot":"","sources":["../../../../../modules/services/google/googleAddress.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAK/D,MAAM,WAAW,0BAA0B;IACzC,kBAAkB,EAAE;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB,EAAE,CAAC;IACJ,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE;QACR,QAAQ,EAAE;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAC;QACvC,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,EAAE;YACR,SAAS,EAAE;gBAAE,GAAG,EAAE,MAAM,CAAC;gBAAC,GAAG,EAAE,MAAM,CAAA;aAAE,CAAC;YACxC,SAAS,EAAE;gBAAE,GAAG,EAAE,MAAM,CAAC;gBAAC,GAAG,EAAE,MAAM,CAAA;aAAE,CAAC;SACzC,CAAC;KACH,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE;QACT,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,mBAAoB,SAAQ,OAAO;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;gBAEZ,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,cAAc,GAAG,IAAI,EACzC,eAAe,GAAE,OAAe;IAiFlC,SAAS,IAAI,OAAO;IASpB,gBAAgB,IAAI,MAAM;CAa3B"}