@griddo/cx 1.56.9 → 1.56.10

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/gatsby-node.js CHANGED
@@ -111,6 +111,8 @@ exports.createPages = async ({ actions }) => {
111
111
  favicon,
112
112
  };
113
113
 
114
+ const showBasicMetaRobots = process.env.showBasicMetaRobots !== 'off';
115
+
114
116
  let additionalInfo = {
115
117
  baseUrl,
116
118
  publicBaseUrl,
@@ -121,6 +123,7 @@ exports.createPages = async ({ actions }) => {
121
123
  siteLangs,
122
124
  cloudinaryName,
123
125
  componentsVersion,
126
+ showBasicMetaRobots,
124
127
  BUILD_MODE,
125
128
  isIE,
126
129
  isGARRIGUES,
package/gatsby-ssr.js CHANGED
@@ -1,3 +1,32 @@
1
- import { Page } from "./src/components/Page"
1
+ // Gatsby SSR API
2
+ // https://www.gatsbyjs.com/docs/reference/config-files/gatsby-ssr/
2
3
 
3
- export const wrapPageElement = Page
4
+ import { Page } from './src/components/Page';
5
+ import { onRenderBody as onRenderBodyFromClient } from 'components';
6
+
7
+ export const wrapPageElement = Page;
8
+
9
+ export const onRenderBody = ({
10
+ setHeadComponents,
11
+ setPreBodyComponents,
12
+ setPostBodyComponents,
13
+ setHtmlAttributes,
14
+ setBodyAttributes,
15
+ setBodyProps,
16
+ }) => {
17
+ const {
18
+ headComponents,
19
+ preBodyComponents,
20
+ postBodyComponents,
21
+ htmlAttributes,
22
+ bodyAttributes,
23
+ bodyProps,
24
+ } = onRenderBodyFromClient;
25
+
26
+ setHeadComponents(headComponents);
27
+ setPreBodyComponents(preBodyComponents);
28
+ setPostBodyComponents(postBodyComponents);
29
+ setHtmlAttributes(htmlAttributes);
30
+ setBodyAttributes(bodyAttributes);
31
+ setBodyProps(bodyProps);
32
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "1.56.9",
4
+ "version": "1.56.10",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -61,7 +61,7 @@
61
61
  "react-helmet": "^6.0.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@griddo/eslint-config-back": "^1.56.9",
64
+ "@griddo/eslint-config-back": "^1.56.10",
65
65
  "eslint": "^7.5.0",
66
66
  "eslint-plugin-node": "^11.1.0",
67
67
  "eslint-plugin-react": "7.14.3",
@@ -93,5 +93,5 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "gitHead": "98aa9a898529be753157e72452e08c80591061ab"
96
+ "gitHead": "586a090d1cb535fa0577fd12d2e874860c1fc3b8"
97
97
  }
@@ -1,9 +1,14 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { Helmet } from 'react-helmet';
3
3
 
4
- const cleanCommaSeparated = x => x.trim().split(',').filter(Boolean).join(',');
4
+ const cleanCommaSeparated = x =>
5
+ x
6
+ .split(',')
7
+ .map(item => item.trim())
8
+ .filter(item => !!item)
9
+ .join(',');
5
10
 
6
- function SEO(params) {
11
+ export default function SEO(props) {
7
12
  const {
8
13
  locale,
9
14
  openGraph,
@@ -16,45 +21,38 @@ function SEO(params) {
16
21
  metasAdvanced,
17
22
  pageLanguages,
18
23
  canonical,
24
+ notranslate,
19
25
  },
20
- fullPath,
21
26
  fullUrl,
22
- componentsVersion,
23
- isIE,
24
- isGARRIGUES,
25
- } = params;
27
+ showBasicMetaRobots,
28
+ } = props;
26
29
 
27
- const isPRE = fullPath.domain.toLowerCase().includes('pre');
28
- const GTM_ID = isPRE ? 'GTM-M39JZMN' : 'GTM-G47LS';
29
- const ONE_TRUST_ID = isPRE
30
- ? 'f3490e9b-e3c6-4897-bcee-29b61d0d6460-test'
31
- : 'f3490e9b-e3c6-4897-bcee-29b61d0d6460';
30
+ const metaRobots = cleanCommaSeparated(
31
+ `${index}, ${follow}, ${notranslate}, ${metasAdvanced}`
32
+ );
33
+ const showMetaRobots =
34
+ showBasicMetaRobots || metaRobots !== 'index,follow,translate';
32
35
 
33
36
  return (
34
37
  <Helmet title={title}>
35
- <meta name="description" content={description}></meta>
38
+ <meta name="description" content={description} />
36
39
  <meta name="title" content={title} />
37
40
  {canonical && <link rel="canonical" href={canonical} />}
38
41
  <link rel="icon" href={favicon} />
39
42
 
40
43
  {/* Alternate */}
41
44
  {pageLanguages?.length > 1 &&
42
- pageLanguages.map(item => {
43
- return (
44
- <link
45
- key={item.pageId}
46
- rel="alternate"
47
- href={`${item.url}`}
48
- hreflang={item.locale?.replace(/_/g, '-')}
49
- />
50
- );
51
- })}
45
+ pageLanguages.map(item => (
46
+ <link
47
+ key={item.pageId}
48
+ rel="alternate"
49
+ href={`${item.url}`}
50
+ hreflang={item.locale?.replace(/_/g, '-')}
51
+ />
52
+ ))}
52
53
 
53
54
  {/* Robots */}
54
- <meta
55
- name="robots"
56
- content={cleanCommaSeparated(`${index}, ${follow}, ${metasAdvanced}`)}
57
- />
55
+ {showMetaRobots && <meta name="robots" content={metaRobots} />}
58
56
 
59
57
  {/* Facebook */}
60
58
  <meta property="og:site_name" content={title} />
@@ -73,473 +71,8 @@ function SEO(params) {
73
71
  <meta property="twitter:image" content={openGraph.twitterImage} />
74
72
  <html lang={locale} />
75
73
 
76
- {/* Debug */}
77
- <meta property="components:version" content={componentsVersion} />
78
- {isIE && <meta property="isIE" content={JSON.stringify(isIE)} />}
79
- {isGARRIGUES && <meta property="isGARRIGUES" content={JSON.stringify(isGARRIGUES)} />}
80
-
81
- {isIE && (
82
- <script>{`
83
- (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
84
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://dataga.ie.edu/www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
85
- })(window,document,'script','dataLayer','${GTM_ID}')
86
- `}</script>
87
- )}
88
- {isIE && (
89
- <noscript>
90
- {`<iframe
91
- src="https://dataga.ie.edu/www.googletagmanager.com/ns.html?id=${GTM_ID}"
92
- height="0"
93
- width="0"
94
- style={{display:'none','visibility':'hidden'}}/>`}
95
- </noscript>
96
- )}
97
- {false && isIE && (
98
- <script
99
- type="text/javascript"
100
- src={`https://cdn.cookielaw.org/consent/${ONE_TRUST_ID}/OtAutoBlock.js`}
101
- ></script>
102
- )}
103
- {isIE && (
104
- <script
105
- src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"
106
- data-document-language="true"
107
- type="text/javascript"
108
- charset="UTF-8"
109
- data-domain-script={ONE_TRUST_ID}
110
- ></script>
111
- )}
112
- {isIE && (
113
- <script type="text/javascript">
114
- {`function OptanonWrapper() { }`}
115
- </script>
116
- )}
117
-
118
- {isGARRIGUES && (
119
- <script
120
- async=""
121
- src="https://www.googletagmanager.com/gtm/js?id=GTM-K6DR9WL"
122
- ></script>
123
- )}
124
- {isGARRIGUES && (
125
- <script>
126
- {`window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('consent', 'default', { ad_storage: 'denied', analytics_storage: 'denied', wait_for_update: 500, }); gtag('js', new Date()); gtag('config', 'GTM-K6DR9WL');`}
127
- </script>
128
- )}
129
-
130
- {isGARRIGUES && (
131
- <link
132
- rel="stylesheet"
133
- href="https://cookiescdn.elixregtech.com/o/1/1/gcm/estyle_min.css"
134
- />
135
- )}
136
- {isGARRIGUES && (
137
- <link
138
- rel="stylesheet"
139
- href="https://cookiescdn.elixregtech.com/o/1/1/gcm/client.css"
140
- />
141
- )}
142
- {isGARRIGUES && (
143
- <script
144
- id="ecookies_init_min"
145
- src="https://cookiescdn.elixregtech.com/o/1/1/gcm/cookies_init_min.js?apiKey=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJmMzBkODI2ZC1hYjE0LTQ3YTMtOWMzYy1kZDBlOTQ2NjI4MmMiLCJpYXQiOjE2MTIzNDUyODksIm5iZiI6MTYxMjM0NTI4OSwianRpIjoiOWI3NWZlNDQtYWE4MC00ZjM5LTgyZWYtMWM0ZDc4MWEzZmM1IiwiZXhwIjoxNzcwMDI1Mjg5fQ.Dphlm5pkStqhHu-9qk3YWnsVvE-lwmr9Y0xbsbew14E&platformToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJmMzBkODI2ZC1hYjE0LTQ3YTMtOWMzYy1kZDBlOTQ2NjI4MmMiLCJpYXQiOjE2MTQ5NDU3NjcsIm5iZiI6MTYxNDk0NTc2NywianRpIjoiMDI4M2I0OGUtYzI4YS00MDIwLWJkYTAtY2U4MmZiZjdlNzM0IiwicGlkIjoiYTI2NzYwNmItZjBhOC00MzlhLWI2ZDMtOWEwZTA1YWE3NWQ5In0.l1Sk7YFSB067HGbXchRAGES1WoYz0EWy5henlpSmHiQ&viewType=treeView"
146
- type="text/javascript"
147
- ></script>
148
- )}
149
- {isGARRIGUES && (
150
- <script
151
- src="https://cookiescdn.elixregtech.com/o/1/1/gcm/cookies_min.js"
152
- type="text/javascript"
153
- ></script>
154
- )}
155
- {isGARRIGUES && (
156
- <script
157
- src="https://cookiescdn.elixregtech.com/o/1/1/gcm/cookies_extra_min.js"
158
- type="text/javascript"
159
- ></script>
160
- )}
161
- {isGARRIGUES && (
162
- <style type="text/css">
163
- {`
164
- .ecix-premodal-view-content a,
165
- .ecix-modal-view-content a {
166
- color: rgb(8, 127, 123) !important;
167
- }
168
- #ecix_div_id {
169
- font-family: "Hellix", sans-serif !important;
170
- color: rgb(110, 120, 115);
171
- }
172
- .span-text-cookies {
173
- font-family: "Hellix", sans-serif !important;
174
- color: rgb(110, 120, 115) !important;
175
- }
176
- .ecix-premodal-view-content {
177
- width: 100% !important;
178
- margin-left: 0 !important;
179
- margin-right: 0 !important;
180
- margin-top: 0 !important;
181
- margin-bottom: 0 !important;
182
- padding-left: 0 !important;
183
- padding-right: 0 !important;
184
- padding-top: 0 !important;
185
- padding-bottom: 0 !important;
186
- }
187
-
188
- .ecix-premodal-view-content .ecix-modal-view-body {
189
- position: relative !important;
190
- height: 100%;
191
- width: 100% !important;
192
- padding: 20px !important;
193
- max-width: 900px;
194
- margin: 0 auto !important;
195
-
196
- display: grid !important;
197
- grid-template-columns: repeat(4, 1fr);
198
- grid-gap: 10px;
199
- }
200
- .span-text-cookies {
201
- position: static !important;
202
- width: auto !important;
203
- padding-left: 0 !important;
204
- padding-right: 0 !important;
205
- padding-top: 0 !important;
206
- padding-bottom: 0 !important;
207
- grid-column: 1 / 5;
208
- grid-row: 1;
209
- }
210
- .span-text-cookies p {
211
- margin: 0 !important;
212
- }
213
- .ecix-modal-btn-accept.ecix-p10.ecix-bold.ecix-font-1-2em.button-rechazar {
214
- display: none;
215
- }
216
- .ecix-modal-btn-accept.ecix-p10.ecix-bold.ecix-font-1-2em.button-preferencias {
217
- position: static !important;
218
- left: 0;
219
- bottom: 0;
220
- color: rgb(18, 66, 64) !important;
221
- border: 1px solid rgb(18, 66, 64) !important;
222
- font-family: 'Reckless' !important;
223
- font-size: 14px !important;
224
- font-weight: 400 !important;
225
- margin: 0 !important;
226
- grid-column: 1;
227
- grid-row: 2;
228
- width: 100%;
229
- transition: 0.3s ease;
230
- }
231
- .ecix-modal-btn-accept.ecix-p10.ecix-bold.ecix-font-1-2em.button-preferencias:hover {
232
- background-color: rgb(248, 251, 248) !important;
233
- }
234
- .ecix-modal-btn-accept.ecix-p10.ecix-bold.ecix-font-1-2em.button-aceptar {
235
- position: static !important;
236
- background-color: rgb(242, 209, 112) !important;
237
- color: rgb(18, 66, 64) !important;
238
- right: 0;
239
- bottom: 0;
240
- font-weight: normal !important;
241
- font-family: 'Reckless' !important;
242
- font-size: 14px !important;
243
- font-weight: 400 !important;
244
- grid-column: 2;
245
- grid-row: 2;
246
- width: 100%;
247
- transition: 0.3s ease;
248
- }
249
- .ecix-modal-btn-accept.ecix-p10.ecix-bold.ecix-font-1-2em.button-aceptar:hover {
250
- background-color: rgb(250, 238, 205) !important;
251
- }
252
- .ecix-p10 {
253
- height: 50px !important;
254
- display: flex;
255
- padding: 0 !important;
256
- justify-content: center;
257
- align-items: center;
258
- }
259
-
260
- @media only screen and (max-width: 620px) {
261
- .ecix-premodal-view-content .ecix-modal-view-body {
262
- display: flex !important;
263
- flex-direction: column;
264
- justify-content: center;
265
- align-items: center;
266
- }
267
- }
268
- /*-----------*/
269
- .ecix-gdpr-page.ecix-ac.cookies-elixregtech.customClassDivContent {
270
- min-height: 100%;
271
- width: 100vw;
272
- margin-left: 0 !important;
273
- margin-right: 0 !important;
274
- margin-top: 0 !important;
275
- margin-bottom: 0 !important;
276
- padding-left: 0 !important;
277
- padding-right: 0 !important;
278
- padding-top: 0 !important;
279
- padding-bottom: 0 !important;
280
- }
281
- .cookies-elixregtech .ecix-modal-view-content {
282
- width: 80% !important;
283
- position: relative !important;
284
- margin-top: 20px !important;
285
- margin-bottom: 0 !important;
286
- padding-left: 0 !important;
287
- padding-right: 0 !important;
288
- padding-top: 0 !important;
289
- padding-bottom: 0 !important;
290
- }
291
- .ecix-modal-view-header {
292
- color: rgb(18, 66, 64) !important;
293
- font-family: 'Reckless' !important;
294
- font-weight: 400 !important;
295
- box-sizing: border-box !important;
296
- display: block !important;
297
- padding: 20px !important;
298
- }
299
-
300
- .ecix-gdpr-page.customClassDivContent {
301
- grid-column: 1 / 5;
302
- background-color: transparent !important;
303
- }
304
-
305
- .cookies-elixregtech .ecix-modal-view-body {
306
- margin-left: 0;
307
- margin-right: 0;
308
- padding-bottom: 0 !important;
309
- }
310
- .ecix-modal-view h3,
311
- .ecix-modal-view p {
312
- font-family: 'Hellix', sans-serif !important;
313
- }
314
- .cookies-elixregtech .pos-b {
315
- font-family: 'Hellix', sans-serif !important;
316
- }
317
- .ecix-modal-view .ecix-modal-view-footer {
318
- display: none !important;
319
- }
320
- .fas.fa-caret-down {
321
- display: none;
322
- }
323
- .col-md-3.border-color h3 {
324
- color: rgb(18, 66, 64) !important;
325
- }
326
- .cookies-elixregtech .ecix-tree li {
327
- border-bottom: none;
328
- }
329
- .cookies-elixregtech .ecix-tree li:last-child {
330
- border-bottom: 1px solid #cecece;
331
- }
332
- .cookies-elixregtech .ecix-btn-cancel {
333
- top: unset !important;
334
- bottom: 10px !important;
335
- display: flex;
336
- justify-content: center;
337
- align-items: center;
338
- color: rgb(18, 66, 64) !important;
339
- border: 1px solid rgb(18, 66, 64) !important;
340
- font-family: 'Reckless' !important;
341
- font-size: 14px !important;
342
- font-weight: 400 !important;
343
- transition: 0.3s ease;
344
- left: unset !important;
345
- right: 20px;
346
- width: 180px;
347
- }
348
- .cookies-elixregtech .ecix-btn-cancel:hover {
349
- background-color: rgb(248, 251, 248) !important;
350
- }
351
- .cookies-elixregtech .ecix-btn-accept {
352
- top: unset !important;
353
- bottom: 10px !important;
354
- display: flex;
355
- justify-content: center;
356
- align-items: center;
357
- background-color: rgb(242, 209, 112) !important;
358
- color: rgb(18, 66, 64) !important;
359
- font-family: 'Reckless' !important;
360
- font-size: 14px !important;
361
- font-weight: 400 !important;
362
- transition: 0.3s ease;
363
- left: unset !important;
364
- right: 210px;
365
- width: 180px;
366
- }
367
- .cookies-elixregtech .ecix-btn-accept:hover {
368
- background-color: rgb(250, 238, 205) !important;
369
- }
370
- .cookies-elixregtech ul#ecix-tree-level2-0 {
371
- top: 0;
372
- }
373
- #ecixHeaderText {
374
- position: static !important;
375
- height: auto !important;
376
- display: block;
377
- color: rgb(110, 120, 115) !important;
378
- }
379
- #ecixHeaderText p {
380
- margin-top: 10px !important;
381
- margin-bottom: 0 !important;
382
- }
383
- .cookies-elixregtech span#ecixHeaderText {
384
- padding-right: 0 !important;
385
- }
386
- .ecix-tree.ecix-tree-level2.list-group.list-group-flush {
387
- margin-left: 0 !important;
388
- margin-right: 0 !important;
389
- margin-top: 0 !important;
390
- margin-bottom: 0 !important;
391
- }
392
- .ecix-switch-li {
393
- position: static !important;
394
- }
395
- .ecix-switch-li.ecix-header-li {
396
- display: block;
397
- }
398
- #ecix_div_view {
399
- margin: 0 !important;
400
- padding-bottom: 100px !important;
401
- }
402
- .cookies-elixregtech .customClassDeclineCheckColor {
403
- background-color: #de2b31;
404
- }
405
- .ecix-onoffswitch-label::before {
406
- width: 20px;
407
- height: 20px;
408
- }
409
- .cookies-elixregtech .customClassDeclineCheckColor::before {
410
- left: 2px;
411
- }
412
- .cookies-elixregtech .customClassAcceptCheckColor {
413
- background-color: #70baa6;
414
- }
415
- .cookies-elixregtech .customClassAcceptCheckColor::before {
416
- right: 2px;
417
- }
418
- .ecix-onoffswitch-label {
419
- height: 26px;
420
- }
421
- .ecix-onoffswitch-label::before {
422
- top: 3px !important;
423
- }
424
- @media only screen and (max-width: 1440px) {
425
- .cookies-elixregtech .ecix-modal-view-content {
426
- width: 98% !important;
427
- margin-top: 5px !important;
428
- }
429
- }
430
- @media only screen and (max-width: 768px) {
431
- .ecix-md-10.ecix-pt20 {
432
- display: flex;
433
- flex-direction: column-reverse;
434
- }
435
- .ecix-switch-li.ecix-header-li {
436
- display: none;
437
- }
438
- .ecix-btn-accept {
439
- margin-top: 20px;
440
- margin-bottom: 5px;
441
- }
442
- .ecix-btn-accept,
443
- .ecix-btn-cancel {
444
- position: static !important;
445
- width: 100% !important;
446
- }
447
- }
448
- /*----------*/
449
- #Capa_1_cookie {
450
- width: 35px;
451
- height: 35px;
452
- }
453
- #Capa_1_cookie .cls-1,
454
- #Capa_1_cookie .cls-2 {
455
- fill: #70baa6;
456
- }
457
- .ecix-premodal-view,
458
- .ecix-premodal-view-content {
459
- z-index: 999;
460
- cursor: pointer;
461
- }
462
- `}
463
-
464
- </style>
465
- )
466
-
467
- }
468
-
469
- {false && isIE && (
470
- <script type="text/javascript">{`
471
- /*
472
- Copyright and licenses see https://www.dynatrace.com/company/trust-center/customers/reports/*/
473
- (function(){"undefined"!==typeof window&&window.setTimeout&&(window.setTimeout=window.setTimeout);this.dT_&&dT_.prm&&dT_.prm();(function(){function Aa(){document.cookie="__dTCookie=1;SameSite=Lax";var N=-1!==document.cookie.indexOf("__dTCookie");document.cookie="__dTCookie=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";return N}function Wa(){return void 0===xb.dialogArguments?navigator.cookieEnabled||Aa():Aa()}function rb(){var N;if(Wa()&&!window.dT_){var Ea=(N={},N.cfg="app=5d06d81c4cd5d196|cors=1|rcdec=1209600000|featureHash=A2SVfqru|vcv=2|reportUrl=https://bf43785alo.bf.dynatrace.com/bf|rdnt=1|uxrgce=1|bp=3|srmcrv=10|cuc=8ww9nprs|mel=100000|dpvc=1|ssv=4|lastModification=1632467671201|dtVersion=10225210921130928|srmcrl=1|tp=500,50,0,1|uxdcw=1500|vs=2|featureHash=A2SVfqru|agentUri=https://js-cdn.dynatrace.com/jstag/148709fdc4b/ruxitagent_A2SVfqru_10225210921130928.js|auto=|domain=|rid=RID_|rpid=|app=5d06d81c4cd5d196",
474
- N.iCE=Wa,N);window.dT_=Ea}}var xb="undefined"!==typeof window?window:self,Xa;xb.dT_?(null===(Xa=xb.console)||void 0===Xa?void 0:Xa.log("Duplicate agent injection detected, turning off redundant initConfig."),xb.dT_.di=1):rb()})()})();
475
- /*
476
- Copyright and licenses see https://www.dynatrace.com/company/trust-center/customers/reports/*/
477
- (function(){"undefined"!==typeof window&&window.setTimeout&&(window.setTimeout=window.setTimeout);this.dT_&&dT_.prm&&dT_.prm();(function(){function Aa(h,v,Q){void 0===Q&&(Q=0);var ma=-1;v&&(null===h||void 0===h?0:h.indexOf)&&(ma=h.indexOf(v,Q));return ma}function Wa(){var h;return!(null===(h=u.console)||void 0===h||!h.log)}function rb(h,v){if(!v)return"";var Q=h+"=";h=Aa(v,Q);if(0>h)return"";for(;0<=h;){if(0===h||" "===v.charAt(h-1)||";"===v.charAt(h-1))return Q=h+Q.length,h=Aa(v,";",h),0<=h?v.substring(Q,
478
- h):v.substr(Q);h=Aa(v,Q,h+Q.length)}return""}function xb(h){return rb(h,document.cookie)}function Xa(){}function N(){var h=0;try{h=Math.round(u.performance.timeOrigin)}catch(Q){}if(0>=h||isNaN(h)||!isFinite(h)){h=u.dT_;var v=0;try{v=u.performance.timing.navigationStart}catch(Q){}h=0>=v||isNaN(v)||!isFinite(v)?h.gAST():v}I=h;Ga=Ea;return I}function Ea(){return I}function Qa(){return Ga()}function xa(){var h,v=0;if(null===(h=null===u||void 0===u?void 0:u.performance)||void 0===h?0:h.now)try{v=Math.round(u.performance.now())}catch(Q){}return 0>=
479
- v||isNaN(v)||!isFinite(v)?(new Date).getTime()-Ga():v}function K(h,v){void 0===v&&(v=document.cookie);return rb(h,v)}function ra(){}function da(h,v){return function(){h.apply(v,arguments)}}function Ia(h){if(!(this instanceof Ia))throw new TypeError("Promises must be constructed via new");if("function"!==typeof h)throw new TypeError("not a function");this.ba=0;this.Wa=!1;this.da=void 0;this.ia=[];ka(h,this)}function Ca(h,v){for(;3===h.ba;)h=h.da;0===h.ba?h.ia.push(v):(h.Wa=!0,Ia.Ba(function(){var Q=
480
- 1===h.ba?v.bc:v.cc;if(null===Q)(1===h.ba?cb:qa)(v.promise,h.da);else{try{var ma=Q(h.da)}catch(hb){qa(v.promise,hb);return}cb(v.promise,ma)}}))}function cb(h,v){try{if(v===h)throw new TypeError("A promise cannot be resolved with itself.");if(v&&("object"===typeof v||"function"===typeof v)){var Q=v.then;if(v instanceof Ia){h.ba=3;h.da=v;La(h);return}if("function"===typeof Q){ka(da(Q,v),h);return}}h.ba=1;h.da=v;La(h)}catch(ma){qa(h,ma)}}function qa(h,v){h.ba=2;h.da=v;La(h)}function La(h){2===h.ba&&0===
481
- h.ia.length&&Ia.Ba(function(){h.Wa||Ia.eb(h.da)});for(var v=0,Q=h.ia.length;v<Q;v++)Ca(h,h.ia[v]);h.ia=null}function Ba(h,v,Q){this.bc="function"===typeof h?h:null;this.cc="function"===typeof v?v:null;this.promise=Q}function ka(h,v){var Q=!1;try{h(function(ma){Q||(Q=!0,cb(v,ma))},function(ma){Q||(Q=!0,qa(v,ma))})}catch(ma){Q||(Q=!0,qa(v,ma))}}function V(){Ab.Ba=function(h){if("string"===typeof h)throw Error("Promise polyfill called _immediateFn with string");h()};Ab.eb=function(){};return Ab}function ha(h,
482
- v,Q,ma){"undefined"===typeof ma&&(ma=Ma(v,!0));"boolean"===typeof ma&&(ma=Ma(v,ma));if(h===u)Ib?Ib(v,Q,ma):vc&&vc("on"+v,Q);else if(vd&&u.dT_.iIO(h,21))Bd.call(h,v,Q,ma);else if(h.addEventListener)if(h===u.document||h===u.document.documentElement)Xb.call(h,v,Q,ma);else try{Ib.call(h,v,Q,ma)}catch(mc){h.addEventListener(v,Q,ma)}else h.attachEvent&&h.attachEvent("on"+v,Q);ma=!1;for(var hb=hd.length;0<=--hb;){var Nb=hd[hb];if(Nb.object===h&&Nb.event===v&&Nb.X===Q){ma=!0;break}}ma||u.dT_.apush(hd,{object:h,
483
- event:v,X:Q})}function ta(h,v,Q,ma){for(var hb=hd.length;0<=--hb;){var Nb=hd[hb];if(Nb.object===h&&Nb.event===v&&Nb.X===Q){hd.splice(hb,1);break}}"undefined"===typeof ma&&(ma=Ma(v,!0));"boolean"===typeof ma&&(ma=Ma(v,ma));h===u?Wb?Wb(v,Q,ma):vc&&vc("on"+v,Q):h.removeEventListener?h===u.document||h===u.document.documentElement?cc.call(h,v,Q,ma):Wb.call(h,v,Q,ma):h.detachEvent&&h.detachEvent("on"+v,Q)}function Ma(h,v){var Q=!1;try{var ma=u.dT_;if(Ib&&-1<ma.aIOf(bd,h)){var hb=Object.defineProperty({},
484
- "passive",{get:function(){Q=!0}});Ib("test",Xa,hb)}}catch(Nb){}return Q?{passive:!0,capture:v}:v}function y(){for(var h=hd,v=h.length;0<=--v;){var Q=h[v];ta(Q.object,Q.event,Q.X)}hd=[]}function ba(){for(var h=0,v=0,Q=arguments.length;v<Q;v++)h+=arguments[v].length;h=Array(h);var ma=0;for(v=0;v<Q;v++)for(var hb=arguments[v],Nb=0,mc=hb.length;Nb<mc;Nb++,ma++)h[ma]=hb[Nb];return h}function oa(h){return"function"===typeof h&&/{\s+\[native code]/.test(Function.prototype.toString.call(h))}function M(h,
485
- v){for(var Q,ma=[],hb=2;hb<arguments.length;hb++)ma[hb-2]=arguments[hb];return void 0!==Function.prototype.bind&&oa(Function.prototype.bind)?(Q=Function.prototype.bind).call.apply(Q,ba([h,v],ma)):function(){for(var Nb=0;Nb<arguments.length;Nb++);return h.apply(v,(ma||[]).concat(Array.prototype.slice.call(arguments)||[]))}}function la(){if(Pd){var h=new Pd;if(Yc)for(var v=0,Q=ze;v<Q.length;v++){var ma=Q[v];void 0!==Yc[ma]&&(h[ma]=M(Yc[ma],h))}return h}return xf?new xf("MSXML2.XMLHTTP.3.0"):u.XMLHttpRequest?
486
- new u.XMLHttpRequest:new u.ActiveXObject("MSXML2.XMLHTTP.3.0")}function Ra(){return 0<=u.dT_.io(navigator.userAgent,"RuxitSynthetic")}function sb(h,v){return parseInt(h,v||10)}function ub(h){return document.getElementsByTagName(h)}function ib(h){var v=h.length;if("number"===typeof v)h=v;else{v=0;for(var Q=2048;h[Q-1];)v=Q,Q+=Q;for(var ma=7;1<Q-v;)ma=(Q+v)/2,h[ma-1]?v=ma:Q=ma;h=h[ma]?Q:v}return h}function Y(h){for(var v=[],Q=1;Q<arguments.length;Q++)v[Q-1]=arguments[Q];h.push.apply(h,v)}function va(h){h=
487
- encodeURIComponent(h);var v=[];if(h)for(var Q=0;Q<h.length;Q++){var ma=h.charAt(Q);Y(v,yf[ma]||ma)}return v.join("")}function Ta(){var h=u.dT_;return!h.bcv("coo")||h.bcv("cooO")||Ra()}function R(h,v){if(Ta()&&(!u.dT_.overloadPrevention||Ra()))return h.apply(this,v||[])}function ya(h,v){try{var Q=Qe;Q&&Q.setItem(h,v)}catch(ma){}}function zb(h,v){R(ya,[h,v])}function lb(h){try{var v=Qe;if(v)return v.getItem(h)}catch(Q){}return null}function mb(h){try{var v=Qe;v&&v.removeItem(h)}catch(Q){}}function Bb(h){return 32===
488
- h.length||12>=h.length?h:""}function Pb(h){h=h.replace("-2D","-");if(!isNaN(Number(h))){var v=sb(h);if(-99<=v&&99>=v)return h}return""}function dc(h){var v={sessionId:"",sb:"",Ga:0},Q=Aa(h,"|"),ma=h;-1!==Q&&(ma=h.substring(0,Q));Q=Aa(ma,"$");-1!==Q?(v.sessionId=Bb(ma.substring(Q+1)),v.sb=Pb(ma.substring(0,Q))):v.sessionId=Bb(ma);return v}function ic(h){var v={sessionId:"",sb:"",Ga:0};h=h.split("v"===h.charAt(0)?"_":"=");if(2<h.length&&0===h.length%2){var Q=Number(h[1]);if(isNaN(Q)||3>Q)return v;Q=
489
- {};for(var ma=2;ma<h.length;ma++)Q[h[ma]]=h[ma+1],ma++;Q.sn?v.sessionId=Bb(Q.sn):v.sessionId="hybrid";Q.srv&&(v.sb=Pb(Q.srv));h=Number(Q.ol);1===h&&(Q=Ra(),ma=u.dT_,Q||(zb("dtDisabled","true"),ma.disabled=!0,ma.overloadPrevention=!0));0<=h&&2>=h&&(v.Ga=h)}return v}function eb(){try{df.apply(u.parent,arguments)}catch(h){}}function Eb(){try{Qd.apply(u.top,arguments)}catch(h){}}function nb(h){try{Zc.apply(h,arguments)}catch(v){}}function X(h){try{$d.apply(h,arguments)}catch(v){}}function Na(){return ld()}
490
- function Oa(h,v){function Q(){delete ie[Nb];h.apply(this,arguments)}for(var ma=[],hb=2;hb<arguments.length;hb++)ma[hb-2]=arguments[hb];if("apply"in Kf){ma.unshift(Q,v);var Nb=Kf.apply(u,ma)}else Nb=Kf(Q,v);ie[Nb]=!0;return Nb}function O(h){delete ie[h];"apply"in le?le.call(u,h):le(h)}function na(h){Y(nf,h)}function pa(h){for(var v=nf.length;v--;)if(nf[v]===h){nf.splice(v,1);break}}function Pa(){return nf}function Va(h,v){return Ie(h,v)}function T(h){wg(h)}function ja(h,v){if(!ue||!td)return"";h=new ue([h],
491
- {type:v});return td(h)}function J(h,v){return Ye?new Ye(h,v):void 0}function C(h){"function"===typeof h&&Y(vh,h)}function x(){return vh}function q(){return wh}function F(h){return function(){for(var v=[],Q=0;Q<arguments.length;Q++)v[Q]=arguments[Q];if("number"!==typeof v[0]||!ie[v[0]])try{return h.apply(this,v)}catch(ma){return h(v[0])}}}function P(){return Uf}function L(){Ga=N;u.performance&&(ld=function(){return Math.round(Ga()+xa())});if(!ld||isNaN(ld())||0>=ld()||!isFinite(ld()))ld=function(){return(new Date).getTime()}}
492
- function Z(){zf&&(u.clearTimeout=le,u.clearInterval=wg,zf=!1)}function Da(h){-1<u.dT_.io(h,"^")&&(h=h.split("^^").join("^"),h=h.split("^dq").join('"'),h=h.split("^rb").join(">"),h=h.split("^lb").join("<"),h=h.split("^p").join("|"),h=h.split("^e").join("="),h=h.split("^s").join(";"),h=h.split("^c").join(","),h=h.split("^bs").join("\\"));return h}function Ha(){return Cg}function kb(h){Cg=h}function Fb(h){var v=u.dT_,Q=v.scv("rid");v=v.scv("rpid");Q&&(h.rid=Q);v&&(h.rpid=v)}function Mb(h){if(h=h.xb){h=
493
- Da(h);try{Cg=new RegExp(h,"i")}catch(v){}}else Cg=void 0}function Gb(h){return"n"===h||"s"===h||"l"===h?";SameSite="+of[h]:""}function Db(h,v,Q){var ma=1,hb=0;do document.cookie=h+'=""'+(v?";domain="+v:"")+";path="+Q.substr(0,ma)+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;",ma=Q.indexOf("/",ma),hb++;while(-1!==ma&&5>hb)}function tc(h){var v={},Q=0;for(h=h.split("|");Q<h.length;Q++){var ma=h[Q].split("=");2===ma.length&&(v[ma[0]]=decodeURIComponent(ma[1].replace(/\+/g," ")))}return v}function bb(){var h=
494
- Sa("csu");return(h.indexOf("dbg")===h.length-3?h.substr(0,h.length-3):h)+"_"+Sa("app")+"_Store"}function ec(h,v,Q){v=v||{};var ma=0;for(h=h.split("|");ma<h.length;ma++){var hb=h[ma],Nb=hb,mc=Aa(hb,"=");-1===mc?v[Nb]="1":(Nb=hb.substring(0,mc),v[Nb]=hb.substring(mc+1,hb.length))}!Q&&(Q=v,ma=Q.spc)&&(h=document.createElement("textarea"),h.innerHTML=ma,Q.spc=h.value);return v}function fa(h){var v;return null!==(v=Ec[h])&&void 0!==v?v:jg[h]}function ua(h){h=fa(h);return"false"===h||"0"===h?!1:!!h}function Ya(h){var v=
495
- fa(h);v=sb(v);isNaN(v)&&(v=jg[h]);return v}function Sa(h){return String(fa(h)||"")}function vb(h,v){Ec[h]=String(v)}function Rb(h){Ec=h;h=Dg;for(var v in h)h.hasOwnProperty(v)&&h[v]&&(Ec[v]=h[v]);return Ec}function jc(h){Ec[h]=0>Aa(Ec[h],"#"+h.toUpperCase())?Ec[h]:""}function Oc(h){var v=h.agentUri;v&&-1<Aa(v,"_")&&(v=/([a-zA-Z]*)[0-9]{0,4}_([a-zA-Z_0-9]*)_[0-9]+/g.exec(v))&&v.length&&2<v.length&&(h.csu=v[1],h.featureHash=v[2])}function yc(h){var v=h.domain||"";var Q=(Q=location.hostname)&&v?Q===
496
- v||-1!==Q.indexOf("."+v,Q.length-("."+v).length):!0;if(!v||!Q){h.domainOverride||(h.domainOverride=location.hostname+","+v,delete h.domain);var ma=Sa("cssm");var hb=document.domain||"";if(hb){hb=hb.split(".").reverse();var Nb=hb.length;if(1>=Nb)ma="";else{for(var mc=hb[0],kc="",$c=1;$c<=Nb;$c++)if(K("dTValidationCookie")){kc=mc;break}else{hb[$c]&&(mc=hb[$c]+"."+mc);var jd="dTValidationCookie=dTValidationCookieValue;path=/;domain="+mc;jd+=Gb(ma);document.cookie=jd}Db("dTValidationCookie",kc,"/");ma=
497
- kc}}else ma="";ma&&(h.domain=ma);Q||Y(Uf,{type:"dpi",severity:"Warning",text:'Configured domain "'+v+'" is invalid for current location "'+location.hostname+'". Agent will use "'+h.domain+'" instead.'})}}function Kc(h,v){yc(h);Ec.pVO&&(h.pVO=Ec.pVO);v||(v=h.bp||jg.bp,h.bp2&&(v=2),h.bp=String(v))}function Pc(){return Ec}function gb(h){return jg[h]===fa(h)}function wc(h,v){try{u.localStorage&&u.localStorage.setItem(h,v)}catch(Q){}}function Fc(h){try{if(u.localStorage)return u.localStorage.getItem(h)}catch(v){}return null}
498
- function Lc(h){try{u.localStorage&&u.localStorage.removeItem(h)}catch(v){}}function ac(){Lc("rxec");Lc("rxvisitid");Lc("rxvt")}function Bc(h){document.cookie=h+'="";path=/'+(Sa("domain")?";domain="+Sa("domain"):"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"}function ae(h,v,Q,ma){Je=!0;v||0===v?(v=String(v).replace(/[;\n\r]/g,"_"),h=h+"="+v+";path=/"+(Sa("domain")?";domain="+Sa("domain"):""),Q&&(h+=";expires="+Q.toUTCString()),h+=Gb(Sa("cssm")),ma&&"https:"===location.protocol&&(h+=";Secure"),document.cookie=
499
- h):Bc(h);Je=!1}function Gc(h,v,Q,ma){R(ae,[h,v,Q,ma])}function Sb(h){return 2<(null===h||void 0===h?void 0:h.split("$").length)?!1:/^[0-9A-Za-z_=:$+\/.\-*%|]*$/.test(h)}function uc(h){h=K("dtCookie",h);h||((h=lb("dtCookie"))&&Sb(h)?cd(h):h="");return Sb(h)?h:""}function cd(h){Gc("dtCookie",h,void 0,ua("ssc"))}function Ub(h){Ta()?h():(ve||(ve=[]),Y(ve,h))}function Cc(h){return R(h)}function od(){if(ua("coo")&&!Ta()){for(var h=0,v=ve;h<v.length;h++)Oa(v[h],0);ve=[];vb("cooO",!0)}}function Ze(){if(ua("coo")&&
500
- Ta()){vb("cooO",!1);Bc("dtCookie");Bc("dtPC");Bc("dtLatC");Bc("dtSa");Bc("dtAdk");Bc("rxVisitor");Bc("rxvt");try{mb("rxec");mb("rxvisitid");mb("rxvt");ac();var h=Qe;h&&(h.removeItem("rxVisitor"),h.removeItem("dtCookie"));if(h=be)h.removeItem(bb()),h.removeItem("dtAdk")}catch(v){}}}function Ae(h,v){void 0===v&&(v=document.cookie||"");return v.split(h+"=").length-1}function Be(h,v){v=Ae(h,v);if(1<v){var Q=Sa("domain")||u.location.hostname,ma=u.location.hostname,hb=u.location.pathname,Nb=0,mc=0;Xd.push(h);
501
- do{var kc=ma.substr(Nb);if(kc!==Q||"/"!==hb){Db(h,kc===Q?"":kc,hb);var $c=Ae(h);$c<v&&(Xd.push(kc),v=$c)}Nb=ma.indexOf(".",Nb)+1;mc++}while(0!==Nb&&10>mc&&1<v);Sa("domain")&&1<v&&Db(h,"",hb)}}function ef(){var h=document.cookie;Be("dtPC",h);Be("dtCookie",h);Be("dtLatC",h);Be("rxvt",h);0<Xd.length&&Y(Uf,{severity:"Error",type:"dcn",text:"Duplicate cookie name"+(1!==Xd.length?"s":"")+" detected: "+Xd.join(", ")});na(function(v,Q,ma,hb){0<Xd.length&&!Q&&(v.av(hb,"dCN",Xd.join(",")),Xd=[]);0<Af.length&&
502
- !Q&&(v.av(hb,"eCC",Af.join(",")),Af=[])})}function we(h){var v=h,Q=Math.pow(2,32);return function(){v=(1664525*v+1013904223)%Q;return v/Q}}function Ce(h,v){return isNaN(h)||isNaN(v)?Math.floor(33*Re()):Math.floor(Re()*(v-h+1))+h}function qe(h){if(!h)return"";var v=u.crypto||u.msCrypto;if(v&&-1===Aa(navigator.userAgent,"Googlebot"))v=v.getRandomValues(new Uint8Array(h));else{v=[];for(var Q=0;Q<h;Q++)v.push(Ce(0,32))}h=[];for(Q=0;Q<v.length;Q++){var ma=Math.abs(v[Q]%32);h.push(String.fromCharCode(ma+
503
- (9>=ma?48:55)))}return h.join("")}function Ld(){return Nd}function Ke(h,v){if(!h||!h.length)return-1;if(h.indexOf)return h.indexOf(v);for(var Q=h.length;Q--;)if(h[Q]===v)return Q;return-1}function pd(h){h&&(null===h||void 0===h?0:h.configurable)&&h.set&&h.get&&Object.defineProperty(document,"cookie",{get:function(){return h.get.call(document)},set:function(v){var Q=v.split("=")[0];h.set.call(document,v);Je?1<Ae(Q)&&Xd.push(Q):-1<Ke(Vf,Q)&&(Af.push(Q),-1===Ke(xh,Q)&&(Y(xh,Q),Y(Uf,{severity:"Error",
504
- type:"ecm",text:"Invalid modification of agent cookie "+Q+" detected. Modifying Dynatrace cookies may result in missing or invalid data."})))}})}function qd(h){void 0===h&&(h=!0);pf=h}function nd(h){if(h=h||uc()){var v=h.charAt(0);return"v"===v||"="===v?ic(h):dc(h)}return{sessionId:"",sb:"",Ga:0}}function je(h){return nd(h).sb}function xd(h){return nd(h).sessionId}function fe(h,v,Q){var ma=Ya("pcl");ma=h.length-ma;0<ma&&h.splice(0,ma);ma=je(K("dtCookie",Q));for(var hb=[],Nb=ma?ma+"$":"",mc=0;mc<h.length;mc++){var kc=
505
- h[mc];"-"!==kc.G&&hb.push(Nb+kc.frameId+"h"+kc.G)}h=hb.join("p");h||(pf&&(aa(!0,"a",Q),qd(!1)),h+=ma+"$"+Nd+"h-");h+="v"+(v||ke(Q));Gc("dtPC",h+"e0",void 0,ua("ssc"))}function De(h,v){void 0===v&&(v=document.cookie);var Q=K("dtPC",v);v=[];if(Q&&"-"!==Q){var ma="";var hb=0;for(Q=Q.split("p");hb<Q.length;hb++){var Nb=Q[hb],mc=h;void 0===ma&&(ma="");var kc=Aa(Nb,"$");var $c=Aa(Nb,"h"),jd=Aa(Nb,"v"),id=Aa(Nb,"e");kc=Nb.substring(kc+1,$c);$c=-1!==jd?Nb.substring($c+1,jd):Nb.substring($c+1);ma||-1===jd||
506
- (ma=-1!==id?Nb.substring(jd+1,id):Nb.substring(jd+1));Nb=null;mc||(mc=sb(kc.split("_")[0]),jd=ld()%Eg,jd<mc&&(jd+=Eg),mc=mc+9E5>jd);mc&&(Nb={frameId:kc,G:"-"===$c?"-":sb($c),visitId:""});(kc=Nb)&&v.push(kc)}for(h=0;h<v.length;h++)v[h].visitId=ma}return v}function ce(h,v){var Q=document.cookie;v=De(v,Q);for(var ma=!1,hb=0;hb<v.length;hb++){var Nb=v[hb];Nb.frameId===Nd&&(Nb.G=h,ma=!0)}ma||Y(v,{frameId:Nd,G:h,visitId:""});fe(v,void 0,Q)}function ke(h){return Od(h)||aa(!0,"c",h)}function Od(h){if(ud(h)<=
507
- ld())return aa(!0,"t",h);var v=pc(h);if(!v)return aa(!0,"c",h);var Q=Bf.exec(v);if(!Q||3!==Q.length||32!==Q[1].length||isNaN(sb(Q[2])))return aa(!0,"i",h);zb("rxvisitid",v);return v}function me(h,v){var Q=ld();v=Uc(v).Ic;h&&(v=Q);Kb(Q+Ug+"|"+v);Ua()}function pc(h){var v,Q;return null!==(Q=null===(v=De(!0,h)[0])||void 0===v?void 0:v.visitId)&&void 0!==Q?Q:lb("rxvisitid")}function Lf(){var h=qe(32);h=h.replace(/[0-9]/g,function(v){v=.1*sb(v);return String.fromCharCode(Math.floor(25*v+65))});return h+
508
- "-0"}function t(h,v){var Q=De(!1,v);fe(Q,h,v);zb("rxvisitid",h);me(!0)}function B(h,v,Q){return aa(v,Q)}function H(h,v,Q){return aa(h,v,Q)}function aa(h,v,Q){h&&(Wf=!0);h=pc(Q);Q=Lf();t(Q);sa(Q,v,h);return Q}function sa(h,v,Q){if(pc(document.cookie))for(var ma=0,hb=Vg;ma<hb.length;ma++)(0,hb[ma])(h,Wf,v,Q)}function Ja(h){Vg.push(h)}function Ua(h){Cf&&O(Cf);Cf=Oa(fb,ud(h)-ld())}function fb(){var h=document.cookie;if(ud(h)<=ld()&&Ta()){var v="t"+(ld()-ud(h)),Q=pc(h),ma=Lf();t(ma,h);sa(ma,v,Q);return!0}Ub(Ua);
509
- return!1}function Kb(h){Gc("rxvt",h,void 0,ua("ssc"));zb("rxvt",h)}function yb(h,v){(v=K(h,v))||(v=lb(h)||"");return v}function gc(){var h=Od()||"";zb("rxvisitid",h);h=yb("rxvt");Kb(h);ac()}function Uc(h){var v={Cd:0,Ic:0};if(h=yb("rxvt",h))try{var Q=h.split("|");2===Q.length&&(v.Cd=parseInt(Q[0],10),v.Ic=parseInt(Q[1],10))}catch(ma){}return v}function ud(h){h=Uc(h);return Math.min(h.Cd,h.Ic+de)}function Vc(h){Ug=h}function Cd(){var h=Wf;Wf=!1;return h}function Ee(){fb()||me(!1)}function Td(){var h=
510
- K("rxVisitor");h&&45===(null===h||void 0===h?void 0:h.length)||(h=Fc("rxVisitor")||lb("rxVisitor"),45!==(null===h||void 0===h?void 0:h.length)&&(li=!0,h=String(ld()),h+=qe(45-h.length)));md(h);return h}function md(h){if(ua("dpvc")||ua("pVO"))zb("rxVisitor",h);else{var v=new Date;var Q=v.getMonth()+Math.min(24,Math.max(1,Ya("rvcl")));v.setMonth(Q);R(wc,["rxVisitor",h])}Gc("rxVisitor",h,v,ua("ssc"))}function Le(){return li}function Ni(h){var v=K("rxVisitor");Bc("rxVisitor");mb("rxVisitor");Lc("rxVisitor");
511
- vb("pVO",!0);md(v);h&&R(wc,["dt-pVO","1"]);gc()}function Mf(){Lc("dt-pVO");ua("pVO")&&(vb("pVO",!1),Td());mb("rxVisitor");gc()}function ne(h,v,Q,ma,hb){var Nb=document.createElement("script");Nb.setAttribute("src",h);v&&Nb.setAttribute("defer","defer");Q&&(Nb.onload=Q);ma&&(Nb.onerror=ma);hb&&Nb.setAttribute("id",hb);Nb.setAttribute("crossorigin","anonymous");h=document.getElementsByTagName("script")[0];h.parentElement.insertBefore(Nb,h)}function ff(h,v){return yh+"/"+(v||qf)+"_"+h+"_"+(Ya("buildNumber")||
512
- u.dT_.version)+".js"}function kg(){var h,v;try{null===(v=null===(h=u.MobileAgent)||void 0===h?void 0:h.incrementActionCount)||void 0===v?void 0:v.call(h)}catch(Q){}}function hh(h,v){void 0===v&&(v=[]);if(!h||"object"!==typeof h&&"function"!==typeof h)return!1;var Q="number"!==typeof v?v:[],ma=null,hb=[];switch("number"===typeof v?v:5){case 0:ma="Array";hb.push("push");break;case 1:ma="Boolean";break;case 2:ma="Number";break;case 3:ma="String";break;case 4:ma="Function";break;case 5:ma="Object";break;
513
- case 6:ma="Date";hb.push("getTime");break;case 7:ma="Error";hb.push("name","message");break;case 8:ma="Element";break;case 9:ma="HTMLElement";break;case 10:ma="HTMLImageElement";hb.push("complete");break;case 11:ma="PerformanceEntry";break;case 12:ma="PerformanceTiming";break;case 13:ma="PerformanceResourceTiming";break;case 14:ma="PerformanceNavigationTiming";break;case 15:ma="CSSRule";hb.push("cssText","parentStyleSheet");break;case 16:ma="CSSStyleSheet";hb.push("cssRules","insertRule");break;case 17:ma=
514
- "Request";hb.push("url");break;case 18:ma="Response";hb.push("ok","status","statusText");break;case 19:ma="Set";hb.push("add","entries","forEach");break;case 20:ma="Map";hb.push("set","entries","forEach");break;case 21:ma="Worker";hb.push("addEventListener","postMessage","terminate");break;case 22:ma="XMLHttpRequest";hb.push("open","send","setRequestHeader");break;case 23:ma="SVGScriptElement";hb.push("ownerSVGElement","type");break;case 24:ma="HTMLMetaElement";hb.push("httpEquiv","content","name");
515
- break;case 25:ma="HTMLHeadElement";break;case 26:ma="ArrayBuffer";break;case 27:ma="ShadowRoot",hb.push("host","mode")}v=ma;if(!v)return!1;hb=hb.length?hb:Q;if(!Q.length)try{if(u[v]&&h instanceof u[v]||Object.prototype.toString.call(h)==="[object "+v+"]")return!0}catch(Nb){}for(Q=0;Q<hb.length;Q++)if(v=hb[Q],"string"!==typeof v&&"number"!==typeof v&&"symbol"!==typeof v||!(v in h))return!1;return!!hb.length}function Nf(){var h,v=u.dT_;u.dT_=(h={},h.di=0,h.version="10225210921130928",h.cfg=v?v.cfg:"",h.iCE=
516
- v?v.iCE:function(){return navigator.cookieEnabled},h.ica=1,h.disabled=!1,h.overloadPrevention=!1,h.mp=eb,h.mtp=Eb,h.mi=nb,h.mw=X,h.gAST=q,h.ww=J,h.stu=ja,h.nw=Na,h.apush=Y,h.st=Oa,h.si=Va,h.aBPSL=na,h.rBPSL=pa,h.gBPSL=Pa,h.aBPSCC=C,h.gBPSCC=x,h.buildType="dynatrace",h.gSSV=lb,h.sSSV=zb,h.rSSV=mb,h.rvl=Lc,h.pn=sb,h.iVSC=Sb,h.p3SC=ic,h.pLSC=dc,h.io=Aa,h.dC=Bc,h.sC=Gc,h.esc=va,h.gSId=je,h.gDtc=xd,h.gSC=uc,h.sSC=cd,h.gC=xb,h.cRN=Ce,h.cRS=qe,h.gEL=ib,h.gEBTN=ub,h.cfgO=Pc,h.pCfg=tc,h.pCSAA=ec,h.cFHFAU=
517
- Oc,h.sCD=Kc,h.bcv=ua,h.ncv=Ya,h.scv=Sa,h.stcv=vb,h.rplC=Rb,h.cLSCK=bb,h.gFId=Ld,h.gBAU=ff,h.iS=ne,h.eWE=Ub,h.oEIE=Cc,h.oEIEWA=R,h.eA=od,h.dA=Ze,h.iNV=Le,h.gVID=Td,h.dPV=Ni,h.ePV=Mf,h.sVIdUP=qd,h.sVTT=Vc,h.sVID=t,h.rVID=Od,h.gVI=ke,h.gNVIdN=H,h.gNVId=B,h.gARnVF=Cd,h.cAUV=Ee,h.uVT=me,h.aNVL=Ja,h.gPC=De,h.cPC=ce,h.sPC=fe,h.clB=Z,h.ct=O,h.aRI=Fb,h.iXB=Mb,h.gXBR=Ha,h.sXBR=kb,h.de=Da,h.cCL=Wa,h.iEC=kg,h.rnw=xa,h.gto=Qa,h.ael=ha,h.rel=ta,h.sup=Ma,h.cuel=y,h.iAEPOO=Ta,h.iSM=Ra,h.aIOf=Ke,h.gxwp=la,h.iIO=hh,
518
- h.prm=V,h.cI=T,h.gidi=P,h.iDCV=gb,h.gCF=K,h)}function G(){Ub(function(){if(!xd()){var h=-1*Ce(2,99),v=qe(32),Q=Ya("ssv");cd(4===Q?"v_4_srv_"+String(h).replace("-","-2D")+"_sn_"+v:3===Q?"=3=srv="+h+"=sn="+v:h+"$"+v)}})}var u="undefined"!==typeof window?window:self,I,Ga,ab=setTimeout;Ia.prototype["catch"]=function(h){return this.then(null,h)};Ia.prototype.then=function(h,v){var Q=new this.constructor(ra);Ca(this,new Ba(h,v,Q));return Q};Ia.prototype["finally"]=function(h){var v=this.constructor;return this.then(function(Q){return v.resolve(h()).then(function(){return Q})},
519
- function(Q){return v.resolve(h()).then(function(){return v.reject(Q)})})};Ia.all=function(h){return new Ia(function(v,Q){function ma(kc,$c){try{if($c&&("object"===typeof $c||"function"===typeof $c)){var jd=$c.then;if("function"===typeof jd){jd.call($c,function(id){ma(kc,id)},Q);return}}hb[kc]=$c;0===--Nb&&v(hb)}catch(id){Q(id)}}if(!h||"undefined"===typeof h.length)return Q(new TypeError("Promise.all accepts an array"));var hb=Array.prototype.slice.call(h);if(0===hb.length)return v([]);for(var Nb=
520
- hb.length,mc=0;mc<hb.length;mc++)ma(mc,hb[mc])})};Ia.allSettled=function(h){return new this(function(v,Q){function ma(mc,kc){if(kc&&("object"===typeof kc||"function"===typeof kc)){var $c=kc.then;if("function"===typeof $c){$c.call(kc,function(jd){ma(mc,jd)},function(jd){hb[mc]={status:"rejected",reason:jd};0===--Nb&&v(hb)});return}}hb[mc]={status:"fulfilled",value:kc};0===--Nb&&v(hb)}if(!h||"undefined"===typeof h.length)return Q(new TypeError(typeof h+" "+h+" is not iterable(cannot read property Symbol(Symbol.iterator))"));
521
- var hb=Array.prototype.slice.call(h);if(0===hb.length)return v([]);var Nb=hb.length;for(Q=0;Q<hb.length;Q++)ma(Q,hb[Q])})};Ia.resolve=function(h){return h&&"object"===typeof h&&h.constructor===Ia?h:new Ia(function(v){v(h)})};Ia.reject=function(h){return new Ia(function(v,Q){Q(h)})};Ia.race=function(h){return new Ia(function(v,Q){if(!h||"undefined"===typeof h.length)return Q(new TypeError("Promise.race accepts an array"));for(var ma=0,hb=h.length;ma<hb;ma++)Ia.resolve(h[ma]).then(v,Q)})};Ia.Ba="function"===
522
- typeof setImmediate&&function(h){setImmediate(h)}||function(h){ab(h,0)};Ia.eb=function(h){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",h)};var Ab=Ia,Ib,Wb,Xb,cc,vc=u.attachEvent,vd=u.Worker,Bd=vd&&vd.prototype.addEventListener,hd=[],bd=["touchstart","touchend","scroll"],Pd,xf,ze="abort getAllResponseHeaders getResponseHeader open overrideMimeType send setRequestHeader".split(" "),Yc,yf={"!":"%21","~":"%7E","*":"%2A","(":"%28",")":"%29","'":"%27",$:"%24",
523
- ";":"%3B",",":"%2C"},Qe,Zc=u.postMessage,$d=u.Worker&&u.Worker.prototype.postMessage,df=u.parent.postMessage,Qd=u.top.postMessage,Ye=u.Worker,ue=u.Blob,td=u.URL&&u.URL.createObjectURL,le,wg,Kf,Ie,zf=!1,nf,vh=[],Uf=[],wh,be,ie={},ld,Cg,Dg={},jg,rf,of=(rf={},rf.l="Lax",rf.s="Strict",rf.n="None",rf),Ec={},Je=!1,ve=[],Xd=[],Af=[],Re,Ph,Nd,Eg=6E8,Vf=[],xh=[],pf=!1,Bf=/([A-Z]+)-([0-9]+)/,Vg=[],Ug,de,Wf=!1,Cf,li=!1,mi,yh,qf;(function(h){var v,Q;h=h||0>(null===(v=navigator.userAgent)||void 0===v?void 0:v.indexOf("RuxitSynthetic"));
524
- if(!u.dT_||!u.dT_.cfg||"string"!==typeof u.dT_.cfg||"initialized"in u.dT_&&u.dT_.initialized)null===(Q=u.console)||void 0===Q?void 0:Q.log("InitConfig not found or agent already initialized! This is an injection issue."),u.dT_&&(u.dT_.di=3);else if(h)try{var ma,hb=u.dT_;V();var Nb;Pd=u.XMLHttpRequest;xf=u.ActiveXObject;var mc=null===(Nb=u.XMLHttpRequest)||void 0===Nb?void 0:Nb.prototype;if(mc)for(Yc={},v=0,Q=ze;v<Q.length;v++){var kc=Q[v];void 0!==mc[kc]&&(Yc[kc]=mc[kc])}Ib=u.addEventListener;Wb=
525
- u.removeEventListener;Xb=u.document.addEventListener;cc=u.document.removeEventListener;Kf=u.setTimeout;Ie=u.setInterval;zf||(le=u.clearTimeout,wg=u.clearInterval);var $c=hb.iCE?hb.iCE():navigator.cookieEnabled,jd=1===ic(K("dtAdkSettings")||(null===(ma=be)||void 0===ma?void 0:ma.getItem("dtAdkSettings"))||"").Ga;Wa();if(!(!$c||jd?0:"complete"!==document.readyState||u.performance&&u.performance.timing))throw Error("Error during initCode initialization");Nf();try{be=u.localStorage}catch(Xf){}L();wh=
526
- ld();nf=[];Uf=[];ie={};if(!zf){u.clearTimeout=F(le);u.clearInterval=F(wg);zf=!0;try{Qe=u.sessionStorage}catch(Xf){}}var id=Math.random(),$e=Math.random();Ph=0!==id&&0!==$e&&id!==$e;if(-1!==Aa(navigator.userAgent,"Googlebot")){var ge=performance.getEntriesByType("navigation")[0];ma=1;if(ge){for(var Fg in ge){var Me=ge[Fg];"number"===typeof Me&&Me&&(ma=1===ma?Me:ma+Me)}var Of=Math.floor(1E4*ma)}else Of=ma;Re=we(Of)}else Ph?Re=Math.random:Re=we(ld());Nd=wh%Eg+"_"+sb(Ce(0,1E3)+"");var za;jg=(za={},za.ade=
527
- "",za.aew=!0,za.agentLocation="",za.agentUri="",za.uana="data-dtname,data-dtName",za.app="",za.async=!1,za.ase=!1,za.auto=!1,za.bp1=!1,za.bp2=!1,za.bp=1,za.bs=!1,za.buildNumber=0,za.csprv=!0,za.cepl=16E3,za.cls=!0,za.ccNcss=!1,za.cg=!1,za.coo=!1,za.cooO=!1,za.cssm="0",za.cors=!1,za.csu="",za.cuc="",za.cux=!1,za.dataDtConfig="",za.debugName="",za.dvl=500,za.dASXH=!1,za.disableCookieManager=!1,za.disableLogging=!1,za.dmo=!1,za.doel=!1,za.dpch=!1,za.dpvc=!1,za.disableXhrFailures=!1,za.domain="",za.domainOverride=
528
- "",za.doNotDetect="",za.ds=!0,za.dsndb=!1,za.dsss=!1,za.dssv=!0,za.eni=!0,za.euf=!1,za.evl="",za.extblacklist="",za.exteventsoff=!1,za.fau=!0,za.fa=!1,za.featureHash="",za.ffi=!1,za.hvt=216E5,za.lastModification=0,za.lupr=!0,za.imm=!1,za.iqvn=!1,za.initializedModules="",za.ign="",za.instr="",za.iub="",za.lab=!1,za.legacy=!1,za.lt=!0,za.mb="",za.md="",za.mdp="",za.mdl="",za.mdn=5E3,za.bismepl=2E3,za.mel=200,za.mepp=10,za.moa=30,za.mrt=3,za.mpl=1024,za.mmds=2E4,za.msl=3E4,za.mhl=4E3,za.ncw=!1,za.ntd=
529
- !1,za.oat=180,za.ote=!1,za.owasp=!1,za.perfbv=1,za.prfSmpl=0,za.pcl=20,za.pt=!0,za.pui=!1,za.pVO=!1,za.raxeh=!0,za.rdnt=0,za.reportUrl="dynaTraceMonitor",za.restoreTimeline=!1,za.rid="",za.ridPath="",za.rpid="",za.rcdec=12096E5,za.rt=1E4,za.rtl=0,za.rtp=2,za.rtt=1E3,za.rtu=200,za.rvcl=24,za.sl=100,za.spc="",za.srbbv=1,za.srbw=!0,za.srad=!0,za.srmr=100,za.srms="1,1,,,",za.srsr=1E5,za.srtbv=3,za.srtd=1,za.srtr=500,za.srvr="",za.srvi=0,za.srwo=!1,za.srre="",za.ssc=!1,za.st=3E3,za.svNB=!1,za.syntheticConfig=
530
- !1,za.tal=0,za.tp="500,50,3",za.tt=100,za.tvc=3E3,za.uam=!1,za.uxdce=!1,za.uxdcw=1500,za.uxrgce=!0,za.uxrgcm="100,25,300,3;100,25,300,3",za.usrvd=!0,za.vcfi=!0,za.vcit=1E3,za.vct=50,za.vcx=50,za.vncm=1,za.xb="",za.chw="",za.xt=0,za.srcss=!0,za.srmcrl=1,za.srmcrv=10,za.ssv=1,za.nosr=!0,za.bisaoi=!1,za.bisCmE="",za.mcepsl=100,za.erjdw=!0,za.fvdi=!1,za.srif=!1,za.vscl=0,za.dsa=!1,za.exp=!1,za.vrt=!1,za.peti=!1,za.expw=!1,za.earxa=!0,za.srxcss=!0,za.srxicss=!0,za.srmrc=!1,za.srsdom=!1,za);a:{var Dd=u.dT_.cfg;
531
- Ec={reportUrl:"dynaTraceMonitor",initializedModules:"",csu:"dtagent",dataDtConfig:"string"===typeof Dd?Dd:""};u.dT_.cfg=Ec;Ec.csu="ruxitagentjs";var Ne=Ec.dataDtConfig;Ne&&-1===Aa(Ne,"#CONFIGSTRING")&&(ec(Ne,Ec),jc("domain"),jc("auto"),jc("app"),Oc(Ec));var Pf=ub("script"),Yf=ib(Pf),re=-1===Aa(Ec.dataDtConfig||"","#CONFIGSTRING")?Ec:null;if(0<Yf)for(Of=0;Of<Yf;Of++)b:{ge=void 0;var lg=Pf[Of];Fg=re;if(lg.attributes){var ni=Ec.csu+"_bootstrap.js";Me=/.*\/jstag\/.*\/.*\/(.*)_bs(_dbg)?.js$/;za=Fg;var Se=
532
- lg.src,oi=null===Se||void 0===Se?void 0:Se.indexOf(ni),Oi=lg.attributes.getNamedItem("data-dtconfig");if(Oi){Dd=void 0;Ne=Se;var ej=Oi.value;ma={};Ec.legacy="1";hb=/([a-zA-Z]*)_([a-zA-Z_0-9]*)_([0-9]+)/g;Ne&&(Dd=hb.exec(Ne),null===Dd||void 0===Dd?0:Dd.length)&&(ma.csu=Dd[1],ma.featureHash=Dd[2],ma.agentLocation=Ne.substr(0,Aa(Ne,Dd[1])-1),ma.buildNumber=Dd[3]);if(ej){ec(ej,ma,!0);var af=ma.agentUri;!Ne&&af&&(Dd=hb.exec(af),null===Dd||void 0===Dd?0:Dd.length)&&(ma.csu=Dd[1])}yc(ma);ge=ma;if(!Fg)za=
533
- ge;else if(!ge.syntheticConfig){re=ge;break b}}ge||(ge=Ec);if(0<oi){var ih=oi+ni.length+5;ge.app=Se.length>ih?Se.substr(ih):"Default%20Application"}else if(Se){var Qh=Me.exec(Se);Qh&&(ge.app=Qh[1])}re=za}else re=Fg}if(re)for(var Wg in re)re.hasOwnProperty(Wg)&&(Pf=Wg,Ec[Pf]=re[Pf]);var gf=bb();try{var Hd=(re=be)&&re.getItem(gf);if(Hd){var Gg=tc(Hd),yd=ec(Gg.config||""),sf=Ec.lastModification||"0",Df=sb((yd.lastModification||Gg.lastModification||"0").substr(0,13)),Zf="string"===typeof sf?sb(sf.substr(0,
534
- 13)):sf;if(!sf||Df>=Zf)if(yd.csu=Gg.name,yd.featureHash=Gg.featureHash,yd.agentUri&&Oc(yd),Kc(yd,!0),Mb(yd),Fb(yd),Df>(Ec.lastModification||0)){var Fe=Ec.auto,$f=Ec.legacy;Ec=Rb(yd);Ec.auto=Fe;Ec.legacy=$f}}}catch(Xf){}Kc(Ec);try{var Pi=Ec.ign;if(Pi&&(new RegExp(Pi)).test(u.location.href)){document.dT_=u.dT_=void 0;var se=!1;break a}}catch(Xf){}if(Ra()){var Qf=navigator.userAgent,zh=Aa(Qf,"RuxitSynthetic")+14+5,jh=Qf.substring(zh);if(-1!==Aa(jh," c")){gf=0;for(var Rh=jh.split(" ");gf<Rh.length;gf++){var Xg=
535
- Rh[gf];if("c"===Xg.charAt(0)){var kh=Xg.substr(1),pi=kh.indexOf("="),Dc=kh.substring(0,pi),mg=kh.substring(pi+1);Dc&&mg&&(Dg[Dc]=mg)}}}Rb(Ec)}se=!0}if(!se)throw Error("Error during config initialization");ef();try{mi=u.dT_.disabled||!!lb("dtDisabled")}catch(Xf){}var he;if(!(he=Sa("agentLocation")))a:{var zd=Sa("agentUri");if(zd||document.currentScript){var fd=zd||document.currentScript.src;if(fd){se=fd;var Hg=-1===Aa(se,"_bs")&&-1===Aa(se,"_bootstrap")&&-1===Aa(se,"_complete")?1:2,Oe=fd.lastIndexOf("/");
536
- for(se=0;se<Hg&&-1!==Oe;se++)fd=fd.substr(0,Oe),Oe=fd.lastIndexOf("/");he=fd;break a}}var Ig=location.pathname;he=Ig.substr(0,Ig.lastIndexOf("/"))}yh=he;qf=Sa("csu")||"ruxitagentjs";"true"===K("dtUseDebugAgent")&&0>qf.indexOf("dbg")&&(qf=Sa("debugName")||qf+"dbg");if(!ua("auto")&&!ua("legacy")&&!mi){var Ed=Sa("agentUri")||ff(Sa("featureHash")),qi;if(!(qi=ua("async")||"complete"===document.readyState)){var ri=u.navigator.userAgent,Sh=ri.indexOf("MSIE ");qi=0<Sh?9>=parseInt(ri.substring(Sh+5,ri.indexOf(".",
537
- Sh)),10):!1}qi?ne(Ed,ua("async"),void 0,void 0,"dtjsagent"):(document.write('<script id="dtjsagentdw" type="text/javascript" src="'+Ed+'">\x3c/script>'),document.getElementById("dtjsagentdw")||ne(Ed,ua("async"),void 0,void 0,"dtjsagent"))}K("dtCookie")&&vb("cooO",!0);G();vb("pVO",!!Fc("dt-pVO"));Ub(Td);Ug=18E5;de=Ya("hvt")||216E5;R(ce,[1]);xh=[];Vf="dtCookie dtLatC rxvt dtAdk dtAdkSettings dtPC".split(" ");if(ua("cg"))try{pd(Object.getOwnPropertyDescriptor(Document.prototype,"cookie")||Object.getOwnPropertyDescriptor(HTMLDocument.prototype,
538
- "cookie"))}catch(Xf){}}catch(Xf){try{delete u.dT_}catch(Qk){u.dT_=void 0}Wa()&&u.console.log("JsAgent initCode initialization failed!")}})(!1)})()})();
539
- `}</script>
540
- )}
74
+ {/* Lang */}
75
+ <html lang={locale} />
541
76
  </Helmet>
542
77
  );
543
78
  }
544
-
545
- export default SEO;
@@ -1,14 +1,12 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import Seo from './seo';
3
- import { core, providers, components, templates } from 'components';
3
+ import { core, components, templates } from 'components';
4
4
 
5
5
  const { Page } = core;
6
- const { PageProvider } = providers;
7
6
 
8
7
  export default data => {
9
8
  const {
10
9
  page: content,
11
- slug,
12
10
  locale,
13
11
  pageMetadata,
14
12
  openGraph,
@@ -16,8 +14,7 @@ export default data => {
16
14
  footer,
17
15
  siteMetadata,
18
16
  componentsVersion,
19
- isIE,
20
- isGARRIGUES,
17
+ showBasicMetaRobots,
21
18
  } = data.pageContext;
22
19
 
23
20
  const library = {
@@ -26,7 +23,7 @@ export default data => {
26
23
  };
27
24
 
28
25
  return (
29
- <PageProvider name={pageMetadata.title} slug={slug}>
26
+ <>
30
27
  {/* PAGE SEO */}
31
28
  <Seo
32
29
  siteMetadata={siteMetadata}
@@ -38,8 +35,7 @@ export default data => {
38
35
  fullPath={content.fullPath}
39
36
  fullUrl={content.fullUrl}
40
37
  componentsVersion={componentsVersion}
41
- isIE={isIE}
42
- isGARRIGUES={isGARRIGUES}
38
+ showBasicMetaRobots={showBasicMetaRobots}
43
39
  />
44
40
 
45
41
  {/* PAGE CONTENT */}
@@ -52,6 +48,6 @@ export default data => {
52
48
  languageId={content.language}
53
49
  pageLanguages={content.pageLanguages}
54
50
  />
55
- </PageProvider>
51
+ </>
56
52
  );
57
53
  };
package/src/html.js CHANGED
@@ -1,7 +1,6 @@
1
- import React from "react"
1
+ import * as React from 'react';
2
2
 
3
3
  export default function HTML(props) {
4
-
5
4
  return (
6
5
  <html {...props.htmlAttributes}>
7
6
  <head>
@@ -11,10 +10,9 @@ export default function HTML(props) {
11
10
  name="viewport"
12
11
  content="width=device-width, initial-scale=1, shrink-to-fit=no"
13
12
  />
14
-
15
13
  {props.headComponents}
16
14
  </head>
17
- <body {...props.bodyAttributes} id="iesite">
15
+ <body {...props.bodyAttributes}>
18
16
  {props.preBodyComponents}
19
17
  <noscript key="noscript" id="gatsby-noscript">
20
18
  This app works best with JavaScript enabled.
@@ -28,6 +26,5 @@ export default function HTML(props) {
28
26
  {props.postBodyComponents}
29
27
  </body>
30
28
  </html>
31
- )
29
+ );
32
30
  }
33
-
@@ -39,6 +39,7 @@ const getPageMetaData = (params) => {
39
39
  metasAdvanced,
40
40
  pageLanguages,
41
41
  fullUrl,
42
+ noTranslate
42
43
  } = params;
43
44
 
44
45
  return {
@@ -49,6 +50,7 @@ const getPageMetaData = (params) => {
49
50
  url,
50
51
  index: isIndexed ? 'index' : 'noindex',
51
52
  follow: follow ? 'follow' : 'nofollow',
53
+ notranslate: noTranslate ? 'notranslate' : 'translate',
52
54
  metasAdvanced,
53
55
  pageLanguages,
54
56
  };
@@ -16,9 +16,8 @@ async function renderSinglePage(page, additionalInfo, createPage) {
16
16
  navigations: { header, footer },
17
17
  cloudinaryName,
18
18
  componentsVersion,
19
+ showBasicMetaRobots,
19
20
  BUILD_MODE,
20
- isIE,
21
- isGARRIGUES,
22
21
  sitePages,
23
22
  } = additionalInfo;
24
23
 
@@ -65,8 +64,7 @@ async function renderSinglePage(page, additionalInfo, createPage) {
65
64
  cloudinaryName,
66
65
  BUILD_MODE,
67
66
  componentsVersion,
68
- isIE,
69
- isGARRIGUES,
67
+ showBasicMetaRobots,
70
68
  sitePages,
71
69
 
72
70
  // NAVIGATION SECTIONS
@@ -119,32 +119,49 @@ const generateSitemaps = async sites => {
119
119
  for (const lang of languages) {
120
120
  AuthService.headers['lang'] = lang.id;
121
121
  const response = await SitesService.getSiteMap(siteID);
122
- const sitemapPages = response.items;
123
- if (!sitemapPages.length) continue;
124
-
125
- const siteMap = js2xmlparser.parse('urlset', {
126
- '@': {
127
- xmlns: 'http://www.sitemaps.org/schemas/sitemap/0.9',
128
- 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
129
- 'xsi:schemaLocation':
130
- 'http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd',
122
+ const {
123
+ items: sitemapPagesGroup,
124
+ url:{
125
+ home,
131
126
  },
132
- url: sitemapPages,
133
- });
134
-
127
+ } = response;
135
128
  const langDomain = site.domains.find(
136
129
  domain => Object.keys(domain)[0] == lang.id
137
130
  );
138
-
139
131
  const slug = Object.values(langDomain)[0];
140
-
132
+ const sitemaps = [];
133
+ for (const templateId of Object.keys(sitemapPagesGroup)) {
134
+ const sitemapPages = sitemapPagesGroup[templateId];
135
+ if (!sitemapPages.length) continue;
136
+ const siteMap = js2xmlparser.parse('urlset', {
137
+ '@': {
138
+ xmlns: 'http://www.sitemaps.org/schemas/sitemap/0.9',
139
+ 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
140
+ 'xsi:schemaLocation':
141
+ 'http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd',
142
+ },
143
+ url: sitemapPages,
144
+ });
145
+ const sitemapName = `/sitemap-${templateId.toLowerCase()}.xml`;
146
+ const exactPath = path.resolve(
147
+ __dirname,
148
+ `../../public/${slug}${sitemapName}`
149
+ );
150
+ helpers.log('info', `sitemap exact path ${exactPath}`);
151
+ await saveFile(exactPath, siteMap);
152
+ sitemaps.push(`${home}${sitemapName}`);
153
+ }
154
+ if (!sitemaps.length) continue;
155
+ const siteMap = js2xmlparser.parse('sitemapindex', {
156
+ '@': {
157
+ xmlns: 'http://www.sitemaps.org/schemas/sitemap/0.9',
158
+ },
159
+ sitemap: sitemaps.map(loc=>({loc})),
160
+ });
141
161
  const exactPath = path.resolve(
142
162
  __dirname,
143
163
  `../../public/${slug}/sitemap.xml`
144
164
  );
145
-
146
- helpers.log('info', `sitemap exact path ${exactPath}`);
147
-
148
165
  await saveFile(exactPath, siteMap);
149
166
  }
150
167
  }