@blaze-cms/plugin-google-maps-fe 1.1.0-alpha-q1-2026.8 → 1.1.0-rc-eagle-3.0

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 (48) hide show
  1. package/lib/GoogleMaps/GoogleMaps.js +65 -90
  2. package/lib/GoogleMaps/GoogleMaps.js.map +1 -1
  3. package/lib/GoogleMaps/GoogleMapsFactory.js +21 -22
  4. package/lib/GoogleMaps/GoogleMapsFactory.js.map +1 -1
  5. package/lib/GoogleMaps/GoogleMapsHtml.js +9 -11
  6. package/lib/GoogleMaps/GoogleMapsHtml.js.map +1 -1
  7. package/lib/GoogleMaps/GoogleMapsRender.js +43 -37
  8. package/lib/GoogleMaps/GoogleMapsRender.js.map +1 -1
  9. package/lib/GoogleMaps/helpers/add-zoom-listener.js +5 -8
  10. package/lib/GoogleMaps/helpers/add-zoom-listener.js.map +1 -1
  11. package/lib/GoogleMaps/helpers/build-map-shapes.js +48 -48
  12. package/lib/GoogleMaps/helpers/build-map-shapes.js.map +1 -1
  13. package/lib/GoogleMaps/helpers/build-map-type-ids.js +4 -5
  14. package/lib/GoogleMaps/helpers/build-map-type-ids.js.map +1 -1
  15. package/lib/GoogleMaps/helpers/build-query.js +20 -26
  16. package/lib/GoogleMaps/helpers/build-query.js.map +1 -1
  17. package/lib/GoogleMaps/helpers/build-shapes-configs.js +84 -111
  18. package/lib/GoogleMaps/helpers/build-shapes-configs.js.map +1 -1
  19. package/lib/GoogleMaps/helpers/get-center-coordinates.js +20 -23
  20. package/lib/GoogleMaps/helpers/get-center-coordinates.js.map +1 -1
  21. package/lib/GoogleMaps/helpers/get-image-ids.js +9 -18
  22. package/lib/GoogleMaps/helpers/get-image-ids.js.map +1 -1
  23. package/lib/GoogleMaps/helpers/get-path.js +13 -16
  24. package/lib/GoogleMaps/helpers/get-path.js.map +1 -1
  25. package/lib/GoogleMaps/helpers/index.js +14 -15
  26. package/lib/GoogleMaps/helpers/index.js.map +1 -1
  27. package/lib/GoogleMaps/helpers/set-map-options.js +41 -44
  28. package/lib/GoogleMaps/helpers/set-map-options.js.map +1 -1
  29. package/lib/GoogleMaps/helpers/set-shapes.js +174 -245
  30. package/lib/GoogleMaps/helpers/set-shapes.js.map +1 -1
  31. package/lib/GoogleMaps/hooks/index.js +4 -5
  32. package/lib/GoogleMaps/hooks/index.js.map +1 -1
  33. package/lib/GoogleMaps/hooks/use-get-entity-schemas.js +14 -20
  34. package/lib/GoogleMaps/hooks/use-get-entity-schemas.js.map +1 -1
  35. package/lib/GoogleMaps/hooks/use-get-images.js +21 -22
  36. package/lib/GoogleMaps/hooks/use-get-images.js.map +1 -1
  37. package/lib/GoogleMaps/index.js +2 -3
  38. package/lib/GoogleMaps/index.js.map +1 -1
  39. package/lib/GoogleMaps/queries.js +49 -22
  40. package/lib/GoogleMaps/queries.js.map +1 -1
  41. package/lib/constants.js +35 -36
  42. package/lib/constants.js.map +1 -1
  43. package/lib/index.js +13 -43
  44. package/lib/index.js.map +1 -1
  45. package/package.json +14 -11
  46. package/CHANGELOG.md +0 -1846
  47. package/babel.config.js +0 -3
  48. package/jest.config.js +0 -3
@@ -1,39 +1,36 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.define-property.js");
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports["default"] = void 0;
9
- require("core-js/modules/es.array.filter.js");
10
- require("core-js/modules/es.array.for-each.js");
11
- require("core-js/modules/es.object.to-string.js");
12
- require("core-js/modules/web.dom-collections.for-each.js");
7
+ exports.default = void 0;
13
8
  var _lodash = _interopRequireDefault(require("lodash.isnumber"));
