@heycar/heycars-map 2.15.0-domestic2 → 2.15.0-sgn1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -47
- package/dist/v2/Demo/DemoBusinessRecomendPlace.js +1 -2
- package/dist/v2/Demo/DemoBusinessTaxiEnd.d.ts +1 -2
- package/dist/v2/Demo/DemoBusinessTaxiEnd.js +2 -9
- package/dist/v2/Demo/DemoBusinessTaxiService.d.ts +1 -4
- package/dist/v2/Demo/DemoBusinessTaxiService.js +1 -19
- package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
- package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +2 -3
- package/dist/v2/business-components/BusinessRecomendPlaceMap/index.js +2 -2
- package/dist/v2/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.d.ts +2 -1
- package/dist/v2/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js +14 -6
- package/dist/v2/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +6 -2
- package/dist/v2/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +3 -4
- package/dist/v2/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +2 -6
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -4
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +7 -45
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +1 -6
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +16 -80
- package/dist/v2/chunks/{BusinessRecomendPlaceMap.eebd0822.js → BusinessRecomendPlaceMap.ed4b75d5.js} +30 -11
- package/dist/{v3/chunks/Loading.4b53c31f.js → v2/chunks/Loading.70dfc720.js} +30 -34
- package/dist/v2/components/Loading/Loading.js +1 -1
- package/dist/v2/components/Loading/index.js +1 -1
- package/dist/v2/components/MapProvider/MapProvider.js +10 -21
- package/dist/v2/hooks/useMapCoordinatify.d.ts +1 -2
- package/dist/v2/hooks/useMapCoordinatify.js +1 -6
- package/dist/v2/hooks/useMapFitZoom.d.ts +6 -0
- package/dist/v2/hooks/useMapFitZoom.js +22 -2
- package/dist/v2/hooks/useMapLoader.js +3 -3
- package/dist/v2/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
- package/dist/v2/index.js +1 -1
- package/dist/v2/types/interface.d.ts +0 -12
- package/dist/v2/utils/geometryPolygon.d.ts +0 -9
- package/dist/v2/utils/geometryPolygon.js +0 -19
- package/dist/v2/utils/log.js +1 -1
- package/dist/v2/utils/platform.d.ts +1 -2
- package/dist/v2/utils/platform.js +1 -2
- package/dist/v2/utils/typeChecking.d.ts +1 -7
- package/dist/v2/utils/typeChecking.js +0 -18
- package/dist/v3/Demo/DemoBusinessRecomendPlace.js +1 -2
- package/dist/v3/Demo/DemoBusinessTaxiEnd.d.ts +1 -2
- package/dist/v3/Demo/DemoBusinessTaxiEnd.js +2 -9
- package/dist/v3/Demo/DemoBusinessTaxiService.d.ts +1 -4
- package/dist/v3/Demo/DemoBusinessTaxiService.js +1 -19
- package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
- package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +2 -3
- package/dist/v3/business-components/BusinessRecomendPlaceMap/index.js +2 -2
- package/dist/v3/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.d.ts +2 -1
- package/dist/v3/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js +14 -6
- package/dist/v3/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +6 -2
- package/dist/v3/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +3 -4
- package/dist/v3/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +2 -6
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -4
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +7 -45
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +1 -6
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +16 -62
- package/dist/v3/chunks/{BusinessRecomendPlaceMap.71c439c6.js → BusinessRecomendPlaceMap.4ec9353a.js} +30 -9
- package/dist/{v2/chunks/Loading.8aa3aad3.js → v3/chunks/Loading.4c949ec9.js} +27 -47
- package/dist/v3/components/Loading/Loading.js +1 -1
- package/dist/v3/components/Loading/index.js +1 -1
- package/dist/v3/components/MapProvider/MapProvider.js +10 -21
- package/dist/v3/hooks/useMapCoordinatify.d.ts +1 -2
- package/dist/v3/hooks/useMapCoordinatify.js +1 -6
- package/dist/v3/hooks/useMapFitZoom.d.ts +6 -0
- package/dist/v3/hooks/useMapFitZoom.js +22 -2
- package/dist/v3/hooks/useMapLoader.js +3 -3
- package/dist/v3/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
- package/dist/v3/index.js +1 -1
- package/dist/v3/types/interface.d.ts +0 -12
- package/dist/v3/utils/geometryPolygon.d.ts +0 -9
- package/dist/v3/utils/geometryPolygon.js +0 -19
- package/dist/v3/utils/log.js +1 -1
- package/dist/v3/utils/platform.d.ts +1 -2
- package/dist/v3/utils/platform.js +1 -2
- package/dist/v3/utils/typeChecking.d.ts +1 -7
- package/dist/v3/utils/typeChecking.js +0 -18
- package/package.json +1 -1
- package/dist/v2/Demo/demo.data.mock.d.ts +0 -4
- package/dist/v2/Demo/demo.data.mock.js +0 -1194
- package/dist/v2/business-components/TaxiCar/RandomCars.d.ts +0 -6
- package/dist/v2/business-components/TaxiCar/RandomCars.js +0 -47
- package/dist/v3/Demo/demo.data.mock.d.ts +0 -4
- package/dist/v3/Demo/demo.data.mock.js +0 -1194
- package/dist/v3/business-components/TaxiCar/RandomCars.d.ts +0 -8
- package/dist/v3/business-components/TaxiCar/RandomCars.js +0 -45
|
@@ -10,10 +10,9 @@ import { useMapFitView } from "../../hooks/useMapFitView.js";
|
|
|
10
10
|
import { useMapAssertSupplier, useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
11
11
|
import { defineSetup, defineLagecySetup } from "../../types/helper.js";
|
|
12
12
|
import { MANUAL_ABORT_MESSAGE } from "../../utils/ManualAbortError.js";
|
|
13
|
-
import { computeLineAngle } from "../../utils/geometryPolygon.js";
|
|
14
13
|
import { createAbortable, assertNotEmptyArray } from "../../utils/helper.js";
|
|
15
14
|
import { place2point, pipeDefer, lnglat2point } from "../../utils/transform.js";
|
|
16
|
-
import { toCoordinatePlaceType,
|
|
15
|
+
import { toCoordinatePlaceType, toCoordinateTrackPoint } from "../../utils/typeChecking.js";
|
|
17
16
|
import { AuxiliaryGraspRoad } from "../AuxiliaryGraspRoad/AuxiliaryGraspRoad.js";
|
|
18
17
|
import { AuxiliaryPassanger } from "../AuxiliaryPassanger/AuxiliaryPassanger.js";
|
|
19
18
|
import { DeviceOrientation } from "../DeviceOrientation/DeviceOrientation.js";
|
|
@@ -24,7 +23,6 @@ const IS_ENABLE_AUXILIARY_GRASP_ROAD = apiGetAuxiliaryGrapStatus();
|
|
|
24
23
|
const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", function(props, {
|
|
25
24
|
attrs
|
|
26
25
|
}) {
|
|
27
|
-
var _a;
|
|
28
26
|
const {
|
|
29
27
|
interval,
|
|
30
28
|
disablePassenger,
|
|
@@ -42,17 +40,10 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
42
40
|
} = useMapAssertSupplier();
|
|
43
41
|
const abortController = new AbortController();
|
|
44
42
|
const abortable = createAbortable(abortController.signal);
|
|
45
|
-
const
|
|
46
|
-
var _a2;
|
|
47
|
-
return {
|
|
48
|
-
tracks: await ((_a2 = props.getDriverPositionTrack) == null ? void 0 : _a2.call(props))
|
|
49
|
-
};
|
|
50
|
-
});
|
|
43
|
+
const getDriverPositionTrack = abortable(props.getDriverPositionTrack);
|
|
51
44
|
const {
|
|
52
|
-
unCoordinatifyPoint,
|
|
53
45
|
unCoordinatifyPlace,
|
|
54
|
-
unCoordinatifyTrackPoint
|
|
55
|
-
unCoordinatifyExternalRoute
|
|
46
|
+
unCoordinatifyTrackPoint
|
|
56
47
|
} = useMapCoordinatify();
|
|
57
48
|
const {
|
|
58
49
|
registerFitVeiw: registerOverlay,
|
|
@@ -73,27 +64,11 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
73
64
|
const carPositionRef = ref();
|
|
74
65
|
const carAngleRef = ref();
|
|
75
66
|
const carTrackPositionsRef = ref([]);
|
|
76
|
-
const carRouteRef = ref();
|
|
77
67
|
watch(() => props.driverStatus, (status, _, onCleanup) => {
|
|
78
68
|
if (!STATUS_NEED_CAR_POSITION.includes(status))
|
|
79
69
|
return;
|
|
80
70
|
const update = async () => {
|
|
81
|
-
const
|
|
82
|
-
if (!("tracks" in output) && !("routes" in output)) {
|
|
83
|
-
throw createTypeError("GetDriverRouteOrTrackOutput", output);
|
|
84
|
-
}
|
|
85
|
-
if ("routes" in output) {
|
|
86
|
-
const routes = unCoordinatifyExternalRoute(toCoordinateExternalRoute(output.routes));
|
|
87
|
-
assertNotEmptyArray(routes.path, "routes.path");
|
|
88
|
-
carPositionRef.value = routes.path[0];
|
|
89
|
-
carAngleRef.value = computeLineAngle(routes.path[0], routes.path[1]);
|
|
90
|
-
carTrackPositionsRef.value = [];
|
|
91
|
-
carRouteRef.value = routes;
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
const {
|
|
95
|
-
tracks
|
|
96
|
-
} = output;
|
|
71
|
+
const tracks = await (getDriverPositionTrack == null ? void 0 : getDriverPositionTrack());
|
|
97
72
|
assertNotEmptyArray(tracks, "tracks");
|
|
98
73
|
const trackPositions = tracks.map((p) => unCoordinatifyTrackPoint(toCoordinateTrackPoint(p)));
|
|
99
74
|
const [{
|
|
@@ -102,7 +77,6 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
102
77
|
carPositionRef.value = lnglat2point(trackPositions[trackPositions.length - 1]);
|
|
103
78
|
carAngleRef.value = angle;
|
|
104
79
|
carTrackPositionsRef.value = trackPositions;
|
|
105
|
-
carRouteRef.value = void 0;
|
|
106
80
|
};
|
|
107
81
|
const timer = setInterval(update, interval);
|
|
108
82
|
update();
|
|
@@ -121,21 +95,16 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
121
95
|
dispatchingTitle,
|
|
122
96
|
bookDispatchingTitle,
|
|
123
97
|
bookDispatchedTitle,
|
|
124
|
-
driverArrivedTitle
|
|
125
|
-
confirmedPath: inputConfirmedPath,
|
|
126
|
-
endServicePath: inputEndServicePath
|
|
98
|
+
driverArrivedTitle
|
|
127
99
|
} = props;
|
|
128
100
|
const from = unCoordinatifyPlace(toCoordinatePlaceType(inputFrom));
|
|
129
101
|
const to = unCoordinatifyPlace(toCoordinatePlaceType(inputTo));
|
|
130
102
|
const relayTo = inputRelayTo ? unCoordinatifyPlace(toCoordinatePlaceType(inputRelayTo)) : void 0;
|
|
131
|
-
const confirmedPath = inputConfirmedPath == null ? void 0 : inputConfirmedPath.map((p) => unCoordinatifyPoint(toCoordinatePointType(p)));
|
|
132
|
-
const endServicePath = inputEndServicePath == null ? void 0 : inputEndServicePath.map((p) => unCoordinatifyPoint(toCoordinatePointType(p)));
|
|
133
103
|
const carPosition = carPositionRef.value;
|
|
134
104
|
const carAngle = carAngleRef.value;
|
|
135
105
|
const carTrackPositions = carTrackPositionsRef.value;
|
|
136
106
|
const touchEnable = !["canceled", "canceling", "completed", "endService", "waitpay", "waitRechargePay", "refund", "rechargePayed", "payed"].includes(driverStatus);
|
|
137
107
|
const passengerPosition = disablePassenger || geoLoading.value || geoError.value ? void 0 : geoPosition.value;
|
|
138
|
-
const carRoute = carRouteRef.value;
|
|
139
108
|
return createVNode(HeycarMap, {
|
|
140
109
|
"class": attrs.class,
|
|
141
110
|
"style": attrs.style,
|
|
@@ -159,7 +128,6 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
159
128
|
"render": (orientation) => createVNode(SectionConfirmed, {
|
|
160
129
|
"from": from,
|
|
161
130
|
"to": to,
|
|
162
|
-
"routePath": confirmedPath,
|
|
163
131
|
"passengerPosition": passengerPosition,
|
|
164
132
|
"passengerAngle": orientation == null ? void 0 : orientation.cssRotationVariableName,
|
|
165
133
|
"registerOverlay": registerOverlay
|
|
@@ -173,7 +141,6 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
173
141
|
"carPosition": carPosition,
|
|
174
142
|
"carAngle": carAngle,
|
|
175
143
|
"carTrackPositions": carTrackPositions,
|
|
176
|
-
"carRoute": carRoute,
|
|
177
144
|
"passengerPosition": passengerPosition,
|
|
178
145
|
"passengerAngle": orientation == null ? void 0 : orientation.cssRotationVariableName,
|
|
179
146
|
"relayToTitle": relayToTitle,
|
|
@@ -188,7 +155,6 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
188
155
|
"carPosition": carPosition,
|
|
189
156
|
"carAngle": carAngle,
|
|
190
157
|
"carTrackPositions": carTrackPositions,
|
|
191
|
-
"carRoute": carRoute,
|
|
192
158
|
"passengerPosition": passengerPosition,
|
|
193
159
|
"passengerAngle": orientation == null ? void 0 : orientation.cssRotationVariableName,
|
|
194
160
|
"renderTitle": renderStartSerivceTitle,
|
|
@@ -201,7 +167,6 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
201
167
|
"from": from,
|
|
202
168
|
"to": to,
|
|
203
169
|
"title": bookDispatchedTitle,
|
|
204
|
-
"routePath": confirmedPath,
|
|
205
170
|
"passengerPosition": passengerPosition,
|
|
206
171
|
"passengerAngle": orientation == null ? void 0 : orientation.cssRotationVariableName,
|
|
207
172
|
"registerOverlay": registerOverlay
|
|
@@ -211,7 +176,6 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
211
176
|
"carPosition": carPosition,
|
|
212
177
|
"carAngle": carAngle,
|
|
213
178
|
"carTrackPositions": carTrackPositions,
|
|
214
|
-
"carRoute": carRoute,
|
|
215
179
|
"renderTitle": renderInServiceTitle,
|
|
216
180
|
"registerOverlay": registerOverlay,
|
|
217
181
|
"key": `${to.lng},${to.lat}`
|
|
@@ -234,17 +198,15 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
234
198
|
}, null) : driverStatus === "endService" || driverStatus === "completed" || driverStatus === "banlanceRefund" || driverStatus === "waitBanlanceRefund" || driverStatus === "rechargePayed" || driverStatus === "waitRechargePay" || driverStatus === "payed" || driverStatus === "waitpay" || driverStatus === "refund" ? createVNode(SectionEndService, {
|
|
235
199
|
"from": from,
|
|
236
200
|
"to": to,
|
|
237
|
-
"routePath": endServicePath,
|
|
238
201
|
"registerOverlay": registerOverlay
|
|
239
202
|
}, null) : (
|
|
240
203
|
// 匹配不到就显示灰色路线
|
|
241
204
|
createVNode(SectionEndService, {
|
|
242
205
|
"from": from,
|
|
243
206
|
"to": to,
|
|
244
|
-
"routePath": endServicePath,
|
|
245
207
|
"registerOverlay": registerOverlay
|
|
246
208
|
}, null)
|
|
247
|
-
), IS_ENABLE_AUXILIARY_GRASP_ROAD &&
|
|
209
|
+
), IS_ENABLE_AUXILIARY_GRASP_ROAD && createVNode(AuxiliaryGraspRoad, {
|
|
248
210
|
"status": driverStatus,
|
|
249
211
|
"trackPoints": carTrackPositions,
|
|
250
212
|
"from": from,
|
|
@@ -271,7 +233,7 @@ const BusinessTaxiServiceMap = defineLagecySetup("BusinessTaxiServiceMap", funct
|
|
|
271
233
|
attrs: props,
|
|
272
234
|
key: `${payload.supplier}${instanceNo}`
|
|
273
235
|
});
|
|
274
|
-
}).props(["bookDispatchingTitle", "bookDispatchedTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "
|
|
236
|
+
}).props(["bookDispatchingTitle", "bookDispatchedTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "interval", "disablePassenger", "loading", "mapContext", "relayTo", "relayToTitle", "renderInServiceTitle", "renderStartSerivceTitle", "to"]);
|
|
275
237
|
export {
|
|
276
238
|
BusinessTaxiServiceMap,
|
|
277
239
|
BusinessTaxiServiceMapInner
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MROP } from "../../hooks/useOverlay";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Place, Point, TrackPoint } from "../../types/interface";
|
|
3
3
|
import { type DrivingRouteRenderProps } from "../DrivingRoute";
|
|
4
4
|
type SectionDispatchingProps = Required<MROP> & {
|
|
5
5
|
title: string;
|
|
@@ -13,7 +13,6 @@ type SectionConfirmedProps = Required<MROP> & {
|
|
|
13
13
|
passengerAngle?: string;
|
|
14
14
|
from: Place;
|
|
15
15
|
to: Place;
|
|
16
|
-
routePath?: Point[];
|
|
17
16
|
};
|
|
18
17
|
export declare const SectionConfirmed: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<SectionConfirmedProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionConfirmedProps, Required<SectionConfirmedProps>>, never, import("vue").PublicProps, SectionConfirmedProps, SectionConfirmedProps, import("vue").SlotsType<{} & {
|
|
19
18
|
default?: import("../../demi-polyfill").Slot | undefined;
|
|
@@ -33,7 +32,6 @@ type SectionDriverStartServiceProps = Required<MROP> & {
|
|
|
33
32
|
carPosition?: Point;
|
|
34
33
|
carAngle?: number;
|
|
35
34
|
carTrackPositions?: TrackPoint[];
|
|
36
|
-
carRoute?: ExternalRoute;
|
|
37
35
|
from: Place;
|
|
38
36
|
renderTitle: (props: Pick<DrivingRouteRenderProps, "duration" | "distance">) => string;
|
|
39
37
|
};
|
|
@@ -47,7 +45,6 @@ type SectionBookDispatchedProps = Required<MROP> & {
|
|
|
47
45
|
passengerAngle?: string;
|
|
48
46
|
from: Place;
|
|
49
47
|
to: Place;
|
|
50
|
-
routePath?: Point[];
|
|
51
48
|
title?: string;
|
|
52
49
|
};
|
|
53
50
|
export declare const SectionBookDispatched: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<SectionBookDispatchedProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionBookDispatchedProps, Required<SectionBookDispatchedProps>>, never, import("vue").PublicProps, SectionBookDispatchedProps, SectionBookDispatchedProps, import("vue").SlotsType<{} & {
|
|
@@ -69,7 +66,6 @@ type SectionInServiceProps = Required<MROP> & {
|
|
|
69
66
|
carPosition?: Point;
|
|
70
67
|
carAngle?: number;
|
|
71
68
|
carTrackPositions?: TrackPoint[];
|
|
72
|
-
carRoute?: ExternalRoute;
|
|
73
69
|
renderTitle: (props: Pick<DrivingRouteRenderProps, "duration" | "distance">) => string;
|
|
74
70
|
};
|
|
75
71
|
export declare const SectionInService: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<SectionInServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionInServiceProps, Required<SectionInServiceProps>>, never, import("vue").PublicProps, SectionInServiceProps, SectionInServiceProps, import("vue").SlotsType<{
|
|
@@ -87,7 +83,6 @@ export declare const SectionCanceled: import("vue").DefineComponent<import("vue"
|
|
|
87
83
|
export type SectionEndServiceProps = Required<MROP> & {
|
|
88
84
|
from: Place;
|
|
89
85
|
to: Place;
|
|
90
|
-
routePath?: Point[];
|
|
91
86
|
};
|
|
92
87
|
export declare const SectionEndService: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<SectionEndServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionEndServiceProps, Required<SectionEndServiceProps>>, never, import("vue").PublicProps, SectionEndServiceProps, SectionEndServiceProps, import("vue").SlotsType<{} & {
|
|
93
88
|
default?: import("../../demi-polyfill").Slot | undefined;
|
|
@@ -67,15 +67,12 @@ const SectionConfirmed = defineSetup("SectionConfirmed", function(props) {
|
|
|
67
67
|
to: toPlace,
|
|
68
68
|
passengerPosition,
|
|
69
69
|
passengerAngle,
|
|
70
|
-
routePath,
|
|
71
70
|
registerOverlay
|
|
72
71
|
} = props;
|
|
73
72
|
const from = place2point(fromPlace);
|
|
74
73
|
const to = place2point(toPlace);
|
|
75
74
|
const passengerDistance = passengerPosition ? apiMapDistance(passengerPosition, from) : void 0;
|
|
76
|
-
return createVNode("div", null, [
|
|
77
|
-
"path": routePath
|
|
78
|
-
}, null) : createVNode(DrivingRoute, {
|
|
75
|
+
return createVNode("div", null, [createVNode(DrivingRoute, {
|
|
79
76
|
"to": to,
|
|
80
77
|
"from": from,
|
|
81
78
|
"render": ({
|
|
@@ -132,14 +129,12 @@ const SectionDriverStartRelayService = defineSetup("SectionDriverStartRelayServi
|
|
|
132
129
|
apiMapDistance
|
|
133
130
|
} = useMapGeometry();
|
|
134
131
|
return () => {
|
|
135
|
-
var _a;
|
|
136
132
|
const {
|
|
137
133
|
from: fromPlace,
|
|
138
134
|
relayTo: relayToPlace,
|
|
139
135
|
carPosition,
|
|
140
136
|
carAngle,
|
|
141
137
|
carTrackPositions,
|
|
142
|
-
carRoute,
|
|
143
138
|
passengerPosition,
|
|
144
139
|
passengerAngle,
|
|
145
140
|
relayToTitle,
|
|
@@ -173,17 +168,7 @@ const SectionDriverStartRelayService = defineSetup("SectionDriverStartRelayServi
|
|
|
173
168
|
"position": relayTo,
|
|
174
169
|
"label": relayToTitle,
|
|
175
170
|
"hideIcon": true
|
|
176
|
-
}, null),
|
|
177
|
-
"path": carRoute.path
|
|
178
|
-
}, null), createVNode(TaxiCar, {
|
|
179
|
-
"position": (_a = carRoute.path[0]) != null ? _a : carPosition,
|
|
180
|
-
"angle": carAngle,
|
|
181
|
-
"title": renderTitle({
|
|
182
|
-
distance: carRoute.distance,
|
|
183
|
-
duration: carRoute.duration
|
|
184
|
-
}),
|
|
185
|
-
"registerOverlay": fittableRegistryOverlay
|
|
186
|
-
}, null)] : !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : createVNode(DeviationCorrectionDrivingRoute, {
|
|
171
|
+
}, null), !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : createVNode(DeviationCorrectionDrivingRoute, {
|
|
187
172
|
"tracks": carTrackPositions,
|
|
188
173
|
"to": from,
|
|
189
174
|
"waypoints": waypoints,
|
|
@@ -195,12 +180,12 @@ const SectionDriverStartRelayService = defineSetup("SectionDriverStartRelayServi
|
|
|
195
180
|
duration,
|
|
196
181
|
trafficJams
|
|
197
182
|
}) => {
|
|
198
|
-
var
|
|
183
|
+
var _a;
|
|
199
184
|
return [relayTo ? createVNode(TrafficDrivingLine, {
|
|
200
185
|
"path": path,
|
|
201
186
|
"trafficJams": trafficJams
|
|
202
187
|
}, null) : null, createVNode(TaxiCar, {
|
|
203
|
-
"position": (
|
|
188
|
+
"position": (_a = path[0]) != null ? _a : carPosition,
|
|
204
189
|
"angle": angle != null ? angle : carAngle,
|
|
205
190
|
"title": renderTitle({
|
|
206
191
|
distance,
|
|
@@ -241,13 +226,11 @@ const SectionDriverStartService = defineSetup("SectionDriverStartService", funct
|
|
|
241
226
|
apiMapDistance
|
|
242
227
|
} = useMapGeometry();
|
|
243
228
|
return () => {
|
|
244
|
-
var _a;
|
|
245
229
|
const {
|
|
246
230
|
from: fromPlace,
|
|
247
231
|
carPosition,
|
|
248
232
|
carAngle,
|
|
249
233
|
carTrackPositions,
|
|
250
|
-
carRoute,
|
|
251
234
|
passengerPosition,
|
|
252
235
|
passengerAngle,
|
|
253
236
|
renderTitle
|
|
@@ -269,17 +252,7 @@ const SectionDriverStartService = defineSetup("SectionDriverStartService", funct
|
|
|
269
252
|
"position": from,
|
|
270
253
|
"label": fromPlace.displayName,
|
|
271
254
|
"hideIcon": true
|
|
272
|
-
}, null),
|
|
273
|
-
"path": carRoute.path
|
|
274
|
-
}, null), createVNode(TaxiCar, {
|
|
275
|
-
"position": (_a = carRoute.path[0]) != null ? _a : carPosition,
|
|
276
|
-
"angle": carAngle,
|
|
277
|
-
"title": renderTitle({
|
|
278
|
-
distance: carRoute.distance,
|
|
279
|
-
duration: carRoute.duration
|
|
280
|
-
}),
|
|
281
|
-
"registerOverlay": fittableRegistryOverlay
|
|
282
|
-
}, null)] : !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : carDistance > CAR_DISTANCE_MIN ? createVNode(DeviationCorrectionDrivingRoute, {
|
|
255
|
+
}, null), !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : carDistance > CAR_DISTANCE_MIN ? createVNode(DeviationCorrectionDrivingRoute, {
|
|
283
256
|
"tracks": carTrackPositions,
|
|
284
257
|
"to": from,
|
|
285
258
|
"deviation": MAX_DEVIATION_DISTANCE,
|
|
@@ -290,12 +263,12 @@ const SectionDriverStartService = defineSetup("SectionDriverStartService", funct
|
|
|
290
263
|
duration,
|
|
291
264
|
trafficJams
|
|
292
265
|
}) => {
|
|
293
|
-
var
|
|
266
|
+
var _a;
|
|
294
267
|
return [createVNode(TrafficDrivingLine, {
|
|
295
268
|
"path": path,
|
|
296
269
|
"trafficJams": trafficJams
|
|
297
270
|
}, null), createVNode(TaxiCar, {
|
|
298
|
-
"position": (
|
|
271
|
+
"position": (_a = path[0]) != null ? _a : carPosition,
|
|
299
272
|
"angle": angle != null ? angle : carAngle,
|
|
300
273
|
"title": renderTitle({
|
|
301
274
|
distance,
|
|
@@ -310,9 +283,9 @@ const SectionDriverStartService = defineSetup("SectionDriverStartService", funct
|
|
|
310
283
|
path: graspRoadPath,
|
|
311
284
|
angle
|
|
312
285
|
}) => {
|
|
313
|
-
var
|
|
286
|
+
var _a;
|
|
314
287
|
return createVNode(TaxiCar, {
|
|
315
|
-
"position": (
|
|
288
|
+
"position": (_a = graspRoadPath[graspRoadPath.length - 1]) != null ? _a : carPosition,
|
|
316
289
|
"angle": angle != null ? angle : carAngle,
|
|
317
290
|
"title": renderTitle({
|
|
318
291
|
distance: carDistance,
|
|
@@ -352,15 +325,12 @@ const SectionBookDispatched = defineSetup("SectionBookDispatched", function(prop
|
|
|
352
325
|
title,
|
|
353
326
|
passengerPosition,
|
|
354
327
|
passengerAngle,
|
|
355
|
-
routePath,
|
|
356
328
|
registerOverlay
|
|
357
329
|
} = props;
|
|
358
330
|
const from = place2point(fromPlace);
|
|
359
331
|
const to = place2point(toPlace);
|
|
360
332
|
const passengerDistance = passengerPosition ? apiMapDistance(passengerPosition, from) : void 0;
|
|
361
|
-
return createVNode("div", null, [
|
|
362
|
-
"path": routePath
|
|
363
|
-
}, null) : createVNode(DrivingRoute, {
|
|
333
|
+
return createVNode("div", null, [createVNode(DrivingRoute, {
|
|
364
334
|
"to": to,
|
|
365
335
|
"from": from,
|
|
366
336
|
"render": ({
|
|
@@ -481,13 +451,11 @@ const SectionInService = defineSetup("SectionInService", function(props) {
|
|
|
481
451
|
immediate: true
|
|
482
452
|
});
|
|
483
453
|
return () => {
|
|
484
|
-
var _a;
|
|
485
454
|
const {
|
|
486
455
|
to: toPlace,
|
|
487
456
|
carPosition,
|
|
488
457
|
carAngle,
|
|
489
458
|
carTrackPositions,
|
|
490
|
-
carRoute,
|
|
491
459
|
renderTitle
|
|
492
460
|
} = props;
|
|
493
461
|
const to = place2point(toPlace);
|
|
@@ -498,17 +466,7 @@ const SectionInService = defineSetup("SectionInService", function(props) {
|
|
|
498
466
|
apiMapDistance
|
|
499
467
|
} = useMapGeometry();
|
|
500
468
|
const carDistance = carPosition ? apiMapDistance(carPosition, to) : void 0;
|
|
501
|
-
return createVNode("div", null, [
|
|
502
|
-
"path": carRoute.path
|
|
503
|
-
}, null), createVNode(TaxiCar, {
|
|
504
|
-
"position": (_a = carRoute.path[0]) != null ? _a : carPosition,
|
|
505
|
-
"angle": carAngle,
|
|
506
|
-
"title": renderTitle({
|
|
507
|
-
distance: carRoute.distance,
|
|
508
|
-
duration: carRoute.duration
|
|
509
|
-
}),
|
|
510
|
-
"registerOverlay": fittableRegistryOverlay
|
|
511
|
-
}, null)] : !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : carDistance > CAR_DISTANCE_MIN ? createVNode(DeviationCorrectionDrivingRoute, {
|
|
469
|
+
return createVNode("div", null, [!(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : carDistance > CAR_DISTANCE_MIN ? createVNode(DeviationCorrectionDrivingRoute, {
|
|
512
470
|
"tracks": carTrackPositions,
|
|
513
471
|
"to": to,
|
|
514
472
|
"deviation": MAX_DEVIATION_DISTANCE,
|
|
@@ -519,12 +477,12 @@ const SectionInService = defineSetup("SectionInService", function(props) {
|
|
|
519
477
|
duration,
|
|
520
478
|
trafficJams
|
|
521
479
|
}) => {
|
|
522
|
-
var
|
|
480
|
+
var _a;
|
|
523
481
|
return [createVNode(TrafficDrivingLine, {
|
|
524
482
|
"path": path,
|
|
525
483
|
"trafficJams": trafficJams
|
|
526
484
|
}, null), createVNode(TaxiCar, {
|
|
527
|
-
"position": (
|
|
485
|
+
"position": (_a = path[0]) != null ? _a : carPosition,
|
|
528
486
|
"angle": angle != null ? angle : carAngle,
|
|
529
487
|
"title": renderTitle({
|
|
530
488
|
distance,
|
|
@@ -539,9 +497,9 @@ const SectionInService = defineSetup("SectionInService", function(props) {
|
|
|
539
497
|
path: graspRoadPath,
|
|
540
498
|
angle
|
|
541
499
|
}) => {
|
|
542
|
-
var
|
|
500
|
+
var _a;
|
|
543
501
|
return createVNode(TaxiCar, {
|
|
544
|
-
"position": (
|
|
502
|
+
"position": (_a = graspRoadPath[graspRoadPath.length - 1]) != null ? _a : carPosition,
|
|
545
503
|
"angle": angle != null ? angle : carAngle,
|
|
546
504
|
"title": renderTitle({
|
|
547
505
|
distance: carDistance,
|
|
@@ -616,15 +574,11 @@ const SectionEndService = defineSetup("SectionEndService", function(props) {
|
|
|
616
574
|
const {
|
|
617
575
|
from: fromPlace,
|
|
618
576
|
to: toPlace,
|
|
619
|
-
routePath,
|
|
620
577
|
registerOverlay
|
|
621
578
|
} = props;
|
|
622
579
|
const from = place2point(fromPlace);
|
|
623
580
|
const to = place2point(toPlace);
|
|
624
|
-
return createVNode("div", null, [
|
|
625
|
-
"path": routePath,
|
|
626
|
-
"status": "DONE"
|
|
627
|
-
}, null) : createVNode(DrivingRoute, {
|
|
581
|
+
return createVNode("div", null, [createVNode(DrivingRoute, {
|
|
628
582
|
"from": from,
|
|
629
583
|
"to": to,
|
|
630
584
|
"render": ({
|
package/dist/v3/chunks/{BusinessRecomendPlaceMap.71c439c6.js → BusinessRecomendPlaceMap.4ec9353a.js}
RENAMED
|
@@ -26,7 +26,6 @@ import { DeviceOrientation } from "../business-components/DeviceOrientation/Devi
|
|
|
26
26
|
import { GreenZone } from "../business-components/GreenZone/GreenZone.js";
|
|
27
27
|
import { PassengerCircle } from "../business-components/PassengerCircle/PassengerCircle.js";
|
|
28
28
|
import { PickupPoints } from "../business-components/PickupPoints/PickupPoints.js";
|
|
29
|
-
import { RandomCars } from "../business-components/TaxiCar/RandomCars.js";
|
|
30
29
|
import { useCacheCenterPlace } from "../business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js";
|
|
31
30
|
import { b as baseGetTag, r as root } from "./isSymbol.555c14bf.js";
|
|
32
31
|
import { i as isObject } from "./debounce.5afe7867.js";
|
|
@@ -260,6 +259,24 @@ function memoize(func, resolver) {
|
|
|
260
259
|
return memoized;
|
|
261
260
|
}
|
|
262
261
|
memoize.Cache = MapCache;
|
|
262
|
+
const airportSgnBounds = [
|
|
263
|
+
[
|
|
264
|
+
106.632607,
|
|
265
|
+
10.832126
|
|
266
|
+
],
|
|
267
|
+
[
|
|
268
|
+
106.67934,
|
|
269
|
+
10.832126
|
|
270
|
+
],
|
|
271
|
+
[
|
|
272
|
+
106.67934,
|
|
273
|
+
10.805079
|
|
274
|
+
],
|
|
275
|
+
[
|
|
276
|
+
106.632607,
|
|
277
|
+
10.805079
|
|
278
|
+
]
|
|
279
|
+
];
|
|
263
280
|
const RECOMMEND_PLACE_DRAG_LIMIT = 10;
|
|
264
281
|
const RECOMMEND_PLACE_LARGE_LIMIT = 100;
|
|
265
282
|
const RECOMMEND_PLACE_ICON_ZOOM_MIN = 16.25;
|
|
@@ -287,7 +304,8 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
|
|
|
287
304
|
geoErrorOnceNotificationKey = `BusinessRecomendPlaceMap_${Date.now()}`,
|
|
288
305
|
getAvailable: inputGetAvailable,
|
|
289
306
|
getRecomendPlace: inputGetRecomendPlace,
|
|
290
|
-
mapContext
|
|
307
|
+
mapContext,
|
|
308
|
+
skipWaitGeo
|
|
291
309
|
} = props;
|
|
292
310
|
const abortController = new AbortController();
|
|
293
311
|
const {
|
|
@@ -320,7 +338,11 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
|
|
|
320
338
|
setFitZoom
|
|
321
339
|
} = useMapFitZoom({
|
|
322
340
|
mapRef,
|
|
323
|
-
padding: ZONE_FITVIEW_PANDING
|
|
341
|
+
padding: ZONE_FITVIEW_PANDING,
|
|
342
|
+
certainZoomAreas: [{
|
|
343
|
+
zoom: DEFAULT_ZOOM,
|
|
344
|
+
points: airportSgnBounds
|
|
345
|
+
}]
|
|
324
346
|
});
|
|
325
347
|
const {
|
|
326
348
|
readyPromise,
|
|
@@ -337,7 +359,8 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
|
|
|
337
359
|
} = useCacheCenterPlace({
|
|
338
360
|
defaultCenterPlace: props.defaultCenterPlace,
|
|
339
361
|
emptyTitle,
|
|
340
|
-
geoLoadingTitle
|
|
362
|
+
geoLoadingTitle,
|
|
363
|
+
skipWaitGeo
|
|
341
364
|
});
|
|
342
365
|
const centerSource = {
|
|
343
366
|
source: "default"
|
|
@@ -557,7 +580,6 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
|
|
|
557
580
|
recomendDescription,
|
|
558
581
|
unavailableTitle,
|
|
559
582
|
forbiddenTitle,
|
|
560
|
-
enableNearbyCars,
|
|
561
583
|
disableLocator,
|
|
562
584
|
renderPlacePhoto,
|
|
563
585
|
renderPlaceTag
|
|
@@ -605,8 +627,6 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
|
|
|
605
627
|
"zoomIconMin": zoneRef.value ? RECOMMEND_PLACE_ZONE_ICON_MIN : RECOMMEND_PLACE_ICON_ZOOM_MIN,
|
|
606
628
|
"zoomTextMin": zoneRef.value ? RECOMMEND_PLACE_ZONE_TEXT_MIN : RECOMMEND_PLACE_TEXT_ZOOM_MIN,
|
|
607
629
|
"onClick": panToCenterByPlace
|
|
608
|
-
}, null), !!enableNearbyCars && zoomRef.value >= RECOMMEND_PLACE_ZONE_ICON_MIN && createVNode(RandomCars, {
|
|
609
|
-
"center": [centerPlace.lng, centerPlace.lat]
|
|
610
630
|
}, null)];
|
|
611
631
|
}
|
|
612
632
|
});
|
|
@@ -631,7 +651,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup("BusinessRecomendPlaceMap", f
|
|
|
631
651
|
key: `${payload.supplier}${instanceNo}`,
|
|
632
652
|
on: generateCreateElementV2PropsOn(props, emit, ["loadGeoLocation", "loadDefaultGeoLocation", "changeByDrag", "changeGeoLocation", "changePlace", "changeRecomandPlace", "geoError", "geoErrorOnce", "clickLocatorText", "clickLocatorPhoto"])
|
|
633
653
|
});
|
|
634
|
-
}).props(["log", "geoLoadingTitle", "emptyTitle", "queryingTitle", "defaultCenterPlace", "geoErrorOnceNotificationKey", "unavailableTitle", "forbiddenTitle", "recomendDescription", "
|
|
654
|
+
}).props(["log", "geoLoadingTitle", "emptyTitle", "queryingTitle", "defaultCenterPlace", "skipWaitGeo", "geoErrorOnceNotificationKey", "unavailableTitle", "forbiddenTitle", "recomendDescription", "disableLocator", "fallback", "getRecomendPlace", "getAvailable", "renderPlacePhoto", "renderPlaceTag", "loading", "mapContext"]);
|
|
635
655
|
export {
|
|
636
656
|
BusinessRecomendPlaceMap as B,
|
|
637
657
|
DEFAULT_ZOOM as D,
|
|
@@ -643,6 +663,7 @@ export {
|
|
|
643
663
|
RECOMMEND_PLACE_ICON_ZOOM_MIN as c,
|
|
644
664
|
RECOMMEND_PLACE_ZONE_TEXT_MIN as d,
|
|
645
665
|
RECOMMEND_PLACE_TEXT_ZOOM_MIN as e,
|
|
646
|
-
|
|
666
|
+
airportSgnBounds as f,
|
|
667
|
+
BusinessRecomendPlaceMapInner as g,
|
|
647
668
|
memoize as m
|
|
648
669
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../css/Loading-49e58ced.css";
|
|
2
|
-
import {
|
|
2
|
+
import { createVNode } from "vue";
|
|
3
3
|
import { ICON_LOAD_FAILED_URL } from "../api/cdn.js";
|
|
4
4
|
import { AbsoluteAddressBox } from "../business-components/AbsoluteAddressBox/AbsoluteAddressBox.js";
|
|
5
5
|
import { useMapSupplier } from "../hooks/useMapSupplier.js";
|
|
@@ -14,58 +14,38 @@ var loadingBg = "_17ify491";
|
|
|
14
14
|
var loadingLayout = "_17ify490";
|
|
15
15
|
var title = "_17ify495";
|
|
16
16
|
var verticalGap = "_17ify494";
|
|
17
|
-
const Loading = defineSetup("Loading", function(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"attrs": {
|
|
28
|
-
"src": imgGrid
|
|
29
|
-
}
|
|
30
|
-
}), h(AbsoluteAddressBox, {
|
|
31
|
-
"attrs": {
|
|
32
|
-
"type": "loading",
|
|
33
|
-
"title": ""
|
|
34
|
-
}
|
|
35
|
-
})]);
|
|
36
|
-
};
|
|
17
|
+
const Loading = defineSetup("Loading", function() {
|
|
18
|
+
return () => createVNode("div", {
|
|
19
|
+
"class": loadingLayout
|
|
20
|
+
}, [createVNode("img", {
|
|
21
|
+
"class": loadingBg,
|
|
22
|
+
"src": imgGrid
|
|
23
|
+
}, null), createVNode(AbsoluteAddressBox, {
|
|
24
|
+
"type": "loading",
|
|
25
|
+
"title": ""
|
|
26
|
+
}, null)]);
|
|
37
27
|
});
|
|
38
|
-
const LoadFailed = defineSetup("LoadFailed", function(props
|
|
39
|
-
attrs
|
|
40
|
-
}) {
|
|
28
|
+
const LoadFailed = defineSetup("LoadFailed", function(props) {
|
|
41
29
|
var _a, _b;
|
|
42
30
|
const {
|
|
43
31
|
themeVariables
|
|
44
32
|
} = useMapSupplier();
|
|
45
33
|
const icon = (_b = (_a = props.icon) != null ? _a : themeVariables == null ? void 0 : themeVariables.ICON_LOAD_FAILED_URL) != null ? _b : ICON_LOAD_FAILED_URL;
|
|
46
|
-
return () => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"src": icon
|
|
62
|
-
}
|
|
63
|
-
}), h("span", {
|
|
64
|
-
"class": `${title} ${verticalGap}`
|
|
65
|
-
}, [props.title]), h("span", {
|
|
66
|
-
"class": `${description} ${verticalGap}`
|
|
67
|
-
}, [props.description])])]);
|
|
68
|
-
};
|
|
34
|
+
return () => createVNode("div", {
|
|
35
|
+
"class": loadingLayout
|
|
36
|
+
}, [createVNode("img", {
|
|
37
|
+
"class": loadingBg,
|
|
38
|
+
"src": imgGrid
|
|
39
|
+
}, null), createVNode("div", {
|
|
40
|
+
"class": contentLayout
|
|
41
|
+
}, [createVNode(SvgInlineWebComponentTag, {
|
|
42
|
+
"class": iconLoadFailed,
|
|
43
|
+
"src": icon
|
|
44
|
+
}, null), createVNode("span", {
|
|
45
|
+
"class": `${title} ${verticalGap}`
|
|
46
|
+
}, [props.title]), createVNode("span", {
|
|
47
|
+
"class": `${description} ${verticalGap}`
|
|
48
|
+
}, [props.description])])]);
|
|
69
49
|
});
|
|
70
50
|
export {
|
|
71
51
|
LoadFailed as L,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "vue";
|
|
2
2
|
import "../../api/cdn.js";
|
|
3
|
-
import { L, a } from "../../chunks/Loading.
|
|
3
|
+
import { L, a } from "../../chunks/Loading.4c949ec9.js";
|
|
4
4
|
import "../../business-components/AbsoluteAddressBox/AbsoluteAddressBox.js";
|
|
5
5
|
import "../../hooks/useMapSupplier.js";
|
|
6
6
|
import "../../types/helper.js";
|