@heycar/heycars-map 0.7.8 → 0.7.11

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 (157) hide show
  1. package/README.md +306 -60
  2. package/dist/index.cjs +521 -113
  3. package/dist/index.js +523 -115
  4. package/dist/{Demo → src/Demo}/DemoBusinessTaxiService.d.ts +1 -1
  5. package/dist/{api → src/api}/contants.d.ts +2 -0
  6. package/dist/src/business-components/GreenZone/GreenZone.d.ts +8 -0
  7. package/dist/src/business-components/GreenZone/index.d.ts +1 -0
  8. package/dist/{business-components → src/business-components}/PassengerCircle/PassengerCircle.d.ts +8 -8
  9. package/dist/{business-components → src/business-components}/PlaceCircle/PlaceCircle.css.d.ts +2 -0
  10. package/dist/{business-components → src/business-components}/StartEndPoint/StartEndPoint.d.ts +8 -8
  11. package/dist/{business-components → src/business-components}/TaxiCar/TaxiCar.d.ts +8 -8
  12. package/dist/src/components/AmapPolygon/AmapPolygon.d.ts +7 -0
  13. package/dist/{hooks → src/hooks}/useMapFitView.d.ts +1 -1
  14. package/dist/{hooks → src/hooks}/useMapRecomendPlace.d.ts +18 -9
  15. package/dist/{hooks-business → src/hooks-business}/useBusinessQuotingMap.d.ts +1 -1
  16. package/dist/{hooks-business → src/hooks-business}/useBusinessRecomendPlaceMap.d.ts +7 -1
  17. package/dist/{hooks-business → src/hooks-business}/useBusinessTaxiServiceMap.d.ts +1 -1
  18. package/dist/{index.d.ts → src/index.d.ts} +1 -0
  19. package/dist/{types → src/types}/interface.d.ts +9 -0
  20. package/dist/src/types/mapHelper.d.ts +10 -0
  21. package/dist/{types → src/types}/wx.d.ts +9 -0
  22. package/dist/{utils → src/utils}/log.d.ts +1 -0
  23. package/dist/src/utils/patchMiniprogram.d.ts +4 -0
  24. package/dist/style.css +9 -0
  25. package/package.json +1 -1
  26. package/todo.md +1 -0
  27. package/dist/components/AmapPolygon/AmapPolygon.d.ts +0 -2
  28. package/dist/types/mapHelper.d.ts +0 -3
  29. /package/dist/{App.d.ts → src/App.d.ts} +0 -0
  30. /package/dist/{Demo → src/Demo}/Demo.css.d.ts +0 -0
  31. /package/dist/{Demo → src/Demo}/Demo.d.ts +0 -0
  32. /package/dist/{Demo → src/Demo}/DemoBusinessQuoting.d.ts +0 -0
  33. /package/dist/{Demo → src/Demo}/DemoBusinessRecomendPlace.d.ts +0 -0
  34. /package/dist/{Demo → src/Demo}/DemoBusinessTaxiEnd.d.ts +0 -0
  35. /package/dist/{api → src/api}/driving.d.ts +0 -0
  36. /package/dist/{api → src/api}/geocoder.d.ts +0 -0
  37. /package/dist/{api → src/api}/geometry.d.ts +0 -0
  38. /package/dist/{api → src/api}/place.d.ts +0 -0
  39. /package/dist/{business-components → src/business-components}/AbsoluteAddressBox/AbsoluteAddressBox.css.d.ts +0 -0
  40. /package/dist/{business-components → src/business-components}/AbsoluteAddressBox/AbsoluteAddressBox.d.ts +0 -0
  41. /package/dist/{business-components → src/business-components}/AbsoluteAddressBox/index.d.ts +0 -0
  42. /package/dist/{business-components → src/business-components}/AddressBox/AddressBox.css.d.ts +0 -0
  43. /package/dist/{business-components → src/business-components}/AddressBox/AddressBox.d.ts +0 -0
  44. /package/dist/{business-components → src/business-components}/AddressBox/index.d.ts +0 -0
  45. /package/dist/{business-components → src/business-components}/AddressLocator/AddressLocator.css.d.ts +0 -0
  46. /package/dist/{business-components → src/business-components}/AddressLocator/AddressLocator.d.ts +0 -0
  47. /package/dist/{business-components → src/business-components}/AddressLocator/index.d.ts +0 -0
  48. /package/dist/{business-components → src/business-components}/BusinessQuotingMap/BusinessQuotingMap.d.ts +0 -0
  49. /package/dist/{business-components → src/business-components}/BusinessQuotingMap/index.d.ts +0 -0
  50. /package/dist/{business-components → src/business-components}/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +0 -0
  51. /package/dist/{business-components → src/business-components}/BusinessRecomendPlaceMap/index.d.ts +0 -0
  52. /package/dist/{business-components → src/business-components}/BusinessRecomendPlaceMap/useFirstWorkflowRecomendLoading.d.ts +0 -0
  53. /package/dist/{business-components → src/business-components}/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +0 -0
  54. /package/dist/{business-components → src/business-components}/BusinessTaxiEndMap/index.d.ts +0 -0
  55. /package/dist/{business-components → src/business-components}/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +0 -0
  56. /package/dist/{business-components → src/business-components}/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +0 -0
  57. /package/dist/{business-components → src/business-components}/BusinessTaxiServiceMap/index.d.ts +0 -0
  58. /package/dist/{business-components → src/business-components}/DrivingLine/DrivingLine.css.d.ts +0 -0
  59. /package/dist/{business-components → src/business-components}/DrivingLine/DrivingLine.d.ts +0 -0
  60. /package/dist/{business-components → src/business-components}/DrivingLine/index.d.ts +0 -0
  61. /package/dist/{business-components → src/business-components}/DrivingRoute/DrivingRoute.d.ts +0 -0
  62. /package/dist/{business-components → src/business-components}/DrivingRoute/index.d.ts +0 -0
  63. /package/dist/{business-components → src/business-components}/FitView/FitView.d.ts +0 -0
  64. /package/dist/{business-components → src/business-components}/FitView/index.d.ts +0 -0
  65. /package/dist/{business-components → src/business-components}/PassengerCircle/PassengerCircle.css.d.ts +0 -0
  66. /package/dist/{business-components → src/business-components}/PassengerCircle/index.d.ts +0 -0
  67. /package/dist/{business-components → src/business-components}/PickupPoints/PickupPoints.d.ts +0 -0
  68. /package/dist/{business-components → src/business-components}/PickupPoints/index.d.ts +0 -0
  69. /package/dist/{business-components → src/business-components}/PlaceCircle/PlaceCircle.d.ts +0 -0
  70. /package/dist/{business-components → src/business-components}/PlaceCircle/index.d.ts +0 -0
  71. /package/dist/{business-components → src/business-components}/StartEndPoint/StartEndPoint.css.d.ts +0 -0
  72. /package/dist/{business-components → src/business-components}/StartEndPoint/index.d.ts +0 -0
  73. /package/dist/{business-components → src/business-components}/TaxiCar/TaxiCar.css.d.ts +0 -0
  74. /package/dist/{business-components → src/business-components}/TaxiCar/index.d.ts +0 -0
  75. /package/dist/{business-components → src/business-components}/WalkingLine/WalkingLine.d.ts +0 -0
  76. /package/dist/{business-components → src/business-components}/WalkingLine/index.d.ts +0 -0
  77. /package/dist/{business-components → src/business-components}/WalkingRoute/WalkingRoute.d.ts +0 -0
  78. /package/dist/{business-components → src/business-components}/WalkingRoute/index.d.ts +0 -0
  79. /package/dist/{business-components → src/business-components}/WaveCircle/WaveCircle.css.d.ts +0 -0
  80. /package/dist/{business-components → src/business-components}/WaveCircle/WaveCircle.d.ts +0 -0
  81. /package/dist/{business-components → src/business-components}/WaveCircle/index.d.ts +0 -0
  82. /package/dist/{components → src/components}/Amap/Amap.css.d.ts +0 -0
  83. /package/dist/{components → src/components}/Amap/Amap.d.ts +0 -0
  84. /package/dist/{components → src/components}/Amap/index.d.ts +0 -0
  85. /package/dist/{components → src/components}/AmapInfoWindow/AmapInfoWindow.d.ts +0 -0
  86. /package/dist/{components → src/components}/AmapInfoWindow/index.d.ts +0 -0
  87. /package/dist/{components → src/components}/AmapLoader/AmapLoader.d.ts +0 -0
  88. /package/dist/{components → src/components}/AmapLoader/index.d.ts +0 -0
  89. /package/dist/{components → src/components}/AmapMarker/AmapMarker.d.ts +0 -0
  90. /package/dist/{components → src/components}/AmapMarker/index.d.ts +0 -0
  91. /package/dist/{components → src/components}/AmapPolygon/index.d.ts +0 -0
  92. /package/dist/{components → src/components}/AmapPolyline/AmapPolyline.d.ts +0 -0
  93. /package/dist/{components → src/components}/AmapPolyline/index.d.ts +0 -0
  94. /package/dist/{components → src/components}/AmapText/AmapText.d.ts +0 -0
  95. /package/dist/{components → src/components}/AmapText/index.d.ts +0 -0
  96. /package/dist/{components → src/components}/Gmap/Gmap.css.d.ts +0 -0
  97. /package/dist/{components → src/components}/Gmap/Gmap.d.ts +0 -0
  98. /package/dist/{components → src/components}/Gmap/index.d.ts +0 -0
  99. /package/dist/{components → src/components}/GmapAdvancedMarkerView/GmapAdvancedMarkerView.d.ts +0 -0
  100. /package/dist/{components → src/components}/GmapAdvancedMarkerView/index.d.ts +0 -0
  101. /package/dist/{components → src/components}/GmapInfoWindow/GmapInfoWindow.d.ts +0 -0
  102. /package/dist/{components → src/components}/GmapInfoWindow/index.d.ts +0 -0
  103. /package/dist/{components → src/components}/GmapLoader/GmapLoader.d.ts +0 -0
  104. /package/dist/{components → src/components}/GmapLoader/index.d.ts +0 -0
  105. /package/dist/{components → src/components}/GmapMarker/GmapMarker.d.ts +0 -0
  106. /package/dist/{components → src/components}/GmapMarker/index.d.ts +0 -0
  107. /package/dist/{components → src/components}/GmapPolygon/GmapPolygon.d.ts +0 -0
  108. /package/dist/{components → src/components}/GmapPolygon/index.d.ts +0 -0
  109. /package/dist/{components → src/components}/GmapPolyline/GmapPolyline.d.ts +0 -0
  110. /package/dist/{components → src/components}/GmapPolyline/index.d.ts +0 -0
  111. /package/dist/{components → src/components}/Loading/Loading.css.d.ts +0 -0
  112. /package/dist/{components → src/components}/Loading/Loading.d.ts +0 -0
  113. /package/dist/{components → src/components}/Loading/index.d.ts +0 -0
  114. /package/dist/{components → src/components}/MapProvider/MapProvider.d.ts +0 -0
  115. /package/dist/{components → src/components}/MapProvider/index.d.ts +0 -0
  116. /package/dist/{components → src/components}/MapZoom/MapZoom.d.ts +0 -0
  117. /package/dist/{components → src/components}/MapZoom/index.d.ts +0 -0
  118. /package/dist/{hooks → src/hooks}/useDeviceOrientation.d.ts +0 -0
  119. /package/dist/{hooks → src/hooks}/useDrivingRoute.d.ts +0 -0
  120. /package/dist/{hooks → src/hooks}/useDrivingTrackCorrection.d.ts +0 -0
  121. /package/dist/{hooks → src/hooks}/useGeoLocation.d.ts +0 -0
  122. /package/dist/{hooks → src/hooks}/useHeycarMap.d.ts +0 -0
  123. /package/dist/{hooks → src/hooks}/useMap.d.ts +0 -0
  124. /package/dist/{hooks → src/hooks}/useMapAngle.d.ts +0 -0
  125. /package/dist/{hooks → src/hooks}/useMapDrag.d.ts +0 -0
  126. /package/dist/{hooks → src/hooks}/useMapEventSource.d.ts +0 -0
  127. /package/dist/{hooks → src/hooks}/useMapGCJ02.d.ts +0 -0
  128. /package/dist/{hooks → src/hooks}/useMapGeometry.d.ts +0 -0
  129. /package/dist/{hooks → src/hooks}/useMapGestureZoomCenter.d.ts +0 -0
  130. /package/dist/{hooks → src/hooks}/useMapInChina.d.ts +0 -0
  131. /package/dist/{hooks → src/hooks}/useMapLngLatToVw.d.ts +0 -0
  132. /package/dist/{hooks → src/hooks}/useMapLoader.d.ts +0 -0
  133. /package/dist/{hooks → src/hooks}/useMapPlace.d.ts +0 -0
  134. /package/dist/{hooks → src/hooks}/useMapSupplier.d.ts +0 -0
  135. /package/dist/{hooks → src/hooks}/useMapTouchStartCenter.d.ts +0 -0
  136. /package/dist/{hooks → src/hooks}/useMapWheelZoomCenter.d.ts +0 -0
  137. /package/dist/{hooks → src/hooks}/useMapZoom.d.ts +0 -0
  138. /package/dist/{hooks → src/hooks}/useOverlay.d.ts +0 -0
  139. /package/dist/{hooks → src/hooks}/usePlacesLabelDirection.d.ts +0 -0
  140. /package/dist/{hooks → src/hooks}/useResizeObserver.d.ts +0 -0
  141. /package/dist/{hooks → src/hooks}/useUdate.d.ts +0 -0
  142. /package/dist/{hooks → src/hooks}/useVisibilityState.d.ts +0 -0
  143. /package/dist/{hooks → src/hooks}/useWaitTimer.d.ts +0 -0
  144. /package/dist/{hooks → src/hooks}/useWalkingRoute.d.ts +0 -0
  145. /package/dist/{hooks-business → src/hooks-business}/useBusinessAlarm.d.ts +0 -0
  146. /package/dist/{main.d.ts → src/main.d.ts} +0 -0
  147. /package/dist/{types → src/types}/amap/marker.d.ts +0 -0
  148. /package/dist/{types → src/types}/helper.d.ts +0 -0
  149. /package/dist/{utils → src/utils}/SingleGeoWatch.d.ts +0 -0
  150. /package/dist/{utils → src/utils}/compare.d.ts +0 -0
  151. /package/dist/{utils → src/utils}/compatibleWatchPosition.d.ts +0 -0
  152. /package/dist/{utils → src/utils}/dom.d.ts +0 -0
  153. /package/dist/{utils → src/utils}/easeAnimate.d.ts +0 -0
  154. /package/dist/{utils → src/utils}/helper.d.ts +0 -0
  155. /package/dist/{utils → src/utils}/platform.d.ts +0 -0
  156. /package/dist/{utils → src/utils}/transform.d.ts +0 -0
  157. /package/dist/{utils → src/utils}/waitQueue.d.ts +0 -0
