@commercetools-frontend/cookie-consent 2.1.9 → 2.2.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.
@@ -33,6 +33,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/find');
33
33
  require('@babel/runtime-corejs3/core-js-stable/object/from-entries');
34
34
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
35
35
  require('@babel/runtime-corejs3/core-js-stable/url-search-params');
36
+ require('@babel/runtime-corejs3/core-js-stable/instance/concat');
36
37
 
37
38
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
38
39
 
@@ -111,15 +112,15 @@ const modalMessages = reactIntl.defineMessages({
111
112
  description: 'Header for first collapsible content block',
112
113
  defaultMessage: 'Strictly necessary cookies'
113
114
  },
114
- necessaryCookiesDescription: {
115
- id: 'CookieConsentModal.primary.necessaryCookiesDescription',
116
- description: 'Description of content from first collapsible header',
117
- defaultMessage: 'These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.'
115
+ functionalCookiesHeader: {
116
+ id: 'CookieConsentModal.primary.functionalCookiesHeader',
117
+ description: 'Header for first collapsible content block',
118
+ defaultMessage: 'Functional cookies'
118
119
  },
119
- necessaryCookiesHeaderState: {
120
- id: 'CookieConsentModal.primary.necessaryCookiesHeaderState',
121
- description: 'State of the cookies described in the header',
122
- defaultMessage: 'Always active'
120
+ functionalCookiesDescription: {
121
+ id: 'CookieConsentModal.primary.functionalCookiesDescription',
122
+ description: 'Description of content from first collapsible header',
123
+ defaultMessage: 'These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.'
123
124
  },
124
125
  performanceCookiesHeader: {
125
126
  id: 'CookieConsentModal.primary.performanceCookiesHeader',
@@ -210,6 +211,11 @@ const cookieDetailValues = reactIntl.defineMessages({
210
211
  description: 'Type of cookie',
211
212
  defaultMessage: 'Strictly Necessary Cookies'
212
213
  },
214
+ categoryFunctional: {
215
+ id: 'CookieConsentModal.cookieDetails.categoryFunctional',
216
+ description: 'Type of cookie',
217
+ defaultMessage: 'Functional Cookies'
218
+ },
213
219
  categoryPerformance: {
214
220
  id: 'CookieConsentModal.cookieDetails.categoryPerformance',
215
221
  description: 'Type of cookie',
@@ -217,20 +223,10 @@ const cookieDetailValues = reactIntl.defineMessages({
217
223
  }
218
224
  });
219
225
  const cookieDetailDescriptions = reactIntl.defineMessages({
220
- essentialCookieDescription1: {
221
- id: 'CookieConsentModal.cookieDetails.essentialCookieDescription1',
226
+ functionalCookieDescription1: {
227
+ id: 'CookieConsentModal.cookieDetails.functionalCookieDescription1',
222
228
  description: 'Description of cookie',
223
- defaultMessage: 'Identifier for each unique device that interacts with Intercom. It is refreshed on each successful ping, extending it another 9 months. Set by Intercom Messenger within the commercetools Merchant Center.'
224
- },
225
- essentialCookieDescription2: {
226
- id: 'CookieConsentModal.cookieDetails.essentialCookieDescription2',
227
- description: 'Description of cookie',
228
- defaultMessage: 'Anonymous visitor identifier cookie. Set by Intercom Messenger within the commercetools Merchant Center.'
229
- },
230
- essentialCookieDescription3: {
231
- id: 'CookieConsentModal.cookieDetails.essentialCookieDescription3',
232
- description: 'Description of cookie',
233
- defaultMessage: 'Identifier for each unique browser session. This session cookie is refreshed on each successfully logged-in ping, extending it one week from this moment. Set by Intercom Messenger within the commercetools Merchant Center.'
229
+ defaultMessage: 'Set by UserGuiding (Merchant Center). As per UserGuiding Cookie Policy: This cookie contains pages the user has seen. Its purpose is to improve the user guidance experience, like showing guides only once for each user, segmenting based on page view history, etc.'
234
230
  },
235
231
  performanceCookieDescription1: {
236
232
  id: 'CookieConsentModal.cookieDetails.performanceCookieDescription1',
@@ -251,20 +247,26 @@ const cookieDetailDescriptions = reactIntl.defineMessages({
251
247
  id: 'CookieConsentModal.cookieDetails.performanceCookieDescription4',
252
248
  description: 'Description of cookie',
253
249
  defaultMessage: "The 'fs_uid' cookie can be thought of as the capture cookie. When an end-user visits a customer's site, that cookie is used to track the user across sessions and pages. The same user may visit a site multiple times and may navigate to many pages within a single session. This cookie ensures that all captured session traffic is associated with one user. A session cannot be captured without this cookie and the users anonymized visit will not be logged. Set by FullStory within the commercetools Merchant Center."
250
+ },
251
+ performanceCookieDescription5: {
252
+ id: 'CookieConsentModal.cookieDetails.performanceCookieDescription5',
253
+ description: 'Description of cookie',
254
+ defaultMessage: "Set by UserGuiding (Merchant Center). As per UserGuiding Cookie Policy: This cookie is for storing in the current browser a long living random unique id, which is created at first load of the UserGuiding snippet. This ID is created randomly based on the timestamp of the first visit and does not relate to the user’s personal information including IP. The stated purpose of the cookie is to track UserGuiding users' monthly active user quota, storing users' usage history to UserGuiding databases, etc."
254
255
  }
255
256
  });
256
257
 
257
258
  const COOKIE_CONSENT_LINKS = {
258
- PRIVACY_POLICY: 'https://commercetools.com/privacy#website'
259
+ PRIVACY_POLICY: 'https://commercetools.com/privacy#website',
260
+ USER_GUIDING_COOKIE_POLICY: 'https://userguiding.com/cookie-policy/'
259
261
  };
260
262
 
261
263
  const HOSTNAME = 'commercetools.com';
262
- const createCookieLink = cookieName => `https://cookiepedia.co.uk/cookies/${cookieName}`;
263
- const createEssentialCookieDetails = intl => [{
264
+ const createCookieLink = cookieName => "https://cookiepedia.co.uk/cookies/".concat(cookieName);
265
+ const createFunctionalCookieDetails = intl => [{
264
266
  name: {
265
267
  label: intl.formatMessage(cookieDetailLabels.nameLabel),
266
- value: 'intercom-device-id-b74wbpa8',
267
- to: createCookieLink('intercom-device-id-b74wbpa8')
268
+ value: '__ug__',
269
+ to: COOKIE_CONSENT_LINKS.USER_GUIDING_COOKIE_POLICY
268
270
  },
269
271
  host: {
270
272
  label: intl.formatMessage(cookieDetailLabels.hostLabel),
@@ -272,7 +274,7 @@ const createEssentialCookieDetails = intl => [{
272
274
  },
273
275
  duration: {
274
276
  label: intl.formatMessage(cookieDetailLabels.durationLabel),
275
- value: intl.formatMessage(cookieDetailValues.duration9Months)
277
+ value: intl.formatMessage(cookieDetailValues.durationSession)
276
278
  },
277
279
  type: {
278
280
  label: intl.formatMessage(cookieDetailLabels.typeLabel),
@@ -280,17 +282,18 @@ const createEssentialCookieDetails = intl => [{
280
282
  },
281
283
  category: {
282
284
  label: intl.formatMessage(cookieDetailLabels.categoryLabel),
283
- value: intl.formatMessage(cookieDetailValues.categoryStrictlyNecessary)
285
+ value: intl.formatMessage(cookieDetailValues.categoryFunctional)
284
286
  },
285
287
  description: {
286
288
  label: intl.formatMessage(cookieDetailLabels.descriptionLabel),
287
- value: intl.formatMessage(cookieDetailDescriptions.essentialCookieDescription1)
289
+ value: intl.formatMessage(cookieDetailDescriptions.functionalCookieDescription1)
288
290
  }
289
- }, {
291
+ }];
292
+ const createPerformanceCookieDetails = intl => [{
290
293
  name: {
291
294
  label: intl.formatMessage(cookieDetailLabels.nameLabel),
292
- value: 'intercom-id-b74wbpa8',
293
- to: createCookieLink('intercom-id-b74wbpa8')
295
+ value: '_fs_tab_id',
296
+ to: createCookieLink('_fs_tab_id')
294
297
  },
295
298
  host: {
296
299
  label: intl.formatMessage(cookieDetailLabels.hostLabel),
@@ -298,25 +301,25 @@ const createEssentialCookieDetails = intl => [{
298
301
  },
299
302
  duration: {
300
303
  label: intl.formatMessage(cookieDetailLabels.durationLabel),
301
- value: intl.formatMessage(cookieDetailValues.duration9Months)
304
+ value: intl.formatMessage(cookieDetailValues.durationSession)
302
305
  },
303
306
  type: {
304
307
  label: intl.formatMessage(cookieDetailLabels.typeLabel),
305
- value: intl.formatMessage(cookieDetailValues.typeFirstParty)
308
+ value: intl.formatMessage(cookieDetailValues.duration9Months)
306
309
  },
307
310
  category: {
308
311
  label: intl.formatMessage(cookieDetailLabels.categoryLabel),
309
- value: intl.formatMessage(cookieDetailValues.categoryStrictlyNecessary)
312
+ value: intl.formatMessage(cookieDetailValues.categoryPerformance)
310
313
  },
311
314
  description: {
312
315
  label: intl.formatMessage(cookieDetailLabels.descriptionLabel),
313
- value: intl.formatMessage(cookieDetailDescriptions.essentialCookieDescription2)
316
+ value: intl.formatMessage(cookieDetailDescriptions.performanceCookieDescription1)
314
317
  }
315
318
  }, {
316
319
  name: {
317
320
  label: intl.formatMessage(cookieDetailLabels.nameLabel),
318
- value: 'intercom-session-b74wbpa8',
319
- to: createCookieLink('intercom-session-b74wbpa8')
321
+ value: 'fs_cid',
322
+ to: createCookieLink('fs_cid')
320
323
  },
321
324
  host: {
322
325
  label: intl.formatMessage(cookieDetailLabels.hostLabel),
@@ -324,52 +327,25 @@ const createEssentialCookieDetails = intl => [{
324
327
  },
325
328
  duration: {
326
329
  label: intl.formatMessage(cookieDetailLabels.durationLabel),
327
- value: intl.formatMessage(cookieDetailValues.duration1Week)
330
+ value: intl.formatMessage(cookieDetailValues.duration1Year)
328
331
  },
329
332
  type: {
330
333
  label: intl.formatMessage(cookieDetailLabels.typeLabel),
331
334
  value: intl.formatMessage(cookieDetailValues.typeFirstParty)
332
335
  },
333
- category: {
334
- label: intl.formatMessage(cookieDetailLabels.categoryLabel),
335
- value: intl.formatMessage(cookieDetailValues.categoryStrictlyNecessary)
336
- },
337
- description: {
338
- label: intl.formatMessage(cookieDetailLabels.descriptionLabel),
339
- value: intl.formatMessage(cookieDetailDescriptions.essentialCookieDescription3)
340
- }
341
- }];
342
- const createPerformanceCookieDetails = intl => [{
343
- name: {
344
- label: intl.formatMessage(cookieDetailLabels.nameLabel),
345
- value: '_fs_tab_id',
346
- to: createCookieLink('_fs_tab_id')
347
- },
348
- host: {
349
- label: intl.formatMessage(cookieDetailLabels.hostLabel),
350
- value: HOSTNAME
351
- },
352
- duration: {
353
- label: intl.formatMessage(cookieDetailLabels.durationLabel),
354
- value: intl.formatMessage(cookieDetailValues.durationSession)
355
- },
356
- type: {
357
- label: intl.formatMessage(cookieDetailLabels.typeLabel),
358
- value: intl.formatMessage(cookieDetailValues.duration9Months)
359
- },
360
336
  category: {
361
337
  label: intl.formatMessage(cookieDetailLabels.categoryLabel),
362
338
  value: intl.formatMessage(cookieDetailValues.categoryPerformance)
363
339
  },
364
340
  description: {
365
341
  label: intl.formatMessage(cookieDetailLabels.descriptionLabel),
366
- value: intl.formatMessage(cookieDetailDescriptions.performanceCookieDescription1)
342
+ value: intl.formatMessage(cookieDetailDescriptions.performanceCookieDescription2)
367
343
  }
368
344
  }, {
369
345
  name: {
370
346
  label: intl.formatMessage(cookieDetailLabels.nameLabel),
371
- value: 'fs_cid',
372
- to: createCookieLink('fs_cid')
347
+ value: 'fs_lua',
348
+ to: createCookieLink('fs_lua')
373
349
  },
374
350
  host: {
375
351
  label: intl.formatMessage(cookieDetailLabels.hostLabel),
@@ -377,7 +353,7 @@ const createPerformanceCookieDetails = intl => [{
377
353
  },
378
354
  duration: {
379
355
  label: intl.formatMessage(cookieDetailLabels.durationLabel),
380
- value: intl.formatMessage(cookieDetailValues.duration1Year)
356
+ value: intl.formatMessage(cookieDetailValues.duration1Day)
381
357
  },
382
358
  type: {
383
359
  label: intl.formatMessage(cookieDetailLabels.typeLabel),
@@ -389,13 +365,13 @@ const createPerformanceCookieDetails = intl => [{
389
365
  },
390
366
  description: {
391
367
  label: intl.formatMessage(cookieDetailLabels.descriptionLabel),
392
- value: intl.formatMessage(cookieDetailDescriptions.performanceCookieDescription2)
368
+ value: intl.formatMessage(cookieDetailDescriptions.performanceCookieDescription3)
393
369
  }
394
370
  }, {
395
371
  name: {
396
372
  label: intl.formatMessage(cookieDetailLabels.nameLabel),
397
- value: 'fs_lua',
398
- to: createCookieLink('fs_lua')
373
+ value: 'fs_uid',
374
+ to: createCookieLink('fs_uid')
399
375
  },
400
376
  host: {
401
377
  label: intl.formatMessage(cookieDetailLabels.hostLabel),
@@ -403,7 +379,7 @@ const createPerformanceCookieDetails = intl => [{
403
379
  },
404
380
  duration: {
405
381
  label: intl.formatMessage(cookieDetailLabels.durationLabel),
406
- value: intl.formatMessage(cookieDetailValues.duration1Day)
382
+ value: intl.formatMessage(cookieDetailValues.duration9Months)
407
383
  },
408
384
  type: {
409
385
  label: intl.formatMessage(cookieDetailLabels.typeLabel),
@@ -415,13 +391,13 @@ const createPerformanceCookieDetails = intl => [{
415
391
  },
416
392
  description: {
417
393
  label: intl.formatMessage(cookieDetailLabels.descriptionLabel),
418
- value: intl.formatMessage(cookieDetailDescriptions.performanceCookieDescription3)
394
+ value: intl.formatMessage(cookieDetailDescriptions.performanceCookieDescription4)
419
395
  }
420
396
  }, {
421
397
  name: {
422
398
  label: intl.formatMessage(cookieDetailLabels.nameLabel),
423
- value: 'fs_uid',
424
- to: createCookieLink('fs_uid')
399
+ value: '__UGS__uid',
400
+ to: COOKIE_CONSENT_LINKS.USER_GUIDING_COOKIE_POLICY
425
401
  },
426
402
  host: {
427
403
  label: intl.formatMessage(cookieDetailLabels.hostLabel),
@@ -429,7 +405,7 @@ const createPerformanceCookieDetails = intl => [{
429
405
  },
430
406
  duration: {
431
407
  label: intl.formatMessage(cookieDetailLabels.durationLabel),
432
- value: intl.formatMessage(cookieDetailValues.duration9Months)
408
+ value: intl.formatMessage(cookieDetailValues.durationSession)
433
409
  },
434
410
  type: {
435
411
  label: intl.formatMessage(cookieDetailLabels.typeLabel),
@@ -441,7 +417,7 @@ const createPerformanceCookieDetails = intl => [{
441
417
  },
442
418
  description: {
443
419
  label: intl.formatMessage(cookieDetailLabels.descriptionLabel),
444
- value: intl.formatMessage(cookieDetailDescriptions.performanceCookieDescription4)
420
+ value: intl.formatMessage(cookieDetailDescriptions.performanceCookieDescription5)
445
421
  }
446
422
  }];
447
423
 
@@ -509,8 +485,10 @@ var _ref$1 = {
509
485
  styles: "padding-right:10px"
510
486
  } ;
511
487
  const CookieConsentBodyPrimary = _ref7 => {
512
- let toggleValue = _ref7.toggleValue,
513
- onToggle = _ref7.onToggle,
488
+ let togglePerformanceValue = _ref7.togglePerformanceValue,
489
+ toggleFunctionalValue = _ref7.toggleFunctionalValue,
490
+ onTogglePerformance = _ref7.onTogglePerformance,
491
+ onToggleFunctional = _ref7.onToggleFunctional,
514
492
  onChangeView = _ref7.onChangeView,
515
493
  panelState = _ref7.panelState,
516
494
  setPanelState = _ref7.setPanelState;
@@ -533,20 +511,24 @@ const CookieConsentBodyPrimary = _ref7 => {
533
511
  scale: "l",
534
512
  children: [jsxRuntime.jsx(CollapsiblePanel__default["default"], {
535
513
  condensed: true,
536
- header: formatMessage(modalMessages.necessaryCookiesHeader),
537
- headerControls: jsxRuntime.jsx(Text__default["default"].Detail, {
538
- intlMessage: modalMessages.necessaryCookiesHeaderState,
539
- tone: "information"
514
+ header: formatMessage(modalMessages.functionalCookiesHeader),
515
+ headerControls: jsxRuntime.jsx("div", {
516
+ css: bumpToggle,
517
+ children: jsxRuntime.jsx(ToggleInput__default["default"], {
518
+ isChecked: toggleFunctionalValue,
519
+ onChange: e => onToggleFunctional(e.target.checked),
520
+ size: "small"
521
+ })
540
522
  }),
541
- isClosed: panelState.essentialCookiesClosed,
523
+ isClosed: panelState.functionalCookiesClosed,
542
524
  onToggle: () => setPanelState(_objectSpread$1(_objectSpread$1({}, panelState), {}, {
543
- essentialCookiesClosed: !panelState.essentialCookiesClosed
525
+ functionalCookiesClosed: !panelState.functionalCookiesClosed
544
526
  })),
545
527
  theme: "light",
546
528
  children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
547
529
  scale: "m",
548
530
  children: [jsxRuntime.jsx(Text__default["default"].Body, {
549
- intlMessage: modalMessages.necessaryCookiesDescription
531
+ intlMessage: modalMessages.functionalCookiesDescription
550
532
  }), jsxRuntime.jsx(NavigationLink, {
551
533
  label: formatMessage(modalMessages.cookieInformationLink),
552
534
  onClick: () => onChangeView(View.Secondary)
@@ -558,8 +540,8 @@ const CookieConsentBodyPrimary = _ref7 => {
558
540
  headerControls: jsxRuntime.jsx("div", {
559
541
  css: bumpToggle,
560
542
  children: jsxRuntime.jsx(ToggleInput__default["default"], {
561
- isChecked: toggleValue,
562
- onChange: e => onToggle(e.target.checked),
543
+ isChecked: togglePerformanceValue,
544
+ onChange: e => onTogglePerformance(e.target.checked),
563
545
  size: "small"
564
546
  })
565
547
  }),
@@ -588,7 +570,8 @@ const CookieConsentBodyDetails = _ref8 => {
588
570
  formatMessage = _useIntl2.formatMessage;
589
571
  const scrollRef = /*#__PURE__*/react.createRef();
590
572
  react.useEffect(() => {
591
- scrollRef.current?.scrollIntoView();
573
+ var _scrollRef$current;
574
+ (_scrollRef$current = scrollRef.current) === null || _scrollRef$current === void 0 || _scrollRef$current.scrollIntoView();
592
575
  }, [scrollRef]);
593
576
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
594
577
  children: [jsxRuntime.jsx("div", {
@@ -606,7 +589,7 @@ const CookieConsentBodyDetails = _ref8 => {
606
589
  return jsxRuntime.jsx(Grid__default["default"], {
607
590
  gridGap: designSystem.designTokens.spacing40,
608
591
  gridRowGap: "0px",
609
- gridTemplateColumns: `${designSystem.designTokens.constraint2} 1fr`,
592
+ gridTemplateColumns: "".concat(designSystem.designTokens.constraint2, " 1fr"),
610
593
  children: _mapInstanceProperty__default["default"](_context = _Object$values__default["default"](detail)).call(_context, value => jsxRuntime.jsxs(react.Fragment, {
611
594
  children: [jsxRuntime.jsx(Grid__default["default"].Item, {
612
595
  children: jsxRuntime.jsx(Text__default["default"].Detail, {
@@ -635,19 +618,23 @@ const CookieConsentModal = modalProps => {
635
618
  _useState2 = _slicedToArray(_useState, 2),
636
619
  enablePerformanceCookies = _useState2[0],
637
620
  setEnablePerformanceCookies = _useState2[1];
638
- const _useState3 = react.useState(View.Primary),
621
+ const _useState3 = react.useState(false),
639
622
  _useState4 = _slicedToArray(_useState3, 2),
640
- currentView = _useState4[0],
641
- setCurrentView = _useState4[1];
642
- const _useState5 = react.useState({
643
- essentialCookiesClosed: true,
623
+ enableFunctionalCookies = _useState4[0],
624
+ setEnableFunctionalCookies = _useState4[1];
625
+ const _useState5 = react.useState(View.Primary),
626
+ _useState6 = _slicedToArray(_useState5, 2),
627
+ currentView = _useState6[0],
628
+ setCurrentView = _useState6[1];
629
+ const _useState7 = react.useState({
630
+ functionalCookiesClosed: true,
644
631
  performanceCookiesClosed: true
645
632
  }),
646
- _useState6 = _slicedToArray(_useState5, 2),
647
- panelState = _useState6[0],
648
- setPanelState = _useState6[1];
649
- const createConsentGroups = performanceConsent => ({
650
- essentialCookies: true,
633
+ _useState8 = _slicedToArray(_useState7, 2),
634
+ panelState = _useState8[0],
635
+ setPanelState = _useState8[1];
636
+ const createConsentGroups = (functionalConsent, performanceConsent) => ({
637
+ functionalCookies: functionalConsent,
651
638
  performanceCookies: performanceConsent
652
639
  });
653
640
  return jsxRuntime.jsxs(applicationComponents.ConfirmationDialog, {
@@ -656,25 +643,27 @@ const CookieConsentModal = modalProps => {
656
643
  labelPrimary: intl.formatMessage(modalMessages.primaryButtonLabel),
657
644
  labelSecondary: intl.formatMessage(modalMessages.secondaryButtonLabel),
658
645
  onCancel: () => {
659
- setConsent(createConsentGroups(enablePerformanceCookies));
646
+ setConsent(createConsentGroups(enableFunctionalCookies, enablePerformanceCookies));
660
647
  modalProps.setBannerClosed(true);
661
648
  modalProps.closeModal();
662
649
  },
663
650
  onClose: modalProps.closeModal,
664
651
  onConfirm: () => {
665
- setConsent(createConsentGroups(true));
652
+ setConsent(createConsentGroups(true, true));
666
653
  modalProps.setBannerClosed(true);
667
654
  modalProps.closeModal();
668
655
  },
669
656
  title: intl.formatMessage(modalMessages.title),
670
657
  children: [currentView === View.Primary && jsxRuntime.jsx(CookieConsentBodyPrimary, {
671
658
  onChangeView: view => setCurrentView(view),
672
- onToggle: value => setEnablePerformanceCookies(value),
659
+ onTogglePerformance: value => setEnablePerformanceCookies(value),
660
+ onToggleFunctional: value => setEnableFunctionalCookies(value),
673
661
  panelState: panelState,
674
662
  setPanelState: state => setPanelState(state),
675
- toggleValue: enablePerformanceCookies
663
+ togglePerformanceValue: enablePerformanceCookies,
664
+ toggleFunctionalValue: enableFunctionalCookies
676
665
  }), currentView === View.Secondary && jsxRuntime.jsx(CookieConsentBodyDetails, {
677
- cookieDetails: createEssentialCookieDetails(intl),
666
+ cookieDetails: createFunctionalCookieDetails(intl),
678
667
  onChangeView: view => setCurrentView(view)
679
668
  }), currentView === View.Tertiary && jsxRuntime.jsx(CookieConsentBodyDetails, {
680
669
  cookieDetails: createPerformanceCookieDetails(intl),
@@ -730,15 +719,15 @@ const CookieConsentBanner = bannerProps => {
730
719
  }),
731
720
  setConsent = _useCookieConsent.setConsent,
732
721
  hasGivenPerformanceCookieConsent = _useCookieConsent.givenConsent;
733
- const _useCookieConsent2 = useCookieConsent('essentialCookies', {
722
+ const _useCookieConsent2 = useCookieConsent('functionalCookies', {
734
723
  skipConsent: bannerProps.skipConsent
735
724
  }),
736
- hasGivenEssentialCookieConsent = _useCookieConsent2.givenConsent;
725
+ hasGivenFunctionalCookieConsent = _useCookieConsent2.givenConsent;
737
726
  const createConsentGroups = () => ({
738
- essentialCookies: true,
727
+ functionalCookies: true,
739
728
  performanceCookies: true
740
729
  });
741
- if (bannerClosed || hasGivenEssentialCookieConsent || hasGivenPerformanceCookieConsent) return null;
730
+ if (bannerClosed || hasGivenFunctionalCookieConsent || hasGivenPerformanceCookieConsent) return null;
742
731
  return (
743
732
  // TODO: use lower z-index, prefer ranges per use-case
744
733
  jsxRuntime.jsx("div", {