@davi-ai/retorik-framework 3.2.6 → 4.0.0
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/{AttachmentDetail.0a576bf3.js → AttachmentDetail.37a709af.js} +160 -174
- package/dist/AttachmentDetail.37a709af.js.map +1 -0
- package/dist/{AttachmentDetail.c4286a45.js → AttachmentDetail.53ba969a.js} +159 -173
- package/dist/AttachmentDetail.53ba969a.js.map +1 -0
- package/dist/{CustomView.913a9f32.js → CustomView.9930c671.js} +16 -20
- package/dist/CustomView.9930c671.js.map +1 -0
- package/dist/{CustomView.edf84de1.js → CustomView.bf84bdf3.js} +16 -20
- package/dist/CustomView.bf84bdf3.js.map +1 -0
- package/dist/{Emergency.1f855b66.js → Emergency.1e63c85f.js} +22 -30
- package/dist/Emergency.1e63c85f.js.map +1 -0
- package/dist/{Emergency.cd492aab.js → Emergency.89b4d9ed.js} +21 -29
- package/dist/Emergency.89b4d9ed.js.map +1 -0
- package/dist/{FullScreenImage.9a9b978e.js → FullScreenImage.17df27bf.js} +11 -18
- package/dist/FullScreenImage.17df27bf.js.map +1 -0
- package/dist/{FullScreenImage.1fe27198.js → FullScreenImage.99e19e10.js} +11 -18
- package/dist/FullScreenImage.99e19e10.js.map +1 -0
- package/dist/{HistoryList.4c303dc6.js → HistoryList.3b4b1ffb.js} +35 -36
- package/dist/HistoryList.3b4b1ffb.js.map +1 -0
- package/dist/{HistoryList.03a56119.js → HistoryList.e5c01f21.js} +35 -36
- package/dist/HistoryList.e5c01f21.js.map +1 -0
- package/dist/LanguageChoice.1d866cfa.js +119 -0
- package/dist/LanguageChoice.1d866cfa.js.map +1 -0
- package/dist/LanguageChoice.cce361a3.js +128 -0
- package/dist/LanguageChoice.cce361a3.js.map +1 -0
- package/dist/{LittleWeatherContainer.07937cf3.js → LittleWeatherContainer.7e41105e.js} +3 -3
- package/dist/LittleWeatherContainer.7e41105e.js.map +1 -0
- package/dist/{LittleWeatherContainer.d27a6b8a.js → LittleWeatherContainer.ee087e22.js} +3 -3
- package/dist/LittleWeatherContainer.ee087e22.js.map +1 -0
- package/dist/MapContainer.14c28128.js +117 -0
- package/dist/MapContainer.14c28128.js.map +1 -0
- package/dist/MapContainer.f22ad81f.js +104 -0
- package/dist/MapContainer.f22ad81f.js.map +1 -0
- package/dist/{NewsContainer.76f5b60f.js → NewsContainer.c0a24775.js} +84 -88
- package/dist/NewsContainer.c0a24775.js.map +1 -0
- package/dist/{NewsContainer.24a4ba84.js → NewsContainer.c3331d80.js} +79 -83
- package/dist/NewsContainer.c3331d80.js.map +1 -0
- package/dist/PrintingPreview.5351c733.js +147 -0
- package/dist/PrintingPreview.5351c733.js.map +1 -0
- package/dist/PrintingPreview.6d70355b.js +138 -0
- package/dist/PrintingPreview.6d70355b.js.map +1 -0
- package/dist/{SpiritEngineWrapper.1d8db53d.js → SpiritEngineWrapper.21ea10d4.js} +8 -7
- package/dist/SpiritEngineWrapper.21ea10d4.js.map +1 -0
- package/dist/{SpiritEngineWrapper.27e9c120.js → SpiritEngineWrapper.39627300.js} +8 -7
- package/dist/SpiritEngineWrapper.39627300.js.map +1 -0
- package/dist/{ThreeJsWrapper.09c689b8.js → ThreeJsWrapper.8f15a85b.js} +13 -16
- package/dist/ThreeJsWrapper.8f15a85b.js.map +1 -0
- package/dist/{ThreeJsWrapper.7918143f.js → ThreeJsWrapper.a46ee0e9.js} +13 -16
- package/dist/ThreeJsWrapper.a46ee0e9.js.map +1 -0
- package/dist/VeilleManager.443b366e.js +569 -0
- package/dist/VeilleManager.443b366e.js.map +1 -0
- package/dist/VeilleManager.d8bde1ee.js +550 -0
- package/dist/VeilleManager.d8bde1ee.js.map +1 -0
- package/dist/{Weather.8d8aa06a.js → Weather.bb414852.js} +66 -119
- package/dist/Weather.bb414852.js.map +1 -0
- package/dist/{Weather.87ab2128.js → Weather.ced9b467.js} +63 -116
- package/dist/Weather.ced9b467.js.map +1 -0
- package/dist/index.d.ts +397 -367
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43672 -15268
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +47576 -19204
- package/dist/index.modern.js.map +1 -1
- package/package.json +9 -9
- package/README.md +0 -6
- package/dist/AttachmentDetail.0a576bf3.js.map +0 -1
- package/dist/AttachmentDetail.c4286a45.js.map +0 -1
- package/dist/CustomView.913a9f32.js.map +0 -1
- package/dist/CustomView.edf84de1.js.map +0 -1
- package/dist/Emergency.1f855b66.js.map +0 -1
- package/dist/Emergency.cd492aab.js.map +0 -1
- package/dist/FullScreenImage.1fe27198.js.map +0 -1
- package/dist/FullScreenImage.9a9b978e.js.map +0 -1
- package/dist/HistoryList.03a56119.js.map +0 -1
- package/dist/HistoryList.4c303dc6.js.map +0 -1
- package/dist/LanguageChoice.623ee802.js +0 -113
- package/dist/LanguageChoice.623ee802.js.map +0 -1
- package/dist/LanguageChoice.ff0cd04c.js +0 -122
- package/dist/LanguageChoice.ff0cd04c.js.map +0 -1
- package/dist/LittleWeatherContainer.07937cf3.js.map +0 -1
- package/dist/LittleWeatherContainer.d27a6b8a.js.map +0 -1
- package/dist/NewsContainer.24a4ba84.js.map +0 -1
- package/dist/NewsContainer.76f5b60f.js.map +0 -1
- package/dist/SpiritEngineWrapper.1d8db53d.js.map +0 -1
- package/dist/SpiritEngineWrapper.27e9c120.js.map +0 -1
- package/dist/ThreeJsWrapper.09c689b8.js.map +0 -1
- package/dist/ThreeJsWrapper.7918143f.js.map +0 -1
- package/dist/Weather.87ab2128.js.map +0 -1
- package/dist/Weather.8d8aa06a.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import $dAxr5$react, {useState as $dAxr5$useState, useRef as $dAxr5$useRef, useEffect as $dAxr5$useEffect, useLayoutEffect as $dAxr5$useLayoutEffect, useMemo as $dAxr5$useMemo} from "react";
|
|
1
|
+
import {jsxs as $dAxr5$jsxs, jsx as $dAxr5$jsx} from "react/jsx-runtime";
|
|
2
|
+
import $dAxr5$react, {useState as $dAxr5$useState, useRef as $dAxr5$useRef, useEffect as $dAxr5$useEffect, useLayoutEffect as $dAxr5$useLayoutEffect, useMemo as $dAxr5$useMemo, lazy as $dAxr5$lazy, Suspense as $dAxr5$Suspense} from "react";
|
|
3
3
|
import {useSpring as $dAxr5$useSpring, easings as $dAxr5$easings, animated as $dAxr5$animated} from "@react-spring/web";
|
|
4
|
+
import {useDispatch as $dAxr5$useDispatch, useSelector as $dAxr5$useSelector} from "react-redux";
|
|
4
5
|
import $dAxr5$qrcode from "qrcode";
|
|
5
6
|
import {MapContainer as $dAxr5$MapContainer, TileLayer as $dAxr5$TileLayer, Marker as $dAxr5$Marker, GeoJSON as $dAxr5$GeoJSON, useMap as $dAxr5$useMap} from "react-leaflet";
|
|
6
7
|
import $dAxr5$leaflet from "leaflet";
|
|
@@ -26,17 +27,8 @@ $parcel$export(module.exports, "default", () => $cccd6edc9ecbde88$export$2e2bcd8
|
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
|
|
29
|
-
var $j67YK = parcelRequire("j67YK");
|
|
30
30
|
|
|
31
|
-
var $
|
|
32
|
-
|
|
33
|
-
var $1x02c = parcelRequire("1x02c");
|
|
34
|
-
|
|
35
|
-
var $2fuDN = parcelRequire("2fuDN");
|
|
36
|
-
|
|
37
|
-
var $1Qww3 = parcelRequire("1Qww3");
|
|
38
|
-
|
|
39
|
-
var $aNpqK = parcelRequire("aNpqK");
|
|
31
|
+
var $8ItUL = parcelRequire("8ItUL");
|
|
40
32
|
|
|
41
33
|
var $fnQYO = parcelRequire("fnQYO");
|
|
42
34
|
|
|
@@ -46,7 +38,7 @@ var $4ucVo = parcelRequire("4ucVo");
|
|
|
46
38
|
|
|
47
39
|
var $8KJP1 = parcelRequire("8KJP1");
|
|
48
40
|
|
|
49
|
-
var $
|
|
41
|
+
var $aMohu = parcelRequire("aMohu");
|
|
50
42
|
|
|
51
43
|
var $bcki5 = parcelRequire("bcki5");
|
|
52
44
|
|
|
@@ -57,22 +49,21 @@ var $jlqZa = parcelRequire("jlqZa");
|
|
|
57
49
|
var $dpafD = parcelRequire("dpafD");
|
|
58
50
|
|
|
59
51
|
var $gXOmG = parcelRequire("gXOmG");
|
|
52
|
+
|
|
53
|
+
var $9uOFS = parcelRequire("9uOFS");
|
|
60
54
|
const $cccd6edc9ecbde88$var$springEnterDuration = 1500;
|
|
61
55
|
const $cccd6edc9ecbde88$var$springLeaveDuration = 2500;
|
|
62
56
|
const $cccd6edc9ecbde88$var$AttachmentDetails = ()=>{
|
|
57
|
+
const dispatch = (0, $dAxr5$useDispatch)();
|
|
63
58
|
const detailedItemContent = (0, $fnQYO.default)();
|
|
64
|
-
const locale = (0, $
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
const themeColors = (0, $1Qww3.useViewStore)((state)=>state.themeColors);
|
|
73
|
-
const closeDetailedPOI = (0, $j67YK.useUtilsStore)((state)=>state.closeDetailedPOI);
|
|
74
|
-
const { setRetorikEvent: setRetorikEvent, setCloseDetailedPOI: setCloseDetailedPOI } = (0, $j67YK.useUtilsStore)((state)=>state.actions);
|
|
75
|
-
const { sendMessage: sendMessage, sendEvent: sendEvent } = (0, $aNpqK.useDirectlineStore)((state)=>state.actions);
|
|
59
|
+
const locale = (0, $dAxr5$useSelector)((state)=>state.localeReducer.locale);
|
|
60
|
+
const baseAddress = (0, $dAxr5$useSelector)((state)=>state.localeReducer.baseAddress);
|
|
61
|
+
const isUsedOnBorne = (0, $dAxr5$useSelector)((state)=>state.retorikReducer.configuration.isUsedOnBorne);
|
|
62
|
+
const isMobile = (0, $dAxr5$useSelector)((state)=>state.viewReducer.isMobile);
|
|
63
|
+
const isWidget = (0, $dAxr5$useSelector)((state)=>state.viewReducer.isWidget);
|
|
64
|
+
const currentDeviceType = (0, $dAxr5$useSelector)((state)=>state.viewReducer.currentDeviceType);
|
|
65
|
+
const themeColors = (0, $dAxr5$useSelector)((state)=>state.viewReducer.themeColors);
|
|
66
|
+
const closeDetailedPOI = (0, $dAxr5$useSelector)((state)=>state.utilsReducer.closeDetailedPOI);
|
|
76
67
|
const [content, setContent] = (0, $dAxr5$useState)(undefined);
|
|
77
68
|
const [color, setColor] = (0, $dAxr5$useState)(themeColors.secondary);
|
|
78
69
|
const [titleHeight, setTitleHeight] = (0, $dAxr5$useState)(0);
|
|
@@ -85,7 +76,10 @@ const $cccd6edc9ecbde88$var$AttachmentDetails = ()=>{
|
|
|
85
76
|
const divRef = (0, $dAxr5$useRef)(null);
|
|
86
77
|
(0, $dAxr5$useEffect)(()=>{
|
|
87
78
|
setContent(detailedItemContent);
|
|
88
|
-
if (detailedItemContent)
|
|
79
|
+
if (detailedItemContent) {
|
|
80
|
+
dispatch((0, $8ItUL.storeActions).utils.setRetorikEvent((0, $4ucVo.RetorikEvent).DetailViewOpen));
|
|
81
|
+
dispatch((0, $8ItUL.storeActions).utils.setModalFullscreenContent(null));
|
|
82
|
+
}
|
|
89
83
|
}, [
|
|
90
84
|
detailedItemContent
|
|
91
85
|
]);
|
|
@@ -134,91 +128,102 @@ const $cccd6edc9ecbde88$var$AttachmentDetails = ()=>{
|
|
|
134
128
|
easing: (0, $dAxr5$easings).easeOutExpo
|
|
135
129
|
}
|
|
136
130
|
});
|
|
137
|
-
setCloseDetailedPOI(false);
|
|
138
|
-
setRetorikEvent((0, $4ucVo.RetorikEvent).DetailViewClose);
|
|
131
|
+
dispatch((0, $8ItUL.storeActions).utils.setCloseDetailedPOI(false));
|
|
132
|
+
dispatch((0, $8ItUL.storeActions).utils.setRetorikEvent((0, $4ucVo.RetorikEvent).DetailViewClose));
|
|
139
133
|
timerRef.current = setTimeout(()=>{
|
|
140
|
-
|
|
134
|
+
dispatch((0, $8ItUL.storeActions).directline.sendEvent({
|
|
135
|
+
name: 'Davi.CloseWindow',
|
|
136
|
+
callback: ()=>dispatch((0, $8ItUL.storeActions).directline.sendEvent({
|
|
137
|
+
name: 'Davi.CloseWindowDetailed'
|
|
138
|
+
}))
|
|
139
|
+
}));
|
|
141
140
|
setContent(undefined);
|
|
142
141
|
timerRef.current = null;
|
|
143
142
|
}, $cccd6edc9ecbde88$var$springLeaveDuration);
|
|
144
143
|
}
|
|
145
144
|
};
|
|
146
145
|
const sendPostBack = (value)=>{
|
|
147
|
-
|
|
146
|
+
dispatch((0, $8ItUL.storeActions).directline.sendMessage({
|
|
147
|
+
value: value
|
|
148
|
+
}));
|
|
148
149
|
};
|
|
149
|
-
return content ? /*#__PURE__*/ (0, $dAxr5$
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
/*#__PURE__*/ (0, $dAxr5$jsxs)("div", {
|
|
173
|
-
className: "rf-px-6 large:rf-px-8 rf-w-2/3 vertical:rf-w-full rf-mb-4 large:rf-mb-0 rf-flex rf-flex-col rf-border-r rf-border-r-silver vertical:rf-border-r-0",
|
|
150
|
+
return content ? /*#__PURE__*/ (0, $dAxr5$jsxs)((0, $dAxr5$react).Fragment, {
|
|
151
|
+
children: [
|
|
152
|
+
/*#__PURE__*/ (0, $dAxr5$jsx)((0, $aMohu.default), {
|
|
153
|
+
onClick: handleClose,
|
|
154
|
+
remote: true,
|
|
155
|
+
target: (0, $4ucVo.TemplateTarget).detailedAttachment,
|
|
156
|
+
animation: spring,
|
|
157
|
+
children: /*#__PURE__*/ (0, $dAxr5$jsx)("div", {
|
|
158
|
+
ref: divRef,
|
|
159
|
+
className: "rf-relative rf-flex rf-flex-row vertical:rf-flex-col rf-h-full rf-overflow-y-scroll rf-scrollbar-hidden",
|
|
160
|
+
children: detailedItemContent?.template ? /*#__PURE__*/ (0, $dAxr5$jsx)((0, $dAxr5$react).Fragment, {
|
|
161
|
+
children: /*#__PURE__*/ (0, $dAxr5$jsx)(detailedItemContent.template, {
|
|
162
|
+
props: {
|
|
163
|
+
...content,
|
|
164
|
+
locale: locale,
|
|
165
|
+
isUsedOnBorne: isUsedOnBorne,
|
|
166
|
+
baseAddress: baseAddress,
|
|
167
|
+
sendPostBack: sendPostBack
|
|
168
|
+
},
|
|
169
|
+
currentDeviceType: currentDeviceType,
|
|
170
|
+
handleClose: handleClose
|
|
171
|
+
})
|
|
172
|
+
}) : /*#__PURE__*/ (0, $dAxr5$jsxs)((0, $dAxr5$react).Fragment, {
|
|
174
173
|
children: [
|
|
175
|
-
/*#__PURE__*/ (0, $dAxr5$jsx)((0, $bcki5.default), {
|
|
176
|
-
category: content.category,
|
|
177
|
-
title: content.title,
|
|
178
|
-
infoBanner: content.infoBanner,
|
|
179
|
-
color: color,
|
|
180
|
-
customerReviews: content.customerReviews,
|
|
181
|
-
favorite: content.favorite,
|
|
182
|
-
handleClose: handleClose,
|
|
183
|
-
setTitleHeight: setTitleHeight
|
|
184
|
-
}),
|
|
185
174
|
/*#__PURE__*/ (0, $dAxr5$jsxs)("div", {
|
|
186
|
-
className: "rf-
|
|
175
|
+
className: "rf-px-6 large:rf-px-8 rf-w-2/3 vertical:rf-w-full rf-mb-4 large:rf-mb-0 rf-flex rf-flex-col rf-border-r rf-border-r-silver vertical:rf-border-r-0",
|
|
187
176
|
children: [
|
|
188
|
-
/*#__PURE__*/ (0, $dAxr5$jsx)((0, $
|
|
189
|
-
|
|
190
|
-
|
|
177
|
+
/*#__PURE__*/ (0, $dAxr5$jsx)((0, $bcki5.default), {
|
|
178
|
+
category: content.category,
|
|
179
|
+
title: content.title,
|
|
180
|
+
infoBanner: content.infoBanner,
|
|
191
181
|
color: color,
|
|
192
|
-
|
|
193
|
-
|
|
182
|
+
customerReviews: content.customerReviews,
|
|
183
|
+
favorite: content.favorite,
|
|
184
|
+
handleClose: handleClose,
|
|
185
|
+
setTitleHeight: setTitleHeight
|
|
194
186
|
}),
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
187
|
+
/*#__PURE__*/ (0, $dAxr5$jsxs)("div", {
|
|
188
|
+
className: "rf-flex rf-flex-col large:rf-flex-row landscape-retorik:rf-h-full",
|
|
189
|
+
children: [
|
|
190
|
+
/*#__PURE__*/ (0, $dAxr5$jsx)((0, $c3PKX.default), {
|
|
191
|
+
text: content.text,
|
|
192
|
+
otherInformations: content.otherInformations,
|
|
193
|
+
color: color,
|
|
194
|
+
url: content.downloadUri,
|
|
195
|
+
titleHeight: titleHeight
|
|
196
|
+
}),
|
|
197
|
+
(content.media?.length || content.review) && /*#__PURE__*/ (0, $dAxr5$jsx)((0, $jlqZa.default), {
|
|
198
|
+
media: content.media,
|
|
199
|
+
review: content.review,
|
|
200
|
+
color: color
|
|
201
|
+
})
|
|
202
|
+
]
|
|
199
203
|
})
|
|
200
204
|
]
|
|
205
|
+
}),
|
|
206
|
+
/*#__PURE__*/ (0, $dAxr5$jsx)((0, $dpafD.default), {
|
|
207
|
+
address: content.addressStructured,
|
|
208
|
+
phoneNumber: content.phoneNumber,
|
|
209
|
+
coordinates: content.coordinates,
|
|
210
|
+
color: color,
|
|
211
|
+
customerReviews: content.customerReviews,
|
|
212
|
+
url: content.downloadUri
|
|
213
|
+
}),
|
|
214
|
+
isMobile && content.downloadUri && /*#__PURE__*/ (0, $dAxr5$jsx)((0, $gXOmG.default), {
|
|
215
|
+
className: "rf-justify-center",
|
|
216
|
+
url: content.downloadUri
|
|
201
217
|
})
|
|
202
218
|
]
|
|
203
|
-
}),
|
|
204
|
-
/*#__PURE__*/ (0, $dAxr5$jsx)((0, $dpafD.default), {
|
|
205
|
-
address: content.addressStructured,
|
|
206
|
-
phoneNumber: content.phoneNumber,
|
|
207
|
-
coordinates: content.coordinates,
|
|
208
|
-
color: color,
|
|
209
|
-
customerReviews: content.customerReviews,
|
|
210
|
-
url: content.downloadUri
|
|
211
|
-
}),
|
|
212
|
-
isMobile && /*#__PURE__*/ (0, $dAxr5$jsx)("div", {
|
|
213
|
-
className: mode === (0, $4ucVo.Mode).text ? 'rf-mb-28' : 'rf-mb-16',
|
|
214
|
-
children: content.downloadUri && /*#__PURE__*/ (0, $dAxr5$jsx)((0, $gXOmG.default), {
|
|
215
|
-
className: "rf-justify-center",
|
|
216
|
-
url: content.downloadUri
|
|
217
|
-
})
|
|
218
219
|
})
|
|
219
|
-
|
|
220
|
+
})
|
|
221
|
+
}),
|
|
222
|
+
/*#__PURE__*/ (0, $dAxr5$jsx)((0, $9uOFS.default), {
|
|
223
|
+
dashboardVisible: true,
|
|
224
|
+
onClick: handleClose
|
|
220
225
|
})
|
|
221
|
-
|
|
226
|
+
]
|
|
222
227
|
}) : /*#__PURE__*/ (0, $dAxr5$jsx)((0, $dAxr5$react).Fragment, {});
|
|
223
228
|
};
|
|
224
229
|
var $cccd6edc9ecbde88$export$2e2bcd8739ae039 = $cccd6edc9ecbde88$var$AttachmentDetails;
|
|
@@ -229,59 +234,54 @@ parcelRegister("fnQYO", function(module, exports) {
|
|
|
229
234
|
$parcel$export(module.exports, "default", () => $c9e1885e3d839d78$export$2e2bcd8739ae039);
|
|
230
235
|
|
|
231
236
|
|
|
232
|
-
var $9GPj7 = parcelRequire("9GPj7");
|
|
233
|
-
|
|
234
|
-
var $j67YK = parcelRequire("j67YK");
|
|
235
|
-
|
|
236
|
-
var $2fuDN = parcelRequire("2fuDN");
|
|
237
|
-
|
|
238
|
-
var $1x02c = parcelRequire("1x02c");
|
|
239
237
|
|
|
240
238
|
var $jUFPv = parcelRequire("jUFPv");
|
|
241
239
|
const $c9e1885e3d839d78$var$useShowPOI = ()=>{
|
|
242
|
-
const
|
|
243
|
-
const
|
|
244
|
-
const
|
|
245
|
-
const
|
|
246
|
-
const
|
|
240
|
+
const baseAddress = (0, $dAxr5$useSelector)((state)=>state.localeReducer.baseAddress);
|
|
241
|
+
const locale = (0, $dAxr5$useSelector)((state)=>state.localeReducer.locale);
|
|
242
|
+
const translation = (0, $dAxr5$useSelector)((state)=>state.localeReducer.currentTranslations);
|
|
243
|
+
const lastBotActivity = (0, $dAxr5$useSelector)((state)=>state.activityReducer.lastBotActivity);
|
|
244
|
+
const triggers = (0, $dAxr5$useSelector)((state)=>state.utilsReducer.detailedAttachmentTriggers);
|
|
247
245
|
const [result, setResult] = (0, $dAxr5$useState)(undefined);
|
|
248
246
|
(0, $dAxr5$useEffect)(()=>{
|
|
249
247
|
let result = undefined;
|
|
250
248
|
if (lastBotActivity?.value && triggers.length) triggers.forEach((trigger)=>{
|
|
251
249
|
if (lastBotActivity.type === trigger.type) {
|
|
252
|
-
|
|
250
|
+
const clonedActivity = structuredClone(lastBotActivity);
|
|
251
|
+
if (trigger.name && trigger.name === clonedActivity.name) {
|
|
253
252
|
if (trigger.contentType) {
|
|
254
|
-
if (trigger.contentType ===
|
|
255
|
-
|
|
256
|
-
result =
|
|
253
|
+
if (trigger.contentType === clonedActivity.value?.contentType) {
|
|
254
|
+
clonedActivity.value.content.template = trigger.linkedComponent;
|
|
255
|
+
result = clonedActivity.value.content;
|
|
257
256
|
}
|
|
258
257
|
} else {
|
|
259
258
|
const data = {
|
|
260
|
-
id:
|
|
261
|
-
content:
|
|
262
|
-
contentType:
|
|
259
|
+
id: clonedActivity.value?.contentItemId,
|
|
260
|
+
content: clonedActivity.value?.content,
|
|
261
|
+
contentType: clonedActivity.value?.contentType,
|
|
263
262
|
baseAddress: baseAddress,
|
|
264
263
|
locale: locale
|
|
265
264
|
};
|
|
266
265
|
const checkData = (0, $jUFPv.mapDetailedDataFromContentItem)(data, translation);
|
|
267
266
|
if (checkData) result = {
|
|
268
267
|
...checkData,
|
|
268
|
+
value: clonedActivity.value,
|
|
269
269
|
template: trigger.linkedComponent
|
|
270
270
|
};
|
|
271
271
|
else {
|
|
272
|
-
|
|
273
|
-
result =
|
|
272
|
+
clonedActivity.value.template = trigger.linkedComponent;
|
|
273
|
+
result = clonedActivity.value;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
} else if (trigger.label && trigger.label ===
|
|
276
|
+
} else if (trigger.label && trigger.label === clonedActivity.label) {
|
|
277
277
|
if (trigger.contentType) {
|
|
278
|
-
if (trigger.contentType ===
|
|
279
|
-
|
|
280
|
-
result =
|
|
278
|
+
if (trigger.contentType === clonedActivity.value?.contentType) {
|
|
279
|
+
clonedActivity.value.content.template = trigger.linkedComponent;
|
|
280
|
+
result = clonedActivity.value.content;
|
|
281
281
|
}
|
|
282
282
|
} else {
|
|
283
|
-
|
|
284
|
-
result =
|
|
283
|
+
clonedActivity.value.template = trigger.linkedComponent;
|
|
284
|
+
result = clonedActivity.value;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
}
|
|
@@ -439,9 +439,6 @@ $parcel$export(module.exports, "default", () => $53f8c1e84286bc25$export$2e2bcd8
|
|
|
439
439
|
|
|
440
440
|
|
|
441
441
|
|
|
442
|
-
var $2fuDN = parcelRequire("2fuDN");
|
|
443
|
-
|
|
444
|
-
var $1Qww3 = parcelRequire("1Qww3");
|
|
445
442
|
|
|
446
443
|
var $g0cBD = parcelRequire("g0cBD");
|
|
447
444
|
|
|
@@ -449,8 +446,8 @@ var $ahoAn = parcelRequire("ahoAn");
|
|
|
449
446
|
|
|
450
447
|
var $28ved = parcelRequire("28ved");
|
|
451
448
|
const $53f8c1e84286bc25$var$DetailedTitle = ({ category: category, title: title, infoBanner: infoBanner, color: color, customerReviews: customerReviews, favorite: favorite, handleClose: handleClose, setTitleHeight: setTitleHeight })=>{
|
|
452
|
-
const translation = (0, $
|
|
453
|
-
const isMobile = (0, $
|
|
449
|
+
const translation = (0, $dAxr5$useSelector)((state)=>state.localeReducer.currentTranslations);
|
|
450
|
+
const isMobile = (0, $dAxr5$useSelector)((state)=>state.viewReducer.isMobile);
|
|
454
451
|
const titleRef = (0, $dAxr5$useRef)(null);
|
|
455
452
|
(0, $dAxr5$useEffect)(()=>{
|
|
456
453
|
titleRef?.current && setTitleHeight(titleRef.current.clientHeight);
|
|
@@ -513,9 +510,8 @@ $parcel$export(module.exports, "default", () => $60b578e81778debe$export$2e2bcd8
|
|
|
513
510
|
|
|
514
511
|
var $ahoAn = parcelRequire("ahoAn");
|
|
515
512
|
|
|
516
|
-
var $2fuDN = parcelRequire("2fuDN");
|
|
517
513
|
const $60b578e81778debe$var$CommentsPennant = ({ className: className, color: color, customerReviews: customerReviews })=>{
|
|
518
|
-
const translation = (0, $
|
|
514
|
+
const translation = (0, $dAxr5$useSelector)((state)=>state.localeReducer.currentTranslations);
|
|
519
515
|
const [widthInPx, setWidthInPx] = (0, $dAxr5$useState)(0);
|
|
520
516
|
const pennantRef = (0, $dAxr5$useRef)(null);
|
|
521
517
|
(0, $dAxr5$useEffect)(()=>{
|
|
@@ -577,9 +573,6 @@ $parcel$export(module.exports, "default", () => $6a730642f0980161$export$2e2bcd8
|
|
|
577
573
|
|
|
578
574
|
|
|
579
575
|
|
|
580
|
-
var $1x02c = parcelRequire("1x02c");
|
|
581
|
-
|
|
582
|
-
var $1Qww3 = parcelRequire("1Qww3");
|
|
583
576
|
|
|
584
577
|
var $gXOmG = parcelRequire("gXOmG");
|
|
585
578
|
|
|
@@ -587,10 +580,10 @@ var $AZKpV = parcelRequire("AZKpV");
|
|
|
587
580
|
const $6a730642f0980161$var$DownloadQRHeight = 200;
|
|
588
581
|
const $6a730642f0980161$var$DownloadSheetHeight = 100;
|
|
589
582
|
const $6a730642f0980161$var$DetailedText = ({ text: text, otherInformations: otherInformations, color: color, url: url, titleHeight: titleHeight })=>{
|
|
590
|
-
const isUsedOnBorne = (0, $
|
|
591
|
-
const isMobile = (0, $
|
|
592
|
-
const isLandscape = (0, $
|
|
593
|
-
const currentHeight = (0, $
|
|
583
|
+
const isUsedOnBorne = (0, $dAxr5$useSelector)((state)=>state.retorikReducer.configuration.isUsedOnBorne);
|
|
584
|
+
const isMobile = (0, $dAxr5$useSelector)((state)=>state.viewReducer.isMobile);
|
|
585
|
+
const isLandscape = (0, $dAxr5$useSelector)((state)=>state.viewReducer.isLandscape);
|
|
586
|
+
const currentHeight = (0, $dAxr5$useSelector)((state)=>state.viewReducer.currentHeight);
|
|
594
587
|
const textRef = (0, $dAxr5$useRef)(null);
|
|
595
588
|
const otherInformationsRef = (0, $dAxr5$useRef)(null);
|
|
596
589
|
const [opacityStyle, setOpacityStyle] = (0, $dAxr5$useState)('');
|
|
@@ -738,14 +731,13 @@ $parcel$export(module.exports, "default", () => $5850ec0a690e2e58$export$2e2bcd8
|
|
|
738
731
|
|
|
739
732
|
|
|
740
733
|
|
|
741
|
-
var $2fuDN = parcelRequire("2fuDN");
|
|
742
734
|
|
|
743
735
|
var $SZcIF = parcelRequire("SZcIF");
|
|
744
736
|
|
|
745
737
|
var $7pypd = parcelRequire("7pypd");
|
|
746
738
|
const $5850ec0a690e2e58$var$DownloadSheet = ({ className: className, url: url })=>{
|
|
747
|
-
const translation = (0, $
|
|
748
|
-
const locale = (0, $
|
|
739
|
+
const translation = (0, $dAxr5$useSelector)((state)=>state.localeReducer.currentTranslations);
|
|
740
|
+
const locale = (0, $dAxr5$useSelector)((state)=>state.localeReducer.locale);
|
|
749
741
|
return /*#__PURE__*/ (0, $dAxr5$jsx)("div", {
|
|
750
742
|
className: `${className} rf-w-full rf-flex`,
|
|
751
743
|
children: /*#__PURE__*/ (0, $dAxr5$jsxs)("a", {
|
|
@@ -771,9 +763,6 @@ $parcel$export(module.exports, "default", () => $11c73850a5407041$export$2e2bcd8
|
|
|
771
763
|
|
|
772
764
|
|
|
773
765
|
|
|
774
|
-
var $2fuDN = parcelRequire("2fuDN");
|
|
775
|
-
|
|
776
|
-
var $1x02c = parcelRequire("1x02c");
|
|
777
766
|
|
|
778
767
|
var $7pypd = parcelRequire("7pypd");
|
|
779
768
|
|
|
@@ -783,9 +772,9 @@ var $eNFwL = parcelRequire("eNFwL");
|
|
|
783
772
|
|
|
784
773
|
var $ahoAn = parcelRequire("ahoAn");
|
|
785
774
|
const $11c73850a5407041$var$DownloadQR = ({ url: url })=>{
|
|
786
|
-
const translation = (0, $
|
|
787
|
-
const locale = (0, $
|
|
788
|
-
const enableDocumentPrinting = (0, $
|
|
775
|
+
const translation = (0, $dAxr5$useSelector)((state)=>state.localeReducer.currentTranslations);
|
|
776
|
+
const locale = (0, $dAxr5$useSelector)((state)=>state.localeReducer.locale);
|
|
777
|
+
const enableDocumentPrinting = (0, $dAxr5$useSelector)((state)=>state.retorikReducer.configuration.enableDocumentPrinting);
|
|
789
778
|
const [qrCodeData, setQrCodeData] = (0, $dAxr5$useState)(undefined);
|
|
790
779
|
const imageRef = (0, $dAxr5$useRef)(null);
|
|
791
780
|
(0, $dAxr5$useEffect)(()=>{
|
|
@@ -841,21 +830,22 @@ $parcel$export(module.exports, "default", () => $c9e2f5668918919f$export$2e2bcd8
|
|
|
841
830
|
|
|
842
831
|
|
|
843
832
|
|
|
844
|
-
var $2fuDN = parcelRequire("2fuDN");
|
|
845
833
|
|
|
846
|
-
var $
|
|
834
|
+
var $8ItUL = parcelRequire("8ItUL");
|
|
847
835
|
|
|
848
836
|
var $ahoAn = parcelRequire("ahoAn");
|
|
849
837
|
|
|
850
|
-
|
|
838
|
+
const $c9e2f5668918919f$var$PrintingPreview = /*#__PURE__*/ (0, $dAxr5$lazy)(()=>(parcelRequire("8g4qC")));
|
|
851
839
|
const $c9e2f5668918919f$var$PrintingButton = ({ url: url })=>{
|
|
852
|
-
const
|
|
853
|
-
const
|
|
840
|
+
const dispatch = (0, $dAxr5$useDispatch)();
|
|
841
|
+
const translation = (0, $dAxr5$useSelector)((state)=>state.localeReducer.currentTranslations);
|
|
854
842
|
const handleClick = ()=>{
|
|
855
|
-
setModalFullscreenContent(/*#__PURE__*/ (0, $dAxr5$jsx)((0, $
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
843
|
+
dispatch((0, $8ItUL.storeActions).utils.setModalFullscreenContent(/*#__PURE__*/ (0, $dAxr5$jsx)((0, $dAxr5$Suspense), {
|
|
844
|
+
children: /*#__PURE__*/ (0, $dAxr5$jsx)($c9e2f5668918919f$var$PrintingPreview, {
|
|
845
|
+
url: url,
|
|
846
|
+
printingAllowed: true
|
|
847
|
+
})
|
|
848
|
+
})));
|
|
859
849
|
};
|
|
860
850
|
return /*#__PURE__*/ (0, $dAxr5$jsxs)("button", {
|
|
861
851
|
className: "rf-px-4 rf-py-1 rf-flex rf-flex-row rf-items-center rf-gap-2 rf-font-bold rf-text-sm rf-border-2 rf-border-black rf-rounded-lg",
|
|
@@ -869,6 +859,11 @@ const $c9e2f5668918919f$var$PrintingButton = ({ url: url })=>{
|
|
|
869
859
|
var $c9e2f5668918919f$export$2e2bcd8739ae039 = $c9e2f5668918919f$var$PrintingButton;
|
|
870
860
|
|
|
871
861
|
});
|
|
862
|
+
parcelRegister("8g4qC", function(module, exports) {
|
|
863
|
+
module.exports = import("./PrintingPreview.6d70355b.js").then(()=>parcelRequire('ldRRB'));
|
|
864
|
+
|
|
865
|
+
});
|
|
866
|
+
|
|
872
867
|
|
|
873
868
|
|
|
874
869
|
|
|
@@ -983,9 +978,6 @@ $parcel$export(module.exports, "default", () => $3df3515605343012$export$2e2bcd8
|
|
|
983
978
|
|
|
984
979
|
|
|
985
980
|
|
|
986
|
-
var $1x02c = parcelRequire("1x02c");
|
|
987
|
-
|
|
988
|
-
var $1Qww3 = parcelRequire("1Qww3");
|
|
989
981
|
|
|
990
982
|
var $1ddtH = parcelRequire("1ddtH");
|
|
991
983
|
|
|
@@ -997,11 +989,11 @@ var $gXOmG = parcelRequire("gXOmG");
|
|
|
997
989
|
|
|
998
990
|
var $AZKpV = parcelRequire("AZKpV");
|
|
999
991
|
const $3df3515605343012$var$DetailedAddress = ({ address: address, phoneNumber: phoneNumber, coordinates: coordinates, color: color, customerReviews: customerReviews, url: url })=>{
|
|
1000
|
-
const isMobile = (0, $
|
|
1001
|
-
const isLandscape = (0, $
|
|
1002
|
-
const isBorne = (0, $
|
|
1003
|
-
const currentWidth = (0, $
|
|
1004
|
-
const configuration = (0, $
|
|
992
|
+
const isMobile = (0, $dAxr5$useSelector)((state)=>state.viewReducer.isMobile);
|
|
993
|
+
const isLandscape = (0, $dAxr5$useSelector)((state)=>state.viewReducer.isLandscape);
|
|
994
|
+
const isBorne = (0, $dAxr5$useSelector)((state)=>state.viewReducer.isBorne);
|
|
995
|
+
const currentWidth = (0, $dAxr5$useSelector)((state)=>state.viewReducer.currentWidth);
|
|
996
|
+
const configuration = (0, $dAxr5$useSelector)((state)=>state.retorikReducer.configuration);
|
|
1005
997
|
return /*#__PURE__*/ (0, $dAxr5$jsxs)("div", {
|
|
1006
998
|
className: "rf-relative rf-w-1/3 vertical:rf-w-full large:rf-bg-truewhite rf-flex rf-flex-col large-vertical:rf-flex-row",
|
|
1007
999
|
children: [
|
|
@@ -1098,9 +1090,6 @@ $parcel$export(module.exports, "default", () => $92c294d459a1b852$export$2e2bcd8
|
|
|
1098
1090
|
|
|
1099
1091
|
var $k60DH = parcelRequire("k60DH");
|
|
1100
1092
|
|
|
1101
|
-
var $2fuDN = parcelRequire("2fuDN");
|
|
1102
|
-
|
|
1103
|
-
var $1x02c = parcelRequire("1x02c");
|
|
1104
1093
|
|
|
1105
1094
|
var $19XSr = parcelRequire("19XSr");
|
|
1106
1095
|
|
|
@@ -1129,9 +1118,9 @@ const $92c294d459a1b852$var$userIcon = (0, $dAxr5$leaflet).icon({
|
|
|
1129
1118
|
});
|
|
1130
1119
|
const $92c294d459a1b852$var$springDuration = 500;
|
|
1131
1120
|
const $92c294d459a1b852$var$Map = ({ latitude: latitude, longitude: longitude, color: color })=>{
|
|
1132
|
-
const translation = (0, $
|
|
1133
|
-
const locale = (0, $
|
|
1134
|
-
const configuration = (0, $
|
|
1121
|
+
const translation = (0, $dAxr5$useSelector)((state)=>state.localeReducer.currentTranslations);
|
|
1122
|
+
const locale = (0, $dAxr5$useSelector)((state)=>state.localeReducer.locale);
|
|
1123
|
+
const configuration = (0, $dAxr5$useSelector)((state)=>state.retorikReducer.configuration);
|
|
1135
1124
|
const [mapLayerData, setMapLayerData] = (0, $dAxr5$useState)(undefined);
|
|
1136
1125
|
const geoJsonLayer = (0, $dAxr5$useRef)(null);
|
|
1137
1126
|
const coordinates = configuration.position?.latitude && configuration.position?.longitude ? [
|
|
@@ -1295,9 +1284,6 @@ $parcel$export(module.exports, "default", () => $2bfd7077628948bb$export$2e2bcd8
|
|
|
1295
1284
|
|
|
1296
1285
|
|
|
1297
1286
|
|
|
1298
|
-
var $2fuDN = parcelRequire("2fuDN");
|
|
1299
|
-
|
|
1300
|
-
var $1x02c = parcelRequire("1x02c");
|
|
1301
1287
|
|
|
1302
1288
|
var $cT90l = parcelRequire("cT90l");
|
|
1303
1289
|
|
|
@@ -1307,10 +1293,10 @@ var $6w54h = parcelRequire("6w54h");
|
|
|
1307
1293
|
parcelRequire("aPU1T");
|
|
1308
1294
|
var $cOucF = parcelRequire("cOucF");
|
|
1309
1295
|
const $2bfd7077628948bb$var$Routes = ({ coordinates: coordinates, setMapLayerData: setMapLayerData, color: color, setQrCodeUrl: setQrCodeUrl })=>{
|
|
1310
|
-
const translation = (0, $
|
|
1311
|
-
const locale = (0, $
|
|
1312
|
-
const isRTL = (0, $
|
|
1313
|
-
const isUsedOnBorne = (0, $
|
|
1296
|
+
const translation = (0, $dAxr5$useSelector)((state)=>state.localeReducer.currentTranslations);
|
|
1297
|
+
const locale = (0, $dAxr5$useSelector)((state)=>state.localeReducer.locale);
|
|
1298
|
+
const isRTL = (0, $dAxr5$useSelector)((state)=>state.localeReducer.isRTL);
|
|
1299
|
+
const isUsedOnBorne = (0, $dAxr5$useSelector)((state)=>state.retorikReducer.configuration.isUsedOnBorne);
|
|
1314
1300
|
const [drivingCar, setDrivingCar] = (0, $dAxr5$useState)(undefined);
|
|
1315
1301
|
const [cyclingRegular, setCyclingRegular] = (0, $dAxr5$useState)(undefined);
|
|
1316
1302
|
const [footWalking, setFootWalking] = (0, $dAxr5$useState)(undefined);
|
|
@@ -1728,4 +1714,4 @@ var $9333337694b0d9a4$export$2e2bcd8739ae039 = $9333337694b0d9a4$var$MapUser;
|
|
|
1728
1714
|
|
|
1729
1715
|
|
|
1730
1716
|
|
|
1731
|
-
//# sourceMappingURL=AttachmentDetail.
|
|
1717
|
+
//# sourceMappingURL=AttachmentDetail.53ba969a.js.map
|