@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.js CHANGED
@@ -1,4 +1,5 @@
1
1
  require("./index.css");
2
+ var $1FYMx$swchelperscjs_object_spreadcjs = require("@swc/helpers/cjs/_object_spread.cjs");
2
3
  var $1FYMx$reactjsxruntime = require("react/jsx-runtime");
3
4
  var $1FYMx$react = require("react");
4
5
  var $1FYMx$reactredux = require("react-redux");
@@ -14,6 +15,7 @@ var $1FYMx$graphqlrequest = require("graphql-request");
14
15
  var $1FYMx$daviairetorikframeworkhospitality = require("@davi-ai/retorik-framework-hospitality");
15
16
  var $1FYMx$markdownit = require("markdown-it");
16
17
  var $1FYMx$qrcode = require("qrcode");
18
+ var $1FYMx$swchelperscjs_object_spread_propscjs = require("@swc/helpers/cjs/_object_spread_props.cjs");
17
19
  var $1FYMx$reduxjstoolkitqueryreact = require("@reduxjs/toolkit/query/react");
18
20
 
19
21
 
@@ -37,6 +39,7 @@ $parcel$export(module.exports, "labels", function () { return $adc358f1cbdc29a7$
37
39
 
38
40
 
39
41
 
42
+
40
43
  /* eslint-disable react/self-closing-comp */
41
44
 
42
45
  const $5501b30ed9987357$var$MapIcon = ()=>{
@@ -316,6 +319,7 @@ var $37e9e4b124edfaf2$export$2e2bcd8739ae039 = $37e9e4b124edfaf2$var$slice.reduc
316
319
 
317
320
 
318
321
 
322
+ let $f786cfa56b95c86f$var$_ = (t)=>t, $f786cfa56b95c86f$var$t, $f786cfa56b95c86f$var$t1, $f786cfa56b95c86f$var$t2, $f786cfa56b95c86f$var$t3, $f786cfa56b95c86f$var$t4, $f786cfa56b95c86f$var$t5;
319
323
  const $f786cfa56b95c86f$export$e9e19ceca2b11d3c = [
320
324
  {
321
325
  name: 'Resto 1',
@@ -410,67 +414,67 @@ const $f786cfa56b95c86f$var$commonFields = `
410
414
  ${$f786cfa56b95c86f$var$thing}
411
415
  `;
412
416
  const $f786cfa56b95c86f$var$createFoodEstablishmentQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
413
- return (0, $1FYMx$graphqlrequest.gql)`
417
+ return (0, $1FYMx$graphqlrequest.gql)($f786cfa56b95c86f$var$t || ($f786cfa56b95c86f$var$t = $f786cfa56b95c86f$var$_`
414
418
  query GetFoodEtablishment {
415
- geoDistanceSortedFoodEstablishment(parameters: "{ from: ${from}, size: ${size}, culture: \\"${locale}\\", lat: \\"${latitude}\\", lon: \\"${longitude}\\" }") {
416
- ${$f786cfa56b95c86f$var$commonFields}
419
+ geoDistanceSortedFoodEstablishment(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
420
+ ${0}
417
421
  starRating
418
422
  servesCuisine
419
423
  owner
420
424
  }
421
425
  }
422
- `;
426
+ `), from, size, locale, latitude, longitude, $f786cfa56b95c86f$var$commonFields);
423
427
  };
424
428
  const $f786cfa56b95c86f$var$createLodgingBusinessQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
425
- return (0, $1FYMx$graphqlrequest.gql)`
429
+ return (0, $1FYMx$graphqlrequest.gql)($f786cfa56b95c86f$var$t1 || ($f786cfa56b95c86f$var$t1 = $f786cfa56b95c86f$var$_`
426
430
  query GetLodgingBusiness {
427
- geoDistanceSortedLodgingBusiness(parameters: "{ from: ${from}, size: ${size}, culture: \\"${locale}\\", lat: \\"${latitude}\\", lon: \\"${longitude}\\" }") {
428
- ${$f786cfa56b95c86f$var$commonFields}
431
+ geoDistanceSortedLodgingBusiness(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
432
+ ${0}
429
433
  checkinTime
430
434
  checkoutTime
431
435
  numberOfRooms
432
436
  }
433
437
  }
434
- `;
438
+ `), from, size, locale, latitude, longitude, $f786cfa56b95c86f$var$commonFields);
435
439
  };
436
440
  const $f786cfa56b95c86f$var$createServicesQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
437
- return (0, $1FYMx$graphqlrequest.gql)`
441
+ return (0, $1FYMx$graphqlrequest.gql)($f786cfa56b95c86f$var$t2 || ($f786cfa56b95c86f$var$t2 = $f786cfa56b95c86f$var$_`
438
442
  query GetService {
439
- geoDistanceSortedService(parameters: "{ from: ${from}, size: ${size}, culture: \\"${locale}\\", lat: \\"${latitude}\\", lon: \\"${longitude}\\" }") {
440
- ${$f786cfa56b95c86f$var$commonFields}
443
+ geoDistanceSortedService(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
444
+ ${0}
441
445
  serviceType
442
446
  }
443
447
  }
444
- `;
448
+ `), from, size, locale, latitude, longitude, $f786cfa56b95c86f$var$commonFields);
445
449
  };
446
450
  const $f786cfa56b95c86f$var$createTouristAttractionQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
447
- return (0, $1FYMx$graphqlrequest.gql)`
451
+ return (0, $1FYMx$graphqlrequest.gql)($f786cfa56b95c86f$var$t3 || ($f786cfa56b95c86f$var$t3 = $f786cfa56b95c86f$var$_`
448
452
  query GetTouristAttraction {
449
- geoDistanceSortedTouristAttraction(parameters: "{ from: ${from}, size: ${size}, culture: \\"${locale}\\", lat: \\"${latitude}\\", lon: \\"${longitude}\\" }") {
450
- ${$f786cfa56b95c86f$var$commonFields}
453
+ geoDistanceSortedTouristAttraction(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
454
+ ${0}
451
455
  touristType
452
456
  }
453
457
  }
454
- `;
458
+ `), from, size, locale, latitude, longitude, $f786cfa56b95c86f$var$commonFields);
455
459
  };
456
460
  const $f786cfa56b95c86f$var$createTouristDestinationQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
457
- return (0, $1FYMx$graphqlrequest.gql)`
461
+ return (0, $1FYMx$graphqlrequest.gql)($f786cfa56b95c86f$var$t4 || ($f786cfa56b95c86f$var$t4 = $f786cfa56b95c86f$var$_`
458
462
  query GetTouristDestination {
459
- geoDistanceSortedTouristDestination(parameters: "{ from: ${from}, size: ${size}, culture: \\"${locale}\\", lat: \\"${latitude}\\", lon: \\"${longitude}\\" }") {
460
- ${$f786cfa56b95c86f$var$commonFields}
463
+ geoDistanceSortedTouristDestination(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
464
+ ${0}
461
465
  touristType
462
466
  }
463
467
  }
464
- `;
468
+ `), from, size, locale, latitude, longitude, $f786cfa56b95c86f$var$commonFields);
465
469
  };