package/dist/index.js CHANGED
@@ -6,6 +6,114 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  import Vue, { defineComponent, h, computed, inject, provide, watch, onMounted, onUnmounted, watchPostEffect, shallowRef, ref, watchEffect, reactive, toRefs, toRef } from "vue";
8
8
  const style = "";
9
+ const name = "@heycar/heycars-map";
10
+ const version = "0.7.11";
11
+ const type = "module";
12
+ const scripts = {
13
+ dev: "vite -c vite.config.dev.ts",
14
+ "dev:lib": 'concurrently "vite build -c vite.config.dev.lib.ts --watch --emptyOutDir false" "tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration --watch"',
15
+ build: "rm -rf dist && vite build && tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration",
16
+ lint: "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --report-unused-disable-directives --max-warnings 0"
17
+ };
18
+ const types = "./dist/index.d.ts";
19
+ const module = "./dist/index.js";
20
+ const main = "./dist/index.cjs";
21
+ const exports = {
22
+ ".": {
23
+ types: "./dist/index.d.ts",
24
+ "import": "./dist/index.js",
25
+ require: "./dist/index.cjs"
26
+ },
27
+ "./dist/style.css": {
28
+ "import": "./dist/style.css",
29
+ require: "./dist/style.css"
30
+ }
31
+ };
32
+ const dependencies = {
33
+ "@amap/amap-jsapi-loader": "^1.0.1",
34
+ "@amap/amap-jsapi-types": "^0.0.13",
35
+ "@googlemaps/js-api-loader": "^1.15.1",
36
+ "@googlemaps/typescript-guards": "^2.0.3",
37
+ "@use-gesture/vanilla": "^10.2.26",
38
+ "fast-equals": "^3.0.3",
39
+ "lodash-es": "^4.17.21",
40
+ "vue-demi": "^0.13.11"
41
+ };
42
+ const peerDependencies = {
43
+ "@vue/composition-api": "^1.0.0-rc.1",
44
+ vue: "^2.7.0 || >=3.0.0"
45
+ };
46
+ const peerDependenciesMeta = {
47
+ "@vue/composition-api": {
48
+ optional: true
49
+ }
50
+ };
51
+ const devDependencies = {
52
+ "@types/google.maps": "^3.52.0",
53
+ "@types/lodash-es": "^4.17.6",
54
+ "@typescript-eslint/eslint-plugin": "^5.52.0",
55
+ "@typescript-eslint/parser": "^5.52.0",
56
+ "@vanilla-extract/css": "^1.9.5",
57
+ "@vanilla-extract/esbuild-plugin": "^2.2.1",
58
+ "@vanilla-extract/recipes": "^0.3.0",
59
+ "@vanilla-extract/vite-plugin": "^3.8.0",
60
+ "@vitejs/plugin-vue": "^4.0.0",
61
+ "@vitejs/plugin-vue-jsx": "^3.0.0",
62
+ "@vitejs/plugin-vue2": "^1.1.2",
63
+ "@vitejs/plugin-vue2-jsx": "^1.0.2",
64
+ "@vue/eslint-config-typescript": "^11.0.2",
65
+ concurrently: "^7.6.0",
66
+ eslint: "^8.34.0",
67
+ "eslint-config-prettier": "^8.6.0",
68
+ "eslint-plugin-import": "^2.27.5",
69
+ "eslint-plugin-prettier": "^4.2.1",
70
+ "eslint-plugin-vue": "^9.9.0",
71
+ prettier: "^2.8.4",
72
+ typescript: "^4.9.3",
73
+ "unplugin-vue-jsx": "^0.1.2",
74
+ vite: "^4.1.0",
75
+ "vite-plugin-checker": "^0.5.6",
76
+ "vite-plugin-eslint": "^1.8.1",
77
+ vue: "2.7.14",
78
+ "vue-tsc": "^1.0.24"
79
+ };
80
+ const publishConfig = {
81
+ registry: "https://registry.npmjs.com"
82
+ };
83
+ const packageManager = "pnpm@7.18.1";
84
+ const engines = {
85
+ node: ">=16.0.0"
86
+ };
87
+ const pkg = {
88
+ name,
89
+ version,
90
+ type,
91
+ scripts,
92
+ types,
93
+ module,
94
+ main,
95
+ exports,
96
+ dependencies,
97
+ peerDependencies,
98
+ peerDependenciesMeta,
99
+ devDependencies,
100
+ publishConfig,
101
+ packageManager,
102
+ engines
103
+ };
104
+ const availableLogKeys = /* @__PURE__ */ new Set();
105
+ const isEnableLog = (name2) => {
106
+ const searchParam = new URLSearchParams(location.search);
107
+ return searchParam.has(`log-${name2}`);
108
+ };
109
+ window.availableLogKeys = availableLogKeys;
110
+ const spaceLog = (logKey, ...args) => {
111
+ availableLogKeys.add(logKey);
112
+ if (!isEnableLog(logKey))
113
+ return;
114
+ console.log(logKey, ...args);
115
+ };
116
+ const logVersion = () => console.log(`package name: ${pkg.name} version: ${pkg.version}`);
9
117
  Vue.util.warn;
