@davi-ai/retorik-map 1.1.2 → 1.1.4
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.d.ts.map +1 -1
- package/dist/index.js +169 -138
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +169 -138
- package/dist/index.modern.js.map +1 -1
- package/package.json +8 -3
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./index.modern.css";
|
|
2
|
+
import {_ as $7jQCS$_} from "@swc/helpers/_/_object_spread";
|
|
2
3
|
import {jsx as $7jQCS$jsx, Fragment as $7jQCS$Fragment, jsxs as $7jQCS$jsxs} from "react/jsx-runtime";
|
|
3
4
|
import $7jQCS$react, {useEffect as $7jQCS$useEffect, useState as $7jQCS$useState, useRef as $7jQCS$useRef, useMemo as $7jQCS$useMemo} from "react";
|
|
4
5
|
import {Provider as $7jQCS$Provider, useDispatch as $7jQCS$useDispatch, useSelector as $7jQCS$useSelector} from "react-redux";
|
|
@@ -14,6 +15,7 @@ import {gql as $7jQCS$gql} from "graphql-request";
|
|
|
14
15
|
import {WhatToDoIcon as $7jQCS$WhatToDoIcon, WhereToEatIcon as $7jQCS$WhereToEatIcon, WhereToSleepIcon as $7jQCS$WhereToSleepIcon, WhatToSeeIcon as $7jQCS$WhatToSeeIcon, LocalProductsIcon as $7jQCS$LocalProductsIcon, ServicesIcon as $7jQCS$ServicesIcon} from "@davi-ai/retorik-framework-hospitality";
|
|
15
16
|
import $7jQCS$markdownit from "markdown-it";
|
|
16
17
|
import $7jQCS$qrcode from "qrcode";
|
|
18
|
+
import {_ as $7jQCS$_1} from "@swc/helpers/_/_object_spread_props";
|
|
17
19
|
import {createApi as $7jQCS$createApi, fetchBaseQuery as $7jQCS$fetchBaseQuery} from "@reduxjs/toolkit/query/react";
|
|
18
20
|
|
|
19
21
|
|
|
@@ -28,6 +30,7 @@ function $parcel$interopDefault(a) {
|
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
|
|
33
|
+
|
|
31
34
|
/* eslint-disable react/self-closing-comp */
|
|
32
35
|
|
|
33
36
|
const $54855172f26b6a76$var$MapIcon = ()=>{
|
|
@@ -307,6 +310,7 @@ var $25b1a6a10c3e381e$export$2e2bcd8739ae039 = $25b1a6a10c3e381e$var$slice.reduc
|
|
|
307
310
|
|
|
308
311
|
|
|
309
312
|
|
|
313
|
+
let $b04760f2f518180c$var$_ = (t)=>t, $b04760f2f518180c$var$t, $b04760f2f518180c$var$t1, $b04760f2f518180c$var$t2, $b04760f2f518180c$var$t3, $b04760f2f518180c$var$t4, $b04760f2f518180c$var$t5;
|
|
310
314
|
const $b04760f2f518180c$export$e9e19ceca2b11d3c = [
|
|
311
315
|
{
|
|
312
316
|
name: 'Resto 1',
|
|
@@ -401,67 +405,67 @@ const $b04760f2f518180c$var$commonFields = `
|
|
|
401
405
|
${$b04760f2f518180c$var$thing}
|
|
402
406
|
`;
|
|
403
407
|
const $b04760f2f518180c$var$createFoodEstablishmentQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
|
|
404
|
-
return (0, $7jQCS$gql)`
|
|
408
|
+
return (0, $7jQCS$gql)($b04760f2f518180c$var$t || ($b04760f2f518180c$var$t = $b04760f2f518180c$var$_`
|
|
405
409
|
query GetFoodEtablishment {
|
|
406
|
-
geoDistanceSortedFoodEstablishment(parameters: "{ from: ${
|
|
407
|
-
${
|
|
410
|
+
geoDistanceSortedFoodEstablishment(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
|
|
411
|
+
${0}
|
|
408
412
|
starRating
|
|
409
413
|
servesCuisine
|
|
410
414
|
owner
|
|
411
415
|
}
|
|
412
416
|
}
|
|
413
|
-
|
|
417
|
+
`), from, size, locale, latitude, longitude, $b04760f2f518180c$var$commonFields);
|
|
414
418
|
};
|
|
415
419
|
const $b04760f2f518180c$var$createLodgingBusinessQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
|
|
416
|
-
return (0, $7jQCS$gql)`
|
|
420
|
+
return (0, $7jQCS$gql)($b04760f2f518180c$var$t1 || ($b04760f2f518180c$var$t1 = $b04760f2f518180c$var$_`
|
|
417
421
|
query GetLodgingBusiness {
|
|
418
|
-
geoDistanceSortedLodgingBusiness(parameters: "{ from: ${
|
|
419
|
-
${
|
|
422
|
+
geoDistanceSortedLodgingBusiness(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
|
|
423
|
+
${0}
|
|
420
424
|
checkinTime
|
|
421
425
|
checkoutTime
|
|
422
426
|
numberOfRooms
|
|
423
427
|
}
|
|
424
428
|
}
|
|
425
|
-
|
|
429
|
+
`), from, size, locale, latitude, longitude, $b04760f2f518180c$var$commonFields);
|
|
426
430
|
};
|
|
427
431
|
const $b04760f2f518180c$var$createServicesQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
|
|
428
|
-
return (0, $7jQCS$gql)`
|
|
432
|
+
return (0, $7jQCS$gql)($b04760f2f518180c$var$t2 || ($b04760f2f518180c$var$t2 = $b04760f2f518180c$var$_`
|
|
429
433
|
query GetService {
|
|
430
|
-
geoDistanceSortedService(parameters: "{ from: ${
|
|
431
|
-
${
|
|
434
|
+
geoDistanceSortedService(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
|
|
435
|
+
${0}
|
|
432
436
|
serviceType
|
|
433
437
|
}
|
|
434
438
|
}
|
|
435
|
-
|
|
439
|
+
`), from, size, locale, latitude, longitude, $b04760f2f518180c$var$commonFields);
|
|
436
440
|
};
|
|
437
441
|
const $b04760f2f518180c$var$createTouristAttractionQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
|
|
438
|
-
return (0, $7jQCS$gql)`
|
|
442
|
+
return (0, $7jQCS$gql)($b04760f2f518180c$var$t3 || ($b04760f2f518180c$var$t3 = $b04760f2f518180c$var$_`
|
|
439
443
|
query GetTouristAttraction {
|
|
440
|
-
geoDistanceSortedTouristAttraction(parameters: "{ from: ${
|
|
441
|
-
${
|
|
444
|
+
geoDistanceSortedTouristAttraction(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
|
|
445
|
+
${0}
|
|
442
446
|
touristType
|
|
443
447
|
}
|
|
444
448
|
}
|
|
445
|
-
|
|
449
|
+
`), from, size, locale, latitude, longitude, $b04760f2f518180c$var$commonFields);
|
|
446
450
|
};
|
|
447
451
|
const $b04760f2f518180c$var$createTouristDestinationQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
|
|
448
|
-
return (0, $7jQCS$gql)`
|
|
452
|
+
return (0, $7jQCS$gql)($b04760f2f518180c$var$t4 || ($b04760f2f518180c$var$t4 = $b04760f2f518180c$var$_`
|
|
449
453
|
query GetTouristDestination {
|
|
450
|
-
geoDistanceSortedTouristDestination(parameters: "{ from: ${
|
|
451
|
-
${
|
|
454
|
+
geoDistanceSortedTouristDestination(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
|
|
455
|
+
${0}
|
|
452
456
|
touristType
|
|
453
457
|
}
|
|
454
458
|
}
|
|
455
|
-
|
|
459
|
+
`), from, size, locale, latitude, longitude, $b04760f2f518180c$var$commonFields);
|
|
456
460
|
};
|
|
457
461
|
const $b04760f2f518180c$var$createProductQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
|
|
458
|
-
return (0, $7jQCS$gql)`
|
|
462
|
+
return (0, $7jQCS$gql)($b04760f2f518180c$var$t5 || ($b04760f2f518180c$var$t5 = $b04760f2f518180c$var$_`
|
|
459
463
|
query GetProduct {
|
|
460
|
-
geoDistanceSortedProduct(parameters: "{ from: ${
|
|
461
|
-
${
|
|
464
|
+
geoDistanceSortedProduct(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
|
|
465
|
+
${0}
|
|
462
466
|
}
|
|
463
467
|
}
|
|
464
|
-
|
|
468
|
+
`), from, size, locale, latitude, longitude, $b04760f2f518180c$var$commonFields);
|
|
465
469
|
};
|
|
466
470
|
const $b04760f2f518180c$export$eb4a40790fd3bf4c = ({ type: type, locale: locale, from: from, size: size, latitude: latitude, longitude: longitude })=>{
|
|
467
471
|
const data = {
|
|
@@ -539,6 +543,39 @@ const $aa05afbb61d3c3e5$export$be7c8260078214ef = ()=>{
|
|
|
539
543
|
|
|
540
544
|
|
|
541
545
|
|
|
546
|
+
function $d0a8b8dddc00dc67$export$4e21b1533c28e5b8(str, ...args) {
|
|
547
|
+
let i = 0;
|
|
548
|
+
return str.replace(/%s/g, ()=>args[i++]);
|
|
549
|
+
}
|
|
550
|
+
const $d0a8b8dddc00dc67$export$3f9b01d7e1ec1661 = 'https://studio.retorik.ai';
|
|
551
|
+
const $d0a8b8dddc00dc67$export$4df8f2681d5a45b4 = 'https://dev.studio.retorik.ai';
|
|
552
|
+
const $d0a8b8dddc00dc67$export$3b847951f9d5210f = 'userLocation';
|
|
553
|
+
function $d0a8b8dddc00dc67$export$b1be5d22f8c2836d(cityLocation, tenantPolygon) {
|
|
554
|
+
const polyPoints = (0, $7jQCS$leaflet).polygon(tenantPolygon);
|
|
555
|
+
let inside = false;
|
|
556
|
+
inside = polyPoints.getBounds().contains(cityLocation);
|
|
557
|
+
return inside;
|
|
558
|
+
}
|
|
559
|
+
const $d0a8b8dddc00dc67$export$f3928fa528b0a11c = (key, value)=>{
|
|
560
|
+
const valueParsed = JSON.stringify(value);
|
|
561
|
+
if (valueParsed) localStorage.setItem(key, valueParsed);
|
|
562
|
+
};
|
|
563
|
+
const $d0a8b8dddc00dc67$export$d3720feff416e85b = (key)=>{
|
|
564
|
+
const value = localStorage.getItem(key);
|
|
565
|
+
if (value && typeof value === 'string') return JSON.parse(value);
|
|
566
|
+
return null;
|
|
567
|
+
};
|
|
568
|
+
const $d0a8b8dddc00dc67$export$d07f57595c356899 = (text, locale = 'fr-FR')=>{
|
|
569
|
+
if (text && text.length > 0) {
|
|
570
|
+
const first = text.charAt(0);
|
|
571
|
+
const rest = text.slice(1);
|
|
572
|
+
return first.toLocaleUpperCase(locale) + rest;
|
|
573
|
+
}
|
|
574
|
+
return '';
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
542
579
|
|
|
543
580
|
const $fe9dc2e14d235aa8$export$a22d066494b2bdf2 = new (0, $7jQCS$leaflet).Icon({
|
|
544
581
|
iconUrl: (0, $62095fbd4f1402e1$export$3d487aebaadc5c38),
|
|
@@ -699,6 +736,7 @@ const $6b20232aef97af36$var$typeConversion = {
|
|
|
699
736
|
[(0, $bb862b2ef6568c15$export$55e6fd7564320b53).service]: 'services'
|
|
700
737
|
};
|
|
701
738
|
const $6b20232aef97af36$export$e2d78e54e91e6990 = ({ settings: settings })=>{
|
|
739
|
+
var _labelTranslated_locale;
|
|
702
740
|
const dispatch = (0, $7jQCS$useDispatch)();
|
|
703
741
|
const locale = (0, $7jQCS$useLocaleStore)((state)=>state.locale);
|
|
704
742
|
const [toggle, setToggle] = (0, $7jQCS$useState)(true);
|
|
@@ -714,9 +752,9 @@ const $6b20232aef97af36$export$e2d78e54e91e6990 = ({ settings: settings })=>{
|
|
|
714
752
|
]);
|
|
715
753
|
const [labelTranslated, setLabelTranslated] = (0, $7jQCS$useState)((0, (/*@__PURE__*/$parcel$interopDefault($62040f4564221a7b$exports))));
|
|
716
754
|
(0, $7jQCS$useEffect)(()=>{
|
|
717
|
-
settings
|
|
755
|
+
(settings === null || settings === void 0 ? void 0 : settings.showFilter) && setShowFilters(settings === null || settings === void 0 ? void 0 : settings.showFilter);
|
|
718
756
|
// Handle translation
|
|
719
|
-
if (settings
|
|
757
|
+
if ((settings === null || settings === void 0 ? void 0 : settings.labelFilter) && Object.keys(settings.labelFilter).length) setLabelTranslated(settings.labelFilter);
|
|
720
758
|
else setLabelTranslated((0, (/*@__PURE__*/$parcel$interopDefault($62040f4564221a7b$exports))));
|
|
721
759
|
}, [
|
|
722
760
|
settings
|
|
@@ -740,7 +778,7 @@ const $6b20232aef97af36$export$e2d78e54e91e6990 = ({ settings: settings })=>{
|
|
|
740
778
|
className: "filterToggler",
|
|
741
779
|
onClick: ()=>setToggle(!toggle),
|
|
742
780
|
children: [
|
|
743
|
-
labelTranslated[locale]
|
|
781
|
+
((_labelTranslated_locale = labelTranslated[locale]) === null || _labelTranslated_locale === void 0 ? void 0 : _labelTranslated_locale.title) || labelTranslated['fr-FR'].title,
|
|
744
782
|
/*#__PURE__*/ (0, $7jQCS$jsx)("span", {
|
|
745
783
|
className: `arrow ${toggle ? 'active' : ''}`
|
|
746
784
|
})
|
|
@@ -749,9 +787,10 @@ const $6b20232aef97af36$export$e2d78e54e91e6990 = ({ settings: settings })=>{
|
|
|
749
787
|
/*#__PURE__*/ (0, $7jQCS$jsx)("div", {
|
|
750
788
|
className: "filterMenu",
|
|
751
789
|
children: showFilters.map((type, key)=>{
|
|
790
|
+
var _labelTranslated_locale;
|
|
752
791
|
return /*#__PURE__*/ (0, $7jQCS$jsx)((0, $0f266cba364a0ed4$export$2e2bcd8739ae039), {
|
|
753
792
|
type: type,
|
|
754
|
-
label: labelTranslated[locale]
|
|
793
|
+
label: (_labelTranslated_locale = labelTranslated[locale]) === null || _labelTranslated_locale === void 0 ? void 0 : _labelTranslated_locale[$6b20232aef97af36$var$typeConversion[type]],
|
|
755
794
|
selected: selectedFilters.includes(type),
|
|
756
795
|
onClick: onFilterClick
|
|
757
796
|
}, key);
|
|
@@ -802,37 +841,6 @@ const $c4bfef1c219035db$export$b42842b40b0e9990 = (props)=>{
|
|
|
802
841
|
|
|
803
842
|
|
|
804
843
|
|
|
805
|
-
function $d0a8b8dddc00dc67$export$4e21b1533c28e5b8(str, ...args) {
|
|
806
|
-
let i = 0;
|
|
807
|
-
return str.replace(/%s/g, ()=>args[i++]);
|
|
808
|
-
}
|
|
809
|
-
const $d0a8b8dddc00dc67$export$3f9b01d7e1ec1661 = 'https://studio.retorik.ai';
|
|
810
|
-
const $d0a8b8dddc00dc67$export$3b847951f9d5210f = 'userLocation';
|
|
811
|
-
function $d0a8b8dddc00dc67$export$b1be5d22f8c2836d(cityLocation, tenantPolygon) {
|
|
812
|
-
const polyPoints = (0, $7jQCS$leaflet).polygon(tenantPolygon);
|
|
813
|
-
let inside = false;
|
|
814
|
-
inside = polyPoints.getBounds().contains(cityLocation);
|
|
815
|
-
return inside;
|
|
816
|
-
}
|
|
817
|
-
const $d0a8b8dddc00dc67$export$f3928fa528b0a11c = (key, value)=>{
|
|
818
|
-
const valueParsed = JSON.stringify(value);
|
|
819
|
-
if (valueParsed) localStorage.setItem(key, valueParsed);
|
|
820
|
-
};
|
|
821
|
-
const $d0a8b8dddc00dc67$export$d3720feff416e85b = (key)=>{
|
|
822
|
-
const value = localStorage.getItem(key);
|
|
823
|
-
if (value && typeof value === 'string') return JSON.parse(value);
|
|
824
|
-
return null;
|
|
825
|
-
};
|
|
826
|
-
const $d0a8b8dddc00dc67$export$d07f57595c356899 = (text, locale = 'fr-FR')=>{
|
|
827
|
-
if (text && text.length > 0) {
|
|
828
|
-
const first = text.charAt(0);
|
|
829
|
-
const rest = text.slice(1);
|
|
830
|
-
return first.toLocaleUpperCase(locale) + rest;
|
|
831
|
-
}
|
|
832
|
-
return '';
|
|
833
|
-
};
|
|
834
|
-
|
|
835
|
-
|
|
836
844
|
|
|
837
845
|
var $e0b5ca5abbe23cc4$exports = {};
|
|
838
846
|
$e0b5ca5abbe23cc4$exports = JSON.parse('{"ar-EG":{"showmore":"\u0627\u0642\u0631\u0623 \u0627\u0644\u0645\u0632\u064A\u062F","openroutemobile":"\u0627\u0641\u062A\u062D \u0637\u0631\u064A\u0642 \u062E\u0631\u064A\u0637\u0629 \u062C\u0648\u062C\u0644 \u0639\u0644\u0649 \u0627\u0644\u0647\u0627\u062A\u0641 \u0627\u0644\u0630\u0643\u064A","scanQR":"\u0639\u0646 \u0637\u0631\u064A\u0642 \u0645\u0633\u062D \u0631\u0645\u0632 \u0627\u0644\u0627\u0633\u062A\u062C\u0627\u0628\u0629 \u0627\u0644\u0633\u0631\u064A\u0639\u0629","route":"\u0637\u0631\u064A\u0642"},"ar-SA":{"showmore":"\u0627\u0642\u0631\u0623 \u0627\u0644\u0645\u0632\u064A\u062F","openroutemobile":"\u0627\u0641\u062A\u062D \u0637\u0631\u064A\u0642 \u062E\u0631\u064A\u0637\u0629 \u062C\u0648\u062C\u0644 \u0639\u0644\u0649 \u0627\u0644\u0647\u0627\u062A\u0641 \u0627\u0644\u0630\u0643\u064A","scanQR":"\u0639\u0646 \u0637\u0631\u064A\u0642 \u0645\u0633\u062D \u0631\u0645\u0632 \u0627\u0644\u0627\u0633\u062A\u062C\u0627\u0628\u0629 \u0627\u0644\u0633\u0631\u064A\u0639\u0629","route":"\u0637\u0631\u064A\u0642"},"ca-ES":{"showmore":"Apr\xe8n m\xe9s","openroutemobile":"obre la ruta de Google Maps al tel\xe8fon intel\xb7ligent","scanQR":"escanejant el QrCode","route":"carretera"},"cs-CZ":{"showmore":"Zjist\u011Bte v\xedce","openroutemobile":"otev\u0159ete trasu Google Maps na smartphonu","scanQR":"skenov\xe1n\xedm QrCode","route":"silnice"},"da-DK":{"showmore":"L\xe6r mere","openroutemobile":"\xe5ben Google Map-rute p\xe5 smartphone","scanQR":"ved at scanne QRCoden","route":"vej"},"de-AT":{"showmore":"Erfahren Sie mehr","openroutemobile":"\xd6ffnen Sie die Google Map-Route auf dem Smartphone","scanQR":"durch Scannen des QrCodes","route":"Route"},"de-CH":{"showmore":"Erfahren Sie mehr","openroutemobile":"\xd6ffnen Sie die Google Map-Route auf dem Smartphone","scanQR":"durch Scannen des QrCodes","route":"Route"},"de-DE":{"showmore":"Erfahren Sie mehr","openroutemobile":"\xd6ffnen Sie die Google Map-Route auf dem Smartphone","scanQR":"durch Scannen des QrCodes","route":"Route"},"en-CA":{"showmore":"Learn more","openroutemobile":"open Google Maps route on smartphone","scanQR":"by scanning the QrCode","route":"route"},"en-GB":{"showmore":"Learn more","openroutemobile":"open Google Maps route on smartphone","scanQR":"by scanning the QrCode","route":"route"},"en-HK":{"showmore":"Learn more","openroutemobile":"open Google Maps route on smartphone","scanQR":"by scanning the QrCode","route":"route"},"en-IE":{"showmore":"Learn more","openroutemobile":"open Google Maps route on smartphone","scanQR":"by scanning the QrCode","route":"route"},"en-IN":{"showmore":"Learn more","openroutemobile":"open Google Maps route on smartphone","scanQR":"by scanning the QrCode","route":"route"},"en-US":{"showmore":"Learn more","openroutemobile":"open Google Maps route on smartphone","scanQR":"by scanning the QrCode","route":"route"},"es-ES":{"showmore":"M\xe1s informaci\xf3n","openroutemobile":"abrir la ruta de Google Maps en el tel\xe9fono inteligente","scanQR":"escaneando el QrCode","route":"ruta"},"es-MX":{"showmore":"M\xe1s informaci\xf3n","openroutemobile":"abrir la ruta de Google Maps en el tel\xe9fono inteligente","scanQR":"escaneando el QrCode","route":"ruta"},"fi-FI":{"showmore":"Lue lis\xe4\xe4","openroutemobile":"avaa Google Maps -reitti \xe4lypuhelimella","scanQR":"skannaamalla QR-koodin","route":"tie"},"fr-BE":{"showmore":"En savoir +","openroutemobile":"ouvrir l\'itin\xe9raire Google Maps sur mobile","scanQR":"en scannant le QrCode","route":"y Aller"},"fr-CA":{"showmore":"En savoir +","openroutemobile":"ouvrir l\'itin\xe9raire Google Maps sur mobile","scanQR":"en scannant le QrCode","route":"y Aller"},"fr-CH":{"showmore":"En savoir +","openroutemobile":"ouvrir l\'itin\xe9raire Google Maps sur mobile","scanQR":"en scannant le QrCode","route":"y Aller"},"fr-FR":{"showmore":"En savoir +","openroutemobile":"ouvrir l\'itin\xe9raire Google Maps sur mobile","scanQR":"en scannant le QrCode","route":"y Aller"},"hi-IN":{"showmore":"\u0914\u0930 \u0905\u0927\u093F\u0915 \u091C\u093E\u0928\u0947\u0902","openroutemobile":"\u0938\u094D\u092E\u093E\u0930\u094D\u091F\u092B\u094B\u0928 \u092A\u0930 \u0917\u0942\u0917\u0932 \u092E\u0948\u092A \u0930\u0942\u091F \u0916\u094B\u0932\u0947\u0902","scanQR":"QrCode \u0915\u094B \u0938\u094D\u0915\u0948\u0928 \u0915\u0930\u0915\u0947","route":"\u0938\u0921\u093C\u0915"},"hu-HU":{"showmore":"Tudj meg t\xf6bbet","openroutemobile":"nyissa meg a Google Maps \xfatvonalat az okostelefonon","scanQR":"a QR-k\xf3d beolvas\xe1s\xe1val","route":"\xfat"},"id-ID":{"showmore":"Belajarlah lagi","openroutemobile":"buka rute Google Maps di smartphone","scanQR":"dengan memindai QrCode","route":"jalan"},"it-IT":{"showmore":"Saperne di pi\xf9","openroutemobile":"apri il percorso di Google Maps sullo smartphone","scanQR":"scansionando il QrCode","route":"strada"},"ja-JP":{"showmore":"\u8A73\u7D30\u306F\u3053\u3061\u3089","openroutemobile":"\u30B9\u30DE\u30DB\u3067Google\u30DE\u30C3\u30D7\u306E\u30EB\u30FC\u30C8\u3092\u958B\u304F","scanQR":"Qr\u30B3\u30FC\u30C9\u3092\u30B9\u30AD\u30E3\u30F3\u3059\u308B\u3053\u3068\u3067","route":"\u9053"},"ko-KR":{"showmore":"\uB354 \uC54C\uC544\uBCF4\uAE30","openroutemobile":"\uC2A4\uB9C8\uD2B8\uD3F0\uC5D0\uC11C Google \uC9C0\uB3C4 \uACBD\uB85C \uC5F4\uAE30","scanQR":"QrCode\uB97C \uC2A4\uCE94\uD558\uC5EC","route":"\uB3C4\uB85C"},"nb-NO":{"showmore":"L\xe6re mer","openroutemobile":"\xe5pne Google Maps-ruten p\xe5 smarttelefonen","scanQR":"ved \xe5 skanne QRCode","route":"vei"},"nl-BE":{"showmore":"Meer informatie gebruiksaanwijzing","openroutemobile":"open Google Maps-route op smartphone","scanQR":"door de QRCode te scannen","route":"weg"},"nl-NL":{"showmore":"Meer informatie gebruiksaanwijzing","openroutemobile":"open Google Maps-route op smartphone","scanQR":"door de QRCode te scannen","route":"weg"},"pl-PL":{"showmore":"Ucz si\u0119 wi\u0119cej","openroutemobile":"otw\xf3rz tras\u0119 Map Google na smartfonie","scanQR":"poprzez zeskanowanie kodu QR","route":"droga"},"pt-BR":{"showmore":"Saber mais","openroutemobile":"abra a rota do Google Maps no smartphone","scanQR":"digitalizando o QrCode","route":"estrada"},"pt-PT":{"showmore":"Saber mais","openroutemobile":"abra a rota do Google Maps no smartphone","scanQR":"digitalizando o QrCode","route":"estrada"},"ru-RU":{"showmore":"\u0423\u0437\u043D\u0430\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435","openroutemobile":"\u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0430\u0440\u0448\u0440\u0443\u0442 Google Maps \u043D\u0430 \u0441\u043C\u0430\u0440\u0442\u0444\u043E\u043D\u0435","scanQR":"\u043E\u0442\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0432 QrCode","route":"\u0434\u043E\u0440\u043E\u0433\u0430"},"sv-SE":{"showmore":"L\xe4s mer","openroutemobile":"odprite Google Maps route na pametnem telefonu","scanQR":"s skeniranjem QrCode","route":"cesta"},"th-TH":{"showmore":"\u0E40\u0E23\u0E35\u0E22\u0E19\u0E23\u0E39\u0E49\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21","openroutemobile":"\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E2A\u0E49\u0E19\u0E17\u0E32\u0E07 Google Maps \u0E1A\u0E19\u0E2A\u0E21\u0E32\u0E23\u0E4C\u0E17\u0E42\u0E1F\u0E19","scanQR":"\u0E42\u0E14\u0E22\u0E01\u0E32\u0E23\u0E2A\u0E41\u0E01\u0E19 QrCode","route":"\u0E16\u0E19\u0E19"},"tr-TR":{"showmore":"Daha fazla bilgi edin","openroutemobile":"ak\u0131ll\u0131 telefonda Google Haritalar rotas\u0131n\u0131 a\xe7","scanQR":"QrCode\'u tarayarak","route":"yol"},"zh-CN":{"showmore":"\u4E86\u89E3\u66F4\u591A","openroutemobile":"\u5728\u667A\u80FD\u624B\u673A\u4E0A\u6253\u5F00 Google \u5730\u56FE\u8DEF\u7EBF","scanQR":"\u626B\u63CF\u4E8C\u7EF4\u7801","route":"\u8DEF"},"zh-HK":{"showmore":"\u4E86\u89E3\u66F4\u591A","openroutemobile":"\u5728\u667A\u80FD\u624B\u673A\u4E0A\u6253\u5F00 Google \u5730\u56FE\u8DEF\u7EBF","scanQR":"\u626B\u63CF\u4E8C\u7EF4\u7801","route":"\u8DEF"},"zh-TW":{"showmore":"\u4E86\u89E3\u66F4\u591A","openroutemobile":"\u5728\u667A\u80FD\u624B\u673A\u4E0A\u6253\u5F00 Google \u5730\u56FE\u8DEF\u7EBF","scanQR":"\u626B\u63CF\u4E8C\u7EF4\u7801","route":"\u8DEF"}}');
|
|
@@ -1046,11 +1054,11 @@ const $9ff79049785ec09f$var$RoutesItem = ({ summary: summary, chosen: chosen, co
|
|
|
1046
1054
|
children: [
|
|
1047
1055
|
/*#__PURE__*/ (0, $7jQCS$jsx)("div", {
|
|
1048
1056
|
className: "route-item-duration",
|
|
1049
|
-
children: (0, $e7e6fa01b8713f6a$export$a8fb05107cd01f03)(summary
|
|
1057
|
+
children: (0, $e7e6fa01b8713f6a$export$a8fb05107cd01f03)(summary === null || summary === void 0 ? void 0 : summary.duration)
|
|
1050
1058
|
}),
|
|
1051
1059
|
/*#__PURE__*/ (0, $7jQCS$jsx)("div", {
|
|
1052
1060
|
className: "route-item-distance",
|
|
1053
|
-
children: (0, $e7e6fa01b8713f6a$export$98fa73d0d16cf821)(summary
|
|
1061
|
+
children: (0, $e7e6fa01b8713f6a$export$98fa73d0d16cf821)(summary === null || summary === void 0 ? void 0 : summary.distance)
|
|
1054
1062
|
})
|
|
1055
1063
|
]
|
|
1056
1064
|
})
|
|
@@ -1066,6 +1074,7 @@ const $94ecf50180ed178d$var$openRoute = 'https://api.openrouteservice.org/v2/dir
|
|
|
1066
1074
|
const $94ecf50180ed178d$var$openRouteAPIKey = '5b3ce3597851110001cf62483cfd6bd46f934b7d96f108a35e0f08b8';
|
|
1067
1075
|
const $94ecf50180ed178d$var$googleMapsAddress = 'https://www.google.com/maps/dir/?api=1&';
|
|
1068
1076
|
const $94ecf50180ed178d$var$Routes = ({ coordinates: coordinates, setMapLayerData: setMapLayerData, color: color, setQrCodeUrl: setQrCodeUrl })=>{
|
|
1077
|
+
var _drivingCar_features, _drivingCar_features__properties_summary, _drivingCar_features__properties, _drivingCar_features1, _drivingCar_features__properties_summary1, _drivingCar_features__properties1, _cyclingRegular_features, _cyclingRegular_features__properties_summary, _cyclingRegular_features__properties, _cyclingRegular_features1, _cyclingRegular_features__properties_summary1, _cyclingRegular_features__properties1, _footWalking_features, _footWalking_features__properties_summary, _footWalking_features__properties, _footWalking_features1, _footWalking_features__properties_summary1, _footWalking_features__properties1, _translation_locale;
|
|
1069
1078
|
const isUsedOnBorne = (0, $7jQCS$useRetorikStore)((state)=>state.configuration.isUsedOnBorne);
|
|
1070
1079
|
const locale = (0, $7jQCS$useLocaleStore)((state)=>state.locale);
|
|
1071
1080
|
const [drivingCar, setDrivingCar] = (0, $7jQCS$useState)(undefined);
|
|
@@ -1154,7 +1163,7 @@ const $94ecf50180ed178d$var$Routes = ({ coordinates: coordinates, setMapLayerDat
|
|
|
1154
1163
|
}
|
|
1155
1164
|
};
|
|
1156
1165
|
const handleClick = async ()=>{
|
|
1157
|
-
if (travelModeRef
|
|
1166
|
+
if ((travelModeRef === null || travelModeRef === void 0 ? void 0 : travelModeRef.current) && coordinates.length === 2) {
|
|
1158
1167
|
// Create an URL to Google Maps with coordinates and travelling mode
|
|
1159
1168
|
const coordinatesInUrl = `origin=${coordinates[0][1]},${coordinates[0][0]}&destination=${coordinates[1][1]},${coordinates[1][0]}`;
|
|
1160
1169
|
const fullUrl = `${$94ecf50180ed178d$var$googleMapsAddress}${coordinatesInUrl}&travelmode=${travelModeRef.current}`;
|
|
@@ -1174,8 +1183,8 @@ const $94ecf50180ed178d$var$Routes = ({ coordinates: coordinates, setMapLayerDat
|
|
|
1174
1183
|
/*#__PURE__*/ (0, $7jQCS$jsx)((0, $9ff79049785ec09f$export$2e2bcd8739ae039), {
|
|
1175
1184
|
summary: {
|
|
1176
1185
|
type: 'drivingCar',
|
|
1177
|
-
distance: drivingCar
|
|
1178
|
-
duration: drivingCar
|
|
1186
|
+
distance: (drivingCar === null || drivingCar === void 0 ? void 0 : (_drivingCar_features = drivingCar.features) === null || _drivingCar_features === void 0 ? void 0 : _drivingCar_features.length) ? (_drivingCar_features__properties = drivingCar.features[0].properties) === null || _drivingCar_features__properties === void 0 ? void 0 : (_drivingCar_features__properties_summary = _drivingCar_features__properties.summary) === null || _drivingCar_features__properties_summary === void 0 ? void 0 : _drivingCar_features__properties_summary.distance : undefined,
|
|
1187
|
+
duration: (drivingCar === null || drivingCar === void 0 ? void 0 : (_drivingCar_features1 = drivingCar.features) === null || _drivingCar_features1 === void 0 ? void 0 : _drivingCar_features1.length) ? (_drivingCar_features__properties1 = drivingCar.features[0].properties) === null || _drivingCar_features__properties1 === void 0 ? void 0 : (_drivingCar_features__properties_summary1 = _drivingCar_features__properties1.summary) === null || _drivingCar_features__properties_summary1 === void 0 ? void 0 : _drivingCar_features__properties_summary1.duration : undefined
|
|
1179
1188
|
},
|
|
1180
1189
|
chosen: currentChosen === 'drivingCar',
|
|
1181
1190
|
color: color,
|
|
@@ -1184,8 +1193,8 @@ const $94ecf50180ed178d$var$Routes = ({ coordinates: coordinates, setMapLayerDat
|
|
|
1184
1193
|
/*#__PURE__*/ (0, $7jQCS$jsx)((0, $9ff79049785ec09f$export$2e2bcd8739ae039), {
|
|
1185
1194
|
summary: {
|
|
1186
1195
|
type: 'cyclingRegular',
|
|
1187
|
-
distance: cyclingRegular
|
|
1188
|
-
duration: cyclingRegular
|
|
1196
|
+
distance: (cyclingRegular === null || cyclingRegular === void 0 ? void 0 : (_cyclingRegular_features = cyclingRegular.features) === null || _cyclingRegular_features === void 0 ? void 0 : _cyclingRegular_features.length) ? (_cyclingRegular_features__properties = cyclingRegular.features[0].properties) === null || _cyclingRegular_features__properties === void 0 ? void 0 : (_cyclingRegular_features__properties_summary = _cyclingRegular_features__properties.summary) === null || _cyclingRegular_features__properties_summary === void 0 ? void 0 : _cyclingRegular_features__properties_summary.distance : undefined,
|
|
1197
|
+
duration: (cyclingRegular === null || cyclingRegular === void 0 ? void 0 : (_cyclingRegular_features1 = cyclingRegular.features) === null || _cyclingRegular_features1 === void 0 ? void 0 : _cyclingRegular_features1.length) ? (_cyclingRegular_features__properties1 = cyclingRegular.features[0].properties) === null || _cyclingRegular_features__properties1 === void 0 ? void 0 : (_cyclingRegular_features__properties_summary1 = _cyclingRegular_features__properties1.summary) === null || _cyclingRegular_features__properties_summary1 === void 0 ? void 0 : _cyclingRegular_features__properties_summary1.duration : undefined
|
|
1189
1198
|
},
|
|
1190
1199
|
chosen: currentChosen === 'cyclingRegular',
|
|
1191
1200
|
color: color,
|
|
@@ -1194,8 +1203,8 @@ const $94ecf50180ed178d$var$Routes = ({ coordinates: coordinates, setMapLayerDat
|
|
|
1194
1203
|
/*#__PURE__*/ (0, $7jQCS$jsx)((0, $9ff79049785ec09f$export$2e2bcd8739ae039), {
|
|
1195
1204
|
summary: {
|
|
1196
1205
|
type: 'footWalking',
|
|
1197
|
-
distance: footWalking
|
|
1198
|
-
duration: footWalking
|
|
1206
|
+
distance: (footWalking === null || footWalking === void 0 ? void 0 : (_footWalking_features = footWalking.features) === null || _footWalking_features === void 0 ? void 0 : _footWalking_features.length) ? (_footWalking_features__properties = footWalking.features[0].properties) === null || _footWalking_features__properties === void 0 ? void 0 : (_footWalking_features__properties_summary = _footWalking_features__properties.summary) === null || _footWalking_features__properties_summary === void 0 ? void 0 : _footWalking_features__properties_summary.distance : undefined,
|
|
1207
|
+
duration: (footWalking === null || footWalking === void 0 ? void 0 : (_footWalking_features1 = footWalking.features) === null || _footWalking_features1 === void 0 ? void 0 : _footWalking_features1.length) ? (_footWalking_features__properties1 = footWalking.features[0].properties) === null || _footWalking_features__properties1 === void 0 ? void 0 : (_footWalking_features__properties_summary1 = _footWalking_features__properties1.summary) === null || _footWalking_features__properties_summary1 === void 0 ? void 0 : _footWalking_features__properties_summary1.duration : undefined
|
|
1199
1208
|
},
|
|
1200
1209
|
chosen: currentChosen === 'footWalking',
|
|
1201
1210
|
color: color,
|
|
@@ -1210,7 +1219,7 @@ const $94ecf50180ed178d$var$Routes = ({ coordinates: coordinates, setMapLayerDat
|
|
|
1210
1219
|
/*#__PURE__*/ (0, $7jQCS$jsx)((0, $1cdf2b2c103e8066$export$2e2bcd8739ae039), {
|
|
1211
1220
|
className: "route-icon-medium"
|
|
1212
1221
|
}),
|
|
1213
|
-
(0, $d0a8b8dddc00dc67$export$d07f57595c356899)((0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))[locale]
|
|
1222
|
+
(0, $d0a8b8dddc00dc67$export$d07f57595c356899)(((_translation_locale = (0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))[locale]) === null || _translation_locale === void 0 ? void 0 : _translation_locale.route) || (0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))['fr-FR'].route, locale)
|
|
1214
1223
|
]
|
|
1215
1224
|
})
|
|
1216
1225
|
]
|
|
@@ -1244,7 +1253,8 @@ const $518bba7b5ecd13db$var$md = new (0, $7jQCS$markdownit)({
|
|
|
1244
1253
|
quotes: `""''`
|
|
1245
1254
|
});
|
|
1246
1255
|
const $518bba7b5ecd13db$var$fadeDuration = 500;
|
|
1247
|
-
const $518bba7b5ecd13db$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClose, setMapLayerData: setMapLayerData })=>{
|
|
1256
|
+
const $518bba7b5ecd13db$export$b79ff28f7aa330b0 = ({ poi: poi, retorikAddress: retorikAddress, poiClose: poiClose, setMapLayerData: setMapLayerData })=>{
|
|
1257
|
+
var _translation_locale, _translation_locale1, _translation_locale2;
|
|
1248
1258
|
const dispatch = (0, $7jQCS$useDispatch)();
|
|
1249
1259
|
const currentUserPos = (0, $7jQCS$useSelector)((state)=>state.map.currentUserLocation);
|
|
1250
1260
|
const locale = (0, $7jQCS$useLocaleStore)((state)=>state.locale);
|
|
@@ -1332,8 +1342,8 @@ const $518bba7b5ecd13db$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClos
|
|
|
1332
1342
|
};
|
|
1333
1343
|
const handlePoiClose = ()=>{
|
|
1334
1344
|
setMainFadingOut(true);
|
|
1335
|
-
mainFadeOutTimerRef
|
|
1336
|
-
mainSecondFadeOutTimerRef
|
|
1345
|
+
(mainFadeOutTimerRef === null || mainFadeOutTimerRef === void 0 ? void 0 : mainFadeOutTimerRef.current) && clearTimeout(mainFadeOutTimerRef.current);
|
|
1346
|
+
(mainSecondFadeOutTimerRef === null || mainSecondFadeOutTimerRef === void 0 ? void 0 : mainSecondFadeOutTimerRef.current) && clearTimeout(mainSecondFadeOutTimerRef.current);
|
|
1337
1347
|
mainFadeOutTimerRef.current = setTimeout(()=>{
|
|
1338
1348
|
setMainFadingOut(false);
|
|
1339
1349
|
}, $518bba7b5ecd13db$var$fadeDuration);
|
|
@@ -1343,7 +1353,7 @@ const $518bba7b5ecd13db$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClos
|
|
|
1343
1353
|
};
|
|
1344
1354
|
const handleCloseQrCode = ()=>{
|
|
1345
1355
|
setFadingOut(true);
|
|
1346
|
-
fadeOutTimerRef
|
|
1356
|
+
(fadeOutTimerRef === null || fadeOutTimerRef === void 0 ? void 0 : fadeOutTimerRef.current) && clearTimeout(fadeOutTimerRef.current);
|
|
1347
1357
|
fadeOutTimerRef.current = setTimeout(()=>{
|
|
1348
1358
|
setQrCodeUrl(null);
|
|
1349
1359
|
setFadingOut(false);
|
|
@@ -1380,7 +1390,7 @@ const $518bba7b5ecd13db$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClos
|
|
|
1380
1390
|
children: /*#__PURE__*/ (0, $7jQCS$jsx)("img", {
|
|
1381
1391
|
onLoad: ()=>setImageLoaded(true),
|
|
1382
1392
|
onError: ()=>setImageLoaded(true),
|
|
1383
|
-
src: `${
|
|
1393
|
+
src: `${retorikAddress}${poi.imageURL}`,
|
|
1384
1394
|
alt: poi.name
|
|
1385
1395
|
})
|
|
1386
1396
|
}),
|
|
@@ -1396,7 +1406,7 @@ const $518bba7b5ecd13db$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClos
|
|
|
1396
1406
|
/*#__PURE__*/ (0, $7jQCS$jsx)("button", {
|
|
1397
1407
|
onClick: ()=>showMoreHandler(poi),
|
|
1398
1408
|
className: `button_${(0, $b04760f2f518180c$export$7f9d623abbd2d21d)(poi.type)} poiButton`,
|
|
1399
|
-
children: (0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))[locale]
|
|
1409
|
+
children: ((_translation_locale = (0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))[locale]) === null || _translation_locale === void 0 ? void 0 : _translation_locale.showmore) || (0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))['fr-FR'].showmore
|
|
1400
1410
|
})
|
|
1401
1411
|
]
|
|
1402
1412
|
})
|
|
@@ -1426,10 +1436,10 @@ const $518bba7b5ecd13db$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClos
|
|
|
1426
1436
|
className: "qrcode-text",
|
|
1427
1437
|
children: [
|
|
1428
1438
|
/*#__PURE__*/ (0, $7jQCS$jsx)("div", {
|
|
1429
|
-
children: (0, $d0a8b8dddc00dc67$export$d07f57595c356899)((0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))[locale]
|
|
1439
|
+
children: (0, $d0a8b8dddc00dc67$export$d07f57595c356899)(((_translation_locale1 = (0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))[locale]) === null || _translation_locale1 === void 0 ? void 0 : _translation_locale1.openroutemobile) || (0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))['fr-FR'].openroutemobile, locale)
|
|
1430
1440
|
}),
|
|
1431
1441
|
/*#__PURE__*/ (0, $7jQCS$jsx)("div", {
|
|
1432
|
-
children: (0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))[locale]
|
|
1442
|
+
children: ((_translation_locale2 = (0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))[locale]) === null || _translation_locale2 === void 0 ? void 0 : _translation_locale2.scanQR) || (0, (/*@__PURE__*/$parcel$interopDefault($e0b5ca5abbe23cc4$exports)))['fr-FR'].scanQR
|
|
1433
1443
|
})
|
|
1434
1444
|
]
|
|
1435
1445
|
})
|
|
@@ -1452,12 +1462,12 @@ const $ccc136e0899bcc71$var$CustomLoader = ()=>{
|
|
|
1452
1462
|
const [visible, setVisible] = (0, $7jQCS$useState)(false);
|
|
1453
1463
|
const timerRef = (0, $7jQCS$useRef)(null);
|
|
1454
1464
|
(0, $7jQCS$useEffect)(()=>{
|
|
1455
|
-
timerRef
|
|
1465
|
+
(timerRef === null || timerRef === void 0 ? void 0 : timerRef.current) && clearTimeout(timerRef.current);
|
|
1456
1466
|
timerRef.current = setTimeout(()=>{
|
|
1457
1467
|
setVisible(true);
|
|
1458
1468
|
}, 4000);
|
|
1459
1469
|
return ()=>{
|
|
1460
|
-
timerRef
|
|
1470
|
+
(timerRef === null || timerRef === void 0 ? void 0 : timerRef.current) && clearTimeout(timerRef.current);
|
|
1461
1471
|
};
|
|
1462
1472
|
}, []);
|
|
1463
1473
|
return /*#__PURE__*/ (0, $7jQCS$jsxs)("div", {
|
|
@@ -1485,6 +1495,7 @@ var $ccc136e0899bcc71$export$2e2bcd8739ae039 = $ccc136e0899bcc71$var$CustomLoade
|
|
|
1485
1495
|
shadowUrl: (0, $62095fbd4f1402e1$export$1524746c49eeef2b)
|
|
1486
1496
|
});
|
|
1487
1497
|
const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
1498
|
+
var _translation_locale, _translation_locale1, _translation_locale2, _translation_locale3;
|
|
1488
1499
|
const pois = (0, $7jQCS$useSelector)((state)=>state.poi.poiList);
|
|
1489
1500
|
const dispatch = (0, $7jQCS$useDispatch)();
|
|
1490
1501
|
const locale = (0, $7jQCS$useLocaleStore)((state)=>state.locale);
|
|
@@ -1513,7 +1524,7 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1513
1524
|
service: (0, $fe9dc2e14d235aa8$export$d60d82aee240d483)
|
|
1514
1525
|
};
|
|
1515
1526
|
const poisToDisplay = (0, $7jQCS$useMemo)(()=>{
|
|
1516
|
-
if (pois && Array.isArray(pois) && pois.length && selectedFilters) return pois
|
|
1527
|
+
if (pois && Array.isArray(pois) && pois.length && selectedFilters) return pois === null || pois === void 0 ? void 0 : pois.filter((p)=>selectedFilters.some((f)=>f === p.type));
|
|
1517
1528
|
return [];
|
|
1518
1529
|
}, [
|
|
1519
1530
|
pois,
|
|
@@ -1525,13 +1536,13 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1525
1536
|
}));
|
|
1526
1537
|
};
|
|
1527
1538
|
(0, $7jQCS$useEffect)(()=>{
|
|
1528
|
-
props
|
|
1539
|
+
(props === null || props === void 0 ? void 0 : props.activeTenant) && dispatch((0, $9aea58248450db30$export$2cb53dffb4e7523f)({
|
|
1529
1540
|
activeTenant: props.activeTenant
|
|
1530
1541
|
}));
|
|
1531
|
-
props
|
|
1542
|
+
(props === null || props === void 0 ? void 0 : props.tenantList) && dispatch((0, $9aea58248450db30$export$4afb5402acd283a1)({
|
|
1532
1543
|
tenantList: props.tenantList
|
|
1533
1544
|
}));
|
|
1534
|
-
props
|
|
1545
|
+
(props === null || props === void 0 ? void 0 : props.userLocation) && dispatch((0, $ecd3e22cabc096ed$export$9e7828c0c29d5e97)({
|
|
1535
1546
|
currentUserLocation: props.userLocation
|
|
1536
1547
|
}));
|
|
1537
1548
|
}, [
|
|
@@ -1569,7 +1580,7 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1569
1580
|
CSSInjected: true
|
|
1570
1581
|
}));
|
|
1571
1582
|
}
|
|
1572
|
-
if (!props
|
|
1583
|
+
if (!(props === null || props === void 0 ? void 0 : props.userLocation)) navigator.geolocation.getCurrentPosition((res)=>{
|
|
1573
1584
|
if (res) {
|
|
1574
1585
|
if (mapRef.current) {
|
|
1575
1586
|
const center = {
|
|
@@ -1590,9 +1601,10 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1590
1601
|
console.log('Retorik Map > Destroy map component');
|
|
1591
1602
|
// save map state
|
|
1592
1603
|
if (markersRef.current && botCSSInjected) {
|
|
1604
|
+
var _mapRef_current, _mapRef_current1;
|
|
1593
1605
|
const saveMapState = {
|
|
1594
|
-
zoom: mapRef.current
|
|
1595
|
-
location: mapRef.current
|
|
1606
|
+
zoom: (_mapRef_current = mapRef.current) === null || _mapRef_current === void 0 ? void 0 : _mapRef_current.getZoom(),
|
|
1607
|
+
location: (_mapRef_current1 = mapRef.current) === null || _mapRef_current1 === void 0 ? void 0 : _mapRef_current1.getCenter()
|
|
1596
1608
|
};
|
|
1597
1609
|
dispatch((0, $ecd3e22cabc096ed$export$99750ab96d7881ba)({
|
|
1598
1610
|
mapState: saveMapState
|
|
@@ -1628,9 +1640,10 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1628
1640
|
}
|
|
1629
1641
|
if (retorikEvent === (0, $7jQCS$RetorikEvent).DetailViewClose && currentSubView === (0, $7jQCS$CurrentSubView).none) {
|
|
1630
1642
|
if (markersRef.current) {
|
|
1643
|
+
var _mapRef_current, _mapRef_current1;
|
|
1631
1644
|
const saveMapState = {
|
|
1632
|
-
zoom: mapRef.current
|
|
1633
|
-
location: mapRef.current
|
|
1645
|
+
zoom: (_mapRef_current = mapRef.current) === null || _mapRef_current === void 0 ? void 0 : _mapRef_current.getZoom(),
|
|
1646
|
+
location: (_mapRef_current1 = mapRef.current) === null || _mapRef_current1 === void 0 ? void 0 : _mapRef_current1.getCenter()
|
|
1634
1647
|
};
|
|
1635
1648
|
if (saveMapState.zoom !== undefined && saveMapState.location !== undefined) dispatch((0, $ecd3e22cabc096ed$export$99750ab96d7881ba)({
|
|
1636
1649
|
mapState: saveMapState
|
|
@@ -1641,7 +1654,8 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1641
1654
|
retorikEvent
|
|
1642
1655
|
]);
|
|
1643
1656
|
(0, $7jQCS$useEffect)(()=>{
|
|
1644
|
-
|
|
1657
|
+
var _tenantList_activeTenant;
|
|
1658
|
+
const aroundMeDistance = (_tenantList_activeTenant = tenantList[activeTenant]) === null || _tenantList_activeTenant === void 0 ? void 0 : _tenantList_activeTenant.aroundMeDistance;
|
|
1645
1659
|
if (aroundMeDistance) setAroundMeDistance(aroundMeDistance);
|
|
1646
1660
|
}, [
|
|
1647
1661
|
tenantList,
|
|
@@ -1688,7 +1702,7 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1688
1702
|
if (selectedPOIIdentifier !== '') {
|
|
1689
1703
|
const selectedPOIObj = pois.find((p)=>p.contentItemId === selectedPOIIdentifier);
|
|
1690
1704
|
const selectedMarker = markersRef.current.find((m)=>m.id === selectedPOIIdentifier);
|
|
1691
|
-
if (selectedMarker && selectedPOIObj
|
|
1705
|
+
if (selectedMarker && (selectedPOIObj === null || selectedPOIObj === void 0 ? void 0 : selectedPOIObj.location) && mapRef.current) {
|
|
1692
1706
|
dispatch((0, $ecd3e22cabc096ed$export$99750ab96d7881ba)({
|
|
1693
1707
|
mapState: {
|
|
1694
1708
|
location: undefined,
|
|
@@ -1698,7 +1712,7 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1698
1712
|
mapRef.current.flyTo(selectedPOIObj.location, 18);
|
|
1699
1713
|
mapRef.current.on('zoomend', function() {
|
|
1700
1714
|
setSelectedPOI(selectedPOIObj);
|
|
1701
|
-
selectedMarker.marker.openPopup(selectedPOIObj
|
|
1715
|
+
selectedMarker.marker.openPopup(selectedPOIObj === null || selectedPOIObj === void 0 ? void 0 : selectedPOIObj.location);
|
|
1702
1716
|
dispatch((0, $ecd3e22cabc096ed$export$79507451adbe6af3)({
|
|
1703
1717
|
selectedPOIIdentifier: ''
|
|
1704
1718
|
}));
|
|
@@ -1721,7 +1735,7 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1721
1735
|
setSelectedPOI(undefined);
|
|
1722
1736
|
};
|
|
1723
1737
|
const aroundMe = ()=>{
|
|
1724
|
-
if (props
|
|
1738
|
+
if ((props === null || props === void 0 ? void 0 : props.userLocation) && (props.tenantList && props.activeTenant || tenantList && tenantList[activeTenant])) {
|
|
1725
1739
|
handlerAroundMe(props.userLocation);
|
|
1726
1740
|
return;
|
|
1727
1741
|
}
|
|
@@ -1743,8 +1757,8 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1743
1757
|
currentUserLocation: center
|
|
1744
1758
|
}));
|
|
1745
1759
|
// Calculez les coordonnées des coins du rectangle de la zone de 10km autour du centre
|
|
1746
|
-
const southWest = (0, $7jQCS$leaflet).latLng(center).toBounds(aroundMeDistance
|
|
1747
|
-
const northEast = (0, $7jQCS$leaflet).latLng(center).toBounds(aroundMeDistance
|
|
1760
|
+
const southWest = (0, $7jQCS$leaflet).latLng(center).toBounds(aroundMeDistance !== null && aroundMeDistance !== void 0 ? aroundMeDistance : 5000).getSouthWest();
|
|
1761
|
+
const northEast = (0, $7jQCS$leaflet).latLng(center).toBounds(aroundMeDistance !== null && aroundMeDistance !== void 0 ? aroundMeDistance : 5000).getNorthEast();
|
|
1748
1762
|
const bounds = (0, $7jQCS$leaflet).latLngBounds(southWest, northEast);
|
|
1749
1763
|
// Utilisez la méthode fitBounds() pour ajuster la vue de la carte à la zone de 10km autour du centre
|
|
1750
1764
|
mapRef.current.fitBounds(bounds);
|
|
@@ -1752,7 +1766,7 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1752
1766
|
if (l instanceof (0, $7jQCS$leaflet).MarkerClusterGroup && mapRef.current !== undefined) l.disableClustering();
|
|
1753
1767
|
});
|
|
1754
1768
|
mapRef.current.on('zoomend', function() {
|
|
1755
|
-
if (mapRef
|
|
1769
|
+
if ((mapRef === null || mapRef === void 0 ? void 0 : mapRef.current) && mapRef.current.getZoom() < 12) {
|
|
1756
1770
|
if (mapRef.current !== undefined) mapRef.current.eachLayer((l)=>{
|
|
1757
1771
|
if (l instanceof (0, $7jQCS$leaflet).MarkerClusterGroup && mapRef.current !== undefined) l.enableClustering();
|
|
1758
1772
|
});
|
|
@@ -1774,7 +1788,8 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1774
1788
|
selectedPOI && /*#__PURE__*/ (0, $7jQCS$jsx)((0, $518bba7b5ecd13db$export$b79ff28f7aa330b0), {
|
|
1775
1789
|
poi: selectedPOI,
|
|
1776
1790
|
poiClose: closePoi,
|
|
1777
|
-
setMapLayerData: setMapLayerData
|
|
1791
|
+
setMapLayerData: setMapLayerData,
|
|
1792
|
+
retorikAddress: (props === null || props === void 0 ? void 0 : props.isDevTenant) ? (0, $d0a8b8dddc00dc67$export$4df8f2681d5a45b4) : (0, $d0a8b8dddc00dc67$export$3f9b01d7e1ec1661)
|
|
1778
1793
|
}),
|
|
1779
1794
|
/*#__PURE__*/ (0, $7jQCS$jsxs)((0, $7jQCS$MapContainer), {
|
|
1780
1795
|
center: [
|
|
@@ -1827,8 +1842,8 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1827
1842
|
}),
|
|
1828
1843
|
/*#__PURE__*/ (0, $7jQCS$jsx)((0, $7jQCS$ZoomControl), {
|
|
1829
1844
|
position: "bottomright",
|
|
1830
|
-
zoomInTitle: (0, (/*@__PURE__*/$parcel$interopDefault($562fd381b633906a$exports)))[locale]
|
|
1831
|
-
zoomOutTitle: (0, (/*@__PURE__*/$parcel$interopDefault($562fd381b633906a$exports)))[locale]
|
|
1845
|
+
zoomInTitle: ((_translation_locale = (0, (/*@__PURE__*/$parcel$interopDefault($562fd381b633906a$exports)))[locale]) === null || _translation_locale === void 0 ? void 0 : _translation_locale.zoomintitle) || (0, (/*@__PURE__*/$parcel$interopDefault($562fd381b633906a$exports)))['fr-FR'].zoomintitle,
|
|
1846
|
+
zoomOutTitle: ((_translation_locale1 = (0, (/*@__PURE__*/$parcel$interopDefault($562fd381b633906a$exports)))[locale]) === null || _translation_locale1 === void 0 ? void 0 : _translation_locale1.zoomouttitle) || (0, (/*@__PURE__*/$parcel$interopDefault($562fd381b633906a$exports)))['fr-FR'].zoomouttitle
|
|
1832
1847
|
}, Date.now()),
|
|
1833
1848
|
currentUserPos !== undefined && /*#__PURE__*/ (0, $7jQCS$jsx)((0, $c4bfef1c219035db$export$b42842b40b0e9990), {
|
|
1834
1849
|
currentUserPos: currentUserPos
|
|
@@ -1842,7 +1857,7 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1842
1857
|
/*#__PURE__*/ (0, $7jQCS$jsx)("button", {
|
|
1843
1858
|
id: "around-me",
|
|
1844
1859
|
onClick: ()=>aroundMe(),
|
|
1845
|
-
title: `${(0, (/*@__PURE__*/$parcel$interopDefault($562fd381b633906a$exports)))[locale]
|
|
1860
|
+
title: `${((_translation_locale2 = (0, (/*@__PURE__*/$parcel$interopDefault($562fd381b633906a$exports)))[locale]) === null || _translation_locale2 === void 0 ? void 0 : _translation_locale2.aroundme1) || (0, (/*@__PURE__*/$parcel$interopDefault($562fd381b633906a$exports)))['fr-FR'].aroundme1} ${aroundMeDistance / 1000} ${((_translation_locale3 = (0, (/*@__PURE__*/$parcel$interopDefault($562fd381b633906a$exports)))[locale]) === null || _translation_locale3 === void 0 ? void 0 : _translation_locale3.aroundme2) || (0, (/*@__PURE__*/$parcel$interopDefault($562fd381b633906a$exports)))['fr-FR'].aroundme2}`,
|
|
1846
1861
|
children: /*#__PURE__*/ (0, $7jQCS$jsx)("img", {
|
|
1847
1862
|
id: "map-target",
|
|
1848
1863
|
src: (0, $62095fbd4f1402e1$export$44271b4f0c6a3563),
|
|
@@ -1850,7 +1865,7 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1850
1865
|
})
|
|
1851
1866
|
}),
|
|
1852
1867
|
/*#__PURE__*/ (0, $7jQCS$jsx)((0, $6b20232aef97af36$export$e2d78e54e91e6990), {
|
|
1853
|
-
settings: props
|
|
1868
|
+
settings: props === null || props === void 0 ? void 0 : props.settings
|
|
1854
1869
|
})
|
|
1855
1870
|
]
|
|
1856
1871
|
});
|
|
@@ -1862,6 +1877,9 @@ const $ccf1a8cf083c5878$export$ddd638f4963d1957 = (props)=>{
|
|
|
1862
1877
|
|
|
1863
1878
|
|
|
1864
1879
|
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
|
|
1865
1883
|
/* eslint-disable @typescript-eslint/camelcase */ const $4efcf2180e2badfa$export$da40755304d3143 = {
|
|
1866
1884
|
asklea_lesbertranges: {
|
|
1867
1885
|
name: 'lesbertranges',
|
|
@@ -30536,12 +30554,16 @@ const $bb64f8611bc3f5a1$export$1f0060b11c07d31 = (0, $7jQCS$createApi)({
|
|
|
30536
30554
|
transformResponse: (response)=>{
|
|
30537
30555
|
const res = {};
|
|
30538
30556
|
if (response && response.length > 0) {
|
|
30539
|
-
const filteredData = response.filter((a)=>
|
|
30557
|
+
const filteredData = response.filter((a)=>{
|
|
30558
|
+
var _a_agentZone;
|
|
30559
|
+
return (_a_agentZone = a.agentZone) === null || _a_agentZone === void 0 ? void 0 : _a_agentZone.zone;
|
|
30560
|
+
});
|
|
30540
30561
|
filteredData.forEach((agent)=>{
|
|
30562
|
+
var _agent_agentZone;
|
|
30541
30563
|
res[agent.name] = {
|
|
30542
30564
|
name: agent.name,
|
|
30543
30565
|
retorikName: agent.name,
|
|
30544
|
-
areaLocation: agent.agentZone
|
|
30566
|
+
areaLocation: (_agent_agentZone = agent.agentZone) === null || _agent_agentZone === void 0 ? void 0 : _agent_agentZone.zone
|
|
30545
30567
|
};
|
|
30546
30568
|
});
|
|
30547
30569
|
}
|
|
@@ -30570,15 +30592,13 @@ const $bb64f8611bc3f5a1$export$7867c88f1bb2065 = async ({ token: token, useDevTe
|
|
|
30570
30592
|
callBack: callBack
|
|
30571
30593
|
};
|
|
30572
30594
|
// If categories are provided, load only these. Otherwise load all of them.
|
|
30573
|
-
if (categoriesToShow
|
|
30574
|
-
type: category
|
|
30575
|
-
|
|
30576
|
-
}));
|
|
30595
|
+
if (categoriesToShow === null || categoriesToShow === void 0 ? void 0 : categoriesToShow.length) categoriesToShow.forEach((category)=>$bb64f8611bc3f5a1$var$fetchPoiType((0, $7jQCS$_)({
|
|
30596
|
+
type: category
|
|
30597
|
+
}, commonData)));
|
|
30577
30598
|
else Object.keys((0, $bb862b2ef6568c15$export$55e6fd7564320b53)).forEach((key)=>{
|
|
30578
|
-
$bb64f8611bc3f5a1$var$fetchPoiType({
|
|
30579
|
-
type: (0, $bb862b2ef6568c15$export$55e6fd7564320b53)[key]
|
|
30580
|
-
|
|
30581
|
-
});
|
|
30599
|
+
$bb64f8611bc3f5a1$var$fetchPoiType((0, $7jQCS$_)({
|
|
30600
|
+
type: (0, $bb862b2ef6568c15$export$55e6fd7564320b53)[key]
|
|
30601
|
+
}, commonData));
|
|
30582
30602
|
});
|
|
30583
30603
|
}
|
|
30584
30604
|
};
|
|
@@ -30600,16 +30620,18 @@ const $bb64f8611bc3f5a1$var$fetchPoiType = async ({ type: type, url: url, token:
|
|
|
30600
30620
|
'Content-type': 'application/graphql; charset=UTF-8'
|
|
30601
30621
|
}
|
|
30602
30622
|
}).then((response)=>response.json()).catch((error)=>console.warn(error));
|
|
30603
|
-
if (data
|
|
30623
|
+
if (data === null || data === void 0 ? void 0 : data.data) switch(type){
|
|
30604
30624
|
case (0, $bb862b2ef6568c15$export$55e6fd7564320b53).afaire:
|
|
30605
|
-
|
|
30606
|
-
|
|
30625
|
+
var _data_data_geoDistanceSortedTouristAttraction;
|
|
30626
|
+
if ((_data_data_geoDistanceSortedTouristAttraction = data.data.geoDistanceSortedTouristAttraction) === null || _data_data_geoDistanceSortedTouristAttraction === void 0 ? void 0 : _data_data_geoDistanceSortedTouristAttraction.length) data.data.geoDistanceSortedTouristAttraction.forEach((e)=>{
|
|
30627
|
+
var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
|
|
30628
|
+
((_e_place = e.place) === null || _e_place === void 0 ? void 0 : _e_place.latitude) && ((_e_place1 = e.place) === null || _e_place1 === void 0 ? void 0 : _e_place1.longitude) && result.push({
|
|
30607
30629
|
location: {
|
|
30608
30630
|
lat: e.place.latitude,
|
|
30609
30631
|
lng: e.place.longitude
|
|
30610
30632
|
},
|
|
30611
30633
|
name: e.displayText,
|
|
30612
|
-
imageURL: e.thing.image
|
|
30634
|
+
imageURL: ((_e_thing_image = e.thing.image) === null || _e_thing_image === void 0 ? void 0 : (_e_thing_image_urls = _e_thing_image.urls) === null || _e_thing_image_urls === void 0 ? void 0 : _e_thing_image_urls.length) ? e.thing.image.urls[0] : undefined,
|
|
30613
30635
|
type: (0, $bb862b2ef6568c15$export$55e6fd7564320b53).afaire,
|
|
30614
30636
|
description: e.thing.description,
|
|
30615
30637
|
address: $bb64f8611bc3f5a1$var$getAddressFromPlaceData(e.place),
|
|
@@ -30619,14 +30641,16 @@ const $bb64f8611bc3f5a1$var$fetchPoiType = async ({ type: type, url: url, token:
|
|
|
30619
30641
|
});
|
|
30620
30642
|
break;
|
|
30621
30643
|
case (0, $bb862b2ef6568c15$export$55e6fd7564320b53).avoir:
|
|
30622
|
-
|
|
30623
|
-
|
|
30644
|
+
var _data_data_geoDistanceSortedTouristDestination;
|
|
30645
|
+
if ((_data_data_geoDistanceSortedTouristDestination = data.data.geoDistanceSortedTouristDestination) === null || _data_data_geoDistanceSortedTouristDestination === void 0 ? void 0 : _data_data_geoDistanceSortedTouristDestination.length) data.data.geoDistanceSortedTouristDestination.forEach((e)=>{
|
|
30646
|
+
var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
|
|
30647
|
+
((_e_place = e.place) === null || _e_place === void 0 ? void 0 : _e_place.latitude) && ((_e_place1 = e.place) === null || _e_place1 === void 0 ? void 0 : _e_place1.longitude) && result.push({
|
|
30624
30648
|
location: {
|
|
30625
30649
|
lat: e.place.latitude,
|
|
30626
30650
|
lng: e.place.longitude
|
|
30627
30651
|
},
|
|
30628
30652
|
name: e.displayText,
|
|
30629
|
-
imageURL: e.thing.image
|
|
30653
|
+
imageURL: ((_e_thing_image = e.thing.image) === null || _e_thing_image === void 0 ? void 0 : (_e_thing_image_urls = _e_thing_image.urls) === null || _e_thing_image_urls === void 0 ? void 0 : _e_thing_image_urls.length) ? e.thing.image.urls[0] : undefined,
|
|
30630
30654
|
type: (0, $bb862b2ef6568c15$export$55e6fd7564320b53).avoir,
|
|
30631
30655
|
description: e.thing.description,
|
|
30632
30656
|
address: $bb64f8611bc3f5a1$var$getAddressFromPlaceData(e.place),
|
|
@@ -30636,14 +30660,16 @@ const $bb64f8611bc3f5a1$var$fetchPoiType = async ({ type: type, url: url, token:
|
|
|
30636
30660
|
});
|
|
30637
30661
|
break;
|
|
30638
30662
|
case (0, $bb862b2ef6568c15$export$55e6fd7564320b53).hebergement:
|
|
30639
|
-
|
|
30640
|
-
|
|
30663
|
+
var _data_data_geoDistanceSortedLodgingBusiness;
|
|
30664
|
+
if ((_data_data_geoDistanceSortedLodgingBusiness = data.data.geoDistanceSortedLodgingBusiness) === null || _data_data_geoDistanceSortedLodgingBusiness === void 0 ? void 0 : _data_data_geoDistanceSortedLodgingBusiness.length) data.data.geoDistanceSortedLodgingBusiness.forEach((e)=>{
|
|
30665
|
+
var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
|
|
30666
|
+
((_e_place = e.place) === null || _e_place === void 0 ? void 0 : _e_place.latitude) && ((_e_place1 = e.place) === null || _e_place1 === void 0 ? void 0 : _e_place1.longitude) && result.push({
|
|
30641
30667
|
location: {
|
|
30642
30668
|
lat: e.place.latitude,
|
|
30643
30669
|
lng: e.place.longitude
|
|
30644
30670
|
},
|
|
30645
30671
|
name: e.displayText,
|
|
30646
|
-
imageURL: e.thing.image
|
|
30672
|
+
imageURL: ((_e_thing_image = e.thing.image) === null || _e_thing_image === void 0 ? void 0 : (_e_thing_image_urls = _e_thing_image.urls) === null || _e_thing_image_urls === void 0 ? void 0 : _e_thing_image_urls.length) ? e.thing.image.urls[0] : undefined,
|
|
30647
30673
|
type: (0, $bb862b2ef6568c15$export$55e6fd7564320b53).hebergement,
|
|
30648
30674
|
description: e.thing.description,
|
|
30649
30675
|
address: $bb64f8611bc3f5a1$var$getAddressFromPlaceData(e.place),
|
|
@@ -30653,28 +30679,32 @@ const $bb64f8611bc3f5a1$var$fetchPoiType = async ({ type: type, url: url, token:
|
|
|
30653
30679
|
});
|
|
30654
30680
|
break;
|
|
30655
30681
|
case (0, $bb862b2ef6568c15$export$55e6fd7564320b53).produit:
|
|
30656
|
-
|
|
30657
|
-
|
|
30682
|
+
var _data_data_geoDistanceSortedProduct;
|
|
30683
|
+
if ((_data_data_geoDistanceSortedProduct = data.data.geoDistanceSortedProduct) === null || _data_data_geoDistanceSortedProduct === void 0 ? void 0 : _data_data_geoDistanceSortedProduct.length) data.data.geoDistanceSortedProduct.forEach((e)=>{
|
|
30684
|
+
var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
|
|
30685
|
+
((_e_place = e.place) === null || _e_place === void 0 ? void 0 : _e_place.latitude) && ((_e_place1 = e.place) === null || _e_place1 === void 0 ? void 0 : _e_place1.longitude) && result.push({
|
|
30658
30686
|
location: {
|
|
30659
30687
|
lat: e.place.latitude,
|
|
30660
30688
|
lng: e.place.longitude
|
|
30661
30689
|
},
|
|
30662
30690
|
name: e.displayText,
|
|
30663
|
-
imageURL: e.thing.image
|
|
30691
|
+
imageURL: ((_e_thing_image = e.thing.image) === null || _e_thing_image === void 0 ? void 0 : (_e_thing_image_urls = _e_thing_image.urls) === null || _e_thing_image_urls === void 0 ? void 0 : _e_thing_image_urls.length) ? e.thing.image.urls[0] : undefined,
|
|
30664
30692
|
type: (0, $bb862b2ef6568c15$export$55e6fd7564320b53).produit,
|
|
30665
30693
|
contentItemId: e.contentItemId
|
|
30666
30694
|
});
|
|
30667
30695
|
});
|
|
30668
30696
|
break;
|
|
30669
30697
|
case (0, $bb862b2ef6568c15$export$55e6fd7564320b53).restaurant:
|
|
30670
|
-
|
|
30671
|
-
|
|
30698
|
+
var _data_data_geoDistanceSortedFoodEstablishment;
|
|
30699
|
+
if ((_data_data_geoDistanceSortedFoodEstablishment = data.data.geoDistanceSortedFoodEstablishment) === null || _data_data_geoDistanceSortedFoodEstablishment === void 0 ? void 0 : _data_data_geoDistanceSortedFoodEstablishment.length) data.data.geoDistanceSortedFoodEstablishment.forEach((e)=>{
|
|
30700
|
+
var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
|
|
30701
|
+
((_e_place = e.place) === null || _e_place === void 0 ? void 0 : _e_place.latitude) && ((_e_place1 = e.place) === null || _e_place1 === void 0 ? void 0 : _e_place1.longitude) && result.push({
|
|
30672
30702
|
location: {
|
|
30673
30703
|
lat: e.place.latitude,
|
|
30674
30704
|
lng: e.place.longitude
|
|
30675
30705
|
},
|
|
30676
30706
|
name: e.displayText,
|
|
30677
|
-
imageURL: e.thing.image
|
|
30707
|
+
imageURL: ((_e_thing_image = e.thing.image) === null || _e_thing_image === void 0 ? void 0 : (_e_thing_image_urls = _e_thing_image.urls) === null || _e_thing_image_urls === void 0 ? void 0 : _e_thing_image_urls.length) ? e.thing.image.urls[0] : undefined,
|
|
30678
30708
|
type: (0, $bb862b2ef6568c15$export$55e6fd7564320b53).restaurant,
|
|
30679
30709
|
description: e.thing.description,
|
|
30680
30710
|
address: $bb64f8611bc3f5a1$var$getAddressFromPlaceData(e.place),
|
|
@@ -30684,14 +30714,16 @@ const $bb64f8611bc3f5a1$var$fetchPoiType = async ({ type: type, url: url, token:
|
|
|
30684
30714
|
});
|
|
30685
30715
|
break;
|
|
30686
30716
|
case (0, $bb862b2ef6568c15$export$55e6fd7564320b53).service:
|
|
30687
|
-
|
|
30688
|
-
|
|
30717
|
+
var _data_data_geoDistanceSortedService;
|
|
30718
|
+
if ((_data_data_geoDistanceSortedService = data.data.geoDistanceSortedService) === null || _data_data_geoDistanceSortedService === void 0 ? void 0 : _data_data_geoDistanceSortedService.length) data.data.geoDistanceSortedService.forEach((e)=>{
|
|
30719
|
+
var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
|
|
30720
|
+
((_e_place = e.place) === null || _e_place === void 0 ? void 0 : _e_place.latitude) && ((_e_place1 = e.place) === null || _e_place1 === void 0 ? void 0 : _e_place1.longitude) && result.push({
|
|
30689
30721
|
location: {
|
|
30690
30722
|
lat: e.place.latitude,
|
|
30691
30723
|
lng: e.place.longitude
|
|
30692
30724
|
},
|
|
30693
30725
|
name: e.displayText,
|
|
30694
|
-
imageURL: e.thing.image
|
|
30726
|
+
imageURL: ((_e_thing_image = e.thing.image) === null || _e_thing_image === void 0 ? void 0 : (_e_thing_image_urls = _e_thing_image.urls) === null || _e_thing_image_urls === void 0 ? void 0 : _e_thing_image_urls.length) ? e.thing.image.urls[0] : undefined,
|
|
30695
30727
|
type: (0, $bb862b2ef6568c15$export$55e6fd7564320b53).service,
|
|
30696
30728
|
contentItemId: e.contentItemId
|
|
30697
30729
|
});
|
|
@@ -30755,15 +30787,15 @@ const $73efd853987d4bec$export$5e65d2e7602ac78d = ({ retorikName: retorikName, u
|
|
|
30755
30787
|
position.latitude = currentUserLocation.lat;
|
|
30756
30788
|
position.longitude = currentUserLocation.lng;
|
|
30757
30789
|
}
|
|
30758
|
-
(0, $bb64f8611bc3f5a1$export$7867c88f1bb2065)({
|
|
30790
|
+
(0, $bb64f8611bc3f5a1$export$7867c88f1bb2065)((0, $7jQCS$_1)((0, $7jQCS$_)({
|
|
30759
30791
|
token: token,
|
|
30760
30792
|
useDevTenant: useDevTenant,
|
|
30761
30793
|
locale: locale.toLowerCase(),
|
|
30762
|
-
tenant: retorikName
|
|
30763
|
-
|
|
30794
|
+
tenant: retorikName
|
|
30795
|
+
}, position), {
|
|
30764
30796
|
categoriesToShow: categoriesToShow,
|
|
30765
30797
|
callBack: setPoiList
|
|
30766
|
-
});
|
|
30798
|
+
}));
|
|
30767
30799
|
}
|
|
30768
30800
|
}, [
|
|
30769
30801
|
token,
|
|
@@ -30885,17 +30917,16 @@ const $afc3b063d0f5522c$export$a6b9c7133f02bfd8 = ()=>{
|
|
|
30885
30917
|
|
|
30886
30918
|
const $c2806d4ce3815b78$var$store = (0, $d6025a90a38b0ae3$export$281a42ec42dc777b)();
|
|
30887
30919
|
const $c2806d4ce3815b78$export$a5c7b93649eaf8f8 = (props)=>{
|
|
30920
|
+
var _props_settings;
|
|
30888
30921
|
return /*#__PURE__*/ (0, $7jQCS$jsx)((0, $7jQCS$Fragment), {
|
|
30889
|
-
children: props
|
|
30922
|
+
children: (props === null || props === void 0 ? void 0 : props.activeTenant) && /*#__PURE__*/ (0, $7jQCS$jsxs)((0, $7jQCS$Provider), {
|
|
30890
30923
|
store: $c2806d4ce3815b78$var$store,
|
|
30891
30924
|
children: [
|
|
30892
|
-
/*#__PURE__*/ (0, $7jQCS$jsx)((0, $ccf1a8cf083c5878$export$ddd638f4963d1957), {
|
|
30893
|
-
...props
|
|
30894
|
-
}),
|
|
30925
|
+
/*#__PURE__*/ (0, $7jQCS$jsx)((0, $ccf1a8cf083c5878$export$ddd638f4963d1957), (0, $7jQCS$_)({}, props)),
|
|
30895
30926
|
/*#__PURE__*/ (0, $7jQCS$jsx)((0, $73efd853987d4bec$export$5e65d2e7602ac78d), {
|
|
30896
30927
|
retorikName: props.tenantList[props.activeTenant].retorikName,
|
|
30897
30928
|
useDevTenant: !!props.isDevTenant,
|
|
30898
|
-
categoriesToShow: props.settings
|
|
30929
|
+
categoriesToShow: (_props_settings = props.settings) === null || _props_settings === void 0 ? void 0 : _props_settings.showFilter
|
|
30899
30930
|
}),
|
|
30900
30931
|
/*#__PURE__*/ (0, $7jQCS$jsx)((0, $36a2ff8f1941466d$export$e370d38831f5792a), {})
|
|
30901
30932
|
]
|