466
470
  const $f786cfa56b95c86f$var$createProductQuery = ({ from: from, size: size, locale: locale, latitude: latitude, longitude: longitude })=>{
467
- return (0, $1FYMx$graphqlrequest.gql)`
471
+ return (0, $1FYMx$graphqlrequest.gql)($f786cfa56b95c86f$var$t5 || ($f786cfa56b95c86f$var$t5 = $f786cfa56b95c86f$var$_`
468
472
  query GetProduct {
469
- geoDistanceSortedProduct(parameters: "{ from: ${from}, size: ${size}, culture: \\"${locale}\\", lat: \\"${latitude}\\", lon: \\"${longitude}\\" }") {
470
- ${$f786cfa56b95c86f$var$commonFields}
473
+ geoDistanceSortedProduct(parameters: "{ \\"from\\": ${0}, \\"size\\": ${0}, \\"culture\\": \\"${0}\\", \\"lat\\": \\"${0}\\", \\"lon\\": \\"${0}\\" }") {
474
+ ${0}
471
475
  }
472
476
  }
473
- `;
477
+ `), from, size, locale, latitude, longitude, $f786cfa56b95c86f$var$commonFields);
474
478
  };
475
479
  const $f786cfa56b95c86f$export$eb4a40790fd3bf4c = ({ type: type, locale: locale, from: from, size: size, latitude: latitude, longitude: longitude })=>{
476
480
  const data = {
@@ -548,6 +552,39 @@ const $fa6ee6a7b41f4c23$export$be7c8260078214ef = ()=>{
548
552
 
549
553
 
550
554
 
555
+ function $017145711b309a2f$export$4e21b1533c28e5b8(str, ...args) {
556
+ let i = 0;
557
+ return str.replace(/%s/g, ()=>args[i++]);
558
+ }
559
+ const $017145711b309a2f$export$3f9b01d7e1ec1661 = 'https://studio.retorik.ai';
560
+ const $017145711b309a2f$export$4df8f2681d5a45b4 = 'https://dev.studio.retorik.ai';
561
+ const $017145711b309a2f$export$3b847951f9d5210f = 'userLocation';
562
+ function $017145711b309a2f$export$b1be5d22f8c2836d(cityLocation, tenantPolygon) {
563
+ const polyPoints = (0, ($parcel$interopDefault($1FYMx$leaflet))).polygon(tenantPolygon);
564
+ let inside = false;
565
+ inside = polyPoints.getBounds().contains(cityLocation);
566
+ return inside;
567
+ }
568
+ const $017145711b309a2f$export$f3928fa528b0a11c = (key, value)=>{
569
+ const valueParsed = JSON.stringify(value);
570
+ if (valueParsed) localStorage.setItem(key, valueParsed);
571
+ };
572
+ const $017145711b309a2f$export$d3720feff416e85b = (key)=>{
573
+ const value = localStorage.getItem(key);
574
+ if (value && typeof value === 'string') return JSON.parse(value);
575
+ return null;
576
+ };
577
+ const $017145711b309a2f$export$d07f57595c356899 = (text, locale = 'fr-FR')=>{
578
+ if (text && text.length > 0) {
579
+ const first = text.charAt(0);
580
+ const rest = text.slice(1);
581
+ return first.toLocaleUpperCase(locale) + rest;
582
+ }
583
+ return '';
584
+ };
585
+
586
+
587
+
551
588
 
552
589
  const $162f921bccd57232$export$a22d066494b2bdf2 = new (0, ($parcel$interopDefault($1FYMx$leaflet))).Icon({
553
590
  iconUrl: (0, $e2ff17f76333d89e$export$3d487aebaadc5c38),
@@ -708,6 +745,7 @@ const $4e61b315bd882780$var$typeConversion = {
708
745
  [(0, $8f1a6adc86e47827$export$55e6fd7564320b53).service]: 'services'
709
746
  };
710
747
  const $4e61b315bd882780$export$e2d78e54e91e6990 = ({ settings: settings })=>{
748
+ var _labelTranslated_locale;
711
749
  const dispatch = (0, $1FYMx$reactredux.useDispatch)();
712
750
  const locale = (0, $1FYMx$daviairetorikframework.useLocaleStore)((state)=>state.locale);
713
751
  const [toggle, setToggle] = (0, $1FYMx$react.useState)(true);
@@ -723,9 +761,9 @@ const $4e61b315bd882780$export$e2d78e54e91e6990 = ({ settings: settings })=>{
723
761
  ]);
724
762
  const [labelTranslated, setLabelTranslated] = (0, $1FYMx$react.useState)((0, (/*@__PURE__*/$parcel$interopDefault($4cc9bd889f71fcc5$exports))));
725
763
  (0, $1FYMx$react.useEffect)(()=>{
726
- settings?.showFilter && setShowFilters(settings?.showFilter);
764
+ (settings === null || settings === void 0 ? void 0 : settings.showFilter) && setShowFilters(settings === null || settings === void 0 ? void 0 : settings.showFilter);
727
765
  // Handle translation
728
- if (settings?.labelFilter && Object.keys(settings.labelFilter).length) setLabelTranslated(settings.labelFilter);
766
+ if ((settings === null || settings === void 0 ? void 0 : settings.labelFilter) && Object.keys(settings.labelFilter).length) setLabelTranslated(settings.labelFilter);
729
767
  else setLabelTranslated((0, (/*@__PURE__*/$parcel$interopDefault($4cc9bd889f71fcc5$exports))));
730
768
  }, [
731
769
  settings
@@ -749,7 +787,7 @@ const $4e61b315bd882780$export$e2d78e54e91e6990 = ({ settings: settings })=>{
749
787
  className: "filterToggler",
750
788
  onClick: ()=>setToggle(!toggle),
751
789
  children: [
752
- labelTranslated[locale]?.title || labelTranslated['fr-FR'].title,
790
+ ((_labelTranslated_locale = labelTranslated[locale]) === null || _labelTranslated_locale === void 0 ? void 0 : _labelTranslated_locale.title) || labelTranslated['fr-FR'].title,
753
791
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)("span", {
754
792
  className: `arrow ${toggle ? 'active' : ''}`
755
793
  })
@@ -758,9 +796,10 @@ const $4e61b315bd882780$export$e2d78e54e91e6990 = ({ settings: settings })=>{
758
796
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)("div", {
759
797
  className: "filterMenu",
760
798
  children: showFilters.map((type, key)=>{
799
+ var _labelTranslated_locale;
761
800
  return /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $32ba0b314b0299cb$export$2e2bcd8739ae039), {
762
801
  type: type,
763
- label: labelTranslated[locale]?.[$4e61b315bd882780$var$typeConversion[type]],
802
+ label: (_labelTranslated_locale = labelTranslated[locale]) === null || _labelTranslated_locale === void 0 ? void 0 : _labelTranslated_locale[$4e61b315bd882780$var$typeConversion[type]],
764
803
  selected: selectedFilters.includes(type),
765
804
  onClick: onFilterClick
766
805
  }, key);
@@ -811,37 +850,6 @@ const $bc6ce4136a207b98$export$b42842b40b0e9990 = (props)=>{
811
850
 
812
851
 
813
852
 
814
- function $017145711b309a2f$export$4e21b1533c28e5b8(str, ...args) {
815
- let i = 0;
816
- return str.replace(/%s/g, ()=>args[i++]);
817
- }
818
- const $017145711b309a2f$export$3f9b01d7e1ec1661 = 'https://studio.retorik.ai';
819
- const $017145711b309a2f$export$3b847951f9d5210f = 'userLocation';
820
- function $017145711b309a2f$export$b1be5d22f8c2836d(cityLocation, tenantPolygon) {
821
- const polyPoints = (0, ($parcel$interopDefault($1FYMx$leaflet))).polygon(tenantPolygon);
822
- let inside = false;
823
- inside = polyPoints.getBounds().contains(cityLocation);
824
- return inside;
825
- }
826
- const $017145711b309a2f$export$f3928fa528b0a11c = (key, value)=>{
827
- const valueParsed = JSON.stringify(value);
828
- if (valueParsed) localStorage.setItem(key, valueParsed);
829
- };
830
- const $017145711b309a2f$export$d3720feff416e85b = (key)=>{
831
- const value = localStorage.getItem(key);
832
- if (value && typeof value === 'string') return JSON.parse(value);
833
- return null;
834
- };
835
- const $017145711b309a2f$export$d07f57595c356899 = (text, locale = 'fr-FR')=>{
836
- if (text && text.length > 0) {
837
- const first = text.charAt(0);
838
- const rest = text.slice(1);
839
- return first.toLocaleUpperCase(locale) + rest;
840
- }
841
- return '';
842
- };
843
-
844
-
845
853
 
846
854
  var $cab9619c0e8788ed$exports = {};
847
855
  $cab9619c0e8788ed$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"}}');
@@ -1055,11 +1063,11 @@ const $394b25b73dc47897$var$RoutesItem = ({ summary: summary, chosen: chosen, co
1055
1063
  children: [
1056
1064
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)("div", {
1057
1065
  className: "route-item-duration",
1058
- children: (0, $ae41d7dfb5e97738$export$a8fb05107cd01f03)(summary?.duration)
1066
+ children: (0, $ae41d7dfb5e97738$export$a8fb05107cd01f03)(summary === null || summary === void 0 ? void 0 : summary.duration)
1059
1067
  }),
1060
1068
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)("div", {
1061
1069
  className: "route-item-distance",
1062
- children: (0, $ae41d7dfb5e97738$export$98fa73d0d16cf821)(summary?.distance)
1070
+ children: (0, $ae41d7dfb5e97738$export$98fa73d0d16cf821)(summary === null || summary === void 0 ? void 0 : summary.distance)
1063
1071
  })
1064
1072
  ]
1065
1073
  })
@@ -1075,6 +1083,7 @@ const $189a2791d8070fe0$var$openRoute = 'https://api.openrouteservice.org/v2/dir
1075
1083
  const $189a2791d8070fe0$var$openRouteAPIKey = '5b3ce3597851110001cf62483cfd6bd46f934b7d96f108a35e0f08b8';
1076
1084
  const $189a2791d8070fe0$var$googleMapsAddress = 'https://www.google.com/maps/dir/?api=1&';
1077
1085
  const $189a2791d8070fe0$var$Routes = ({ coordinates: coordinates, setMapLayerData: setMapLayerData, color: color, setQrCodeUrl: setQrCodeUrl })=>{
1086
+ 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;
1078
1087
  const isUsedOnBorne = (0, $1FYMx$daviairetorikframework.useRetorikStore)((state)=>state.configuration.isUsedOnBorne);
1079
1088
  const locale = (0, $1FYMx$daviairetorikframework.useLocaleStore)((state)=>state.locale);
1080
1089
  const [drivingCar, setDrivingCar] = (0, $1FYMx$react.useState)(undefined);
@@ -1163,7 +1172,7 @@ const $189a2791d8070fe0$var$Routes = ({ coordinates: coordinates, setMapLayerDat
1163
1172
  }
1164
1173
  };
1165
1174
  const handleClick = async ()=>{
1166
- if (travelModeRef?.current && coordinates.length === 2) {
1175
+ if ((travelModeRef === null || travelModeRef === void 0 ? void 0 : travelModeRef.current) && coordinates.length === 2) {
1167
1176
  // Create an URL to Google Maps with coordinates and travelling mode
1168
1177
  const coordinatesInUrl = `origin=${coordinates[0][1]},${coordinates[0][0]}&destination=${coordinates[1][1]},${coordinates[1][0]}`;
1169
1178
  const fullUrl = `${$189a2791d8070fe0$var$googleMapsAddress}${coordinatesInUrl}&travelmode=${travelModeRef.current}`;
@@ -1183,8 +1192,8 @@ const $189a2791d8070fe0$var$Routes = ({ coordinates: coordinates, setMapLayerDat
1183
1192
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $394b25b73dc47897$export$2e2bcd8739ae039), {
1184
1193
  summary: {
1185
1194
  type: 'drivingCar',
1186
- distance: drivingCar?.features?.length ? drivingCar.features[0].properties?.summary?.distance : undefined,
1187
- duration: drivingCar?.features?.length ? drivingCar.features[0].properties?.summary?.duration : undefined
1195
+ 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,
1196
+ 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
1188
1197
  },
1189
1198
  chosen: currentChosen === 'drivingCar',
1190
1199
  color: color,
@@ -1193,8 +1202,8 @@ const $189a2791d8070fe0$var$Routes = ({ coordinates: coordinates, setMapLayerDat
1193
1202
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $394b25b73dc47897$export$2e2bcd8739ae039), {
1194
1203
  summary: {
1195
1204
  type: 'cyclingRegular',
1196
- distance: cyclingRegular?.features?.length ? cyclingRegular.features[0].properties?.summary?.distance : undefined,
1197
- duration: cyclingRegular?.features?.length ? cyclingRegular.features[0].properties?.summary?.duration : undefined
1205
+ 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,
1206
+ 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
1198
1207
  },
1199
1208
  chosen: currentChosen === 'cyclingRegular',
1200
1209
  color: color,
@@ -1203,8 +1212,8 @@ const $189a2791d8070fe0$var$Routes = ({ coordinates: coordinates, setMapLayerDat
1203
1212
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $394b25b73dc47897$export$2e2bcd8739ae039), {
1204
1213
  summary: {
1205
1214
  type: 'footWalking',
1206
- distance: footWalking?.features?.length ? footWalking.features[0].properties?.summary?.distance : undefined,
1207
- duration: footWalking?.features?.length ? footWalking.features[0].properties?.summary?.duration : undefined
1215
+ 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,
1216
+ 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
1208
1217
  },
1209
1218
  chosen: currentChosen === 'footWalking',
1210
1219
  color: color,
@@ -1219,7 +1228,7 @@ const $189a2791d8070fe0$var$Routes = ({ coordinates: coordinates, setMapLayerDat
1219
1228
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $c8e8fe537b18dad0$export$2e2bcd8739ae039), {
1220
1229
  className: "route-icon-medium"
1221
1230
  }),
1222
- (0, $017145711b309a2f$export$d07f57595c356899)((0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))[locale]?.route || (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))['fr-FR'].route, locale)
1231
+ (0, $017145711b309a2f$export$d07f57595c356899)(((_translation_locale = (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))[locale]) === null || _translation_locale === void 0 ? void 0 : _translation_locale.route) || (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))['fr-FR'].route, locale)
1223
1232
  ]
1224
1233
  })
1225
1234
  ]
@@ -1253,7 +1262,8 @@ const $2ed5971e4d4df7a9$var$md = new (0, ($parcel$interopDefault($1FYMx$markdown
1253
1262
  quotes: `""''`
1254
1263
  });
1255
1264
  const $2ed5971e4d4df7a9$var$fadeDuration = 500;
1256
- const $2ed5971e4d4df7a9$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClose, setMapLayerData: setMapLayerData })=>{
1265
+ const $2ed5971e4d4df7a9$export$b79ff28f7aa330b0 = ({ poi: poi, retorikAddress: retorikAddress, poiClose: poiClose, setMapLayerData: setMapLayerData })=>{
1266
+ var _translation_locale, _translation_locale1, _translation_locale2;
1257
1267
  const dispatch = (0, $1FYMx$reactredux.useDispatch)();
1258
1268
  const currentUserPos = (0, $1FYMx$reactredux.useSelector)((state)=>state.map.currentUserLocation);
1259
1269
  const locale = (0, $1FYMx$daviairetorikframework.useLocaleStore)((state)=>state.locale);
@@ -1341,8 +1351,8 @@ const $2ed5971e4d4df7a9$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClos
1341
1351
  };
1342
1352
  const handlePoiClose = ()=>{
1343
1353
  setMainFadingOut(true);
1344
- mainFadeOutTimerRef?.current && clearTimeout(mainFadeOutTimerRef.current);
1345
- mainSecondFadeOutTimerRef?.current && clearTimeout(mainSecondFadeOutTimerRef.current);
1354
+ (mainFadeOutTimerRef === null || mainFadeOutTimerRef === void 0 ? void 0 : mainFadeOutTimerRef.current) && clearTimeout(mainFadeOutTimerRef.current);
1355
+ (mainSecondFadeOutTimerRef === null || mainSecondFadeOutTimerRef === void 0 ? void 0 : mainSecondFadeOutTimerRef.current) && clearTimeout(mainSecondFadeOutTimerRef.current);
1346
1356
  mainFadeOutTimerRef.current = setTimeout(()=>{
1347
1357
  setMainFadingOut(false);
1348
1358
  }, $2ed5971e4d4df7a9$var$fadeDuration);
@@ -1352,7 +1362,7 @@ const $2ed5971e4d4df7a9$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClos
1352
1362
  };
1353
1363
  const handleCloseQrCode = ()=>{
1354
1364
  setFadingOut(true);
1355
- fadeOutTimerRef?.current && clearTimeout(fadeOutTimerRef.current);
1365
+ (fadeOutTimerRef === null || fadeOutTimerRef === void 0 ? void 0 : fadeOutTimerRef.current) && clearTimeout(fadeOutTimerRef.current);
1356
1366
  fadeOutTimerRef.current = setTimeout(()=>{
1357
1367
  setQrCodeUrl(null);
1358
1368
  setFadingOut(false);
@@ -1389,7 +1399,7 @@ const $2ed5971e4d4df7a9$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClos
1389
1399
  children: /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)("img", {
1390
1400
  onLoad: ()=>setImageLoaded(true),
1391
1401
  onError: ()=>setImageLoaded(true),
1392
- src: `${(0, $017145711b309a2f$export$3f9b01d7e1ec1661)}${poi.imageURL}`,
1402
+ src: `${retorikAddress}${poi.imageURL}`,
1393
1403
  alt: poi.name
1394
1404
  })
1395
1405
  }),
@@ -1405,7 +1415,7 @@ const $2ed5971e4d4df7a9$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClos
1405
1415
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)("button", {
1406
1416
  onClick: ()=>showMoreHandler(poi),
1407
1417
  className: `button_${(0, $f786cfa56b95c86f$export$7f9d623abbd2d21d)(poi.type)} poiButton`,
1408
- children: (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))[locale]?.showmore || (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))['fr-FR'].showmore
1418
+ children: ((_translation_locale = (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))[locale]) === null || _translation_locale === void 0 ? void 0 : _translation_locale.showmore) || (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))['fr-FR'].showmore
1409
1419
  })
1410
1420
  ]
1411
1421
  })
@@ -1435,10 +1445,10 @@ const $2ed5971e4d4df7a9$export$b79ff28f7aa330b0 = ({ poi: poi, poiClose: poiClos
1435
1445
  className: "qrcode-text",
1436
1446
  children: [
1437
1447
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)("div", {
1438
- children: (0, $017145711b309a2f$export$d07f57595c356899)((0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))[locale]?.openroutemobile || (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))['fr-FR'].openroutemobile, locale)
1448
+ children: (0, $017145711b309a2f$export$d07f57595c356899)(((_translation_locale1 = (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))[locale]) === null || _translation_locale1 === void 0 ? void 0 : _translation_locale1.openroutemobile) || (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))['fr-FR'].openroutemobile, locale)
1439
1449
  }),
1440
1450
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)("div", {
1441
- children: (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))[locale]?.scanQR || (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))['fr-FR'].scanQR
1451
+ children: ((_translation_locale2 = (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))[locale]) === null || _translation_locale2 === void 0 ? void 0 : _translation_locale2.scanQR) || (0, (/*@__PURE__*/$parcel$interopDefault($cab9619c0e8788ed$exports)))['fr-FR'].scanQR
1442
1452
  })