10
118
  const imgDotLoading$1 = "data:image/gif;base64,R0lGODlhVAASAIABAP///////yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDA2IDc5LjE2NDc1MywgMjAyMS8wMi8xNS0xMTo1MjoxMyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjMgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzAyRUQ3Rj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bD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";
@@ -95,8 +203,8 @@ function baseTrim(string) {
95
203
  return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
96
204
  }
97
205
  function isObject(value) {
98
- var type = typeof value;
99
- return value != null && (type == "object" || type == "function");
206
+ var type2 = typeof value;
207
+ return value != null && (type2 == "object" || type2 == "function");
100
208
  }
101
209
  var NAN = 0 / 0;
102
210
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
@@ -504,9 +612,9 @@ function defineSetup(setup) {
504
612
  originEmit(kebabName, data);
505
613
  };
506
614
  const proxiedSlots = new Proxy(slots, {
507
- get(target, name, receiver) {
615
+ get(target, name2, receiver) {
508
616
  var _a;
509
- return (_a = Reflect.get(target, name, receiver)) != null ? _a : Reflect.get(props, name);
617
+ return (_a = Reflect.get(target, name2, receiver)) != null ? _a : Reflect.get(props, name2);
510
618
  }
511
619
  });
512
620
  return setup(props, { ...ctx, slots: proxiedSlots, emit: emitKebab });
@@ -531,9 +639,9 @@ function defineLagecySetup(setup) {
531
639
  originEmit(kebabName, data);
532
640
  };
533
641
  const proxiedSlots = new Proxy(slots, {
534
- get(target, name, receiver) {
642
+ get(target, name2, receiver) {
535
643
  var _a;
536
- return (_a = Reflect.get(target, name, receiver)) != null ? _a : Reflect.get(props, name);
644
+ return (_a = Reflect.get(target, name2, receiver)) != null ? _a : Reflect.get(props, name2);
537
645
  }
538
646
  });
539
647
  return setup(props, { ...ctx, slots: proxiedSlots, emit: emitKebab });
@@ -567,11 +675,11 @@ const AbsoluteAddressBox = defineSetup(function AbsoluteAddressBox2(props, {
567
675
  const handleClick = () => emit("click");
568
676
  return () => {
569
677
  const {
570
- type,
678
+ type: type2,
571
679
  title,
572
680
  description
573
681
  } = props;
574
- if (type === "locator")
682
+ if (type2 === "locator")
575
683
  return h("div", {
576
684
  "class": absoluteAddressBoxLayout
577
685
  }, [h("img", {
@@ -580,7 +688,7 @@ const AbsoluteAddressBox = defineSetup(function AbsoluteAddressBox2(props, {
580
688
  "src": imgAddressLocator
581
689
  }
582
690
  })]);
583
- if (type === "loading")
691
+ if (type2 === "loading")
584
692
  return h("div", {
585
693
  "class": absoluteAddressBoxLayout
586
694
  }, [h("div", {
@@ -986,13 +1094,13 @@ const isGeoPositionEqual = (p1, p2) => {
986
1094
  return false;
987
1095
  return p1.coords.longitude === p2.coords.longitude && p1.coords.latitude === p2.coords.latitude;
988
1096
  };
989
- const amapPlaceName2DisplayName = (name, options) => {
1097
+ const amapPlaceName2DisplayName = (name2, options) => {
990
1098
  const { isChina, province, city, district, township } = options;
991
- if (!name)
992
- return name;
1099
+ if (!name2)
1100
+ return name2;
993
1101
  if (!isChina)
994
- return name.split(",")[0];
995
- let result = name;
1102
+ return name2.split(",")[0];
1103
+ let result = name2;
996
1104
  for (const item of [province, city, district, township]) {
997
1105
  if (result.trim() === item)
998
1106
  return item;
@@ -1068,12 +1176,12 @@ function watchEffectForDeepOption(getOption, callback, watchOptions) {
1068
1176
  ...watchOptions
1069
1177
  });
1070
1178
  }
1071
- function name2setterName(name) {
1072
- return `set${name.charAt(0).toUpperCase()}${name.slice(1)}`;
1179
+ function name2setterName(name2) {
1180
+ return `set${name2.charAt(0).toUpperCase()}${name2.slice(1)}`;
1073
1181
  }
1074
1182
  function watchPostEffectForMapProperty(targetRef, props, nameOptions, watchOptions) {
1075
1183
  const deps = nameOptions.map(
1076
- ({ name }) => () => props[name]
1184
+ ({ name: name2 }) => () => props[name2]
1077
1185
  );
1078
1186
  watch(
1079
1187
  deps,
@@ -1082,10 +1190,10 @@ function watchPostEffectForMapProperty(targetRef, props, nameOptions, watchOptio
1082
1190
  if (!target)
1083
1191
  return;
1084
1192
  for (const [idx, value] of values.entries()) {
1085
- const { name, defaultValue } = nameOptions[idx];
1193
+ const { name: name2, defaultValue } = nameOptions[idx];
1086
1194
  const prev = prevValues[idx];
1087
1195
  if (!deepCompareEqualsForMaps(value, prev)) {
1088
- target[name2setterName(name)](value != null ? value : defaultValue);
1196
+ target[name2setterName(name2)](value != null ? value : defaultValue);
1089
1197
  }
1090
1198
  }
1091
1199
  },
@@ -1108,9 +1216,9 @@ function watchPostEffectForAMapEvent(targetRef, props, emit, propertyNames) {
1108
1216
  if (!target)
1109
1217
  return;
1110
1218
  const cleanList = [];
1111
- for (const name of propertyNames) {
1112
- const emitEventName = property2emitEventName(name);
1113
- const eventName = property2mapEventName(name);
1219
+ for (const name2 of propertyNames) {
1220
+ const emitEventName = property2emitEventName(name2);
1221
+ const eventName = property2mapEventName(name2);
1114
1222
  const handler = (e) => emit(emitEventName, e);
1115
1223
  target.on(eventName, handler);
1116
1224
  cleanList.push(() => target == null ? void 0 : target.off(eventName, handler));
@@ -1127,9 +1235,9 @@ function watchPostEffectForGMapEvent(targetRef, props, emit, propertyNames) {
1127
1235
  if (!target)
1128
1236
  return;
1129
1237
  const cleanList = [];
1130
- for (const name of propertyNames) {
1131
- const emitEventName = property2emitEventName(name);
1132
- const eventName = property2mapEventName(name);
1238
+ for (const name2 of propertyNames) {
1239
+ const emitEventName = property2emitEventName(name2);
1240
+ const eventName = property2mapEventName(name2);
1133
1241
  const handler = (e) => emit(emitEventName, { ...e, target });
1134
1242
  const listener = target.addListener(eventName, handler);
1135
1243
  cleanList.push(() => google.maps.event.removeListener(listener));
@@ -1181,7 +1289,7 @@ const GmapAdvancedMarkerView = defineSetup(function GmapAdvancedMarkerView2(prop
1181
1289
  const { registerOverlay } = props;
1182
1290
  const markerRef = shallowRef();
1183
1291
  const mapRef = useGmap();
1184
- const handleClick = (name) => emit(name, { target: markerRef.value });
1292
+ const handleClick = (name2) => emit(name2, { target: markerRef.value });
1185
1293
  onMounted(() => {
1186
1294
  const { registerOverlay: registerOverlay2, ...markerViewProps } = props;
1187
1295
  markerRef.value = new google.maps.marker.AdvancedMarkerView({ ...markerViewProps });
@@ -1359,9 +1467,9 @@ var dist = {
1359
1467
  distExports = v;
1360
1468
  }
1361
1469
  };
1362
- (function(module, exports) {
1470
+ (function(module2, exports2) {
1363
1471
  (function(m, p) {
1364
- module.exports = p();
1472
+ module2.exports = p();
1365
1473
  })(commonjsGlobal, function() {
1366
1474
  function m(a) {
1367
1475
  var b2 = [];
@@ -1600,7 +1708,7 @@ class Loader {
1600
1708
  * const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
1601
1709
  * ```
1602
1710
  */
1603
- constructor({ apiKey, authReferrerPolicy, channel, client, id = DEFAULT_ID, language, libraries = [], mapIds, nonce, region, retries = 3, url = "https://maps.googleapis.com/maps/api/js", version }) {
1711
+ constructor({ apiKey, authReferrerPolicy, channel, client, id = DEFAULT_ID, language, libraries = [], mapIds, nonce, region, retries = 3, url = "https://maps.googleapis.com/maps/api/js", version: version2 }) {
1604
1712
  this.CALLBACK = "__googleMapsCallback";
1605
1713
  this.callbacks = [];
1606
1714
  this.done = false;
@@ -1618,7 +1726,7 @@ class Loader {
1618
1726
  this.region = region;
1619
1727
  this.retries = retries;
1620
1728
  this.url = url;
1621
- this.version = version;
1729
+ this.version = version2;
1622
1730
  if (Loader.instance) {
1623
1731
  if (!fastDeepEqual(this.options, Loader.instance.options)) {
1624
1732
  throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`);
@@ -1838,8 +1946,8 @@ const useAmapLoader = (props) => {
1838
1946
  /* LOADING */
1839
1947
  );
1840
1948
  const optionsRef = computed(() => {
1841
- const { onChange: onChange2, loading, fallback, apiKey, apiSecret, apiServiceHost, version, ...options } = props;
1842
- return { ...options, key: apiKey, version: version != null ? version : "2.0.5.16" };
1949
+ const { onChange: onChange2, loading, fallback, apiKey, apiSecret, apiServiceHost, version: version2, ...options } = props;
1950
+ return { ...options, key: apiKey, version: version2 != null ? version2 : "2.0.5.16" };
1843
1951
  });
1844
1952
  watchPostEffectForDeepOption(
1845
1953
  () => optionsRef.value,
@@ -1987,9 +2095,9 @@ function detectWebGL() {
1987
2095
  const canvas = document.createElement("canvas");
1988
2096
  const names = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"];
1989
2097
  let context2 = null;
1990
- for (const name of names) {
2098
+ for (const name2 of names) {
1991
2099
  try {
1992
- context2 = canvas.getContext(name);
2100
+ context2 = canvas.getContext(name2);
1993
2101
  if (context2 && typeof context2.getParameter === "function") {
1994
2102
  return "ENABLED";
1995
2103
  }
@@ -2009,6 +2117,8 @@ const ZINDEX_START_END_LOGO_LAYER = 40;
2009
2117
  const ZINDEX_PLACE_LAYER = 30;
2010
2118
  const ZINDEX_CAR_LAYER = 21;
2011
2119
  const ZINDEX_PASSENGER_LAYER = 20;
2120
+ const ZINDEX_LINE_LAYER = 12;
2121
+ const ZINDEX_GREEN_ZONE = 10;
2012
2122
  const useAmapLngLatToVw = (props) => {
2013
2123
  const apiMapLngLatToVw = (point) => {
2014
2124
  const amap2 = props.mapRef.value;
@@ -2321,12 +2431,12 @@ const Gmap = defineSetup(function Gmap2(props, { slots, emit }) {
2321
2431
  const mapRef = shallowRef();
2322
2432
  const { executeMapApi } = useMapEventSource();
2323
2433
  const { touchstartCenterRef } = useGmapTouchStartCenter({ mapRef, elementRef });
2324
- const handleDrag = (name) => {
2325
- emit(name, { target: mapRef.value });
2434
+ const handleDrag = (name2) => {
2435
+ emit(name2, { target: mapRef.value });
2326
2436
  };
2327
- const handleZoom = (name) => {
2437
+ const handleZoom = (name2) => {
2328
2438
  var _a;
2329
- emit(name, { target: mapRef.value });
2439
+ emit(name2, { target: mapRef.value });
2330
2440
  const center = touchstartCenterRef.value;
2331
2441
  if (center)
2332
2442
  (_a = mapRef.value) == null ? void 0 : _a.setCenter(vec2lnglat(center));
@@ -2392,12 +2502,12 @@ const MapProvider = defineLagecySetup(function MapProvider2(props, {
2392
2502
  readyPromise
2393
2503
  } = useMapLoader(props);
2394
2504
  const context2 = new Proxy(props, {
2395
- get(target, name, receiver) {
2396
- if (name === "status")
2505
+ get(target, name2, receiver) {
2506
+ if (name2 === "status")
2397
2507
  return statusRef.value;
2398
- if (name === "readyPromise")
2508
+ if (name2 === "readyPromise")
2399
2509
  return readyPromise;
2400
- return Reflect.get(target, name, receiver);
2510
+ return Reflect.get(target, name2, receiver);
2401
2511
  }
2402
2512
  });
2403
2513
  provideMapSupplier(context2);
@@ -2573,7 +2683,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
2573
2683
  "strokeOpacity": 1,
2574
2684
  "strokeColor": strokeColorOuter,
2575
2685
  "lineJoin": "round",
2576
- "lineCap": "round"
2686
+ "lineCap": "round",
2687
+ "zIndex": ZINDEX_LINE_LAYER
2577
2688
  }
2578
2689
  }), h(AmapPolyline, {
2579
2690
  "attrs": {
@@ -2584,7 +2695,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
2584
2695
  "lineJoin": "round",
2585
2696
  "lineCap": "round",
2586
2697
  "strokeStyle": "dashed",
2587
- "strokeDasharray": [dashLength, dashLength * 0.5]
2698
+ "strokeDasharray": [dashLength, dashLength * 0.5],
2699
+ "zIndex": ZINDEX_LINE_LAYER
2588
2700
  }
2589
2701
  }), h(AmapPolyline, {
2590
2702
  "attrs": {
@@ -2593,7 +2705,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
2593
2705
  "strokeOpacity": 1,
2594
2706
  "strokeColor": strokeColorInner,
2595
2707
  "lineJoin": "round",
2596
- "lineCap": "round"
2708
+ "lineCap": "round",
2709
+ "zIndex": ZINDEX_LINE_LAYER
2597
2710
  }
2598
2711
  }), h(AmapPolyline, {
2599
2712
  "attrs": {
@@ -2603,7 +2716,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
2603
2716
  "strokeOpacity": 1,
2604
2717
  "strokeColor": "transparent",
2605
2718
  "lineJoin": "round",
2606
- "lineCap": "round"
2719
+ "lineCap": "round",
2720
+ "zIndex": ZINDEX_LINE_LAYER
2607
2721
  }
2608
2722
  })]);
2609
2723
  };
@@ -2625,7 +2739,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
2625
2739
  "path": pathRef.value,
2626
2740
  "strokeWeight": strokeWidth + 2 * borderWidth + 2 * outlineWidth,
2627
2741
  "strokeOpacity": 1,
2628
- "strokeColor": strokeColorOuter
2742
+ "strokeColor": strokeColorOuter,
2743
+ "zIndex": ZINDEX_LINE_LAYER
2629
2744
  }
2630
2745
  }), h(GmapPolyline, {
2631
2746
  "attrs": {
@@ -2640,7 +2755,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
2640
2755
  },
2641
2756
  repeat: `${strokeWidth}px`,
2642
2757
  offset: `${strokeWidth / 2}px`
2643
- }]
2758
+ }],
2759
+ "zIndex": ZINDEX_LINE_LAYER
2644
2760
  }
2645
2761
  }), h(GmapPolyline, {
2646
2762
  "attrs": {
@@ -2656,7 +2772,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
2656
2772
  scale: 0.7
2657
2773
  },
2658
2774
  repeat: `${repeat}px`
2659
- }]
2775
+ }],
2776
+ "zIndex": ZINDEX_LINE_LAYER
2660
2777
  }
2661
2778
  })]);
2662
2779
  };
@@ -2870,18 +2987,6 @@ const DrivingRoute = defineSetup(function DrivingRoute2(props, {
2870
2987
  scopedSlots: slots
2871
2988
  });
2872
2989
  });
2873
- const availableLogKeys = /* @__PURE__ */ new Set();
2874
- const isEnableLog = (name) => {
2875
- const searchParam = new URLSearchParams(location.search);
2876
- return searchParam.has(`log-${name}`);
2877
- };
2878
- window.availableLogKeys = availableLogKeys;
2879
- const spaceLog = (logKey, ...args) => {
2880
- availableLogKeys.add(logKey);
2881
- if (!isEnableLog(logKey))
2882
- return;
2883
- console.log(logKey, ...args);
2884
- };
2885
2990
  const GOOGLE_MAP_ZOOM_CHANGE_DEBOUNCE_TIMEOUT$1 = 20;
2886
2991
  const useAmapFitView = (props) => {
2887
2992
  const { mapRef, autoFitTimeout } = props;
@@ -3266,6 +3371,19 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props)
3266
3371
  })]);
3267
3372
  };
3268
3373
  }).props(["fallback", "from", "loading", "mapRef", "registerOverlay", "renderDescription", "to", "fromDescription", "log"]);
3374
+ const MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT = "MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT";
3375
+ const MINI_PROGRAM_WEB_VIEW_CLOSE_TIMEOUT = 100 + 20;
3376
+ const MINI_PROGRAM_WEB_VIEW_CLOSE_DELAY = 100 + 70;
3377
+ const patchMiniprogramRedirectTo = (wx2) => {
3378
+ const patchedRedirectTo = (props) => {
3379
+ const webviewCloseEvent = new Event(MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT);
3380
+ dispatchEvent(webviewCloseEvent);
3381
+ setTimeout(() => {
3382
+ wx2.miniProgram.redirectTo(props);
3383
+ }, MINI_PROGRAM_WEB_VIEW_CLOSE_DELAY);
3384
+ };
3385
+ return patchedRedirectTo;
3386
+ };
3269
3387
  const DEVICE_ORIENTATION_INTERVAL = 1e3;
3270
3388
  const CSS_DEVICE_ORIENTATION_VAR_PREFIX = "--CSS_DEVICE_ORIENTATION_VAR_ROTATION_DEGREE_";
3271
3389
  const useDeviceOrientation = (props) => {
@@ -3309,8 +3427,12 @@ function compatibaleAddEventListenerDeviceOrientation(handler) {
3309
3427
  if (isIOSDeviceOrientationPermissionGranted) {
3310
3428
  return addEventListener("deviceorientation", handler);
3311
3429
  }
3312
- const handleTouchEnd = () => {
3430
+ const handleTouchEnd = async () => {
3313
3431
  removeEventListener("touchend", handleTouchEnd);
3432
+ if (detectBrowserPlatform() === BRWOSER_PLATFORM.WECHAT_MINIPROGRAM && await waitMiniProgramWebviewClose(MINI_PROGRAM_WEB_VIEW_CLOSE_TIMEOUT)) {
3433
+ addEventListener("touchend", handleTouchEnd);
3434
+ return;
3435
+ }
3314
3436
  DeviceOrientationEvent == null ? void 0 : DeviceOrientationEvent.requestPermission().then((permissionState) => {
3315
3437
  if (permissionState === "granted") {
3316
3438
  isIOSDeviceOrientationPermissionGranted = true;
@@ -3331,6 +3453,20 @@ function compatibleRemoveEventListenerDeviceOrientation(handler) {
3331
3453
  }
3332
3454
  return removeEventListener("deviceorientation", handler);
3333
3455
  }
3456
+ function waitMiniProgramWebviewClose(duration) {
3457
+ return new Promise((resolve) => {
3458
+ const handleMiniProgramWebviewClose = () => {
3459
+ removeEventListener(MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT, handleMiniProgramWebviewClose);
3460
+ clearTimeout(timer);
3461
+ resolve(true);
3462
+ };
3463
+ addEventListener(MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT, handleMiniProgramWebviewClose);
3464
+ const timer = setTimeout(() => {
3465
+ removeEventListener(MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT, handleMiniProgramWebviewClose);
3466
+ resolve(false);
3467
+ }, duration);
3468
+ });
3469
+ }
3334
3470
  const watchVisibilityState = () => {
3335
3471
  const visibilityStateRef = ref(document.visibilityState);
3336
3472
  const handleVisibilityChange = () => {
@@ -5270,23 +5406,23 @@ const useAmapPlace = (props) => {
5270
5406
  switch (status) {
5271
5407
  case "complete": {
5272
5408
  const { formattedAddress, addressComponent } = result.regeocode;
5273
- const name = formattedAddress ? formattedAddress : emptyPlaceName;
5274
- const displayName = amapPlaceName2DisplayName(name, { isChina, ...addressComponent });
5275
- place.name = name;
5409
+ const name2 = formattedAddress ? formattedAddress : emptyPlaceName;
5410
+ const displayName = amapPlaceName2DisplayName(name2, { isChina, ...addressComponent });
5411
+ place.name = name2;
5276
5412
  place.displayName = displayName;
5277
5413
  place.lng = lng;
5278
5414
  place.lat = lat;
5279
- onChange == null ? void 0 : onChange({ lng, lat, name, displayName });
5415
+ onChange == null ? void 0 : onChange({ lng, lat, name: name2, displayName });
5280
5416
  return;
5281
5417
  }
5282
5418
  case "no_data": {
5283
- const name = emptyPlaceName;
5419
+ const name2 = emptyPlaceName;
5284
5420
  const displayName = emptyPlaceName;
5285
- place.name = name;
5421
+ place.name = name2;
5286
5422
  place.displayName = displayName;
5287
5423
  place.lng = lng;
5288
5424
  place.lat = lat;
5289
- onChange == null ? void 0 : onChange({ lng, lat, name, displayName });
5425
+ onChange == null ? void 0 : onChange({ lng, lat, name: name2, displayName });
5290
5426
  return;
5291
5427
  }
5292
5428
  case "error":
@@ -5326,13 +5462,13 @@ const useGmapPlace = (props) => {
5326
5462
  const geocoder = new google.maps.Geocoder();
5327
5463
  const [lng, lat] = pointRef.value;
5328
5464
  const { results } = await geocoder.geocode({ language: LANGUAGE, location: { lng, lat } });
5329
- const name = results[0].formatted_address ? results[0].formatted_address : emptyPlaceName;
5330
- const displayName = name;
5465
+ const name2 = results[0].formatted_address ? results[0].formatted_address : emptyPlaceName;
5466
+ const displayName = name2;
5331
5467
  place.lng = lng;
5332
5468
  place.lat = lat;
5333
- place.name = name;
5469
+ place.name = name2;
5334
5470
  place.displayName = displayName;
5335
- onChange == null ? void 0 : onChange({ lng, lat, name, displayName });
5471
+ onChange == null ? void 0 : onChange({ lng, lat, name: name2, displayName });
5336
5472
  }
5337
5473
  );
5338
5474
  return { place, updatePlace, setPlace };
@@ -5369,7 +5505,8 @@ const useAmapRecomendPlace = (props) => {
5369
5505
  const { pointRef, getRecomendPlace, getLimit, context: context2, emptyPlaceName, onChange, onChangePlace } = props;
5370
5506
  const availableRef = ref(true);
5371
5507
  const placeCandidatesRef = ref([]);
5372
- const { idx: recomendPlaceKey, update: updateRecomandPlace } = useUpdate();
5508
+ const zoneRef = ref();
5509
+ const { idx: recomendPlaceKey, update: updateRecommendPlaceKey } = useUpdate();
5373
5510
  const { readyPromise } = useMapSupplier();
5374
5511
  const { place, updatePlace, setPlace } = useAmapPlace({
5375
5512
  emptyPlaceName,
@@ -5384,49 +5521,76 @@ const useAmapRecomendPlace = (props) => {
5384
5521
  );
5385
5522
  });
5386
5523
  const updatePlaceCandidates = async (place2) => {
5387
- const inputPlaceCandidates = await getRecomendPlace({ ...place2 }, context2);
5524
+ var _a;
5525
+ const {
5526
+ places: inputPlaceCandidates,
5527
+ zone,
5528
+ available
5529
+ } = (_a = await getRecomendPlace({ ...place2 }, context2)) != null ? _a : {};
5530
+ const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
5531
+ availableRef.value = !!available;
5532
+ zoneRef.value = zone;
5533
+ placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
5534
+ };
5535
+ const updateRecommendPlace = (place2) => {
5536
+ setPlace(place2);
5537
+ updateRecommendPlaceKey();
5538
+ };
5539
+ const setPlaceCandidatesAndZone = ({
5540
+ zone,
5541
+ places: inputPlaceCandidates
5542
+ }) => {
5388
5543
  const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
5389
- availableRef.value = placeCandidates !== void 0;
5544
+ zoneRef.value = zone ? zone : void 0;
5390
5545
  placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
5391
5546
  };
5392
5547
  watch(
5393
5548
  () => recomendPlaceKey.value,
5394
5549
  async () => {
5550
+ var _a;
5395
5551
  await readyPromise;
5396
- const inputPlaceCandidates = await getRecomendPlace({ ...place }, context2);
5552
+ const {
5553
+ places: inputPlaceCandidates,
5554
+ zone,
5555
+ available
5556
+ } = (_a = await getRecomendPlace({ ...place }, context2)) != null ? _a : {};
5397
5557
  const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
5398
- if (placeCandidates === void 0) {
5399
- availableRef.value = false;
5558
+ if (!available || !placeCandidates) {
5559
+ availableRef.value = !!available;
5560
+ zoneRef.value = zone;
5400
5561
  placeCandidatesRef.value = [];
5401
5562
  Object.assign(recomendPlace, { ...place });
5402
- onChange == null ? void 0 : onChange({ ...place });
5563
+ onChange == null ? void 0 : onChange({ place: { ...place }, inputPlace: { ...place }, isInZone: !!zone });
5403
5564
  return;
5404
5565
  }
5405
5566
  const { shortestPlace, shortestDistance } = findAmapNearestPlace(place, placeCandidates);
5406
5567
  const limit = getLimit(context2);
5407
- const resultPlace = shortestDistance > limit ? place : shortestPlace;
5408
- availableRef.value = true;
5568
+ const resultPlace = zone || shortestDistance <= limit ? shortestPlace : place;
5569
+ availableRef.value = !!available;
5570
+ zoneRef.value = zone;
5409
5571
  placeCandidatesRef.value = placeCandidates;
5410
5572
  Object.assign(recomendPlace, { ...resultPlace });
5411
- onChange == null ? void 0 : onChange({ ...resultPlace });
5573
+ onChange == null ? void 0 : onChange({ place: { ...resultPlace }, inputPlace: { ...place }, isInZone: !!zone });
5412
5574
  }
5413
5575
  );
5414
5576
  return {
5577
+ zoneRef,
5415
5578
  recomendPlace,
5416
5579
  placeCandidates: placeCandidatesRef,
5417
5580
  availableRef,
5418
5581
  isElectedRef,
5419
- updateRecomandPlace,
5582
+ updateRecommendPlace,
5420
5583
  updatePlaceCandidates,
5421
5584
  updatePlace,
5422
- setPlace
5585
+ setPlaceCandidatesAndZone
5423
5586
  };
5424
5587
  };
5425
5588
  const useGmapRecomendPlace = (props) => {
5426
5589
  const { pointRef, getRecomendPlace, getLimit, context: context2, emptyPlaceName, onChange, onChangePlace } = props;
5427
5590
  const availableRef = ref(true);
5428
5591
  const placeCandidatesRef = ref([]);
5429
- const { idx: recomendPlaceKey, update: updateRecomandPlace } = useUpdate();
5592
+ const zoneRef = ref();
5593
+ const { idx: recomendPlaceKey, update: updateRecommendPlaceKey } = useUpdate();
5430
5594
  const { readyPromise } = useMapSupplier();
5431
5595
  const { place, updatePlace, setPlace } = useGmapPlace({
5432
5596
  emptyPlaceName,
@@ -5441,40 +5605,64 @@ const useGmapRecomendPlace = (props) => {
5441
5605
  );
5442
5606
  });
5443
5607
  const updatePlaceCandidates = async (place2) => {
5444
- const placeCandidates = await getRecomendPlace({ ...place2 }, context2);
5445
- availableRef.value = placeCandidates !== void 0;
5608
+ var _a;
5609
+ const {
5610
+ places: inputPlaceCandidates,
5611
+ zone,
5612
+ available
5613
+ } = (_a = await getRecomendPlace({ ...place2 }, context2)) != null ? _a : {};
5614
+ const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
5615
+ availableRef.value = !!available;
5616
+ zoneRef.value = zone;
5446
5617
  placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
5447
5618
  };
5619
+ const updateRecommendPlace = (place2) => {
5620
+ setPlace(place2);
5621
+ updateRecommendPlaceKey();
5622
+ };
5623
+ const setPlaceCandidatesAndZone = ({ zone, places }) => {
5624
+ placeCandidatesRef.value = places != null ? places : [];
5625
+ zoneRef.value = zone ? zone : void 0;
5626
+ };
5448
5627
  watch(
5449
5628
  () => recomendPlaceKey.value,
5450
5629
  async () => {
5630
+ var _a;
5451
5631
  await readyPromise;
5452
- const placeCandidates = await getRecomendPlace({ ...place }, context2);
5453
- if (placeCandidates === void 0) {
5454
- availableRef.value = false;
5632
+ const {
5633
+ places: inputPlaceCandidates,
5634
+ zone,
5635
+ available
5636
+ } = (_a = await getRecomendPlace({ ...place }, context2)) != null ? _a : {};
5637
+ const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
5638
+ if (!available || !placeCandidates) {
5639
+ availableRef.value = !!available;
5640
+ zoneRef.value = zone;
5455
5641
  placeCandidatesRef.value = [];
5456
5642
  Object.assign(recomendPlace, { ...place });
5457
- onChange == null ? void 0 : onChange({ ...place });
5643
+ onChange == null ? void 0 : onChange({ place: { ...place }, inputPlace: { ...place }, isInZone: !!zone });
5458
5644
  return;
5459
5645
  }
5460
5646
  const { shortestPlace, shortestDistance } = findGmapNearestPlace(place, placeCandidates);
5461
5647
  const limit = getLimit(context2);
5462
5648
  const resultPlace = shortestDistance > limit ? place : shortestPlace;
5463
- availableRef.value = true;
5649
+ availableRef.value = !!available;
5650
+ zoneRef.value = zone;
5464
5651
  placeCandidatesRef.value = placeCandidates;
5465
5652
  Object.assign(recomendPlace, { ...resultPlace });
5466
- onChange == null ? void 0 : onChange({ ...resultPlace });
5653
+ onChange == null ? void 0 : onChange({ place: { ...resultPlace }, inputPlace: { ...place }, isInZone: !!zone });
5467
5654
  }
5468
5655
  );
5469
5656
  return {
5657
+ zoneRef,
5470
5658
  recomendPlace,
5471
5659
  placeCandidates: placeCandidatesRef,
5472
5660
  availableRef,
5473
5661
  isElectedRef,
5474
- updateRecomandPlace,
5662
+ updateRecommendPlace,
5475
5663
  updatePlaceCandidates,
5476
5664
  updatePlace,
5477
- setPlace
5665
+ setPlaceCandidatesAndZone
5478
5666
  };
5479
5667
  };
5480
5668
  const useMapRecomendPlace = (props) => {
@@ -5528,6 +5716,169 @@ const useMapZoom = (props) => {
5528
5716
  const { supplier } = useMapSupplier();
5529
5717
  return supplier === "gmap" ? useGmapZoom(props) : useAmapZoom(props);
5530
5718
  };
5719
+ const AmapPolygon = defineSetup(function AmapPolygon2(props) {
5720
+ const polygonRef = shallowRef();
5721
+ const mapRef = useAmap();
5722
+ onMounted(() => {
5723
+ polygonRef.value = new AMap.Polygon();
5724
+ polygonRef.value.setOptions(props);
5725
+ });
5726
+ onUnmounted(() => {
5727
+ var _a;
5728
+ (_a = polygonRef.value) == null ? void 0 : _a.setMap(null);
5729
+ });
5730
+ useAmapFixBugPolygonDrag(polygonRef);
5731
+ watchPostEffect(() => {
5732
+ var _a;
5733
+ const map = mapRef == null ? void 0 : mapRef.value;
5734
+ if (!map)
5735
+ return;
5736
+ (_a = polygonRef.value) == null ? void 0 : _a.setMap(map);
5737
+ });
5738
+ watchNoneImmediatePostEffectForMapProperty(polygonRef, props, [
5739
+ { name: "path", defaultValue: [[0, 0]] },
5740
+ { name: "extData", defaultValue: void 0 },
5741
+ { name: "draggable", defaultValue: false }
5742
+ ]);
5743
+ watchNoneImmediatePostEffectForDeepOption(
5744
+ () => {
5745
+ const { path, extData, draggable, ...otherOptions } = props;
5746
+ return otherOptions;
5747
+ },
5748
+ (otherOptions) => {
5749
+ var _a;
5750
+ (_a = polygonRef.value) == null ? void 0 : _a.setOptions({ ...otherOptions });
5751
+ }
5752
+ );
5753
+ return () => null;
5754
+ });
5755
+ const useAmapFixBugPolygonDrag = (polygonRef) => {
5756
+ let dragStatus = "UNSTARTED";
5757
+ const onTouchStart = () => {
5758
+ dragStatus = "WAITING_DRAG_START";
5759
+ };
5760
+ const onTouchMove = (_, event) => {
5761
+ if (dragStatus !== "WAITING_DRAG_START")
5762
+ return;
5763
+ const { target, lnglat, pixel, originEvent } = event;
5764
+ dragStatus = "WAITING_DRAG_END";
5765
+ const amap2 = target.getMap();
5766
+ amap2 == null ? void 0 : amap2.emit("dragstart", { type: "dragstart", target: amap2, lnglat, pixel, originEvent });
5767
+ };
5768
+ const onTouchEnd = (_, event) => {
5769
+ if (dragStatus !== "WAITING_DRAG_END")
5770
+ return;
5771
+ const { target, lnglat, pixel, originEvent } = event;
5772
+ dragStatus = "UNSTARTED";
5773
+ const amap2 = target.getMap();
5774
+ amap2 == null ? void 0 : amap2.emit("dragend", { type: "dragend", target: amap2, lnglat, pixel, originEvent });
5775
+ };
5776
+ watchPostEffectForAMapEvent(
5777
+ polygonRef,
5778
+ {},
5779
+ onTouchStart,
5780
+ ["onTouchStart"]
5781
+ );
5782
+ watchPostEffectForAMapEvent(
5783
+ polygonRef,
5784
+ {},
5785
+ onTouchMove,
5786
+ ["onTouchMove"]
5787
+ );
5788
+ watchPostEffectForAMapEvent(polygonRef, {}, onTouchEnd, [
5789
+ "onTouchEnd"
5790
+ ]);
5791
+ };
5792
+ const GmapPolygon = defineSetup(function GmapPolygon2(props) {
5793
+ const polygonRef = shallowRef();
5794
+ const mapRef = useGmap();
5795
+ onMounted(() => {
5796
+ polygonRef.value = new google.maps.Polygon({ ...props });
5797
+ });
5798
+ onUnmounted(() => {
5799
+ var _a;
5800
+ (_a = polygonRef.value) == null ? void 0 : _a.setMap(null);
5801
+ });
5802
+ watchPostEffect(() => {
5803
+ var _a;
5804
+ const map = mapRef == null ? void 0 : mapRef.value;
5805
+ if (!map)
5806
+ return;
5807
+ (_a = polygonRef.value) == null ? void 0 : _a.setMap(map);
5808
+ });
5809
+ watchNoneImmediatePostEffectForDeepOption(
5810
+ () => ({ ...props }),
5811
+ (props2) => {
5812
+ var _a;
5813
+ (_a = polygonRef.value) == null ? void 0 : _a.setOptions({ ...props2 });
5814
+ }
5815
+ );
5816
+ return () => null;
5817
+ });
5818
+ const GREEN_ZONE_FILL_COLOR = "#C7E5FB";
5819
+ const GREEN_ZONE_FILL_OPACITY = 0.5;
5820
+ const GREEN_ZONE_STROKE_COLOR = "#4BA7FF";
5821
+ const GREEN_ZONE_STROKE_WEIGHT_VW = 1;
5822
+ const AGreenZone = defineSetup(function AGreenZone2(props) {
5823
+ const strokeWeight = GREEN_ZONE_STROKE_WEIGHT_VW * globalThis.innerWidth / 100;
5824
+ return () => {
5825
+ return h(AmapPolygon, {
5826
+ "attrs": {
5827
+ "path": props.path,
5828
+ "strokeColor": GREEN_ZONE_STROKE_COLOR,
5829
+ "strokeStyle": "dashed",
5830
+ "strokeWeight": strokeWeight,
5831
+ "fillColor": GREEN_ZONE_FILL_COLOR,
5832
+ "fillOpacity": GREEN_ZONE_FILL_OPACITY,
5833
+ "zIndex": ZINDEX_GREEN_ZONE
5834
+ }
5835
+ });
5836
+ };
5837
+ });
5838
+ const GGreenZone = defineSetup(function GGreenZone2(props) {
5839
+ const pathRef = computed(() => props.path.map(vec2lnglat));
5840
+ const strokeWeight = GREEN_ZONE_STROKE_WEIGHT_VW * globalThis.innerWidth / 100;
5841
+ const lineSymbol = {
5842
+ path: "M 0,-1 0,1",
5843
+ strokeOpacity: 1,
5844
+ scale: 4
5845
+ };
5846
+ return () => {
5847
+ const path = pathRef.value;
5848
+ return h("div", [h(GmapPolygon, {
5849
+ "attrs": {
5850
+ "paths": path,
5851
+ "strokeColor": GREEN_ZONE_STROKE_COLOR,
5852
+ "strokeOpacity": 0,
5853
+ "strokeWeight": strokeWeight,
5854
+ "fillColor": GREEN_ZONE_FILL_COLOR,
5855
+ "fillOpacity": GREEN_ZONE_FILL_OPACITY,
5856
+ "zIndex": ZINDEX_GREEN_ZONE
5857
+ }
5858
+ }), h(GmapPolyline, {
5859
+ "attrs": {
5860
+ "path": path,
5861
+ "strokeColor": GREEN_ZONE_STROKE_COLOR,
5862
+ "strokeWeight": GREEN_ZONE_STROKE_WEIGHT_VW,
5863
+ "icons": [{
5864
+ icon: lineSymbol,
5865
+ offset: "0",
5866
+ repeat: "20px"
5867
+ }]
5868
+ }
5869
+ })]);
5870
+ };
5871
+ });
5872
+ const GreenZone = defineSetup(function GreenZone2(props) {
5873
+ const payload = useMapSupplier();
5874
+ return () => {
5875
+ if (!props.path.length)
5876
+ return null;
5877
+ return createElement(payload.supplier === "gmap" ? GGreenZone : AGreenZone, {
5878
+ attrs: props
5879
+ });
5880
+ };
5881
+ });
5531
5882
  const imgPassengerCircleArrow = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTI4LjYlIiB5PSItMjguNiUiIHdpZHRoPSIxNTcuMSUiIGhlaWdodD0iMTU3LjElIiBmaWx0ZXJVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIGlkPSJwcmVmaXhfX2EiPjxmZU9mZnNldCBpbj0iU291cmNlQWxwaGEiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMiIgaW49InNoYWRvd09mZnNldE91dGVyMSIgc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9Ik0xNC40ODEgMGw2LjYwMyAxMy4xODFINy44Nzl6Ii8+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNCkiPjx1c2UgZmlsbD0iIzAwMCIgZmlsdGVyPSJ1cmwoI3ByZWZpeF9fYSkiIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2IiLz48Y2lyY2xlIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyLjQiIHN0cm9rZS1saW5lam9pbj0ic3F1YXJlIiBmaWxsPSIjNDg3MUYxIiBjeD0iMTAuNSIgY3k9IjE5LjUiIHI9IjkuMyIvPjwvZz48L2c+PC9zdmc+";
@@ -5542,10 +5893,10 @@ const APassengerCircle = defineSetup(function APassengerCircle2(props) {
5542
5893
  } = props;
5543
5894
  const src = size === "large" ? angle === void 0 ? imgPassengerCircle : imgPassengerCircleArrow : angle === void 0 ? imgPassengerSmall : imgPassengerSmallArrow;
5544
5895
  const style2 = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
5545
- const type = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
5896
+ const type2 = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
5546
5897
  return `
5547
5898
  <img class="APassengerCircle ${passengerCircle({
5548
- type
5899
+ type: type2
5549
5900
  })}" style="${style2}" src="${src}">
5550
5901
  `;
5551
5902
  });
@@ -5569,10 +5920,10 @@ const GPassengerCircle = defineSetup(function GPassengerCircle2(props) {
5569
5920
  } = props;
5570
5921
  const src = size === "large" ? angle === void 0 ? imgPassengerCircle : imgPassengerCircleArrow : angle === void 0 ? imgPassengerSmall : imgPassengerSmallArrow;
5571
5922
  const style2 = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
5572
- const type = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
5923
+ const type2 = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
5573
5924
  return createDom("img", {
5574
5925
  class: `GPassengerCircle ${passengerCircle({
5575
- type
5926
+ type: type2
5576
5927
  })}`,
5577
5928
  src,
5578
5929
  style: style2
@@ -5688,7 +6039,9 @@ var AnchorType = /* @__PURE__ */ ((AnchorType2) => {
5688
6039
  const PlaceCircle_css_ts_vanilla = "";
5689
6040
  var amapPlaceIconLayout = createRuntimeFn({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] });
5690
6041
  var gmapPlaceIconLayout = createRuntimeFn({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] });
5691
- var label = "fhyw8b";
6042
+ var label = "fhyw8c";
6043
+ var labelLayout = "fhyw8b";
6044
+ var labelStroke = "fhyw8d fhyw8c";
5692
6045
  var placeCircleLayout = createRuntimeFn({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] });
5693
6046
  var placeIcon = createRuntimeFn({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
5694
6047
  const APlaceCircle = defineSetup(function APlaceCircle2(props, {
@@ -5711,7 +6064,10 @@ const APlaceCircle = defineSetup(function APlaceCircle2(props, {
5711
6064
  })} ${amapPlaceIconLayout({
5712
6065
  textAlign: textAlignRef.value
5713
6066
  })}" src="${imgPlaceCircle}">
5714
- <div class="${label}">${props.label}</div>
6067
+ <div class="${labelLayout}">
6068
+ <div class="${labelStroke}">${props.label}</div>
6069
+ <div class="${label}">${props.label}</div>
6070
+ </div>
5715
6071
  </div>
5716
6072
  `;
5717
6073
  });
@@ -5725,7 +6081,8 @@ const APlaceCircle = defineSetup(function APlaceCircle2(props, {
5725
6081
  textAlign: textAlignRef.value
5726
6082
  })}" src="${imgPlaceCircle}">`;
5727
6083
  });
5728
- const handleClick = () => {
6084
+ const handleClick = (e) => {
6085
+ console.log("AmapMarker click e = ", e);
5729
6086
  emit("click", props.position);
5730
6087
  };
5731
6088
  return () => {
@@ -5763,7 +6120,10 @@ const GPlaceCircle = defineSetup(function GPlaceCircle2(props, {
5763
6120
  <img class="${placeIcon({
5764
6121
  hideIcon
5765
6122
  })}" src="${imgPlaceCircle}">
5766
- <div class="${label}">${props.label}</div>
6123
+ <div class="${labelLayout}">
6124
+ <div class="${labelStroke}">${props.label}</div>
6125
+ <div class="${label}">${props.label}</div>
6126
+ </div>
5767
6127
  `);
5768
6128
  });
5769
6129
  const contentWithoutLabelRef = computed(() => {
@@ -5877,7 +6237,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
5877
6237
  const centerSource = {
5878
6238
  source: "geo"
5879
6239
  };
5880
- const setCenterPlaceByRecomand = (point) => {
6240
+ const updateCenterPlaceByPoint = (point) => {
5881
6241
  centerSource.source = "api";
5882
6242
  updatePlace(point);
5883
6243
  };
@@ -5891,7 +6251,20 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
5891
6251
  emit("changePlace", {
5892
6252
  ...place
5893
6253
  });
5894
- updatePlaceCandidates(place);
6254
+ updateRecommendPlace(place);
6255
+ };
6256
+ const setCenterPlaceByUserSpecifiedInZone = ({
6257
+ place,
6258
+ recommends
6259
+ }) => {
6260
+ centerPlace.lng = place.lng;
6261
+ centerPlace.lat = place.lat;
6262
+ centerPlace.name = place.name;
6263
+ centerPlace.displayName = place.displayName;
6264
+ setPlaceCandidatesAndZone(recommends);
6265
+ emit("changePlace", {
6266
+ ...place
6267
+ });
5895
6268
  };
5896
6269
  const panToCenterByPlace = async (place) => {
5897
6270
  centerSource.source = "api";
@@ -5903,6 +6276,15 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
5903
6276
  emit("changePlace", {
5904
6277
  ...place
5905
6278
  });
6279
+ emit("changeRecomandPlace", {
6280
+ place: {
6281
+ ...place
6282
+ },
6283
+ inputPlace: {
6284
+ ...place
6285
+ },
6286
+ isInZone: !!zoneRef.value
6287
+ });
5906
6288
  };
5907
6289
  const defaultCenterPlacePromise = new Promise((resolve) => {
5908
6290
  getDefaultCenterPlace().then(resolve).catch(() => resolve(void 0));
@@ -5941,10 +6323,11 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
5941
6323
  }
5942
6324
  });
5943
6325
  mapContext.setCenterPlaceByUserSpecified = setCenterPlaceByUserSpecified;
6326
+ mapContext.setCenterPlaceByUserSpecifiedInZone = setCenterPlaceByUserSpecifiedInZone;
5944
6327
  mapContext.panToGeoPositionByRecomend = () => {
5945
6328
  if (geoError.value)
5946
6329
  return false;
5947
- setCenterPlaceByRecomand(geoPosition.value);
6330
+ updateCenterPlaceByPoint(geoPosition.value);
5948
6331
  return true;
5949
6332
  };
5950
6333
  const {
@@ -5959,9 +6342,10 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
5959
6342
  });
5960
6343
  const {
5961
6344
  updatePlace,
5962
- updateRecomandPlace,
5963
- updatePlaceCandidates,
6345
+ updateRecommendPlace,
6346
+ setPlaceCandidatesAndZone,
5964
6347
  placeCandidates,
6348
+ zoneRef,
5965
6349
  availableRef,
5966
6350
  isElectedRef
5967
6351
  } = useMapRecomendPlace({
@@ -5984,18 +6368,26 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
5984
6368
  },
5985
6369
  onChangePlace: (place) => {
5986
6370
  if (centerSource.source !== "recomend") {
5987
- updateRecomandPlace();
6371
+ updateRecommendPlace(place);
5988
6372
  }
5989
6373
  emit("changePlace", place);
5990
6374
  },
5991
- onChange: async (place) => {
6375
+ onChange: async ({
6376
+ place,
6377
+ inputPlace,
6378
+ isInZone
6379
+ }) => {
5992
6380
  centerSource.source = "recomend";
5993
6381
  if (isPlaceEqual(place, centerPlace))
5994
6382
  panTo(place2point(place));
5995
6383
  Object.assign(centerPlace, {
5996
6384
  ...place
5997
6385
  });
5998
- emit("changeRecomandPlace", place);
6386
+ emit("changeRecomandPlace", {
6387
+ place,
6388
+ inputPlace,
6389
+ isInZone
6390
+ });
5999
6391
  }
6000
6392
  });
6001
6393
  watchEffect(() => {
@@ -6007,6 +6399,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
6007
6399
  mapContext.onChangeRecomendPlaces([...placeCandidates.value]);
6008
6400
  });
6009
6401
  return () => {
6402
+ var _a2, _b2;
6010
6403
  const {
6011
6404
  geoLoadingTitle: geoLoadingTitle2,
6012
6405
  recomendDescription,
@@ -6023,7 +6416,11 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
6023
6416
  "fallback": slots.fallback,
6024
6417
  "loading": slots.loading
6025
6418
  }
6026
- }, [!geoLoading.value && !geoError.value && h(PassengerCircle, {
6419
+ }, [((_a2 = zoneRef.value) == null ? void 0 : _a2.path.length) && h(GreenZone, {
6420
+ "attrs": {
6421
+ "path": (_b2 = zoneRef.value) == null ? void 0 : _b2.path
6422
+ }
6423
+ }), !geoLoading.value && !geoError.value && h(PassengerCircle, {
6027
6424
  "attrs": {
6028
6425
  "position": geoPosition.value,
6029
6426
  "angle": orientation.cssRotationVariableName
@@ -6206,7 +6603,8 @@ const AWalkingLine = defineSetup(function AWalkingLine2(props) {
6206
6603
  "strokeStyle": "dashed",
6207
6604
  "strokeDasharray": [strokeWidth, strokeWidth * 1.5],
6208
6605
  "lineJoin": "round",
6209
- "lineCap": "round"
6606
+ "lineCap": "round",
6607
+ "zIndex": ZINDEX_LINE_LAYER
6210
6608
  }
6211
6609
  });
6212
6610
  };
@@ -6242,7 +6640,8 @@ const GWalkingLine = defineSetup(function GWalkingLine2(props) {
6242
6640
  scale: 1
6243
6641
  },
6244
6642
  repeat: `${strokeWidth * 2}px`
6245
- }]
6643
+ }],
6644
+ "zIndex": ZINDEX_LINE_LAYER
6246
6645
  }
6247
6646
  });
6248
6647
  };
@@ -7168,6 +7567,7 @@ const useBusinessRecomendPlaceMap = () => {
7168
7567
  const { inChina } = useMapInChina();
7169
7568
  const panToGeoPositionByRecomend = (value) => mapContext.panToGeoPositionByRecomend(value);
7170
7569
  const setCenterPlaceByUserSpecified = (value) => mapContext.setCenterPlaceByUserSpecified(value);
7570
+ const setCenterPlaceByUserSpecifiedInZone = (value) => mapContext.setCenterPlaceByUserSpecifiedInZone(value);
7171
7571
  const mapContext = {
7172
7572
  panToGeoPositionByRecomend: () => {
7173
7573
  throw new Error("MyError: panToGeoPositionByRecomend used before assigned");
@@ -7175,6 +7575,9 @@ const useBusinessRecomendPlaceMap = () => {
7175
7575
  setCenterPlaceByUserSpecified: () => {
7176
7576
  throw new Error("MyError: setCenterPlaceByRecomand used before assigned");
7177
7577
  },
7578
+ setCenterPlaceByUserSpecifiedInZone: () => {
7579
+ throw new Error("MyError: setCenterPlaceByUserSpecifiedInZone used before assigned");
7580
+ },
7178
7581
  onChangeCenterPlace: (place) => {
7179
7582
  Object.assign(centerPlace, { ...place });
7180
7583
  },
@@ -7188,6 +7591,7 @@ const useBusinessRecomendPlaceMap = () => {
7188
7591
  placeCandidates,
7189
7592
  panToGeoPositionByRecomend,
7190
7593
  setCenterPlaceByUserSpecified,
7594
+ setCenterPlaceByUserSpecifiedInZone,
7191
7595
  apiMapDistance,
7192
7596
  apiMapInChina: inChina
7193
7597
  };
@@ -7201,6 +7605,7 @@ const useBusinessTaxiServiceMap = () => {
7201
7605
  });
7202
7606
  return { setMap, registerFitVeiw, setFitView };
7203
7607
  };
7608
+ logVersion();
7204
7609
  export {
7205
7610
  AbsoluteAddressBox,
7206
7611
  AddressBox,
@@ -7211,6 +7616,8 @@ export {
7211
7616
  DrivingLine,
7212
7617
  DrivingRoute,
7213
7618
  HeycarMap,
7619
+ MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT,
7620
+ MINI_PROGRAM_WEB_VIEW_CLOSE_TIMEOUT,
7214
7621
  MapProvider,
7215
7622
  PassengerCircle,
7216
7623
  PickupPoints,
@@ -7220,6 +7627,7 @@ export {
7220
7627
  WalkingLine,
7221
7628
  WalkingRoute,
7222
7629
  WaveCircle,
7630
+ patchMiniprogramRedirectTo,
7223
7631
  useBusinessAlarm,
7224
7632
  useBusinessQuotingMap,
7225
7633
  useBusinessRecomendPlaceMap,