@mamrp/components 1.7.55 → 1.7.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +83 -126
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +83 -126
- package/dist/index.mjs.map +1 -1
- package/dist/selectors/index.d.mts +3 -1
- package/dist/selectors/index.d.ts +3 -1
- package/dist/selectors/index.js +4 -0
- package/dist/selectors/index.js.map +1 -1
- package/dist/selectors/index.mjs +4 -0
- package/dist/selectors/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6223,6 +6223,10 @@ function MapLocationPicker({
|
|
|
6223
6223
|
const [showGpsDialog, setShowGpsDialog] = useState17(false);
|
|
6224
6224
|
const [gpsErrorType, setGpsErrorType] = useState17("other");
|
|
6225
6225
|
const [zoom, setZoom] = useState17(defaultZoom);
|
|
6226
|
+
const hasExistingLocation = latitude !== null && longitude !== null;
|
|
6227
|
+
const initialLat = hasExistingLocation ? latitude : defaultLat;
|
|
6228
|
+
const initialLng = hasExistingLocation ? longitude : defaultLng;
|
|
6229
|
+
const initialZoom = hasExistingLocation ? 17 : defaultZoom;
|
|
6226
6230
|
useEffect12(() => {
|
|
6227
6231
|
if (!document.getElementById("leaflet-css")) {
|
|
6228
6232
|
const link = document.createElement("link");
|
|
@@ -6242,39 +6246,10 @@ function MapLocationPicker({
|
|
|
6242
6246
|
return () => {
|
|
6243
6247
|
if (mapInstanceRef.current) {
|
|
6244
6248
|
mapInstanceRef.current.remove();
|
|
6249
|
+
mapInstanceRef.current = null;
|
|
6245
6250
|
}
|
|
6246
6251
|
};
|
|
6247
6252
|
}, []);
|
|
6248
|
-
useEffect12(() => {
|
|
6249
|
-
if (!mapInstanceRef.current) return;
|
|
6250
|
-
if (latitude === null || longitude === null) {
|
|
6251
|
-
if (markerRef.current) {
|
|
6252
|
-
markerRef.current.remove();
|
|
6253
|
-
markerRef.current = null;
|
|
6254
|
-
}
|
|
6255
|
-
return;
|
|
6256
|
-
}
|
|
6257
|
-
const currentLat = latitude ?? defaultLat;
|
|
6258
|
-
const currentLng = longitude ?? defaultLng;
|
|
6259
|
-
const L = window.L;
|
|
6260
|
-
if (!markerRef.current) {
|
|
6261
|
-
markerRef.current = L.marker([currentLat, currentLng], {
|
|
6262
|
-
draggable: true
|
|
6263
|
-
}).addTo(mapInstanceRef.current);
|
|
6264
|
-
markerRef.current.on("dragend", async (e) => {
|
|
6265
|
-
const { lat, lng } = e.target.getLatLng();
|
|
6266
|
-
handleLocationChange(lat, lng);
|
|
6267
|
-
if (handleAddressChange) {
|
|
6268
|
-
setIsGeocoding(true);
|
|
6269
|
-
const address = await reverseGeocode(lat, lng);
|
|
6270
|
-
handleAddressChange(address);
|
|
6271
|
-
setIsGeocoding(false);
|
|
6272
|
-
}
|
|
6273
|
-
});
|
|
6274
|
-
} else {
|
|
6275
|
-
markerRef.current.setLatLng([currentLat, currentLng]);
|
|
6276
|
-
}
|
|
6277
|
-
}, [latitude, longitude, handleAddressChange, defaultLat, defaultLng]);
|
|
6278
6253
|
const reverseGeocode = async (lat, lng) => {
|
|
6279
6254
|
try {
|
|
6280
6255
|
const response = await fetch(
|
|
@@ -6292,12 +6267,10 @@ function MapLocationPicker({
|
|
|
6292
6267
|
const initializeMap = () => {
|
|
6293
6268
|
if (!window.L || !mapRef.current || mapInstanceRef.current) return;
|
|
6294
6269
|
const L = window.L;
|
|
6295
|
-
const initialLat = latitude ?? defaultLat;
|
|
6296
|
-
const initialLng = longitude ?? defaultLng;
|
|
6297
6270
|
const map = L.map(mapRef.current, {
|
|
6298
6271
|
attributionControl: false,
|
|
6299
6272
|
minZoom
|
|
6300
|
-
}).setView([initialLat, initialLng],
|
|
6273
|
+
}).setView([initialLat, initialLng], initialZoom);
|
|
6301
6274
|
L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
|
6302
6275
|
attribution: "\xA9 OpenStreetMap contributors",
|
|
6303
6276
|
maxZoom
|
|
@@ -6305,11 +6278,11 @@ function MapLocationPicker({
|
|
|
6305
6278
|
map.on("zoomend", () => {
|
|
6306
6279
|
setZoom(map.getZoom());
|
|
6307
6280
|
});
|
|
6308
|
-
if (
|
|
6309
|
-
|
|
6281
|
+
if (hasExistingLocation) {
|
|
6282
|
+
markerRef.current = L.marker([initialLat, initialLng], {
|
|
6310
6283
|
draggable: true
|
|
6311
6284
|
}).addTo(map);
|
|
6312
|
-
|
|
6285
|
+
markerRef.current.on("dragend", async (e) => {
|
|
6313
6286
|
const { lat, lng } = e.target.getLatLng();
|
|
6314
6287
|
handleLocationChange(lat, lng);
|
|
6315
6288
|
if (handleAddressChange) {
|
|
@@ -6319,15 +6292,13 @@ function MapLocationPicker({
|
|
|
6319
6292
|
setIsGeocoding(false);
|
|
6320
6293
|
}
|
|
6321
6294
|
});
|
|
6322
|
-
markerRef.current = marker;
|
|
6323
6295
|
}
|
|
6324
6296
|
map.on("click", async (e) => {
|
|
6325
6297
|
const { lat, lng } = e.latlng;
|
|
6326
6298
|
if (!markerRef.current) {
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
}).addTo(map);
|
|
6299
|
+
markerRef.current = L.marker([lat, lng], { draggable: true }).addTo(
|
|
6300
|
+
map
|
|
6301
|
+
);
|
|
6331
6302
|
markerRef.current.on("dragend", async (dragEvent) => {
|
|
6332
6303
|
const { lat: dragLat, lng: dragLng } = dragEvent.target.getLatLng();
|
|
6333
6304
|
handleLocationChange(dragLat, dragLng);
|
|
@@ -6351,6 +6322,37 @@ function MapLocationPicker({
|
|
|
6351
6322
|
});
|
|
6352
6323
|
mapInstanceRef.current = map;
|
|
6353
6324
|
};
|
|
6325
|
+
useEffect12(() => {
|
|
6326
|
+
if (!mapInstanceRef.current || !mapRef.current) return;
|
|
6327
|
+
const L = window.L;
|
|
6328
|
+
if (latitude === null || longitude === null) {
|
|
6329
|
+
if (markerRef.current) {
|
|
6330
|
+
markerRef.current.remove();
|
|
6331
|
+
markerRef.current = null;
|
|
6332
|
+
}
|
|
6333
|
+
return;
|
|
6334
|
+
}
|
|
6335
|
+
if (!markerRef.current) {
|
|
6336
|
+
markerRef.current = L.marker([latitude, longitude], {
|
|
6337
|
+
draggable: true
|
|
6338
|
+
}).addTo(mapInstanceRef.current);
|
|
6339
|
+
markerRef.current.on("dragend", async (e) => {
|
|
6340
|
+
const { lat, lng } = e.target.getLatLng();
|
|
6341
|
+
handleLocationChange(lat, lng);
|
|
6342
|
+
if (handleAddressChange) {
|
|
6343
|
+
setIsGeocoding(true);
|
|
6344
|
+
const address = await reverseGeocode(lat, lng);
|
|
6345
|
+
handleAddressChange(address);
|
|
6346
|
+
setIsGeocoding(false);
|
|
6347
|
+
}
|
|
6348
|
+
});
|
|
6349
|
+
} else {
|
|
6350
|
+
markerRef.current.setLatLng([latitude, longitude]);
|
|
6351
|
+
}
|
|
6352
|
+
mapInstanceRef.current.setView([latitude, longitude], zoom, {
|
|
6353
|
+
animate: true
|
|
6354
|
+
});
|
|
6355
|
+
}, [latitude, longitude]);
|
|
6354
6356
|
const checkGeolocationSupport = () => {
|
|
6355
6357
|
if (!navigator.geolocation) {
|
|
6356
6358
|
toast2.error("\u0645\u0631\u0648\u0631\u06AF\u0631 \u0634\u0645\u0627 \u0627\u0632 \u0645\u0648\u0642\u0639\u06CC\u062A \u0645\u06A9\u0627\u0646\u06CC \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0646\u0645\u06CC\u200C\u06A9\u0646\u062F.");
|
|
@@ -6359,9 +6361,7 @@ function MapLocationPicker({
|
|
|
6359
6361
|
return true;
|
|
6360
6362
|
};
|
|
6361
6363
|
const handleCurrentLocation = async () => {
|
|
6362
|
-
if (!checkGeolocationSupport() || !mapInstanceRef.current)
|
|
6363
|
-
return;
|
|
6364
|
-
}
|
|
6364
|
+
if (!checkGeolocationSupport() || !mapInstanceRef.current) return;
|
|
6365
6365
|
if (navigator.permissions) {
|
|
6366
6366
|
try {
|
|
6367
6367
|
const permissionStatus = await navigator.permissions.query({
|
|
@@ -6372,8 +6372,7 @@ function MapLocationPicker({
|
|
|
6372
6372
|
setShowGpsDialog(true);
|
|
6373
6373
|
return;
|
|
6374
6374
|
}
|
|
6375
|
-
} catch
|
|
6376
|
-
console.log("Permissions API not available");
|
|
6375
|
+
} catch {
|
|
6377
6376
|
}
|
|
6378
6377
|
}
|
|
6379
6378
|
setIsGeolocating(true);
|
|
@@ -6393,9 +6392,9 @@ function MapLocationPicker({
|
|
|
6393
6392
|
const L = window.L;
|
|
6394
6393
|
handleLocationChange(lat, lng);
|
|
6395
6394
|
if (!markerRef.current) {
|
|
6396
|
-
markerRef.current = L.marker([lat, lng], {
|
|
6397
|
-
|
|
6398
|
-
|
|
6395
|
+
markerRef.current = L.marker([lat, lng], { draggable: true }).addTo(
|
|
6396
|
+
map
|
|
6397
|
+
);
|
|
6399
6398
|
markerRef.current.on("dragend", async (e) => {
|
|
6400
6399
|
const { lat: dragLat, lng: dragLng } = e.target.getLatLng();
|
|
6401
6400
|
handleLocationChange(dragLat, dragLng);
|
|
@@ -6409,7 +6408,7 @@ function MapLocationPicker({
|
|
|
6409
6408
|
} else {
|
|
6410
6409
|
markerRef.current.setLatLng([lat, lng]);
|
|
6411
6410
|
}
|
|
6412
|
-
map.setView([lat, lng],
|
|
6411
|
+
map.setView([lat, lng], 17, { animate: true });
|
|
6413
6412
|
if (handleAddressChange) {
|
|
6414
6413
|
setIsGeocoding(true);
|
|
6415
6414
|
const address = await reverseGeocode(lat, lng);
|
|
@@ -6421,25 +6420,19 @@ function MapLocationPicker({
|
|
|
6421
6420
|
(error2) => {
|
|
6422
6421
|
clearTimeout(timeoutId);
|
|
6423
6422
|
setIsGeolocating(false);
|
|
6424
|
-
let errorMessage = "\u062E\u0637\u0627 \u062F\u0631 \u062F\u0631\u06CC\u0627\u0641\u062A \u0645\u0648\u0642\u0639\u06CC\u062A \u0645\u06A9\u0627\u0646\u06CC";
|
|
6425
6423
|
switch (error2.code) {
|
|
6426
6424
|
case error2.PERMISSION_DENIED:
|
|
6427
6425
|
setGpsErrorType("permission");
|
|
6428
|
-
|
|
6429
|
-
return;
|
|
6426
|
+
break;
|
|
6430
6427
|
case error2.POSITION_UNAVAILABLE:
|
|
6431
|
-
setGpsErrorType("gps_off");
|
|
6432
|
-
setShowGpsDialog(true);
|
|
6433
|
-
return;
|
|
6434
6428
|
case error2.TIMEOUT:
|
|
6435
6429
|
setGpsErrorType("gps_off");
|
|
6436
|
-
|
|
6437
|
-
return;
|
|
6430
|
+
break;
|
|
6438
6431
|
default:
|
|
6439
|
-
|
|
6432
|
+
setGpsErrorType("other");
|
|
6440
6433
|
break;
|
|
6441
6434
|
}
|
|
6442
|
-
|
|
6435
|
+
setShowGpsDialog(true);
|
|
6443
6436
|
},
|
|
6444
6437
|
{
|
|
6445
6438
|
enableHighAccuracy: true,
|
|
@@ -6448,79 +6441,43 @@ function MapLocationPicker({
|
|
|
6448
6441
|
}
|
|
6449
6442
|
);
|
|
6450
6443
|
};
|
|
6451
|
-
const handleGpsDialogClose = () => {
|
|
6452
|
-
setShowGpsDialog(false);
|
|
6453
|
-
};
|
|
6454
|
-
const handleOpenSettings = () => {
|
|
6455
|
-
setShowGpsDialog(false);
|
|
6456
|
-
const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
|
|
6457
|
-
if (isMobile) {
|
|
6458
|
-
toast2.loading(
|
|
6459
|
-
/* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Typography19, { variant: "body2", sx: { mb: 1 } }, "\u0644\u0637\u0641\u0627\u064B \u0645\u0631\u0627\u062D\u0644 \u0632\u06CC\u0631 \u0631\u0627 \u0627\u0646\u062C\u0627\u0645 \u062F\u0647\u06CC\u062F:"), /* @__PURE__ */ React.createElement(Typography19, { variant: "caption", component: "div" }, "\u06F1. \u0648\u0627\u0631\u062F \u062A\u0646\u0638\u06CC\u0645\u0627\u062A \u062F\u0633\u062A\u06AF\u0627\u0647 \u0634\u0648\u06CC\u062F"), /* @__PURE__ */ React.createElement(Typography19, { variant: "caption", component: "div" }, '\u06F2. \u0628\u0647 \u0628\u062E\u0634 "\u0645\u0648\u0642\u0639\u06CC\u062A \u0645\u06A9\u0627\u0646\u06CC" \u0628\u0631\u0648\u06CC\u062F'), /* @__PURE__ */ React.createElement(Typography19, { variant: "caption", component: "div" }, "\u06F3. GPS \u0631\u0627 \u0641\u0639\u0627\u0644 \u06A9\u0646\u06CC\u062F"), /* @__PURE__ */ React.createElement(Typography19, { variant: "caption", component: "div" }, "\u06F4. \u062F\u0648\u0628\u0627\u0631\u0647 \u0627\u0645\u062A\u062D\u0627\u0646 \u06A9\u0646\u06CC\u062F")),
|
|
6460
|
-
{
|
|
6461
|
-
duration: 8e3,
|
|
6462
|
-
position: "top-center"
|
|
6463
|
-
}
|
|
6464
|
-
);
|
|
6465
|
-
} else {
|
|
6466
|
-
toast2.error("\u0644\u0637\u0641\u0627\u064B GPS \u062F\u0633\u062A\u06AF\u0627\u0647 \u062E\u0648\u062F \u0631\u0627 \u0631\u0648\u0634\u0646 \u06A9\u0646\u06CC\u062F");
|
|
6467
|
-
}
|
|
6468
|
-
};
|
|
6469
|
-
const handleRetryLocation = () => {
|
|
6470
|
-
setShowGpsDialog(false);
|
|
6471
|
-
setTimeout(() => {
|
|
6472
|
-
handleCurrentLocation();
|
|
6473
|
-
}, 1e3);
|
|
6474
|
-
};
|
|
6475
6444
|
const handleClearLocation = () => {
|
|
6476
6445
|
if (markerRef.current) {
|
|
6477
6446
|
markerRef.current.remove();
|
|
6478
6447
|
markerRef.current = null;
|
|
6479
6448
|
}
|
|
6480
6449
|
handleLocationChange(null, null);
|
|
6481
|
-
if (handleAddressChange)
|
|
6482
|
-
|
|
6483
|
-
|
|
6450
|
+
if (handleAddressChange) handleAddressChange("");
|
|
6451
|
+
};
|
|
6452
|
+
const handleGpsDialogClose = () => setShowGpsDialog(false);
|
|
6453
|
+
const handleRetryLocation = () => {
|
|
6454
|
+
setShowGpsDialog(false);
|
|
6455
|
+
setTimeout(handleCurrentLocation, 500);
|
|
6456
|
+
};
|
|
6457
|
+
const handleOpenSettings = () => {
|
|
6458
|
+
setShowGpsDialog(false);
|
|
6459
|
+
toast2(
|
|
6460
|
+
/* @__PURE__ */ React.createElement("div", { dir: "rtl", style: { textAlign: "right" } }, /* @__PURE__ */ React.createElement(Typography19, { variant: "body2", sx: { mb: 1 } }, "\u0644\u0637\u0641\u0627\u064B \u0645\u0631\u0627\u062D\u0644 \u0632\u06CC\u0631 \u0631\u0627 \u0627\u0646\u062C\u0627\u0645 \u062F\u0647\u06CC\u062F:"), /* @__PURE__ */ React.createElement(Typography19, { variant: "caption", component: "div" }, "\u06F1. \u062A\u0646\u0638\u06CC\u0645\u0627\u062A \u062F\u0633\u062A\u06AF\u0627\u0647"), /* @__PURE__ */ React.createElement(Typography19, { variant: "caption", component: "div" }, "\u06F2. \u0645\u0648\u0642\u0639\u06CC\u062A \u0645\u06A9\u0627\u0646\u06CC"), /* @__PURE__ */ React.createElement(Typography19, { variant: "caption", component: "div" }, "\u06F3. \u0641\u0639\u0627\u0644 \u06A9\u0631\u062F\u0646 GPS")),
|
|
6461
|
+
{ duration: 8e3 }
|
|
6462
|
+
);
|
|
6484
6463
|
};
|
|
6485
|
-
return /* @__PURE__ */ React.createElement(Box27, { sx: { width: "100%" } }, /* @__PURE__ */ React.createElement(
|
|
6486
|
-
|
|
6464
|
+
return /* @__PURE__ */ React.createElement(Box27, { sx: { width: "100%" } }, /* @__PURE__ */ React.createElement(Toaster, { position: "top-center" }), /* @__PURE__ */ React.createElement(Dialog10, { open: showGpsDialog, onClose: handleGpsDialogClose }, /* @__PURE__ */ React.createElement(DialogTitle8, null, "\u0645\u0634\u06A9\u0644 \u062F\u0631 \u062F\u0631\u06CC\u0627\u0641\u062A \u0645\u0648\u0642\u0639\u06CC\u062A \u0645\u06A9\u0627\u0646\u06CC"), /* @__PURE__ */ React.createElement(DialogContent8, null, gpsErrorType === "permission" ? /* @__PURE__ */ React.createElement(Typography19, null, "\u062F\u0633\u062A\u0631\u0633\u06CC \u0628\u0647 \u0645\u0648\u0642\u0639\u06CC\u062A \u0645\u06A9\u0627\u0646\u06CC \u0631\u062F \u0634\u062F\u0647 \u0627\u0633\u062A.", /* @__PURE__ */ React.createElement("br", null), "\u06F1. \u0631\u0648\u06CC \u0622\u06CC\u06A9\u0648\u0646 \u0642\u0641\u0644 \u062F\u0631 \u0646\u0648\u0627\u0631 \u0622\u062F\u0631\u0633 \u06A9\u0644\u06CC\u06A9 \u06A9\u0646\u06CC\u062F", /* @__PURE__ */ React.createElement("br", null), "\u06F2. \u0645\u0648\u0642\u0639\u06CC\u062A \u0645\u06A9\u0627\u0646\u06CC \u2192 \u0627\u062C\u0627\u0632\u0647 \u062F\u0647\u06CC\u062F") : gpsErrorType === "gps_off" ? /* @__PURE__ */ React.createElement(Typography19, null, "GPS \u062E\u0627\u0645\u0648\u0634 \u0627\u0633\u062A. \u0644\u0637\u0641\u0627\u064B \u0641\u0639\u0627\u0644 \u06A9\u0646\u06CC\u062F.") : /* @__PURE__ */ React.createElement(Typography19, null, "\u062E\u0637\u0627\u06CC\u06CC \u0631\u062E \u062F\u0627\u062F\u0647 \u0627\u0633\u062A. \u062F\u0648\u0628\u0627\u0631\u0647 \u062A\u0644\u0627\u0634 \u06A9\u0646\u06CC\u062F.")), /* @__PURE__ */ React.createElement(DialogActions5, { sx: { pb: 2, pr: 2 } }, /* @__PURE__ */ React.createElement(Button15, { onClick: handleGpsDialogClose }, "\u0627\u0646\u0635\u0631\u0627\u0641"), gpsErrorType === "permission" ? /* @__PURE__ */ React.createElement(
|
|
6465
|
+
Button15,
|
|
6487
6466
|
{
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
}
|
|
6496
|
-
}
|
|
6497
|
-
), /* @__PURE__ */ React.createElement(
|
|
6498
|
-
Dialog10,
|
|
6467
|
+
onClick: handleRetryLocation,
|
|
6468
|
+
variant: "contained",
|
|
6469
|
+
color: "primary"
|
|
6470
|
+
},
|
|
6471
|
+
"\u062A\u0644\u0627\u0634 \u0645\u062C\u062F\u062F"
|
|
6472
|
+
) : /* @__PURE__ */ React.createElement(
|
|
6473
|
+
Button15,
|
|
6499
6474
|
{
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6475
|
+
onClick: handleOpenSettings,
|
|
6476
|
+
variant: "contained",
|
|
6477
|
+
color: "primary"
|
|
6503
6478
|
},
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
/* @__PURE__ */ React.createElement(DialogActions5, { sx: { pb: 2, pr: 2 } }, /* @__PURE__ */ React.createElement(Button15, { onClick: handleGpsDialogClose }, "\u0627\u0646\u0635\u0631\u0627\u0641"), gpsErrorType === "permission" ? /* @__PURE__ */ React.createElement(
|
|
6507
|
-
Button15,
|
|
6508
|
-
{
|
|
6509
|
-
onClick: handleRetryLocation,
|
|
6510
|
-
variant: "contained",
|
|
6511
|
-
color: "primary"
|
|
6512
|
-
},
|
|
6513
|
-
"\u062A\u0644\u0627\u0634 \u0645\u062C\u062F\u062F"
|
|
6514
|
-
) : /* @__PURE__ */ React.createElement(
|
|
6515
|
-
Button15,
|
|
6516
|
-
{
|
|
6517
|
-
onClick: handleOpenSettings,
|
|
6518
|
-
variant: "contained",
|
|
6519
|
-
color: "primary"
|
|
6520
|
-
},
|
|
6521
|
-
"\u0631\u0627\u0647\u0646\u0645\u0627\u06CC \u0641\u0639\u0627\u0644\u200C\u0633\u0627\u0632\u06CC"
|
|
6522
|
-
))
|
|
6523
|
-
), /* @__PURE__ */ React.createElement(Box27, { sx: { position: "relative", height: "370px", width: "100%" } }, /* @__PURE__ */ React.createElement(
|
|
6479
|
+
"\u0631\u0627\u0647\u0646\u0645\u0627"
|
|
6480
|
+
))), /* @__PURE__ */ React.createElement(Box27, { sx: { position: "relative", height: "370px", width: "100%" } }, /* @__PURE__ */ React.createElement(
|
|
6524
6481
|
Paper2,
|
|
6525
6482
|
{
|
|
6526
6483
|
sx: {
|
|
@@ -6541,7 +6498,7 @@ function MapLocationPicker({
|
|
|
6541
6498
|
display: "flex",
|
|
6542
6499
|
alignItems: "center",
|
|
6543
6500
|
justifyContent: "center",
|
|
6544
|
-
backgroundColor: isDarkMode ? "rgba(18,
|
|
6501
|
+
backgroundColor: isDarkMode ? "rgba(18,18,18,0.9)" : "rgba(255,255,255,0.8)",
|
|
6545
6502
|
zIndex: 1e3,
|
|
6546
6503
|
flexDirection: "column",
|
|
6547
6504
|
gap: 1
|
|
@@ -6571,7 +6528,7 @@ function MapLocationPicker({
|
|
|
6571
6528
|
disabled: isGeolocating,
|
|
6572
6529
|
sx: {
|
|
6573
6530
|
backgroundColor: isDarkMode ? "#1e1e1e" : "white",
|
|
6574
|
-
color: isDarkMode ? "white" : "
|
|
6531
|
+
color: isDarkMode ? "white" : "#1e1e1e",
|
|
6575
6532
|
boxShadow: 2,
|
|
6576
6533
|
"&:hover": {
|
|
6577
6534
|
backgroundColor: isDarkMode ? "#2a2a2a" : "#f5f5f5"
|
|
@@ -6581,7 +6538,7 @@ function MapLocationPicker({
|
|
|
6581
6538
|
},
|
|
6582
6539
|
/* @__PURE__ */ React.createElement(MdMyLocation, null)
|
|
6583
6540
|
),
|
|
6584
|
-
|
|
6541
|
+
hasExistingLocation && /* @__PURE__ */ React.createElement(
|
|
6585
6542
|
IconButton14,
|
|
6586
6543
|
{
|
|
6587
6544
|
onClick: handleClearLocation,
|