1443
1453
  ]
1444
1454
  })
@@ -1461,12 +1471,12 @@ const $b28bc26c8207bfe2$var$CustomLoader = ()=>{
1461
1471
  const [visible, setVisible] = (0, $1FYMx$react.useState)(false);
1462
1472
  const timerRef = (0, $1FYMx$react.useRef)(null);
1463
1473
  (0, $1FYMx$react.useEffect)(()=>{
1464
- timerRef?.current && clearTimeout(timerRef.current);
1474
+ (timerRef === null || timerRef === void 0 ? void 0 : timerRef.current) && clearTimeout(timerRef.current);
1465
1475
  timerRef.current = setTimeout(()=>{
1466
1476
  setVisible(true);
1467
1477
  }, 4000);
1468
1478
  return ()=>{
1469
- timerRef?.current && clearTimeout(timerRef.current);
1479
+ (timerRef === null || timerRef === void 0 ? void 0 : timerRef.current) && clearTimeout(timerRef.current);
1470
1480
  };
1471
1481
  }, []);
1472
1482
  return /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsxs)("div", {
@@ -1494,6 +1504,7 @@ var $b28bc26c8207bfe2$export$2e2bcd8739ae039 = $b28bc26c8207bfe2$var$CustomLoade
1494
1504
  shadowUrl: (0, $e2ff17f76333d89e$export$1524746c49eeef2b)
1495
1505
  });