14
- var getCenterCoordinates = function getCenterCoordinates(mapShapes, otherProps) {
15
- var centerCoordinates = [];
16
- var centerLatitude = otherProps.centerLatitude,
17
- centerLongitude = otherProps.centerLongitude;
18
- var useDefaultCenter = centerLatitude !== 0 && centerLongitude !== 0 && (0, _lodash["default"])(centerLatitude) && (0, _lodash["default"])(centerLongitude);
9
+ const getCenterCoordinates = (mapShapes, otherProps) => {
10
+ const centerCoordinates = [];
11
+ const {
12
+ centerLatitude,
13
+ centerLongitude
14
+ } = otherProps;
15
+ const useDefaultCenter = centerLatitude !== 0 && centerLongitude !== 0 && (0, _lodash.default)(centerLatitude) && (0, _lodash.default)(centerLongitude);
19
16
  if (useDefaultCenter) return [{
20
17
  latitude: centerLatitude,
21
18
  longitude: centerLongitude
22
19
  }];
23
- var useAsCenterShapes = mapShapes.filter(function (_ref) {
24
- var useAsCenter = _ref.useAsCenter;
25
- return useAsCenter;
26
- });
27
- var shapesForCenter = useAsCenterShapes.length ? useAsCenterShapes : mapShapes;
28
- shapesForCenter.forEach(function (_ref2) {
29
- var latitude = _ref2.latitude,
30
- longitude = _ref2.longitude;
31
- if ((0, _lodash["default"])(latitude) && (0, _lodash["default"])(longitude)) centerCoordinates.push({
32
- latitude: latitude,
33
- longitude: longitude
20
+ const useAsCenterShapes = mapShapes.filter(({
21
+ useAsCenter
22
+ }) => useAsCenter);
23
+ const shapesForCenter = useAsCenterShapes.length ? useAsCenterShapes : mapShapes;
24
+ shapesForCenter.forEach(({
25
+ latitude,
26
+ longitude
27
+ }) => {
28
+ if ((0, _lodash.default)(latitude) && (0, _lodash.default)(longitude)) centerCoordinates.push({
29
+ latitude,
30
+ longitude
34
31
  });
35
32
  });
36
33
  return centerCoordinates;
37
34
  };
38
- var _default = exports["default"] = getCenterCoordinates;
35
+ var _default = exports.default = getCenterCoordinates;
39
36
  //# sourceMappingURL=get-center-coordinates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-center-coordinates.js","names":["_lodash","_interopRequireDefault","require","getCenterCoordinates","mapShapes","otherProps","centerCoordinates","centerLatitude","centerLongitude","useDefaultCenter","isNumber","latitude","longitude","useAsCenterShapes","filter","_ref","useAsCenter","shapesForCenter","length","forEach","_ref2","push","_default","exports"],"sources":["../../../src/GoogleMaps/helpers/get-center-coordinates.js"],"sourcesContent":["import isNumber from 'lodash.isnumber';\n\nconst getCenterCoordinates = (mapShapes, otherProps) => {\n const centerCoordinates = [];\n\n const { centerLatitude, centerLongitude } = otherProps;\n const useDefaultCenter =\n centerLatitude !== 0 &&\n centerLongitude !== 0 &&\n isNumber(centerLatitude) &&\n isNumber(centerLongitude);\n\n if (useDefaultCenter) return [{ latitude: centerLatitude, longitude: centerLongitude }];\n\n const useAsCenterShapes = mapShapes.filter(({ useAsCenter }) => useAsCenter);\n const shapesForCenter = useAsCenterShapes.length ? useAsCenterShapes : mapShapes;\n shapesForCenter.forEach(({ latitude, longitude }) => {\n if (isNumber(latitude) && isNumber(longitude)) centerCoordinates.push({ latitude, longitude });\n });\n\n return centerCoordinates;\n};\n\nexport default getCenterCoordinates;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAIC,SAAS,EAAEC,UAAU,EAAK;EACtD,IAAMC,iBAAiB,GAAG,EAAE;EAE5B,IAAQC,cAAc,GAAsBF,UAAU,CAA9CE,cAAc;IAAEC,eAAe,GAAKH,UAAU,CAA9BG,eAAe;EACvC,IAAMC,gBAAgB,GACpBF,cAAc,KAAK,CAAC,IACpBC,eAAe,KAAK,CAAC,IACrB,IAAAE,kBAAQ,EAACH,cAAc,CAAC,IACxB,IAAAG,kBAAQ,EAACF,eAAe,CAAC;EAE3B,IAAIC,gBAAgB,EAAE,OAAO,CAAC;IAAEE,QAAQ,EAAEJ,cAAc;IAAEK,SAAS,EAAEJ;EAAgB,CAAC,CAAC;EAEvF,IAAMK,iBAAiB,GAAGT,SAAS,CAACU,MAAM,CAAC,UAAAC,IAAA;IAAA,IAAGC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IAAA,OAAOA,WAAW;EAAA,EAAC;EAC5E,IAAMC,eAAe,GAAGJ,iBAAiB,CAACK,MAAM,GAAGL,iBAAiB,GAAGT,SAAS;EAChFa,eAAe,CAACE,OAAO,CAAC,UAAAC,KAAA,EAA6B;IAAA,IAA1BT,QAAQ,GAAAS,KAAA,CAART,QAAQ;MAAEC,SAAS,GAAAQ,KAAA,CAATR,SAAS;IAC5C,IAAI,IAAAF,kBAAQ,EAACC,QAAQ,CAAC,IAAI,IAAAD,kBAAQ,EAACE,SAAS,CAAC,EAAEN,iBAAiB,CAACe,IAAI,CAAC;MAAEV,QAAQ,EAARA,QAAQ;MAAEC,SAAS,EAATA;IAAU,CAAC,CAAC;EAChG,CAAC,CAAC;EAEF,OAAON,iBAAiB;AAC1B,CAAC;AAAC,IAAAgB,QAAA,GAAAC,OAAA,cAEapB,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"get-center-coordinates.js","names":["_lodash","_interopRequireDefault","require","getCenterCoordinates","mapShapes","otherProps","centerCoordinates","centerLatitude","centerLongitude","useDefaultCenter","isNumber","latitude","longitude","useAsCenterShapes","filter","useAsCenter","shapesForCenter","length","forEach","push","_default","exports","default"],"sources":["../../../src/GoogleMaps/helpers/get-center-coordinates.js"],"sourcesContent":["import isNumber from 'lodash.isnumber';\n\nconst getCenterCoordinates = (mapShapes, otherProps) => {\n const centerCoordinates = [];\n\n const { centerLatitude, centerLongitude } = otherProps;\n const useDefaultCenter =\n centerLatitude !== 0 &&\n centerLongitude !== 0 &&\n isNumber(centerLatitude) &&\n isNumber(centerLongitude);\n\n if (useDefaultCenter) return [{ latitude: centerLatitude, longitude: centerLongitude }];\n\n const useAsCenterShapes = mapShapes.filter(({ useAsCenter }) => useAsCenter);\n const shapesForCenter = useAsCenterShapes.length ? useAsCenterShapes : mapShapes;\n shapesForCenter.forEach(({ latitude, longitude }) => {\n if (isNumber(latitude) && isNumber(longitude)) centerCoordinates.push({ latitude, longitude });\n });\n\n return centerCoordinates;\n};\n\nexport default getCenterCoordinates;\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,MAAMC,oBAAoB,GAAGA,CAACC,SAAS,EAAEC,UAAU,KAAK;EACtD,MAAMC,iBAAiB,GAAG,EAAE;EAE5B,MAAM;IAAEC,cAAc;IAAEC;EAAgB,CAAC,GAAGH,UAAU;EACtD,MAAMI,gBAAgB,GACpBF,cAAc,KAAK,CAAC,IACpBC,eAAe,KAAK,CAAC,IACrB,IAAAE,eAAQ,EAACH,cAAc,CAAC,IACxB,IAAAG,eAAQ,EAACF,eAAe,CAAC;EAE3B,IAAIC,gBAAgB,EAAE,OAAO,CAAC;IAAEE,QAAQ,EAAEJ,cAAc;IAAEK,SAAS,EAAEJ;EAAgB,CAAC,CAAC;EAEvF,MAAMK,iBAAiB,GAAGT,SAAS,CAACU,MAAM,CAAC,CAAC;IAAEC;EAAY,CAAC,KAAKA,WAAW,CAAC;EAC5E,MAAMC,eAAe,GAAGH,iBAAiB,CAACI,MAAM,GAAGJ,iBAAiB,GAAGT,SAAS;EAChFY,eAAe,CAACE,OAAO,CAAC,CAAC;IAAEP,QAAQ;IAAEC;EAAU,CAAC,KAAK;IACnD,IAAI,IAAAF,eAAQ,EAACC,QAAQ,CAAC,IAAI,IAAAD,eAAQ,EAACE,SAAS,CAAC,EAAEN,iBAAiB,CAACa,IAAI,CAAC;MAAER,QAAQ;MAAEC;IAAU,CAAC,CAAC;EAChG,CAAC,CAAC;EAEF,OAAON,iBAAiB;AAC1B,CAAC;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEanB,oBAAoB","ignoreList":[]}
@@ -1,28 +1,19 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.define-property.js");
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
9
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
- require("core-js/modules/es.array.for-each.js");
11
- require("core-js/modules/es.array.iterator.js");
12
- require("core-js/modules/es.object.to-string.js");
13
- require("core-js/modules/es.set.js");
14
- require("core-js/modules/es.string.iterator.js");
15
- require("core-js/modules/web.dom-collections.for-each.js");
16
- require("core-js/modules/web.dom-collections.iterator.js");
17
- var getImageIds = function getImageIds(mapShapes) {
18
- var ids = [];
19
- mapShapes.forEach(function (_ref) {
20
- var shapeData = _ref.shapeData,
21
- imageId = _ref.imageId;
6
+ exports.default = void 0;
7
+ const getImageIds = mapShapes => {
8
+ const ids = [];
9
+ mapShapes.forEach(({
10
+ shapeData,
11
+ imageId
12
+ }) => {
22
13
  if (imageId) ids.push(imageId);
23
14
  if (shapeData.imageId) ids.push(shapeData.imageId);
24
15
  });
25
- return (0, _toConsumableArray2["default"])(new Set(ids));
16
+ return [...new Set(ids)];
26
17
  };
27
- var _default = exports["default"] = getImageIds;
18
+ var _default = exports.default = getImageIds;
28
19
  //# sourceMappingURL=get-image-ids.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-image-ids.js","names":["getImageIds","mapShapes","ids","forEach","_ref","shapeData","imageId","push","_toConsumableArray2","Set","_default","exports"],"sources":["../../../src/GoogleMaps/helpers/get-image-ids.js"],"sourcesContent":["const getImageIds = mapShapes => {\n const ids = [];\n mapShapes.forEach(({ shapeData, imageId }) => {\n if (imageId) ids.push(imageId);\n if (shapeData.imageId) ids.push(shapeData.imageId);\n });\n return [...new Set(ids)];\n};\n\nexport default getImageIds;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAGC,SAAS,EAAI;EAC/B,IAAMC,GAAG,GAAG,EAAE;EACdD,SAAS,CAACE,OAAO,CAAC,UAAAC,IAAA,EAA4B;IAAA,IAAzBC,SAAS,GAAAD,IAAA,CAATC,SAAS;MAAEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACrC,IAAIA,OAAO,EAAEJ,GAAG,CAACK,IAAI,CAACD,OAAO,CAAC;IAC9B,IAAID,SAAS,CAACC,OAAO,EAAEJ,GAAG,CAACK,IAAI,CAACF,SAAS,CAACC,OAAO,CAAC;EACpD,CAAC,CAAC;EACF,WAAAE,mBAAA,aAAW,IAAIC,GAAG,CAACP,GAAG,CAAC;AACzB,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEaX,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"get-image-ids.js","names":["getImageIds","mapShapes","ids","forEach","shapeData","imageId","push","Set","_default","exports","default"],"sources":["../../../src/GoogleMaps/helpers/get-image-ids.js"],"sourcesContent":["const getImageIds = mapShapes => {\n const ids = [];\n mapShapes.forEach(({ shapeData, imageId }) => {\n if (imageId) ids.push(imageId);\n if (shapeData.imageId) ids.push(shapeData.imageId);\n });\n return [...new Set(ids)];\n};\n\nexport default getImageIds;\n"],"mappings":";;;;;;AAAA,MAAMA,WAAW,GAAGC,SAAS,IAAI;EAC/B,MAAMC,GAAG,GAAG,EAAE;EACdD,SAAS,CAACE,OAAO,CAAC,CAAC;IAAEC,SAAS;IAAEC;EAAQ,CAAC,KAAK;IAC5C,IAAIA,OAAO,EAAEH,GAAG,CAACI,IAAI,CAACD,OAAO,CAAC;IAC9B,IAAID,SAAS,CAACC,OAAO,EAAEH,GAAG,CAACI,IAAI,CAACF,SAAS,CAACC,OAAO,CAAC;EACpD,CAAC,CAAC;EACF,OAAO,CAAC,GAAG,IAAIE,GAAG,CAACL,GAAG,CAAC,CAAC;AAC1B,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaV,WAAW","ignoreList":[]}
@@ -1,22 +1,19 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.define-property.js");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
- exports["default"] = void 0;
8
- require("core-js/modules/es.array.reduce.js");
9
- require("core-js/modules/es.object.to-string.js");
10
- var getPath = function getPath(paths) {
11
- return paths.reduce(function (acc, path) {
12
- var lat = path.latitude,
13
- lng = path.longitude;
14
- acc.push({
15
- lat: lat,
16
- lng: lng
17
- });
18
- return acc;
19
- }, []);
20
- };
21
- var _default = exports["default"] = getPath;
6
+ exports.default = void 0;
7
+ const getPath = paths => paths.reduce((acc, path) => {
8
+ const {
9
+ latitude: lat,
10
+ longitude: lng
11
+ } = path;
12
+ acc.push({
13
+ lat,
14
+ lng
15
+ });
16
+ return acc;
17
+ }, []);
18
+ var _default = exports.default = getPath;
22
19
  //# sourceMappingURL=get-path.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-path.js","names":["getPath","paths","reduce","acc","path","lat","latitude","lng","longitude","push","_default","exports"],"sources":["../../../src/GoogleMaps/helpers/get-path.js"],"sourcesContent":["const getPath = paths =>\n paths.reduce((acc, path) => {\n const { latitude: lat, longitude: lng } = path;\n acc.push({ lat, lng });\n return acc;\n }, []);\n\nexport default getPath;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,OAAO,GAAG,SAAVA,OAAOA,CAAGC,KAAK;EAAA,OACnBA,KAAK,CAACC,MAAM,CAAC,UAACC,GAAG,EAAEC,IAAI,EAAK;IAC1B,IAAkBC,GAAG,GAAqBD,IAAI,CAAtCE,QAAQ;MAAkBC,GAAG,GAAKH,IAAI,CAAvBI,SAAS;IAChCL,GAAG,CAACM,IAAI,CAAC;MAAEJ,GAAG,EAAHA,GAAG;MAAEE,GAAG,EAAHA;IAAI,CAAC,CAAC;IACtB,OAAOJ,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AAAA;AAAC,IAAAO,QAAA,GAAAC,OAAA,cAEMX,OAAO","ignoreList":[]}
1
+ {"version":3,"file":"get-path.js","names":["getPath","paths","reduce","acc","path","latitude","lat","longitude","lng","push","_default","exports","default"],"sources":["../../../src/GoogleMaps/helpers/get-path.js"],"sourcesContent":["const getPath = paths =>\n paths.reduce((acc, path) => {\n const { latitude: lat, longitude: lng } = path;\n acc.push({ lat, lng });\n return acc;\n }, []);\n\nexport default getPath;\n"],"mappings":";;;;;;AAAA,MAAMA,OAAO,GAAGC,KAAK,IACnBA,KAAK,CAACC,MAAM,CAAC,CAACC,GAAG,EAAEC,IAAI,KAAK;EAC1B,MAAM;IAAEC,QAAQ,EAAEC,GAAG;IAAEC,SAAS,EAAEC;EAAI,CAAC,GAAGJ,IAAI;EAC9CD,GAAG,CAACM,IAAI,CAAC;IAAEH,GAAG;IAAEE;EAAI,CAAC,CAAC;EACtB,OAAOL,GAAG;AACZ,CAAC,EAAE,EAAE,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEMZ,OAAO","ignoreList":[]}
@@ -1,50 +1,49 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.define-property.js");
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  Object.defineProperty(exports, "addZoomListener", {
9
8
  enumerable: true,
10
- get: function get() {
11
- return _addZoomListener["default"];
9
+ get: function () {
10
+ return _addZoomListener.default;
12
11
  }
13
12
  });
14
13
  Object.defineProperty(exports, "buildMapShapes", {
15
14
  enumerable: true,
16
- get: function get() {
17
- return _buildMapShapes["default"];
15
+ get: function () {
16
+ return _buildMapShapes.default;
18
17
  }
19
18
  });
20
19
  Object.defineProperty(exports, "buildQuery", {
21
20
  enumerable: true,
22
- get: function get() {
23
- return _buildQuery["default"];
21
+ get: function () {
22
+ return _buildQuery.default;
24
23
  }
25
24
  });
26
25
  Object.defineProperty(exports, "buildShapesConfig", {
27
26
  enumerable: true,
28
- get: function get() {
29
- return _buildShapesConfigs["default"];
27
+ get: function () {
28
+ return _buildShapesConfigs.default;
30
29
  }
31
30
  });
32
31
  Object.defineProperty(exports, "getCenterCoordinates", {
33
32
  enumerable: true,
34
- get: function get() {
35
- return _getCenterCoordinates["default"];
33
+ get: function () {
34
+ return _getCenterCoordinates.default;
36
35
  }
37
36
  });
38
37
  Object.defineProperty(exports, "getImageIds", {
39
38
  enumerable: true,
40
- get: function get() {
41
- return _getImageIds["default"];
39
+ get: function () {
40
+ return _getImageIds.default;
42
41
  }
43
42
  });
44
43
  Object.defineProperty(exports, "setMapOptions", {
45
44
  enumerable: true,
46
- get: function get() {
47
- return _setMapOptions["default"];
45
+ get: function () {
46
+ return _setMapOptions.default;
48
47
  }
49
48
  });
50
49
  var _addZoomListener = _interopRequireDefault(require("./add-zoom-listener"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_addZoomListener","_interopRequireDefault","require","_buildQuery","_getImageIds","_buildShapesConfigs","_setMapOptions","_getCenterCoordinates","_buildMapShapes"],"sources":["../../../src/GoogleMaps/helpers/index.js"],"sourcesContent":["import addZoomListener from './add-zoom-listener';\nimport buildQuery from './build-query';\nimport getImageIds from './get-image-ids';\nimport buildShapesConfig from './build-shapes-configs';\nimport setMapOptions from './set-map-options';\nimport getCenterCoordinates from './get-center-coordinates';\nimport buildMapShapes from './build-map-shapes';\n\nexport {\n addZoomListener,\n buildQuery,\n getImageIds,\n buildShapesConfig,\n setMapOptions,\n getCenterCoordinates,\n buildMapShapes\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,mBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,cAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,qBAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,eAAA,GAAAP,sBAAA,CAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_addZoomListener","_interopRequireDefault","require","_buildQuery","_getImageIds","_buildShapesConfigs","_setMapOptions","_getCenterCoordinates","_buildMapShapes"],"sources":["../../../src/GoogleMaps/helpers/index.js"],"sourcesContent":["import addZoomListener from './add-zoom-listener';\nimport buildQuery from './build-query';\nimport getImageIds from './get-image-ids';\nimport buildShapesConfig from './build-shapes-configs';\nimport setMapOptions from './set-map-options';\nimport getCenterCoordinates from './get-center-coordinates';\nimport buildMapShapes from './build-map-shapes';\n\nexport {\n addZoomListener,\n buildQuery,\n getImageIds,\n buildShapesConfig,\n setMapOptions,\n getCenterCoordinates,\n buildMapShapes\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,mBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,cAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,qBAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,eAAA,GAAAP,sBAAA,CAAAC,OAAA","ignoreList":[]}
@@ -1,58 +1,55 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.define-property.js");
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports["default"] = void 0;
9
- require("core-js/modules/es.array.concat.js");
10
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
7
+ exports.default = void 0;
11
8
  var _buildMapTypeIds = _interopRequireDefault(require("./build-map-type-ids"));
12
9
  var _constants = require("../../constants");
13
- var setCustomColor = function setCustomColor(featureType, color, elementType) {
14
- return color ? [{
15
- featureType: featureType,
16
- elementType: elementType || _constants.ELEMENT_GEOMETRY,
17
- stylers: [{
18
- color: color
19
- }]
20
- }] : [];
21
- };
22
- var getFeatureStyles = function getFeatureStyles(_ref) {
23
- var _ref$enableRoads = _ref.enableRoads,
24
- enableRoads = _ref$enableRoads === void 0 ? true : _ref$enableRoads,
25
- enableFeatureTransportation = _ref.enableFeatureTransportation,
26
- enableFeatureLabels = _ref.enableFeatureLabels,
27
- enableFeaturePoi = _ref.enableFeaturePoi,
28
- enableFeatureBoundaries = _ref.enableFeatureBoundaries;
29
- var customColors = [];
10
+ const setCustomColor = (featureType, color, elementType) => color ? [{
11
+ featureType,
12
+ elementType: elementType || _constants.ELEMENT_GEOMETRY,
13
+ stylers: [{
14
+ color
15
+ }]
16
+ }] : [];
17
+ const getFeatureStyles = ({
18
+ enableRoads = true,
19
+ enableFeatureTransportation,
20
+ enableFeatureLabels,
21
+ enableFeaturePoi,
22
+ enableFeatureBoundaries
23
+ }) => {
24
+ const customColors = [];
30
25
  // todo: enableRoads is a legacy option can be removed in later updates
31
- if (!enableFeatureLabels || !enableRoads) customColors.push.apply(customColors, (0, _toConsumableArray2["default"])(_constants.DISABLE_LABELS_STYLES));
32
- if (!enableFeatureBoundaries || !enableRoads) customColors.push.apply(customColors, (0, _toConsumableArray2["default"])(_constants.DISABLE_BOUNDARIES_STYLES));
33
- if (!enableFeaturePoi || !enableRoads) customColors.push.apply(customColors, (0, _toConsumableArray2["default"])(_constants.DISABLE_POI_STYLES));
26
+ if (!enableFeatureLabels || !enableRoads) customColors.push(..._constants.DISABLE_LABELS_STYLES);
27
+ if (!enableFeatureBoundaries || !enableRoads) customColors.push(..._constants.DISABLE_BOUNDARIES_STYLES);
28
+ if (!enableFeaturePoi || !enableRoads) customColors.push(..._constants.DISABLE_POI_STYLES);
34
29
  if (!enableFeatureTransportation || !enableRoads) {
35
- customColors.push.apply(customColors, (0, _toConsumableArray2["default"])(_constants.DISABLE_TRANSPORTATION_STYLES));
30
+ customColors.push(..._constants.DISABLE_TRANSPORTATION_STYLES);
36
31
  }
37
32
  return customColors;
38
33
  };
39
- var setMapOptions = function setMapOptions(otherProps) {
40
- var centerLatitude = otherProps.centerLatitude,
41
- centerLongitude = otherProps.centerLongitude,
42
- defaultZoom = otherProps.defaultZoom,
43
- enableZoom = otherProps.enableZoom,
44
- maxZoom = otherProps.maxZoom,
45
- minZoom = otherProps.minZoom,
46
- enablePan = otherProps.enablePan,
47
- enableStreetView = otherProps.enableStreetView,
48
- enableFullScreen = otherProps.enableFullScreen,
49
- enableSatelliteView = otherProps.enableSatelliteView,
50
- enableTerrainScreen = otherProps.enableTerrainScreen,
51
- waterColor = otherProps.waterColor,
52
- landscapeColor = otherProps.landscapeColor,
53
- landscapeColorAll = otherProps.landscapeColorAll,
54
- mapType = otherProps.mapType;
55
- var customColors = [].concat((0, _toConsumableArray2["default"])(getFeatureStyles(otherProps)), (0, _toConsumableArray2["default"])(setCustomColor(_constants.FEATURE_TYPE_MAP.waterColor, waterColor)), (0, _toConsumableArray2["default"])(setCustomColor(_constants.FEATURE_TYPE_MAP.landscapeColor, landscapeColor)), (0, _toConsumableArray2["default"])(setCustomColor(_constants.FEATURE_TYPE_MAP.landscapeColor, landscapeColorAll, _constants.ALL)));
34
+ const setMapOptions = otherProps => {
35
+ const {
36
+ centerLatitude,
37
+ centerLongitude,
38
+ defaultZoom,
39
+ enableZoom,
40
+ maxZoom,
41
+ minZoom,
42
+ enablePan,
43
+ enableStreetView,
44
+ enableFullScreen,
45
+ enableSatelliteView,
46
+ enableTerrainScreen,
47
+ waterColor,
48
+ landscapeColor,
49
+ landscapeColorAll,
50
+ mapType
51
+ } = otherProps;
52
+ const customColors = [...getFeatureStyles(otherProps), ...setCustomColor(_constants.FEATURE_TYPE_MAP.waterColor, waterColor), ...setCustomColor(_constants.FEATURE_TYPE_MAP.landscapeColor, landscapeColor), ...setCustomColor(_constants.FEATURE_TYPE_MAP.landscapeColor, landscapeColorAll, _constants.ALL)];
56
53
  return {
57
54
  center: {
58
55
  lat: centerLatitude,
@@ -69,11 +66,11 @@ var setMapOptions = function setMapOptions(otherProps) {
69
66
  fullscreenControl: enableFullScreen,
70
67
  mapTypeControl: enableSatelliteView || enableTerrainScreen,
71
68
  mapTypeControlOptions: {
72
- mapTypeIds: (0, _buildMapTypeIds["default"])(enableSatelliteView, enableTerrainScreen)
69
+ mapTypeIds: (0, _buildMapTypeIds.default)(enableSatelliteView, enableTerrainScreen)
73
70
  },
74
71
  mapTypeId: !mapType || mapType === _constants.DEFAULT_SELECT_VALUE ? undefined : mapType,
75
72
  styles: customColors
76
73
  };
77
74
  };
78
- var _default = exports["default"] = setMapOptions;
75
+ var _default = exports.default = setMapOptions;
79
76
  //# sourceMappingURL=set-map-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"set-map-options.js","names":["_buildMapTypeIds","_interopRequireDefault","require","_constants","setCustomColor","featureType","color","elementType","ELEMENT_GEOMETRY","stylers","getFeatureStyles","_ref","_ref$enableRoads","enableRoads","enableFeatureTransportation","enableFeatureLabels","enableFeaturePoi","enableFeatureBoundaries","customColors","push","apply","_toConsumableArray2","DISABLE_LABELS_STYLES","DISABLE_BOUNDARIES_STYLES","DISABLE_POI_STYLES","DISABLE_TRANSPORTATION_STYLES","setMapOptions","otherProps","centerLatitude","centerLongitude","defaultZoom","enableZoom","maxZoom","minZoom","enablePan","enableStreetView","enableFullScreen","enableSatelliteView","enableTerrainScreen","waterColor","landscapeColor","landscapeColorAll","mapType","concat","FEATURE_TYPE_MAP","ALL","center","lat","lng","zoom","gestureHandling","COOPERATIVE","NONE","panControl","zoomControl","disableDoubleClickZoom","streetViewControl","fullscreenControl","mapTypeControl","mapTypeControlOptions","mapTypeIds","buildMapTypeIds","mapTypeId","DEFAULT_SELECT_VALUE","undefined","styles","_default","exports"],"sources":["../../../src/GoogleMaps/helpers/set-map-options.js"],"sourcesContent":["import buildMapTypeIds from './build-map-type-ids';\nimport {\n COOPERATIVE,\n NONE,\n ELEMENT_GEOMETRY,\n FEATURE_TYPE_MAP,\n ALL,\n DISABLE_TRANSPORTATION_STYLES,\n DISABLE_POI_STYLES,\n DISABLE_BOUNDARIES_STYLES,\n DISABLE_LABELS_STYLES,\n DEFAULT_SELECT_VALUE\n} from '../../constants';\n\nconst setCustomColor = (featureType, color, elementType) =>\n color\n ? [\n {\n featureType,\n elementType: elementType || ELEMENT_GEOMETRY,\n stylers: [\n {\n color\n }\n ]\n }\n ]\n : [];\n\nconst getFeatureStyles = ({\n enableRoads = true,\n enableFeatureTransportation,\n enableFeatureLabels,\n enableFeaturePoi,\n enableFeatureBoundaries\n}) => {\n const customColors = [];\n // todo: enableRoads is a legacy option can be removed in later updates\n if (!enableFeatureLabels || !enableRoads) customColors.push(...DISABLE_LABELS_STYLES);\n if (!enableFeatureBoundaries || !enableRoads) customColors.push(...DISABLE_BOUNDARIES_STYLES);\n if (!enableFeaturePoi || !enableRoads) customColors.push(...DISABLE_POI_STYLES);\n if (!enableFeatureTransportation || !enableRoads) {\n customColors.push(...DISABLE_TRANSPORTATION_STYLES);\n }\n\n return customColors;\n};\n\nconst setMapOptions = otherProps => {\n const {\n centerLatitude,\n centerLongitude,\n defaultZoom,\n enableZoom,\n maxZoom,\n minZoom,\n enablePan,\n enableStreetView,\n enableFullScreen,\n enableSatelliteView,\n enableTerrainScreen,\n waterColor,\n landscapeColor,\n landscapeColorAll,\n mapType\n } = otherProps;\n\n const customColors = [\n ...getFeatureStyles(otherProps),\n ...setCustomColor(FEATURE_TYPE_MAP.waterColor, waterColor),\n ...setCustomColor(FEATURE_TYPE_MAP.landscapeColor, landscapeColor),\n ...setCustomColor(FEATURE_TYPE_MAP.landscapeColor, landscapeColorAll, ALL)\n ];\n\n return {\n center: { lat: centerLatitude, lng: centerLongitude },\n zoom: defaultZoom,\n maxZoom: enableZoom ? maxZoom : defaultZoom,\n minZoom: enableZoom ? minZoom : defaultZoom,\n gestureHandling: enablePan || enableZoom ? COOPERATIVE : NONE,\n panControl: enablePan,\n zoomControl: enableZoom && minZoom !== maxZoom,\n disableDoubleClickZoom: !enableZoom,\n streetViewControl: enableStreetView,\n fullscreenControl: enableFullScreen,\n mapTypeControl: enableSatelliteView || enableTerrainScreen,\n mapTypeControlOptions: {\n mapTypeIds: buildMapTypeIds(enableSatelliteView, enableTerrainScreen)\n },\n mapTypeId: !mapType || mapType === DEFAULT_SELECT_VALUE ? undefined : mapType,\n styles: customColors\n };\n};\n\nexport default setMapOptions;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAaA,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,WAAW,EAAEC,KAAK,EAAEC,WAAW;EAAA,OACrDD,KAAK,GACD,CACE;IACED,WAAW,EAAXA,WAAW;IACXE,WAAW,EAAEA,WAAW,IAAIC,2BAAgB;IAC5CC,OAAO,EAAE,CACP;MACEH,KAAK,EAALA;IACF,CAAC;EAEL,CAAC,CACF,GACD,EAAE;AAAA;AAER,IAAMI,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAMhB;EAAA,IAAAC,gBAAA,GAAAD,IAAA,CALJE,WAAW;IAAXA,WAAW,GAAAD,gBAAA,cAAG,IAAI,GAAAA,gBAAA;IAClBE,2BAA2B,GAAAH,IAAA,CAA3BG,2BAA2B;IAC3BC,mBAAmB,GAAAJ,IAAA,CAAnBI,mBAAmB;IACnBC,gBAAgB,GAAAL,IAAA,CAAhBK,gBAAgB;IAChBC,uBAAuB,GAAAN,IAAA,CAAvBM,uBAAuB;EAEvB,IAAMC,YAAY,GAAG,EAAE;EACvB;EACA,IAAI,CAACH,mBAAmB,IAAI,CAACF,WAAW,EAAEK,YAAY,CAACC,IAAI,CAAAC,KAAA,CAAjBF,YAAY,MAAAG,mBAAA,aAASC,gCAAqB,EAAC;EACrF,IAAI,CAACL,uBAAuB,IAAI,CAACJ,WAAW,EAAEK,YAAY,CAACC,IAAI,CAAAC,KAAA,CAAjBF,YAAY,MAAAG,mBAAA,aAASE,oCAAyB,EAAC;EAC7F,IAAI,CAACP,gBAAgB,IAAI,CAACH,WAAW,EAAEK,YAAY,CA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B,EAAEI,cAAG,CAAC,EAC3E;EAED,OAAO;IACLC,MAAM,EAAE;MAAEC,GAAG,EAAEnB,cAAc;MAAEoB,GAAG,EAAEnB;IAAgB,CAAC;IACrDoB,IAAI,EAAEnB,WAAW;IACjBE,OAAO,EAAED,UAAU,GAAGC,OAAO,GAAGF,WAAW;IAC3CG,OAAO,EAAEF,UAAU,GAAGE,OAAO,GAAGH,WAAW;IAC3CoB,eAAe,EAAEhB,SAAS,IAAIH,UAAU,GAAGoB,sBAAW,GAAGC,eAAI;IAC7DC,UAAU,EAAEnB,SAAS;IACrBoB,WAAW,EAAEvB,UAAU,IAAIE,OAAO,KAAKD,OAAO;IAC9CuB,sBAAsB,EAAE,CAACxB,UAAU;IACnCyB,iBAAiB,EAAErB,gBAAgB;IACnCsB,iBAAiB,EAAErB,gBAAgB;IACnCsB,cAAc,EAAErB,mBAAmB,IAAIC,mBAAmB;IAC1DqB,qBAAqB,EAAE;MACrBC,UAAU,EAAE,IAAAC,2BAAe,EAACxB,mBAAmB,EAAEC,mBAAmB;IACtE,CAAC;IACDwB,SAAS,EAAE,CAACpB,OAAO,IAAIA,OAAO,KAAKqB,+BAAoB,GAAGC,SAAS,GAAGtB,OAAO;IAC7EuB,MAAM,EAAE/C;EACV,CAAC;AACH,CAAC;AAAC,IAAAgD,QAAA,GAAAC,OAAA,cAEazC,aAAa","ignoreList":[]}
1
+ {"version":3,"file":"set-map-options.js","names":["_buildMapTypeIds","_interopRequireDefault","require","_constants","setCustomColor","featureType","color","elementType","ELEMENT_GEOMETRY","stylers","getFeatureStyles","enableRoads","enableFeatureTransportation","enableFeatureLabels","enableFeaturePoi","enableFeatureBoundaries","customColors","push","DISABLE_LABELS_STYLES","DISABLE_BOUNDARIES_STYLES","DISABLE_POI_STYLES","DISABLE_TRANSPORTATION_STYLES","setMapOptions","otherProps","centerLatitude","centerLongitude","defaultZoom","enableZoom","maxZoom","minZoom","enablePan","enableStreetView","enableFullScreen","enableSatelliteView","enableTerrainScreen","waterColor","landscapeColor","landscapeColorAll","mapType","FEATURE_TYPE_MAP","ALL","center","lat","lng","zoom","gestureHandling","COOPERATIVE","NONE","panControl","zoomControl","disableDoubleClickZoom","streetViewControl","fullscreenControl","mapTypeControl","mapTypeControlOptions","mapTypeIds","buildMapTypeIds","mapTypeId","DEFAULT_SELECT_VALUE","undefined","styles","_default","exports","default"],"sources":["../../../src/GoogleMaps/helpers/set-map-options.js"],"sourcesContent":["import buildMapTypeIds from './build-map-type-ids';\nimport {\n COOPERATIVE,\n NONE,\n ELEMENT_GEOMETRY,\n FEATURE_TYPE_MAP,\n ALL,\n DISABLE_TRANSPORTATION_STYLES,\n DISABLE_POI_STYLES,\n DISABLE_BOUNDARIES_STYLES,\n DISABLE_LABELS_STYLES,\n DEFAULT_SELECT_VALUE\n} from '../../constants';\n\nconst setCustomColor = (featureType, color, elementType) =>\n color\n ? [\n {\n featureType,\n elementType: elementType || ELEMENT_GEOMETRY,\n stylers: [\n {\n color\n }\n ]\n }\n ]\n : [];\n\nconst getFeatureStyles = ({\n enableRoads = true,\n enableFeatureTransportation,\n enableFeatureLabels,\n enableFeaturePoi,\n enableFeatureBoundaries\n}) => {\n const customColors = [];\n // todo: enableRoads is a legacy option can be removed in later updates\n if (!enableFeatureLabels || !enableRoads) customColors.push(...DISABLE_LABELS_STYLES);\n if (!enableFeatureBoundaries || !enableRoads) customColors.push(...DISABLE_BOUNDARIES_STYLES);\n if (!enableFeaturePoi || !enableRoads) customColors.push(...DISABLE_POI_STYLES);\n if (!enableFeatureTransportation || !enableRoads) {\n customColors.push(...DISABLE_TRANSPORTATION_STYLES);\n }\n\n return customColors;\n};\n\nconst setMapOptions = otherProps => {\n const {\n centerLatitude,\n centerLongitude,\n defaultZoom,\n enableZoom,\n maxZoom,\n minZoom,\n enablePan,\n enableStreetView,\n enableFullScreen,\n enableSatelliteView,\n enableTerrainScreen,\n waterColor,\n landscapeColor,\n landscapeColorAll,\n mapType\n } = otherProps;\n\n const customColors = [\n ...getFeatureStyles(otherProps),\n ...setCustomColor(FEATURE_TYPE_MAP.waterColor, waterColor),\n ...setCustomColor(FEATURE_TYPE_MAP.landscapeColor, landscapeColor),\n ...setCustomColor(FEATURE_TYPE_MAP.landscapeColor, landscapeColorAll, ALL)\n ];\n\n return {\n center: { lat: centerLatitude, lng: centerLongitude },\n zoom: defaultZoom,\n maxZoom: enableZoom ? maxZoom : defaultZoom,\n minZoom: enableZoom ? minZoom : defaultZoom,\n gestureHandling: enablePan || enableZoom ? COOPERATIVE : NONE,\n panControl: enablePan,\n zoomControl: enableZoom && minZoom !== maxZoom,\n disableDoubleClickZoom: !enableZoom,\n streetViewControl: enableStreetView,\n fullscreenControl: enableFullScreen,\n mapTypeControl: enableSatelliteView || enableTerrainScreen,\n mapTypeControlOptions: {\n mapTypeIds: buildMapTypeIds(enableSatelliteView, enableTerrainScreen)\n },\n mapTypeId: !mapType || mapType === DEFAULT_SELECT_VALUE ? undefined : mapType,\n styles: customColors\n };\n};\n\nexport default setMapOptions;\n"],"mappings":";;;;;;;AAAA,IAAAA,gBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAaA,MAAME,cAAc,GAAGA,CAACC,WAAW,EAAEC,KAAK,EAAEC,WAAW,KACrDD,KAAK,GACD,CACE;EACED,WAAW;EACXE,WAAW,EAAEA,WAAW,IAAIC,2BAAgB;EAC5CC,OAAO,EAAE,CACP;IACEH;EACF,CAAC;AAEL,CAAC,CACF,GACD,EAAE;AAER,MAAMI,gBAAgB,GAAGA,CAAC;EACxBC,WAAW,GAAG,IAAI;EAClBC,2BAA2B;EAC3BC,mBAAmB;EACnBC,gBAAgB;EAChBC;AACF,CAAC,KAAK;EACJ,MAAMC,YAAY,GAAG,EAAE;EACvB;EACA,IAAI,CAACH,mBAAmB,IAAI,CAACF,WAAW,EAAEK,YAAY,CAACC,IAAI,CAAC,GAAGC,gCAAqB,CAAC;EACrF,IAAI,CAACH,uBAAuB,IAAI,CAAC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