@telia/teddy 0.1.21 → 0.1.23

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.
@@ -7,58 +7,58 @@ const utils_composeEventHandlers = require("../../utils/composeEventHandlers.cjs
7
7
  const components_grid_grid = require("../grid/grid.cjs");
8
8
  const tokens_color_variables = require("../../tokens/color/variables.cjs");
9
9
  const styles = {
10
- "teddy-card": "_teddy-card_1h784_3",
11
- "teddy-card__slot": "_teddy-card__slot_1h784_13",
12
- "teddy-card__slot--bottom": "_teddy-card__slot--bottom_1h784_16",
13
- "teddy-card__slot--center": "_teddy-card__slot--center_1h784_19",
14
- "teddy-card__slot--no-translate": "_teddy-card__slot--no-translate_1h784_25",
15
- "teddy-card--shadow": "_teddy-card--shadow_1h784_44",
16
- "teddy-card__action": "_teddy-card__action_1h784_47",
17
- "teddy-card__action--disabled": "_teddy-card__action--disabled_1h784_47",
18
- "teddy-card--border": "_teddy-card--border_1h784_54",
19
- "teddy-card--layout": "_teddy-card--layout_1h784_57",
20
- "teddy-card__illustration": "_teddy-card__illustration_1h784_57",
21
- "teddy-card__carousel": "_teddy-card__carousel_1h784_60",
22
- "teddy-card__content": "_teddy-card__content_1h784_63",
23
- "teddy-card__heading": "_teddy-card__heading_1h784_66",
24
- "teddy-card__action-wrapper": "_teddy-card__action-wrapper_1h784_69",
25
- "teddy-card__footer": "_teddy-card__footer_1h784_72",
26
- "teddy-card__overline": "_teddy-card__overline_1h784_75",
27
- "teddy-card__description": "_teddy-card__description_1h784_78",
28
- "teddy-card__color-dots": "_teddy-card__color-dots_1h784_81",
29
- "teddy-card__availability": "_teddy-card__availability_1h784_84",
30
- "teddy-card__price": "_teddy-card__price_1h784_87",
31
- "teddy-card--default": "_teddy-card--default_1h784_90",
32
- "teddy-card--navigation-vertical": "_teddy-card--navigation-vertical_1h784_95",
33
- "teddy-card--navigation-horizontal-small": "_teddy-card--navigation-horizontal-small_1h784_115",
34
- "teddy-card--navigation-horizontal-small-centered": "_teddy-card--navigation-horizontal-small-centered_1h784_127",
35
- "teddy-card--navigation-horizontal-large": "_teddy-card--navigation-horizontal-large_1h784_149",
36
- "teddy-card--rich-card": "_teddy-card--rich-card_1h784_161",
37
- "teddy-card--rich-card-large": "_teddy-card--rich-card-large_1h784_180",
38
- "teddy-card__line": "_teddy-card__line_1h784_212",
39
- "teddy-card--purple-light": "_teddy-card--purple-light_1h784_216",
40
- "teddy-card--purple-dark": "_teddy-card--purple-dark_1h784_230",
41
- "teddy-card--white": "_teddy-card--white_1h784_249",
42
- "teddy-card--gray": "_teddy-card--gray_1h784_263",
43
- "teddy-card--beige": "_teddy-card--beige_1h784_277",
44
- "teddy-card--beige-light": "_teddy-card--beige-light_1h784_291",
45
- "teddy-card--product": "_teddy-card--product_1h784_305",
46
- "teddy-card__price--big": "_teddy-card__price--big_1h784_373",
47
- "teddy-card__image--as-background": "_teddy-card__image--as-background_1h784_376",
48
- "teddy-card--background-image": "_teddy-card--background-image_1h784_382",
49
- "teddy-card__illustration--rounded": "_teddy-card__illustration--rounded_1h784_387",
50
- "teddy-card__inset": "_teddy-card__inset_1h784_391",
51
- "teddy-card__inset--top": "_teddy-card__inset--top_1h784_394",
52
- "teddy-card__inset--left": "_teddy-card__inset--left_1h784_397",
53
- "teddy-card__inset--right": "_teddy-card__inset--right_1h784_400",
54
- "teddy-card__inset--bottom": "_teddy-card__inset--bottom_1h784_403",
55
- "teddy-card__availability--badge": "_teddy-card__availability--badge_1h784_418",
56
- "teddy-card__availability--success": "_teddy-card__availability--success_1h784_421",
57
- "teddy-card__availability--warning": "_teddy-card__availability--warning_1h784_424",
58
- "teddy-card__availability--error": "_teddy-card__availability--error_1h784_427",
59
- "teddy-card__availability--special": "_teddy-card__availability--special_1h784_430",
60
- "teddy-card__availability--neutral": "_teddy-card__availability--neutral_1h784_433",
61
- "teddy-card__availability--information": "_teddy-card__availability--information_1h784_436"
10
+ "teddy-card": "_teddy-card_imrpk_3",
11
+ "teddy-card__slot": "_teddy-card__slot_imrpk_13",
12
+ "teddy-card__slot--bottom": "_teddy-card__slot--bottom_imrpk_16",
13
+ "teddy-card__slot--center": "_teddy-card__slot--center_imrpk_19",
14
+ "teddy-card__slot--no-translate": "_teddy-card__slot--no-translate_imrpk_25",
15
+ "teddy-card--shadow": "_teddy-card--shadow_imrpk_44",
16
+ "teddy-card__action": "_teddy-card__action_imrpk_47",
17
+ "teddy-card__action--disabled": "_teddy-card__action--disabled_imrpk_47",
18
+ "teddy-card--border": "_teddy-card--border_imrpk_54",
19
+ "teddy-card--layout": "_teddy-card--layout_imrpk_57",
20
+ "teddy-card__illustration": "_teddy-card__illustration_imrpk_57",
21
+ "teddy-card__carousel": "_teddy-card__carousel_imrpk_60",
22
+ "teddy-card__content": "_teddy-card__content_imrpk_63",
23
+ "teddy-card__heading": "_teddy-card__heading_imrpk_66",
24
+ "teddy-card__action-wrapper": "_teddy-card__action-wrapper_imrpk_69",
25
+ "teddy-card__footer": "_teddy-card__footer_imrpk_72",
26
+ "teddy-card__overline": "_teddy-card__overline_imrpk_75",
27
+ "teddy-card__description": "_teddy-card__description_imrpk_78",
28
+ "teddy-card__color-dots": "_teddy-card__color-dots_imrpk_81",
29
+ "teddy-card__availability": "_teddy-card__availability_imrpk_84",
30
+ "teddy-card__price": "_teddy-card__price_imrpk_87",
31
+ "teddy-card--default": "_teddy-card--default_imrpk_90",
32
+ "teddy-card--navigation-vertical": "_teddy-card--navigation-vertical_imrpk_95",
33
+ "teddy-card--navigation-horizontal-small": "_teddy-card--navigation-horizontal-small_imrpk_115",
34
+ "teddy-card--navigation-horizontal-small-centered": "_teddy-card--navigation-horizontal-small-centered_imrpk_127",
35
+ "teddy-card--navigation-horizontal-large": "_teddy-card--navigation-horizontal-large_imrpk_149",
36
+ "teddy-card--rich-card": "_teddy-card--rich-card_imrpk_161",
37
+ "teddy-card--rich-card-large": "_teddy-card--rich-card-large_imrpk_180",
38
+ "teddy-card__line": "_teddy-card__line_imrpk_212",
39
+ "teddy-card--purple-light": "_teddy-card--purple-light_imrpk_216",
40
+ "teddy-card--purple-dark": "_teddy-card--purple-dark_imrpk_230",
41
+ "teddy-card--white": "_teddy-card--white_imrpk_249",
42
+ "teddy-card--gray": "_teddy-card--gray_imrpk_263",
43
+ "teddy-card--beige": "_teddy-card--beige_imrpk_277",
44
+ "teddy-card--beige-light": "_teddy-card--beige-light_imrpk_291",
45
+ "teddy-card--product": "_teddy-card--product_imrpk_305",
46
+ "teddy-card__price--big": "_teddy-card__price--big_imrpk_379",
47
+ "teddy-card__image--as-background": "_teddy-card__image--as-background_imrpk_382",
48
+ "teddy-card--background-image": "_teddy-card--background-image_imrpk_388",
49
+ "teddy-card__illustration--rounded": "_teddy-card__illustration--rounded_imrpk_393",
50
+ "teddy-card__inset": "_teddy-card__inset_imrpk_397",
51
+ "teddy-card__inset--top": "_teddy-card__inset--top_imrpk_400",
52
+ "teddy-card__inset--left": "_teddy-card__inset--left_imrpk_403",
53
+ "teddy-card__inset--right": "_teddy-card__inset--right_imrpk_406",
54
+ "teddy-card__inset--bottom": "_teddy-card__inset--bottom_imrpk_409",
55
+ "teddy-card__availability--badge": "_teddy-card__availability--badge_imrpk_424",
56
+ "teddy-card__availability--success": "_teddy-card__availability--success_imrpk_427",
57
+ "teddy-card__availability--warning": "_teddy-card__availability--warning_imrpk_430",
58
+ "teddy-card__availability--error": "_teddy-card__availability--error_imrpk_433",
59
+ "teddy-card__availability--special": "_teddy-card__availability--special_imrpk_436",
60
+ "teddy-card__availability--neutral": "_teddy-card__availability--neutral_imrpk_439",
61
+ "teddy-card__availability--information": "_teddy-card__availability--information_imrpk_442"
62
62
  };
63
63
  const rootClassName = "teddy-card";
64
64
  const actionElementIdentifier = `${rootClassName}__action`;
@@ -5,58 +5,58 @@ import { composeEventHandlers } from "../../utils/composeEventHandlers.js";
5
5
  import { Grid } from "../grid/grid.js";
6
6
  import { teddyColorTransparentWhite850, teddyColorTransparentWhite800, teddyColorTransparentWhite100, teddyColorTransparentBlack600, teddyColorTransparentBlack200 } from "../../tokens/color/variables.js";
7
7
  const styles = {
8
- "teddy-card": "_teddy-card_1h784_3",
9
- "teddy-card__slot": "_teddy-card__slot_1h784_13",
10
- "teddy-card__slot--bottom": "_teddy-card__slot--bottom_1h784_16",
11
- "teddy-card__slot--center": "_teddy-card__slot--center_1h784_19",
12
- "teddy-card__slot--no-translate": "_teddy-card__slot--no-translate_1h784_25",
13
- "teddy-card--shadow": "_teddy-card--shadow_1h784_44",
14
- "teddy-card__action": "_teddy-card__action_1h784_47",
15
- "teddy-card__action--disabled": "_teddy-card__action--disabled_1h784_47",
16
- "teddy-card--border": "_teddy-card--border_1h784_54",
17
- "teddy-card--layout": "_teddy-card--layout_1h784_57",
18
- "teddy-card__illustration": "_teddy-card__illustration_1h784_57",
19
- "teddy-card__carousel": "_teddy-card__carousel_1h784_60",
20
- "teddy-card__content": "_teddy-card__content_1h784_63",
21
- "teddy-card__heading": "_teddy-card__heading_1h784_66",
22
- "teddy-card__action-wrapper": "_teddy-card__action-wrapper_1h784_69",
23
- "teddy-card__footer": "_teddy-card__footer_1h784_72",
24
- "teddy-card__overline": "_teddy-card__overline_1h784_75",
25
- "teddy-card__description": "_teddy-card__description_1h784_78",
26
- "teddy-card__color-dots": "_teddy-card__color-dots_1h784_81",
27
- "teddy-card__availability": "_teddy-card__availability_1h784_84",
28
- "teddy-card__price": "_teddy-card__price_1h784_87",
29
- "teddy-card--default": "_teddy-card--default_1h784_90",
30
- "teddy-card--navigation-vertical": "_teddy-card--navigation-vertical_1h784_95",
31
- "teddy-card--navigation-horizontal-small": "_teddy-card--navigation-horizontal-small_1h784_115",
32
- "teddy-card--navigation-horizontal-small-centered": "_teddy-card--navigation-horizontal-small-centered_1h784_127",
33
- "teddy-card--navigation-horizontal-large": "_teddy-card--navigation-horizontal-large_1h784_149",
34
- "teddy-card--rich-card": "_teddy-card--rich-card_1h784_161",
35
- "teddy-card--rich-card-large": "_teddy-card--rich-card-large_1h784_180",
36
- "teddy-card__line": "_teddy-card__line_1h784_212",
37
- "teddy-card--purple-light": "_teddy-card--purple-light_1h784_216",
38
- "teddy-card--purple-dark": "_teddy-card--purple-dark_1h784_230",
39
- "teddy-card--white": "_teddy-card--white_1h784_249",
40
- "teddy-card--gray": "_teddy-card--gray_1h784_263",
41
- "teddy-card--beige": "_teddy-card--beige_1h784_277",
42
- "teddy-card--beige-light": "_teddy-card--beige-light_1h784_291",
43
- "teddy-card--product": "_teddy-card--product_1h784_305",
44
- "teddy-card__price--big": "_teddy-card__price--big_1h784_373",
45
- "teddy-card__image--as-background": "_teddy-card__image--as-background_1h784_376",
46
- "teddy-card--background-image": "_teddy-card--background-image_1h784_382",
47
- "teddy-card__illustration--rounded": "_teddy-card__illustration--rounded_1h784_387",
48
- "teddy-card__inset": "_teddy-card__inset_1h784_391",
49
- "teddy-card__inset--top": "_teddy-card__inset--top_1h784_394",
50
- "teddy-card__inset--left": "_teddy-card__inset--left_1h784_397",
51
- "teddy-card__inset--right": "_teddy-card__inset--right_1h784_400",
52
- "teddy-card__inset--bottom": "_teddy-card__inset--bottom_1h784_403",
53
- "teddy-card__availability--badge": "_teddy-card__availability--badge_1h784_418",
54
- "teddy-card__availability--success": "_teddy-card__availability--success_1h784_421",
55
- "teddy-card__availability--warning": "_teddy-card__availability--warning_1h784_424",
56
- "teddy-card__availability--error": "_teddy-card__availability--error_1h784_427",
57
- "teddy-card__availability--special": "_teddy-card__availability--special_1h784_430",
58
- "teddy-card__availability--neutral": "_teddy-card__availability--neutral_1h784_433",
59
- "teddy-card__availability--information": "_teddy-card__availability--information_1h784_436"
8
+ "teddy-card": "_teddy-card_imrpk_3",
9
+ "teddy-card__slot": "_teddy-card__slot_imrpk_13",
10
+ "teddy-card__slot--bottom": "_teddy-card__slot--bottom_imrpk_16",
11
+ "teddy-card__slot--center": "_teddy-card__slot--center_imrpk_19",
12
+ "teddy-card__slot--no-translate": "_teddy-card__slot--no-translate_imrpk_25",
13
+ "teddy-card--shadow": "_teddy-card--shadow_imrpk_44",
14
+ "teddy-card__action": "_teddy-card__action_imrpk_47",
15
+ "teddy-card__action--disabled": "_teddy-card__action--disabled_imrpk_47",
16
+ "teddy-card--border": "_teddy-card--border_imrpk_54",
17
+ "teddy-card--layout": "_teddy-card--layout_imrpk_57",
18
+ "teddy-card__illustration": "_teddy-card__illustration_imrpk_57",
19
+ "teddy-card__carousel": "_teddy-card__carousel_imrpk_60",
20
+ "teddy-card__content": "_teddy-card__content_imrpk_63",
21
+ "teddy-card__heading": "_teddy-card__heading_imrpk_66",
22
+ "teddy-card__action-wrapper": "_teddy-card__action-wrapper_imrpk_69",
23
+ "teddy-card__footer": "_teddy-card__footer_imrpk_72",
24
+ "teddy-card__overline": "_teddy-card__overline_imrpk_75",
25
+ "teddy-card__description": "_teddy-card__description_imrpk_78",
26
+ "teddy-card__color-dots": "_teddy-card__color-dots_imrpk_81",
27
+ "teddy-card__availability": "_teddy-card__availability_imrpk_84",
28
+ "teddy-card__price": "_teddy-card__price_imrpk_87",
29
+ "teddy-card--default": "_teddy-card--default_imrpk_90",
30
+ "teddy-card--navigation-vertical": "_teddy-card--navigation-vertical_imrpk_95",
31
+ "teddy-card--navigation-horizontal-small": "_teddy-card--navigation-horizontal-small_imrpk_115",
32
+ "teddy-card--navigation-horizontal-small-centered": "_teddy-card--navigation-horizontal-small-centered_imrpk_127",
33
+ "teddy-card--navigation-horizontal-large": "_teddy-card--navigation-horizontal-large_imrpk_149",
34
+ "teddy-card--rich-card": "_teddy-card--rich-card_imrpk_161",
35
+ "teddy-card--rich-card-large": "_teddy-card--rich-card-large_imrpk_180",
36
+ "teddy-card__line": "_teddy-card__line_imrpk_212",
37
+ "teddy-card--purple-light": "_teddy-card--purple-light_imrpk_216",
38
+ "teddy-card--purple-dark": "_teddy-card--purple-dark_imrpk_230",
39
+ "teddy-card--white": "_teddy-card--white_imrpk_249",
40
+ "teddy-card--gray": "_teddy-card--gray_imrpk_263",
41
+ "teddy-card--beige": "_teddy-card--beige_imrpk_277",
42
+ "teddy-card--beige-light": "_teddy-card--beige-light_imrpk_291",
43
+ "teddy-card--product": "_teddy-card--product_imrpk_305",
44
+ "teddy-card__price--big": "_teddy-card__price--big_imrpk_379",
45
+ "teddy-card__image--as-background": "_teddy-card__image--as-background_imrpk_382",
46
+ "teddy-card--background-image": "_teddy-card--background-image_imrpk_388",
47
+ "teddy-card__illustration--rounded": "_teddy-card__illustration--rounded_imrpk_393",
48
+ "teddy-card__inset": "_teddy-card__inset_imrpk_397",
49
+ "teddy-card__inset--top": "_teddy-card__inset--top_imrpk_400",
50
+ "teddy-card__inset--left": "_teddy-card__inset--left_imrpk_403",
51
+ "teddy-card__inset--right": "_teddy-card__inset--right_imrpk_406",
52
+ "teddy-card__inset--bottom": "_teddy-card__inset--bottom_imrpk_409",
53
+ "teddy-card__availability--badge": "_teddy-card__availability--badge_imrpk_424",
54
+ "teddy-card__availability--success": "_teddy-card__availability--success_imrpk_427",
55
+ "teddy-card__availability--warning": "_teddy-card__availability--warning_imrpk_430",
56
+ "teddy-card__availability--error": "_teddy-card__availability--error_imrpk_433",
57
+ "teddy-card__availability--special": "_teddy-card__availability--special_imrpk_436",
58
+ "teddy-card__availability--neutral": "_teddy-card__availability--neutral_imrpk_439",
59
+ "teddy-card__availability--information": "_teddy-card__availability--information_imrpk_442"
60
60
  };
61
61
  const rootClassName = "teddy-card";
62
62
  const actionElementIdentifier = `${rootClassName}__action`;
@@ -26,8 +26,9 @@ type RootContext = {
26
26
  setSelectedDomainItem: (v: string, onlyStateChange?: boolean) => void;
27
27
  pathname: string;
28
28
  setPathname: (v: string) => void;
29
- specifiedLink: string;
29
+ specifiedLink?: string;
30
30
  setSpecifiedLink: (v: string) => void;
31
+ hideMenu?: boolean | null;
31
32
  } & Pick<RootProps, 'onSearchSubmit' | 'shoppingCart' | 'shoppingCartNumberOfItems' | 'loggedInUser' | 'appKey' | 'onLogoutClick' | 'linkComponent' | 'isCartOpen' | 'onCartOpenChange' | 'drawerSize'>;
32
33
  export declare const RootContext: React.Context<RootContext | null>;
33
34
  export declare function Root({ className, appKey, loggedInUser, linkComponent, onLogoutClick, shoppingCart, shoppingCartNumberOfItems, onSearchSubmit, isCartOpen, onCartOpenChange, drawerSize, isSimplified, currentPath, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
@@ -138,7 +138,7 @@ const PRIVATE_LINKS = {
138
138
  },
139
139
  {
140
140
  name: "Kampanjer",
141
- link: "/kampanje",
141
+ link: "/kampanje/",
142
142
  appKey: APP_KEYS["open-pages"]
143
143
  },
144
144
  {
@@ -227,7 +227,7 @@ const PRIVATE_LINKS = {
227
227
  },
228
228
  {
229
229
  name: "Kampanjer",
230
- link: "/kampanje",
230
+ link: "/kampanje/",
231
231
  appKey: APP_KEYS["open-pages"]
232
232
  },
233
233
  {
@@ -290,7 +290,7 @@ const PRIVATE_LINKS = {
290
290
  },
291
291
  {
292
292
  name: "Alt om TV",
293
- link: "/tv",
293
+ link: "/tv/",
294
294
  appKey: APP_KEYS["open-pages"]
295
295
  }
296
296
  ]
@@ -302,7 +302,7 @@ const PRIVATE_LINKS = {
302
302
  highlightedLinks: [
303
303
  {
304
304
  name: "Søk på adresse",
305
- link: "/internett/sok-adresse",
305
+ link: "/internett/sok-adresse/",
306
306
  appKey: APP_KEYS["open-pages"]
307
307
  },
308
308
  {
@@ -312,7 +312,7 @@ const PRIVATE_LINKS = {
312
312
  },
313
313
  {
314
314
  name: "Kampanjer",
315
- link: "/kampanje",
315
+ link: "/kampanje/",
316
316
  appKey: APP_KEYS["open-pages"]
317
317
  },
318
318
  {
@@ -369,7 +369,7 @@ const PRIVATE_LINKS = {
369
369
  },
370
370
  {
371
371
  name: "Alt om internett",
372
- link: "/internett",
372
+ link: "/internett/",
373
373
  appKey: APP_KEYS["open-pages"]
374
374
  }
375
375
  ]
@@ -453,7 +453,7 @@ const PRIVATE_LINKS = {
453
453
  },
454
454
  {
455
455
  name: "Alt om trygghet",
456
- link: "/trygghet",
456
+ link: "/trygghet/",
457
457
  appKey: APP_KEYS["open-pages"]
458
458
  }
459
459
  ]
@@ -490,7 +490,7 @@ const PRIVATE_LINKS = {
490
490
  },
491
491
  {
492
492
  name: "Se din faktura",
493
- link: "/minside/faktura",
493
+ link: "/minside/faktura/",
494
494
  appKey: APP_KEYS["my-pages"]
495
495
  }
496
496
  ],
@@ -532,7 +532,7 @@ const PRIVATE_LINKS = {
532
532
  },
533
533
  {
534
534
  name: "Hjelp til alt",
535
- link: "/hjelp",
535
+ link: "/hjelp/",
536
536
  appKey: APP_KEYS["open-pages"]
537
537
  }
538
538
  // {
@@ -650,7 +650,7 @@ const LINKS = [PRIVATE_LINKS, BUSINESS_LINKS, MDU_LINKS];
650
650
  const getActiveSubLink = (path, links) => {
651
651
  let activeLink = "";
652
652
  links.forEach((link) => {
653
- if (path.startsWith(link.link) && link.link.length > activeLink.length) {
653
+ if (path === link.link && link.link.length > activeLink.length) {
654
654
  activeLink = link.link;
655
655
  }
656
656
  });
@@ -185,7 +185,7 @@ export declare const PRIVATE_LINKS: {
185
185
  readonly appKey: "web-shop";
186
186
  }, {
187
187
  readonly name: "Kampanjer";
188
- readonly link: "/kampanje";
188
+ readonly link: "/kampanje/";
189
189
  readonly appKey: "open-pages";
190
190
  }, {
191
191
  readonly name: "SIM, PIN og PUK";
@@ -251,7 +251,7 @@ export declare const PRIVATE_LINKS: {
251
251
  readonly appKey: "open-pages";
252
252
  }, {
253
253
  readonly name: "Kampanjer";
254
- readonly link: "/kampanje";
254
+ readonly link: "/kampanje/";
255
255
  readonly appKey: "open-pages";
256
256
  }, {
257
257
  readonly name: "Kom i gang med Telia Play";
@@ -292,7 +292,7 @@ export declare const PRIVATE_LINKS: {
292
292
  readonly appKey: "open-pages";
293
293
  }, {
294
294
  readonly name: "Alt om TV";
295
- readonly link: "/tv";
295
+ readonly link: "/tv/";
296
296
  readonly appKey: "open-pages";
297
297
  }];
298
298
  }, {
@@ -301,7 +301,7 @@ export declare const PRIVATE_LINKS: {
301
301
  readonly appKey: "open-pages";
302
302
  readonly highlightedLinks: [{
303
303
  readonly name: "Søk på adresse";
304
- readonly link: "/internett/sok-adresse";
304
+ readonly link: "/internett/sok-adresse/";
305
305
  readonly appKey: "open-pages";
306
306
  }, {
307
307
  readonly name: "Bredbånd på hytta";
@@ -309,7 +309,7 @@ export declare const PRIVATE_LINKS: {
309
309
  readonly appKey: "open-pages";
310
310
  }, {
311
311
  readonly name: "Kampanjer";
312
- readonly link: "/kampanje";
312
+ readonly link: "/kampanje/";
313
313
  readonly appKey: "open-pages";
314
314
  }, {
315
315
  readonly name: "Problemer med internett";
@@ -354,7 +354,7 @@ export declare const PRIVATE_LINKS: {
354
354
  readonly appKey: "open-pages";
355
355
  }, {
356
356
  readonly name: "Alt om internett";
357
- readonly link: "/internett";
357
+ readonly link: "/internett/";
358
358
  readonly appKey: "open-pages";
359
359
  }];
360
360
  }, {
@@ -420,7 +420,7 @@ export declare const PRIVATE_LINKS: {
420
420
  readonly appKey: "open-pages";
421
421
  }, {
422
422
  readonly name: "Alt om trygghet";
423
- readonly link: "/trygghet";
423
+ readonly link: "/trygghet/";
424
424
  readonly appKey: "open-pages";
425
425
  }];
426
426
  }, {
@@ -449,7 +449,7 @@ export declare const PRIVATE_LINKS: {
449
449
  readonly appKey: "open-pages";
450
450
  }, {
451
451
  readonly name: "Se din faktura";
452
- readonly link: "/minside/faktura";
452
+ readonly link: "/minside/faktura/";
453
453
  readonly appKey: "my-pages";
454
454
  }];
455
455
  readonly links: [{
@@ -482,7 +482,7 @@ export declare const PRIVATE_LINKS: {
482
482
  readonly appKey: "open-pages";
483
483
  }, {
484
484
  readonly name: "Hjelp til alt";
485
- readonly link: "/hjelp";
485
+ readonly link: "/hjelp/";
486
486
  readonly appKey: "open-pages";
487
487
  }];
488
488
  }];
@@ -630,7 +630,7 @@ export declare const LINKS: [{
630
630
  readonly appKey: "web-shop";
631
631
  }, {
632
632
  readonly name: "Kampanjer";
633
- readonly link: "/kampanje";
633
+ readonly link: "/kampanje/";
634
634
  readonly appKey: "open-pages";
635
635
  }, {
636
636
  readonly name: "SIM, PIN og PUK";
@@ -696,7 +696,7 @@ export declare const LINKS: [{
696
696
  readonly appKey: "open-pages";
697
697
  }, {
698
698
  readonly name: "Kampanjer";
699
- readonly link: "/kampanje";
699
+ readonly link: "/kampanje/";
700
700
  readonly appKey: "open-pages";
701
701
  }, {
702
702
  readonly name: "Kom i gang med Telia Play";
@@ -737,7 +737,7 @@ export declare const LINKS: [{
737
737
  readonly appKey: "open-pages";
738
738
  }, {
739
739
  readonly name: "Alt om TV";
740
- readonly link: "/tv";
740
+ readonly link: "/tv/";
741
741
  readonly appKey: "open-pages";
742
742
  }];
743
743
  }, {
@@ -746,7 +746,7 @@ export declare const LINKS: [{
746
746
  readonly appKey: "open-pages";
747
747
  readonly highlightedLinks: [{
748
748
  readonly name: "Søk på adresse";
749
- readonly link: "/internett/sok-adresse";
749
+ readonly link: "/internett/sok-adresse/";
750
750
  readonly appKey: "open-pages";
751
751
  }, {
752
752
  readonly name: "Bredbånd på hytta";
@@ -754,7 +754,7 @@ export declare const LINKS: [{
754
754
  readonly appKey: "open-pages";
755
755
  }, {
756
756
  readonly name: "Kampanjer";
757
- readonly link: "/kampanje";
757
+ readonly link: "/kampanje/";
758
758
  readonly appKey: "open-pages";
759
759
  }, {
760
760
  readonly name: "Problemer med internett";
@@ -799,7 +799,7 @@ export declare const LINKS: [{
799
799
  readonly appKey: "open-pages";
800
800
  }, {
801
801
  readonly name: "Alt om internett";
802
- readonly link: "/internett";
802
+ readonly link: "/internett/";
803
803
  readonly appKey: "open-pages";
804
804
  }];
805
805
  }, {
@@ -865,7 +865,7 @@ export declare const LINKS: [{
865
865
  readonly appKey: "open-pages";
866
866
  }, {
867
867
  readonly name: "Alt om trygghet";
868
- readonly link: "/trygghet";
868
+ readonly link: "/trygghet/";
869
869
  readonly appKey: "open-pages";
870
870
  }];
871
871
  }, {
@@ -894,7 +894,7 @@ export declare const LINKS: [{
894
894
  readonly appKey: "open-pages";
895
895
  }, {
896
896
  readonly name: "Se din faktura";
897
- readonly link: "/minside/faktura";
897
+ readonly link: "/minside/faktura/";
898
898
  readonly appKey: "my-pages";
899
899
  }];
900
900
  readonly links: [{
@@ -927,7 +927,7 @@ export declare const LINKS: [{
927
927
  readonly appKey: "open-pages";
928
928
  }, {
929
929
  readonly name: "Hjelp til alt";
930
- readonly link: "/hjelp";
930
+ readonly link: "/hjelp/";
931
931
  readonly appKey: "open-pages";
932
932
  }];
933
933
  }];
@@ -136,7 +136,7 @@ const PRIVATE_LINKS = {
136
136
  },
137
137
  {
138
138
  name: "Kampanjer",
139
- link: "/kampanje",
139
+ link: "/kampanje/",
140
140
  appKey: APP_KEYS["open-pages"]
141
141
  },
142
142
  {
@@ -225,7 +225,7 @@ const PRIVATE_LINKS = {
225
225
  },
226
226
  {
227
227
  name: "Kampanjer",
228
- link: "/kampanje",
228
+ link: "/kampanje/",
229
229
  appKey: APP_KEYS["open-pages"]
230
230
  },
231
231
  {
@@ -288,7 +288,7 @@ const PRIVATE_LINKS = {
288
288
  },
289
289
  {
290
290
  name: "Alt om TV",
291
- link: "/tv",
291
+ link: "/tv/",
292
292
  appKey: APP_KEYS["open-pages"]
293
293
  }
294
294
  ]
@@ -300,7 +300,7 @@ const PRIVATE_LINKS = {
300
300
  highlightedLinks: [
301
301
  {
302
302
  name: "Søk på adresse",
303
- link: "/internett/sok-adresse",
303
+ link: "/internett/sok-adresse/",
304
304
  appKey: APP_KEYS["open-pages"]
305
305
  },
306
306
  {
@@ -310,7 +310,7 @@ const PRIVATE_LINKS = {
310
310
  },
311
311
  {
312
312
  name: "Kampanjer",
313
- link: "/kampanje",
313
+ link: "/kampanje/",
314
314
  appKey: APP_KEYS["open-pages"]
315
315
  },
316
316
  {
@@ -367,7 +367,7 @@ const PRIVATE_LINKS = {
367
367
  },
368
368
  {
369
369
  name: "Alt om internett",
370
- link: "/internett",
370
+ link: "/internett/",
371
371
  appKey: APP_KEYS["open-pages"]
372
372
  }
373
373
  ]
@@ -451,7 +451,7 @@ const PRIVATE_LINKS = {
451
451
  },
452
452
  {
453
453
  name: "Alt om trygghet",
454
- link: "/trygghet",
454
+ link: "/trygghet/",
455
455
  appKey: APP_KEYS["open-pages"]
456
456
  }
457
457
  ]
@@ -488,7 +488,7 @@ const PRIVATE_LINKS = {
488
488
  },
489
489
  {
490
490
  name: "Se din faktura",
491
- link: "/minside/faktura",
491
+ link: "/minside/faktura/",
492
492
  appKey: APP_KEYS["my-pages"]
493
493
  }
494
494
  ],
@@ -530,7 +530,7 @@ const PRIVATE_LINKS = {
530
530
  },
531
531
  {
532
532
  name: "Hjelp til alt",
533
- link: "/hjelp",
533
+ link: "/hjelp/",
534
534
  appKey: APP_KEYS["open-pages"]
535
535
  }
536
536
  // {
@@ -648,7 +648,7 @@ const LINKS = [PRIVATE_LINKS, BUSINESS_LINKS, MDU_LINKS];
648
648
  const getActiveSubLink = (path, links) => {
649
649
  let activeLink = "";
650
650
  links.forEach((link) => {
651
- if (path.startsWith(link.link) && link.link.length > activeLink.length) {
651
+ if (path === link.link && link.link.length > activeLink.length) {
652
652
  activeLink = link.link;
653
653
  }
654
654
  });