1496
1506
  const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1507
+ var _translation_locale, _translation_locale1, _translation_locale2, _translation_locale3;
1497
1508
  const pois = (0, $1FYMx$reactredux.useSelector)((state)=>state.poi.poiList);
1498
1509
  const dispatch = (0, $1FYMx$reactredux.useDispatch)();
1499
1510
  const locale = (0, $1FYMx$daviairetorikframework.useLocaleStore)((state)=>state.locale);
@@ -1522,7 +1533,7 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1522
1533
  service: (0, $162f921bccd57232$export$d60d82aee240d483)
1523
1534
  };
1524
1535
  const poisToDisplay = (0, $1FYMx$react.useMemo)(()=>{
1525
- if (pois && Array.isArray(pois) && pois.length && selectedFilters) return pois?.filter((p)=>selectedFilters.some((f)=>f === p.type));
1536
+ 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));
1526
1537
  return [];
1527
1538
  }, [
1528
1539
  pois,
@@ -1534,13 +1545,13 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1534
1545
  }));
1535
1546
  };
1536
1547
  (0, $1FYMx$react.useEffect)(()=>{
1537
- props?.activeTenant && dispatch((0, $0f413ce9a9101064$export$2cb53dffb4e7523f)({
1548
+ (props === null || props === void 0 ? void 0 : props.activeTenant) && dispatch((0, $0f413ce9a9101064$export$2cb53dffb4e7523f)({
1538
1549
  activeTenant: props.activeTenant
1539
1550
  }));
1540
- props?.tenantList && dispatch((0, $0f413ce9a9101064$export$4afb5402acd283a1)({
1551
+ (props === null || props === void 0 ? void 0 : props.tenantList) && dispatch((0, $0f413ce9a9101064$export$4afb5402acd283a1)({
1541
1552
  tenantList: props.tenantList
1542
1553
  }));
1543
- props?.userLocation && dispatch((0, $42ee6246860dbbfc$export$9e7828c0c29d5e97)({
1554
+ (props === null || props === void 0 ? void 0 : props.userLocation) && dispatch((0, $42ee6246860dbbfc$export$9e7828c0c29d5e97)({
1544
1555
  currentUserLocation: props.userLocation
1545
1556
  }));
1546
1557
  }, [
@@ -1578,7 +1589,7 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1578
1589
  CSSInjected: true
1579
1590
  }));
1580
1591
  }
1581
- if (!props?.userLocation) navigator.geolocation.getCurrentPosition((res)=>{
1592
+ if (!(props === null || props === void 0 ? void 0 : props.userLocation)) navigator.geolocation.getCurrentPosition((res)=>{
1582
1593
  if (res) {
1583
1594
  if (mapRef.current) {
1584
1595
  const center = {
@@ -1599,9 +1610,10 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1599
1610
  console.log('Retorik Map > Destroy map component');
1600
1611
  // save map state
1601
1612
  if (markersRef.current && botCSSInjected) {
1613
+ var _mapRef_current, _mapRef_current1;
1602
1614
  const saveMapState = {
1603
- zoom: mapRef.current?.getZoom(),
1604
- location: mapRef.current?.getCenter()
1615
+ zoom: (_mapRef_current = mapRef.current) === null || _mapRef_current === void 0 ? void 0 : _mapRef_current.getZoom(),
1616
+ location: (_mapRef_current1 = mapRef.current) === null || _mapRef_current1 === void 0 ? void 0 : _mapRef_current1.getCenter()
1605
1617
  };
1606
1618
  dispatch((0, $42ee6246860dbbfc$export$99750ab96d7881ba)({
1607
1619
  mapState: saveMapState
@@ -1637,9 +1649,10 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1637
1649
  }
1638
1650
  if (retorikEvent === (0, $1FYMx$daviairetorikframework.RetorikEvent).DetailViewClose && currentSubView === (0, $1FYMx$daviairetorikframework.CurrentSubView).none) {
1639
1651
  if (markersRef.current) {
1652
+ var _mapRef_current, _mapRef_current1;
1640
1653
  const saveMapState = {
1641
- zoom: mapRef.current?.getZoom(),
1642
- location: mapRef.current?.getCenter()
1654
+ zoom: (_mapRef_current = mapRef.current) === null || _mapRef_current === void 0 ? void 0 : _mapRef_current.getZoom(),
1655
+ location: (_mapRef_current1 = mapRef.current) === null || _mapRef_current1 === void 0 ? void 0 : _mapRef_current1.getCenter()
1643
1656
  };
1644
1657
  if (saveMapState.zoom !== undefined && saveMapState.location !== undefined) dispatch((0, $42ee6246860dbbfc$export$99750ab96d7881ba)({
1645
1658
  mapState: saveMapState
@@ -1650,7 +1663,8 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1650
1663
  retorikEvent
1651
1664
  ]);
1652
1665
  (0, $1FYMx$react.useEffect)(()=>{
1653
- const aroundMeDistance = tenantList[activeTenant]?.aroundMeDistance;
1666
+ var _tenantList_activeTenant;
1667
+ const aroundMeDistance = (_tenantList_activeTenant = tenantList[activeTenant]) === null || _tenantList_activeTenant === void 0 ? void 0 : _tenantList_activeTenant.aroundMeDistance;
1654
1668
  if (aroundMeDistance) setAroundMeDistance(aroundMeDistance);
1655
1669
  }, [
1656
1670
  tenantList,
@@ -1697,7 +1711,7 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1697
1711
  if (selectedPOIIdentifier !== '') {
1698
1712
  const selectedPOIObj = pois.find((p)=>p.contentItemId === selectedPOIIdentifier);
1699
1713
  const selectedMarker = markersRef.current.find((m)=>m.id === selectedPOIIdentifier);
1700
- if (selectedMarker && selectedPOIObj?.location && mapRef.current) {
1714
+ if (selectedMarker && (selectedPOIObj === null || selectedPOIObj === void 0 ? void 0 : selectedPOIObj.location) && mapRef.current) {
1701
1715
  dispatch((0, $42ee6246860dbbfc$export$99750ab96d7881ba)({
1702
1716
  mapState: {
1703
1717
  location: undefined,
@@ -1707,7 +1721,7 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1707
1721
  mapRef.current.flyTo(selectedPOIObj.location, 18);
1708
1722
  mapRef.current.on('zoomend', function() {
1709
1723
  setSelectedPOI(selectedPOIObj);
1710
- selectedMarker.marker.openPopup(selectedPOIObj?.location);
1724
+ selectedMarker.marker.openPopup(selectedPOIObj === null || selectedPOIObj === void 0 ? void 0 : selectedPOIObj.location);
1711
1725
  dispatch((0, $42ee6246860dbbfc$export$79507451adbe6af3)({
1712
1726
  selectedPOIIdentifier: ''
1713
1727
  }));
@@ -1730,7 +1744,7 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1730
1744
  setSelectedPOI(undefined);
1731
1745
  };
1732
1746
  const aroundMe = ()=>{
1733
- if (props?.userLocation && (props.tenantList && props.activeTenant || tenantList && tenantList[activeTenant])) {
1747
+ if ((props === null || props === void 0 ? void 0 : props.userLocation) && (props.tenantList && props.activeTenant || tenantList && tenantList[activeTenant])) {
1734
1748
  handlerAroundMe(props.userLocation);
1735
1749
  return;
1736
1750
  }
@@ -1752,8 +1766,8 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1752
1766
  currentUserLocation: center
1753
1767
  }));
1754
1768
  // Calculez les coordonnées des coins du rectangle de la zone de 10km autour du centre
1755
- const southWest = (0, ($parcel$interopDefault($1FYMx$leaflet))).latLng(center).toBounds(aroundMeDistance ?? 5000).getSouthWest();
1756
- const northEast = (0, ($parcel$interopDefault($1FYMx$leaflet))).latLng(center).toBounds(aroundMeDistance ?? 5000).getNorthEast();
1769
+ const southWest = (0, ($parcel$interopDefault($1FYMx$leaflet))).latLng(center).toBounds(aroundMeDistance !== null && aroundMeDistance !== void 0 ? aroundMeDistance : 5000).getSouthWest();
1770
+ const northEast = (0, ($parcel$interopDefault($1FYMx$leaflet))).latLng(center).toBounds(aroundMeDistance !== null && aroundMeDistance !== void 0 ? aroundMeDistance : 5000).getNorthEast();
1757
1771
  const bounds = (0, ($parcel$interopDefault($1FYMx$leaflet))).latLngBounds(southWest, northEast);
1758
1772
  // Utilisez la méthode fitBounds() pour ajuster la vue de la carte à la zone de 10km autour du centre
1759
1773
  mapRef.current.fitBounds(bounds);
@@ -1761,7 +1775,7 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1761
1775
  if (l instanceof (0, ($parcel$interopDefault($1FYMx$leaflet))).MarkerClusterGroup && mapRef.current !== undefined) l.disableClustering();
1762
1776
  });
1763
1777
  mapRef.current.on('zoomend', function() {
1764
- if (mapRef?.current && mapRef.current.getZoom() < 12) {
1778
+ if ((mapRef === null || mapRef === void 0 ? void 0 : mapRef.current) && mapRef.current.getZoom() < 12) {
1765
1779
  if (mapRef.current !== undefined) mapRef.current.eachLayer((l)=>{
1766
1780
  if (l instanceof (0, ($parcel$interopDefault($1FYMx$leaflet))).MarkerClusterGroup && mapRef.current !== undefined) l.enableClustering();
1767
1781
  });
@@ -1783,7 +1797,8 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1783
1797
  selectedPOI && /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $2ed5971e4d4df7a9$export$b79ff28f7aa330b0), {
1784
1798
  poi: selectedPOI,
1785
1799
  poiClose: closePoi,
1786
- setMapLayerData: setMapLayerData
1800
+ setMapLayerData: setMapLayerData,
1801
+ retorikAddress: (props === null || props === void 0 ? void 0 : props.isDevTenant) ? (0, $017145711b309a2f$export$4df8f2681d5a45b4) : (0, $017145711b309a2f$export$3f9b01d7e1ec1661)
1787
1802
  }),
1788
1803
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsxs)((0, $1FYMx$reactleaflet.MapContainer), {
1789
1804
  center: [
@@ -1836,8 +1851,8 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1836
1851
  }),
1837
1852
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $1FYMx$reactleaflet.ZoomControl), {
1838
1853
  position: "bottomright",
1839
- zoomInTitle: (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))[locale]?.zoomintitle || (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))['fr-FR'].zoomintitle,
1840
- zoomOutTitle: (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))[locale]?.zoomouttitle || (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))['fr-FR'].zoomouttitle
1854
+ zoomInTitle: ((_translation_locale = (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))[locale]) === null || _translation_locale === void 0 ? void 0 : _translation_locale.zoomintitle) || (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))['fr-FR'].zoomintitle,
1855
+ zoomOutTitle: ((_translation_locale1 = (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))[locale]) === null || _translation_locale1 === void 0 ? void 0 : _translation_locale1.zoomouttitle) || (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))['fr-FR'].zoomouttitle
1841
1856
  }, Date.now()),
1842
1857
  currentUserPos !== undefined && /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $bc6ce4136a207b98$export$b42842b40b0e9990), {
1843
1858
  currentUserPos: currentUserPos
@@ -1851,7 +1866,7 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1851
1866
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)("button", {
1852
1867
  id: "around-me",
1853
1868
  onClick: ()=>aroundMe(),
1854
- title: `${(0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))[locale]?.aroundme1 || (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))['fr-FR'].aroundme1} ${aroundMeDistance / 1000} ${(0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))[locale]?.aroundme2 || (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))['fr-FR'].aroundme2}`,
1869
+ title: `${((_translation_locale2 = (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))[locale]) === null || _translation_locale2 === void 0 ? void 0 : _translation_locale2.aroundme1) || (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))['fr-FR'].aroundme1} ${aroundMeDistance / 1000} ${((_translation_locale3 = (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))[locale]) === null || _translation_locale3 === void 0 ? void 0 : _translation_locale3.aroundme2) || (0, (/*@__PURE__*/$parcel$interopDefault($9e62f3c02c5f7d6f$exports)))['fr-FR'].aroundme2}`,
1855
1870
  children: /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)("img", {
1856
1871
  id: "map-target",
1857
1872
  src: (0, $e2ff17f76333d89e$export$44271b4f0c6a3563),
@@ -1859,7 +1874,7 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1859
1874
  })
1860
1875
  }),
1861
1876
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $4e61b315bd882780$export$e2d78e54e91e6990), {
1862
- settings: props?.settings
1877
+ settings: props === null || props === void 0 ? void 0 : props.settings
1863
1878
  })
1864
1879
  ]
1865
1880
  });
@@ -1871,6 +1886,9 @@ const $42234972a9a1d113$export$ddd638f4963d1957 = (props)=>{
1871
1886
 
1872
1887
 
1873
1888
 
1889
+
1890
+
1891
+
1874
1892
  /* eslint-disable @typescript-eslint/camelcase */ const $60765c4b3ee8c963$export$da40755304d3143 = {
1875
1893
  asklea_lesbertranges: {
1876
1894
  name: 'lesbertranges',
@@ -30545,12 +30563,16 @@ const $a33b51f1656f8bb9$export$1f0060b11c07d31 = (0, $1FYMx$reduxjstoolkitqueryr
30545
30563
  transformResponse: (response)=>{
30546
30564
  const res = {};
30547
30565
  if (response && response.length > 0) {
30548
- const filteredData = response.filter((a)=>a.agentZone?.zone);
30566
+ const filteredData = response.filter((a)=>{
30567
+ var _a_agentZone;
30568
+ return (_a_agentZone = a.agentZone) === null || _a_agentZone === void 0 ? void 0 : _a_agentZone.zone;
30569
+ });
30549
30570
  filteredData.forEach((agent)=>{
30571
+ var _agent_agentZone;
30550
30572
  res[agent.name] = {
30551
30573
  name: agent.name,
30552
30574
  retorikName: agent.name,
30553
- areaLocation: agent.agentZone?.zone
30575
+ areaLocation: (_agent_agentZone = agent.agentZone) === null || _agent_agentZone === void 0 ? void 0 : _agent_agentZone.zone
30554
30576
  };
30555
30577
  });
30556
30578
  }
@@ -30579,15 +30601,13 @@ const $a33b51f1656f8bb9$export$7867c88f1bb2065 = async ({ token: token, useDevTe
30579
30601
  callBack: callBack
30580
30602
  };
30581
30603
  // If categories are provided, load only these. Otherwise load all of them.
30582
- if (categoriesToShow?.length) categoriesToShow.forEach((category)=>$a33b51f1656f8bb9$var$fetchPoiType({
30583
- type: category,
30584
- ...commonData
30585
- }));
30604
+ if (categoriesToShow === null || categoriesToShow === void 0 ? void 0 : categoriesToShow.length) categoriesToShow.forEach((category)=>$a33b51f1656f8bb9$var$fetchPoiType((0, $1FYMx$swchelperscjs_object_spreadcjs._)({
30605
+ type: category
30606
+ }, commonData)));
30586
30607
  else Object.keys((0, $8f1a6adc86e47827$export$55e6fd7564320b53)).forEach((key)=>{
30587
- $a33b51f1656f8bb9$var$fetchPoiType({
30588
- type: (0, $8f1a6adc86e47827$export$55e6fd7564320b53)[key],
30589
- ...commonData
30590
- });
30608
+ $a33b51f1656f8bb9$var$fetchPoiType((0, $1FYMx$swchelperscjs_object_spreadcjs._)({
30609
+ type: (0, $8f1a6adc86e47827$export$55e6fd7564320b53)[key]
30610
+ }, commonData));
30591
30611
  });
30592
30612
  }
30593
30613
  };
@@ -30609,16 +30629,18 @@ const $a33b51f1656f8bb9$var$fetchPoiType = async ({ type: type, url: url, token:
30609
30629
  'Content-type': 'application/graphql; charset=UTF-8'
30610
30630
  }
30611
30631
  }).then((response)=>response.json()).catch((error)=>console.warn(error));
30612
- if (data?.data) switch(type){
30632
+ if (data === null || data === void 0 ? void 0 : data.data) switch(type){
30613
30633
  case (0, $8f1a6adc86e47827$export$55e6fd7564320b53).afaire:
30614
- if (data.data.geoDistanceSortedTouristAttraction?.length) data.data.geoDistanceSortedTouristAttraction.forEach((e)=>{
30615
- e.place?.latitude && e.place?.longitude && result.push({
30634
+ var _data_data_geoDistanceSortedTouristAttraction;
30635
+ if ((_data_data_geoDistanceSortedTouristAttraction = data.data.geoDistanceSortedTouristAttraction) === null || _data_data_geoDistanceSortedTouristAttraction === void 0 ? void 0 : _data_data_geoDistanceSortedTouristAttraction.length) data.data.geoDistanceSortedTouristAttraction.forEach((e)=>{
30636
+ var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
30637
+ ((_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({
30616
30638
  location: {
30617
30639
  lat: e.place.latitude,
30618
30640
  lng: e.place.longitude
30619
30641
  },
30620
30642
  name: e.displayText,
30621
- imageURL: e.thing.image?.urls?.length ? e.thing.image.urls[0] : undefined,
30643
+ 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,
30622
30644
  type: (0, $8f1a6adc86e47827$export$55e6fd7564320b53).afaire,
30623
30645
  description: e.thing.description,
30624
30646
  address: $a33b51f1656f8bb9$var$getAddressFromPlaceData(e.place),
@@ -30628,14 +30650,16 @@ const $a33b51f1656f8bb9$var$fetchPoiType = async ({ type: type, url: url, token:
30628
30650
  });
30629
30651
  break;
30630
30652
  case (0, $8f1a6adc86e47827$export$55e6fd7564320b53).avoir:
30631
- if (data.data.geoDistanceSortedTouristDestination?.length) data.data.geoDistanceSortedTouristDestination.forEach((e)=>{
30632
- e.place?.latitude && e.place?.longitude && result.push({
30653
+ var _data_data_geoDistanceSortedTouristDestination;
30654
+ if ((_data_data_geoDistanceSortedTouristDestination = data.data.geoDistanceSortedTouristDestination) === null || _data_data_geoDistanceSortedTouristDestination === void 0 ? void 0 : _data_data_geoDistanceSortedTouristDestination.length) data.data.geoDistanceSortedTouristDestination.forEach((e)=>{
30655
+ var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
30656
+ ((_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({
30633
30657
  location: {
30634
30658
  lat: e.place.latitude,
30635
30659
  lng: e.place.longitude
30636
30660
  },
30637
30661
  name: e.displayText,
30638
- imageURL: e.thing.image?.urls?.length ? e.thing.image.urls[0] : undefined,
30662
+ 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,
30639
30663
  type: (0, $8f1a6adc86e47827$export$55e6fd7564320b53).avoir,
30640
30664
  description: e.thing.description,
30641
30665
  address: $a33b51f1656f8bb9$var$getAddressFromPlaceData(e.place),
@@ -30645,14 +30669,16 @@ const $a33b51f1656f8bb9$var$fetchPoiType = async ({ type: type, url: url, token:
30645
30669
  });
30646
30670
  break;
30647
30671
  case (0, $8f1a6adc86e47827$export$55e6fd7564320b53).hebergement:
30648
- if (data.data.geoDistanceSortedLodgingBusiness?.length) data.data.geoDistanceSortedLodgingBusiness.forEach((e)=>{
30649
- e.place?.latitude && e.place?.longitude && result.push({
30672
+ var _data_data_geoDistanceSortedLodgingBusiness;
30673
+ if ((_data_data_geoDistanceSortedLodgingBusiness = data.data.geoDistanceSortedLodgingBusiness) === null || _data_data_geoDistanceSortedLodgingBusiness === void 0 ? void 0 : _data_data_geoDistanceSortedLodgingBusiness.length) data.data.geoDistanceSortedLodgingBusiness.forEach((e)=>{
30674
+ var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
30675
+ ((_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({
30650
30676
  location: {
30651
30677
  lat: e.place.latitude,
30652
30678
  lng: e.place.longitude
30653
30679
  },
30654
30680
  name: e.displayText,
30655
- imageURL: e.thing.image?.urls?.length ? e.thing.image.urls[0] : undefined,
30681
+ 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,
30656
30682
  type: (0, $8f1a6adc86e47827$export$55e6fd7564320b53).hebergement,
30657
30683
  description: e.thing.description,
30658
30684
  address: $a33b51f1656f8bb9$var$getAddressFromPlaceData(e.place),
@@ -30662,28 +30688,32 @@ const $a33b51f1656f8bb9$var$fetchPoiType = async ({ type: type, url: url, token:
30662
30688
  });
30663
30689
  break;
30664
30690
  case (0, $8f1a6adc86e47827$export$55e6fd7564320b53).produit:
30665
- if (data.data.geoDistanceSortedProduct?.length) data.data.geoDistanceSortedProduct.forEach((e)=>{
30666
- e.place?.latitude && e.place?.longitude && result.push({
30691
+ var _data_data_geoDistanceSortedProduct;
30692
+ if ((_data_data_geoDistanceSortedProduct = data.data.geoDistanceSortedProduct) === null || _data_data_geoDistanceSortedProduct === void 0 ? void 0 : _data_data_geoDistanceSortedProduct.length) data.data.geoDistanceSortedProduct.forEach((e)=>{
30693
+ var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
30694
+ ((_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({
30667
30695
  location: {
30668
30696
  lat: e.place.latitude,
30669
30697
  lng: e.place.longitude
30670
30698
  },
30671
30699
  name: e.displayText,
30672
- imageURL: e.thing.image?.urls?.length ? e.thing.image.urls[0] : undefined,
30700
+ 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,
30673
30701
  type: (0, $8f1a6adc86e47827$export$55e6fd7564320b53).produit,
30674
30702
  contentItemId: e.contentItemId
30675
30703
  });
30676
30704
  });
30677
30705
  break;
30678
30706
  case (0, $8f1a6adc86e47827$export$55e6fd7564320b53).restaurant:
30679
- if (data.data.geoDistanceSortedFoodEstablishment?.length) data.data.geoDistanceSortedFoodEstablishment.forEach((e)=>{
30680
- e.place?.latitude && e.place?.longitude && result.push({
30707
+ var _data_data_geoDistanceSortedFoodEstablishment;
30708
+ if ((_data_data_geoDistanceSortedFoodEstablishment = data.data.geoDistanceSortedFoodEstablishment) === null || _data_data_geoDistanceSortedFoodEstablishment === void 0 ? void 0 : _data_data_geoDistanceSortedFoodEstablishment.length) data.data.geoDistanceSortedFoodEstablishment.forEach((e)=>{
30709
+ var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
30710
+ ((_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({
30681
30711
  location: {
30682
30712
  lat: e.place.latitude,
30683
30713
  lng: e.place.longitude
30684
30714
  },
30685
30715
  name: e.displayText,
30686
- imageURL: e.thing.image?.urls?.length ? e.thing.image.urls[0] : undefined,
30716
+ 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,
30687
30717
  type: (0, $8f1a6adc86e47827$export$55e6fd7564320b53).restaurant,
30688
30718
  description: e.thing.description,
30689
30719
  address: $a33b51f1656f8bb9$var$getAddressFromPlaceData(e.place),
@@ -30693,14 +30723,16 @@ const $a33b51f1656f8bb9$var$fetchPoiType = async ({ type: type, url: url, token:
30693
30723
  });
30694
30724
  break;
30695
30725
  case (0, $8f1a6adc86e47827$export$55e6fd7564320b53).service:
30696
- if (data.data.geoDistanceSortedService?.length) data.data.geoDistanceSortedService.forEach((e)=>{
30697
- e.place?.latitude && e.place?.longitude && result.push({
30726
+ var _data_data_geoDistanceSortedService;
30727
+ if ((_data_data_geoDistanceSortedService = data.data.geoDistanceSortedService) === null || _data_data_geoDistanceSortedService === void 0 ? void 0 : _data_data_geoDistanceSortedService.length) data.data.geoDistanceSortedService.forEach((e)=>{
30728
+ var _e_place, _e_place1, _e_thing_image_urls, _e_thing_image;
30729
+ ((_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({
30698
30730
  location: {
30699
30731
  lat: e.place.latitude,
30700
30732
  lng: e.place.longitude
30701
30733
  },
30702
30734
  name: e.displayText,
30703
- imageURL: e.thing.image?.urls?.length ? e.thing.image.urls[0] : undefined,
30735
+ 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,
30704
30736
  type: (0, $8f1a6adc86e47827$export$55e6fd7564320b53).service,
30705
30737
  contentItemId: e.contentItemId
30706
30738
  });
@@ -30764,15 +30796,15 @@ const $65ff319993503e5c$export$5e65d2e7602ac78d = ({ retorikName: retorikName, u
30764
30796
  position.latitude = currentUserLocation.lat;
30765
30797
  position.longitude = currentUserLocation.lng;
30766
30798
  }
30767
- (0, $a33b51f1656f8bb9$export$7867c88f1bb2065)({
30799
+ (0, $a33b51f1656f8bb9$export$7867c88f1bb2065)((0, $1FYMx$swchelperscjs_object_spread_propscjs._)((0, $1FYMx$swchelperscjs_object_spreadcjs._)({
30768
30800
  token: token,
30769
30801
  useDevTenant: useDevTenant,
30770
30802
  locale: locale.toLowerCase(),
30771
- tenant: retorikName,
30772
- ...position,
30803
+ tenant: retorikName
30804
+ }, position), {
30773
30805
  categoriesToShow: categoriesToShow,
30774
30806
  callBack: setPoiList
30775
- });
30807
+ }));
30776
30808
  }
30777
30809
  }, [
30778
30810
  token,
@@ -30894,17 +30926,16 @@ const $299c386797307d91$export$a6b9c7133f02bfd8 = ()=>{
30894
30926
 
30895
30927
  const $cf1d789e346df3b2$var$store = (0, $8a94f80ea85e1dca$export$281a42ec42dc777b)();
30896
30928
  const $cf1d789e346df3b2$export$a5c7b93649eaf8f8 = (props)=>{
30929
+ var _props_settings;
30897
30930
  return /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $1FYMx$reactjsxruntime.Fragment), {
30898
- children: props?.activeTenant && /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsxs)((0, $1FYMx$reactredux.Provider), {
30931
+ children: (props === null || props === void 0 ? void 0 : props.activeTenant) && /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsxs)((0, $1FYMx$reactredux.Provider), {
30899
30932
  store: $cf1d789e346df3b2$var$store,
30900
30933
  children: [
30901
- /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $42234972a9a1d113$export$ddd638f4963d1957), {
30902
- ...props
30903
- }),
30934
+ /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $42234972a9a1d113$export$ddd638f4963d1957), (0, $1FYMx$swchelperscjs_object_spreadcjs._)({}, props)),
30904
30935
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $65ff319993503e5c$export$5e65d2e7602ac78d), {
30905
30936
  retorikName: props.tenantList[props.activeTenant].retorikName,
30906
30937
  useDevTenant: !!props.isDevTenant,
30907
- categoriesToShow: props.settings?.showFilter
30938
+ categoriesToShow: (_props_settings = props.settings) === null || _props_settings === void 0 ? void 0 : _props_settings.showFilter
30908
30939
  }),
30909
30940
  /*#__PURE__*/ (0, $1FYMx$reactjsxruntime.jsx)((0, $10cac9979b1967c1$export$e370d38831f5792a), {})
30910
30941
  ]