@carbon/ibmdotcom-web-components 2.42.0 → 2.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +13 -21
- package/dist/dotcom-shell.js +2 -2
- package/dist/dotcom-shell.min.js +6 -6
- package/dist/ibmdotcom-web-components-dotcom-shell.js +2 -2
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +6 -6
- package/dist/{index-1c798fbb.js → index-025b19d2.js} +112 -66
- package/dist/{index-0582e43b.js → index-e1103424.js} +12 -12
- package/dist/{left-nav-menu-222d7e12.js → left-nav-menu-2c21e619.js} +2 -2
- package/dist/{left-nav-menu-fbe31764.js → left-nav-menu-86c142ad.js} +6 -6
- package/dist/{left-nav-menu-category-heading-d40df38d.js → left-nav-menu-category-heading-0600c59b.js} +2 -2
- package/dist/{left-nav-menu-category-heading-bad5c9a4.js → left-nav-menu-category-heading-20824551.js} +6 -6
- package/dist/{left-nav-menu-item-d8292202.js → left-nav-menu-item-2b93e65d.js} +6 -6
- package/dist/{left-nav-menu-item-1c789f3b.js → left-nav-menu-item-9a1c14ca.js} +2 -2
- package/dist/{left-nav-menu-section-722a4f08.js → left-nav-menu-section-9d5ed365.js} +6 -6
- package/dist/{left-nav-menu-section-ad075d07.js → left-nav-menu-section-a00058c4.js} +2 -2
- package/dist/{left-nav-overlay-6931a643.js → left-nav-overlay-6b2e964b.js} +6 -6
- package/dist/{left-nav-overlay-c4bce0ba.js → left-nav-overlay-f345f1da.js} +2 -2
- package/dist/{megamenu-category-group-6a9005b2.js → megamenu-category-group-26a8ad72.js} +2 -2
- package/dist/{megamenu-category-group-b28f721d.js → megamenu-category-group-4ea726d6.js} +6 -6
- package/dist/{megamenu-category-group-copy-09e2b942.js → megamenu-category-group-copy-1c975aaa.js} +6 -6
- package/dist/{megamenu-category-group-copy-a1712d7f.js → megamenu-category-group-copy-c32be4d2.js} +2 -2
- package/dist/{megamenu-category-heading-b5cf4e2d.js → megamenu-category-heading-463194ca.js} +2 -2
- package/dist/{megamenu-category-heading-d1c1fa95.js → megamenu-category-heading-d8842b4e.js} +6 -6
- package/dist/{megamenu-category-link-2c38f1b8.js → megamenu-category-link-a84cac86.js} +2 -2
- package/dist/{megamenu-category-link-aeb6f7d6.js → megamenu-category-link-f7f5b5a4.js} +6 -6
- package/dist/{megamenu-category-link-group-c7ade8c5.js → megamenu-category-link-group-c2bc0133.js} +6 -6
- package/dist/{megamenu-category-link-group-492f73c5.js → megamenu-category-link-group-f5f0c0fe.js} +2 -2
- package/dist/{megamenu-left-navigation-328b8153.js → megamenu-left-navigation-50e42b59.js} +6 -6
- package/dist/{megamenu-left-navigation-015a1a3e.js → megamenu-left-navigation-e197ca63.js} +2 -2
- package/dist/{megamenu-overlay-763b7455.js → megamenu-overlay-7b39d3ac.js} +6 -6
- package/dist/{megamenu-overlay-a9dcb9ea.js → megamenu-overlay-84c27fb4.js} +2 -2
- package/dist/{megamenu-tab-faaeff5a.js → megamenu-tab-7d3084b5.js} +6 -6
- package/dist/{megamenu-tab-9623c21c.js → megamenu-tab-b7c53fca.js} +2 -2
- package/es/components/footer/footer-composite.d.ts +10 -10
- package/es/components/footer/footer-composite.js +78 -53
- package/es/components/footer/footer-composite.js.map +1 -1
- package/es/components/footer/footer-container.d.ts +4 -3
- package/es/components/footer/footer-container.js +8 -5
- package/es/components/footer/footer-container.js.map +1 -1
- package/es/components/masthead/masthead-cart.d.ts +1 -0
- package/es/components/masthead/masthead-cart.js +23 -5
- package/es/components/masthead/masthead-cart.js.map +1 -1
- package/es/components/table-of-contents/table-of-contents.d.ts +1 -1
- package/es/components/table-of-contents/table-of-contents.js +15 -2
- package/es/components/table-of-contents/table-of-contents.js.map +1 -1
- package/es/components-react/footer/footer-container.d.ts +1 -1
- package/package.json +5 -5
package/custom-elements.json
CHANGED
|
@@ -11511,22 +11511,18 @@
|
|
|
11511
11511
|
"type": "string | undefined"
|
|
11512
11512
|
},
|
|
11513
11513
|
{
|
|
11514
|
-
"name": "
|
|
11515
|
-
"
|
|
11516
|
-
"type": "BasicLink[]",
|
|
11517
|
-
"default": "[]"
|
|
11514
|
+
"name": "links",
|
|
11515
|
+
"type": "BasicLinkSet[] | undefined"
|
|
11518
11516
|
},
|
|
11519
11517
|
{
|
|
11520
|
-
"name": "
|
|
11518
|
+
"name": "legalLinks",
|
|
11521
11519
|
"description": "The adjunct links.",
|
|
11522
|
-
"type": "BasicLink[]"
|
|
11523
|
-
"default": "[]"
|
|
11520
|
+
"type": "BasicLink[] | undefined"
|
|
11524
11521
|
},
|
|
11525
11522
|
{
|
|
11526
|
-
"name": "
|
|
11523
|
+
"name": "adjunctLinks",
|
|
11527
11524
|
"description": "The footer links.",
|
|
11528
|
-
"type": "
|
|
11529
|
-
"default": "[]"
|
|
11525
|
+
"type": "BasicLink[] | undefined"
|
|
11530
11526
|
},
|
|
11531
11527
|
{
|
|
11532
11528
|
"name": "localeList",
|
|
@@ -11555,7 +11551,7 @@
|
|
|
11555
11551
|
{
|
|
11556
11552
|
"name": "c4d-footer-container",
|
|
11557
11553
|
"path": "./src/components/footer/footer-container.ts",
|
|
11558
|
-
"description": "Container component for
|
|
11554
|
+
"description": "Container component for footer.",
|
|
11559
11555
|
"attributes": [
|
|
11560
11556
|
{
|
|
11561
11557
|
"name": "buttonLabel",
|
|
@@ -11670,22 +11666,18 @@
|
|
|
11670
11666
|
"type": "string | undefined"
|
|
11671
11667
|
},
|
|
11672
11668
|
{
|
|
11673
|
-
"name": "
|
|
11674
|
-
"
|
|
11675
|
-
"type": "BasicLink[]",
|
|
11676
|
-
"default": "[]"
|
|
11669
|
+
"name": "links",
|
|
11670
|
+
"type": "BasicLinkSet[] | undefined"
|
|
11677
11671
|
},
|
|
11678
11672
|
{
|
|
11679
|
-
"name": "
|
|
11673
|
+
"name": "legalLinks",
|
|
11680
11674
|
"description": "The adjunct links.",
|
|
11681
|
-
"type": "BasicLink[]"
|
|
11682
|
-
"default": "[]"
|
|
11675
|
+
"type": "BasicLink[] | undefined"
|
|
11683
11676
|
},
|
|
11684
11677
|
{
|
|
11685
|
-
"name": "
|
|
11678
|
+
"name": "adjunctLinks",
|
|
11686
11679
|
"description": "The footer links.",
|
|
11687
|
-
"type": "
|
|
11688
|
-
"default": "[]"
|
|
11680
|
+
"type": "BasicLink[] | undefined"
|
|
11689
11681
|
},
|
|
11690
11682
|
{
|
|
11691
11683
|
"name": "localeList",
|
package/dist/dotcom-shell.js
CHANGED
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-logger
|
|
84
83
|
* https://www.npmjs.com/package/redux-thunk
|
|
84
|
+
* https://www.npmjs.com/package/redux-logger
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
90
|
let process = { env: {} };
|
|
91
|
-
import './index-
|
|
91
|
+
import './index-025b19d2.js';
|
package/dist/dotcom-shell.min.js
CHANGED
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
22
|
*
|
|
23
|
-
* lit-
|
|
23
|
+
* lit-html:
|
|
24
24
|
*
|
|
25
25
|
* @license
|
|
26
|
-
* Copyright
|
|
26
|
+
* Copyright 2022 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*
|
|
29
|
-
* lit-
|
|
29
|
+
* lit-element:
|
|
30
30
|
*
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*
|
|
35
35
|
* @lit/reactive-element:
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-logger
|
|
84
83
|
* https://www.npmjs.com/package/redux-thunk
|
|
84
|
+
* https://www.npmjs.com/package/redux-logger
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
|
-
import"./index-
|
|
90
|
+
import"./index-e1103424.js";
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-logger
|
|
84
83
|
* https://www.npmjs.com/package/redux-thunk
|
|
84
|
+
* https://www.npmjs.com/package/redux-logger
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
90
|
let process = { env: {} };
|
|
91
|
-
import './index-
|
|
91
|
+
import './index-025b19d2.js';
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
22
|
*
|
|
23
|
-
* lit-
|
|
23
|
+
* lit-html:
|
|
24
24
|
*
|
|
25
25
|
* @license
|
|
26
|
-
* Copyright
|
|
26
|
+
* Copyright 2022 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*
|
|
29
|
-
* lit-
|
|
29
|
+
* lit-element:
|
|
30
30
|
*
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*
|
|
35
35
|
* @lit/reactive-element:
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-logger
|
|
84
83
|
* https://www.npmjs.com/package/redux-thunk
|
|
84
|
+
* https://www.npmjs.com/package/redux-logger
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
|
-
import"./index-
|
|
90
|
+
import"./index-e1103424.js";
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
* https://www.npmjs.com/package/redux
|
|
81
81
|
* https://www.npmjs.com/package/lodash-es
|
|
82
82
|
* https://www.npmjs.com/package/window-or-global
|
|
83
|
-
* https://www.npmjs.com/package/redux-logger
|
|
84
83
|
* https://www.npmjs.com/package/redux-thunk
|
|
84
|
+
* https://www.npmjs.com/package/redux-logger
|
|
85
85
|
* https://www.npmjs.com/package/axios
|
|
86
86
|
* https://www.npmjs.com/package/isomorphic-dompurify
|
|
87
87
|
* https://www.npmjs.com/package/striptags
|
|
@@ -29426,63 +29426,11 @@ let C4DFooterComposite = _decorate$z([carbonElement(`${c4dPrefix$z}-footer-compo
|
|
|
29426
29426
|
key: "selectedLanguage",
|
|
29427
29427
|
value: void 0
|
|
29428
29428
|
}, {
|
|
29429
|
-
kind: "
|
|
29430
|
-
decorators: [n$1({
|
|
29431
|
-
attribute: false
|
|
29432
|
-
})],
|
|
29433
|
-
key: "legalLinks",
|
|
29434
|
-
value() {
|
|
29435
|
-
return [];
|
|
29436
|
-
}
|
|
29437
|
-
}, {
|
|
29438
|
-
kind: "field",
|
|
29439
|
-
decorators: [n$1({
|
|
29440
|
-
attribute: false
|
|
29441
|
-
})],
|
|
29442
|
-
key: "adjunctLinks",
|
|
29443
|
-
value() {
|
|
29444
|
-
return [];
|
|
29445
|
-
}
|
|
29446
|
-
}, {
|
|
29447
|
-
kind: "field",
|
|
29429
|
+
kind: "set",
|
|
29448
29430
|
decorators: [n$1({
|
|
29449
29431
|
attribute: false
|
|
29450
29432
|
})],
|
|
29451
29433
|
key: "links",
|
|
29452
|
-
value() {
|
|
29453
|
-
return [];
|
|
29454
|
-
}
|
|
29455
|
-
}, {
|
|
29456
|
-
kind: "field",
|
|
29457
|
-
decorators: [n$1({
|
|
29458
|
-
attribute: false
|
|
29459
|
-
})],
|
|
29460
|
-
key: "localeList",
|
|
29461
|
-
value: void 0
|
|
29462
|
-
}, {
|
|
29463
|
-
kind: "field",
|
|
29464
|
-
key: "modalTriggerProps",
|
|
29465
|
-
value() {
|
|
29466
|
-
return ['openLocaleModal', 'localeList'];
|
|
29467
|
-
}
|
|
29468
|
-
}, {
|
|
29469
|
-
kind: "field",
|
|
29470
|
-
decorators: [n$1({
|
|
29471
|
-
type: Boolean,
|
|
29472
|
-
attribute: 'open-locale-modal'
|
|
29473
|
-
})],
|
|
29474
|
-
key: "openLocaleModal",
|
|
29475
|
-
value: void 0
|
|
29476
|
-
}, {
|
|
29477
|
-
kind: "field",
|
|
29478
|
-
decorators: [n$1({
|
|
29479
|
-
reflect: true
|
|
29480
|
-
})],
|
|
29481
|
-
key: "size",
|
|
29482
|
-
value: void 0
|
|
29483
|
-
}, {
|
|
29484
|
-
kind: "method",
|
|
29485
|
-
key: "getLangDisplay",
|
|
29486
29434
|
value:
|
|
29487
29435
|
/**
|
|
29488
29436
|
* The placeholder for `loadLocaleList()` Redux action that may be mixed in.
|
|
@@ -29540,15 +29488,92 @@ let C4DFooterComposite = _decorate$z([carbonElement(`${c4dPrefix$z}-footer-compo
|
|
|
29540
29488
|
/**
|
|
29541
29489
|
* The legal nav links.
|
|
29542
29490
|
*/
|
|
29491
|
+
function (value) {
|
|
29492
|
+
this._links = value;
|
|
29493
|
+
this.requestUpdate('links');
|
|
29494
|
+
}
|
|
29495
|
+
}, {
|
|
29496
|
+
kind: "get",
|
|
29497
|
+
key: "links",
|
|
29498
|
+
value: function () {
|
|
29499
|
+
return this._links;
|
|
29500
|
+
}
|
|
29501
|
+
|
|
29543
29502
|
/**
|
|
29544
29503
|
* The adjunct links.
|
|
29545
29504
|
*/
|
|
29505
|
+
}, {
|
|
29506
|
+
kind: "set",
|
|
29507
|
+
decorators: [n$1({
|
|
29508
|
+
attribute: false
|
|
29509
|
+
})],
|
|
29510
|
+
key: "legalLinks",
|
|
29511
|
+
value: function (value) {
|
|
29512
|
+
this._legalLinks = value;
|
|
29513
|
+
this.requestUpdate('legalLinks');
|
|
29514
|
+
}
|
|
29515
|
+
}, {
|
|
29516
|
+
kind: "get",
|
|
29517
|
+
key: "legalLinks",
|
|
29518
|
+
value: function () {
|
|
29519
|
+
return this._legalLinks;
|
|
29520
|
+
}
|
|
29521
|
+
|
|
29546
29522
|
/**
|
|
29547
29523
|
* The footer links.
|
|
29548
29524
|
*/
|
|
29525
|
+
}, {
|
|
29526
|
+
kind: "set",
|
|
29527
|
+
decorators: [n$1({
|
|
29528
|
+
attribute: false
|
|
29529
|
+
})],
|
|
29530
|
+
key: "adjunctLinks",
|
|
29531
|
+
value: function (value) {
|
|
29532
|
+
this._adjunctLinks = value;
|
|
29533
|
+
this.requestUpdate('adjunctLinks');
|
|
29534
|
+
}
|
|
29535
|
+
}, {
|
|
29536
|
+
kind: "get",
|
|
29537
|
+
key: "adjunctLinks",
|
|
29538
|
+
value: function () {
|
|
29539
|
+
return this._adjunctLinks;
|
|
29540
|
+
}
|
|
29541
|
+
|
|
29549
29542
|
/**
|
|
29550
29543
|
* The locale list.
|
|
29551
29544
|
*/
|
|
29545
|
+
}, {
|
|
29546
|
+
kind: "field",
|
|
29547
|
+
decorators: [n$1({
|
|
29548
|
+
attribute: false
|
|
29549
|
+
})],
|
|
29550
|
+
key: "localeList",
|
|
29551
|
+
value: void 0
|
|
29552
|
+
}, {
|
|
29553
|
+
kind: "field",
|
|
29554
|
+
key: "modalTriggerProps",
|
|
29555
|
+
value() {
|
|
29556
|
+
return ['openLocaleModal', 'localeList'];
|
|
29557
|
+
}
|
|
29558
|
+
}, {
|
|
29559
|
+
kind: "field",
|
|
29560
|
+
decorators: [n$1({
|
|
29561
|
+
type: Boolean,
|
|
29562
|
+
attribute: 'open-locale-modal'
|
|
29563
|
+
})],
|
|
29564
|
+
key: "openLocaleModal",
|
|
29565
|
+
value: void 0
|
|
29566
|
+
}, {
|
|
29567
|
+
kind: "field",
|
|
29568
|
+
decorators: [n$1({
|
|
29569
|
+
reflect: true
|
|
29570
|
+
})],
|
|
29571
|
+
key: "size",
|
|
29572
|
+
value: void 0
|
|
29573
|
+
}, {
|
|
29574
|
+
kind: "method",
|
|
29575
|
+
key: "getLangDisplay",
|
|
29576
|
+
value:
|
|
29552
29577
|
/**
|
|
29553
29578
|
* @inheritdoc
|
|
29554
29579
|
*/
|
|
@@ -29823,10 +29848,11 @@ const {
|
|
|
29823
29848
|
*/
|
|
29824
29849
|
|
|
29825
29850
|
/**
|
|
29826
|
-
* @param state The Redux state for
|
|
29851
|
+
* @param state The Redux state for footer
|
|
29852
|
+
* @param ownProps The current component props
|
|
29827
29853
|
* @returns The converted version of the given state, tailored for `<c4d-footer-container>`.
|
|
29828
29854
|
*/
|
|
29829
|
-
function mapStateToProps$2(state) {
|
|
29855
|
+
function mapStateToProps$2(state, ownProps) {
|
|
29830
29856
|
var _translations$languag, _translations$languag2;
|
|
29831
29857
|
const {
|
|
29832
29858
|
localeAPI,
|
|
@@ -29839,10 +29865,12 @@ function mapStateToProps$2(state) {
|
|
|
29839
29865
|
const {
|
|
29840
29866
|
translations
|
|
29841
29867
|
} = translateAPI !== null && translateAPI !== void 0 ? translateAPI : {};
|
|
29868
|
+
const hasUserLinks = (ownProps === null || ownProps === void 0 ? void 0 : ownProps.links) !== undefined;
|
|
29869
|
+
const hasUserLegalLinks = (ownProps === null || ownProps === void 0 ? void 0 : ownProps.legalLinks) !== undefined;
|
|
29842
29870
|
return pickBy({
|
|
29843
29871
|
localeList: !language ? undefined : localeLists === null || localeLists === void 0 ? void 0 : localeLists[language],
|
|
29844
|
-
links: !language ? undefined : translations === null || translations === void 0 || (_translations$languag = translations[language]) === null || _translations$languag === void 0 ? void 0 : _translations$languag.footerMenu,
|
|
29845
|
-
legalLinks: !language ? undefined : translations === null || translations === void 0 || (_translations$languag2 = translations[language]) === null || _translations$languag2 === void 0 ? void 0 : _translations$languag2.footerThin
|
|
29872
|
+
links: hasUserLinks || !language ? undefined : translations === null || translations === void 0 || (_translations$languag = translations[language]) === null || _translations$languag === void 0 ? void 0 : _translations$languag.footerMenu,
|
|
29873
|
+
legalLinks: hasUserLegalLinks || !language ? undefined : translations === null || translations === void 0 || (_translations$languag2 = translations[language]) === null || _translations$languag2 === void 0 ? void 0 : _translations$languag2.footerThin
|
|
29846
29874
|
}, value => value !== undefined);
|
|
29847
29875
|
}
|
|
29848
29876
|
|
|
@@ -29863,7 +29891,7 @@ function mapDispatchToProps$2(dispatch) {
|
|
|
29863
29891
|
}
|
|
29864
29892
|
|
|
29865
29893
|
/**
|
|
29866
|
-
* Container component for
|
|
29894
|
+
* Container component for footer.
|
|
29867
29895
|
*
|
|
29868
29896
|
* @element c4d-footer-container
|
|
29869
29897
|
*/
|
|
@@ -32727,7 +32755,7 @@ let C4DMegaMenuTopNavMenu = _decorate$s([carbonElement(`${c4dPrefix$s}-megamenu-
|
|
|
32727
32755
|
var _this$parentElement;
|
|
32728
32756
|
// Import needed subcomponents on first expansion
|
|
32729
32757
|
if (!((_this$parentElement = this.parentElement) !== null && _this$parentElement !== void 0 && _this$parentElement.importedMegamenu)) {
|
|
32730
|
-
await Promise.all([import('./megamenu-left-navigation-
|
|
32758
|
+
await Promise.all([import('./megamenu-left-navigation-e197ca63.js'), import('./megamenu-category-link-a84cac86.js'), import('./megamenu-category-link-group-f5f0c0fe.js'), import('./megamenu-category-group-26a8ad72.js'), import('./megamenu-category-group-copy-c32be4d2.js'), import('./megamenu-category-heading-463194ca.js'), Promise.resolve().then(function () { return megamenuLinkWithIcon; }), import('./megamenu-overlay-84c27fb4.js'), import('./megamenu-tab-b7c53fca.js'), Promise.resolve().then(function () { return megamenuTabs; })]);
|
|
32731
32759
|
this.parentElement.importedMegamenu = true;
|
|
32732
32760
|
}
|
|
32733
32761
|
|
|
@@ -36394,24 +36422,42 @@ _decorate$i([carbonElement(`${c4dPrefix$i}-masthead-cart`)], function (_initiali
|
|
|
36394
36422
|
}
|
|
36395
36423
|
}, {
|
|
36396
36424
|
kind: "method",
|
|
36397
|
-
key: "
|
|
36398
|
-
value: function
|
|
36425
|
+
key: "handleURL",
|
|
36426
|
+
value: function handleURL() {
|
|
36399
36427
|
const {
|
|
36400
|
-
linkLabel,
|
|
36401
36428
|
locale: {
|
|
36402
36429
|
cc,
|
|
36403
36430
|
lc
|
|
36404
36431
|
}
|
|
36405
36432
|
} = this;
|
|
36433
|
+
switch (cc) {
|
|
36434
|
+
case 'uk':
|
|
36435
|
+
return `/store/en/gb/checkout`;
|
|
36436
|
+
case 'ae':
|
|
36437
|
+
return `/store/en/ae/checkout`;
|
|
36438
|
+
case 'sa':
|
|
36439
|
+
return `/store/en/sa/checkout`;
|
|
36440
|
+
default:
|
|
36441
|
+
return `/store/${lc}/${cc}/checkout`;
|
|
36442
|
+
}
|
|
36443
|
+
}
|
|
36444
|
+
}, {
|
|
36445
|
+
kind: "method",
|
|
36446
|
+
key: "render",
|
|
36447
|
+
value: function render() {
|
|
36448
|
+
const {
|
|
36449
|
+
linkLabel,
|
|
36450
|
+
handleURL
|
|
36451
|
+
} = this;
|
|
36406
36452
|
return x(_t$f || (_t$f = _$f`
|
|
36407
36453
|
<a
|
|
36408
36454
|
part="cart-link"
|
|
36409
|
-
href="
|
|
36455
|
+
href="${0}"
|
|
36410
36456
|
class="${0}--header__menu-item ${0}--header__menu-title"
|
|
36411
36457
|
aria-label="${0}"
|
|
36412
36458
|
>${0}</a
|
|
36413
36459
|
>
|
|
36414
|
-
`),
|
|
36460
|
+
`), handleURL(), prefix$9, prefix$9, linkLabel, svgResultCarbonIcon$3());
|
|
36415
36461
|
}
|
|
36416
36462
|
}, {
|
|
36417
36463
|
kind: "get",
|
|
@@ -38790,7 +38836,7 @@ let C4DLeftNav = _decorate$b([carbonElement(`${c4dPrefix$b}-left-nav`)], functio
|
|
|
38790
38836
|
value() {
|
|
38791
38837
|
return async event => {
|
|
38792
38838
|
if (!this._importedSideNav) {
|
|
38793
|
-
await Promise.all([Promise.resolve().then(function () { return leftNavName; }), import('./left-nav-menu-
|
|
38839
|
+
await Promise.all([Promise.resolve().then(function () { return leftNavName; }), import('./left-nav-menu-2c21e619.js'), import('./left-nav-menu-section-a00058c4.js'), import('./left-nav-menu-item-9a1c14ca.js'), import('./left-nav-menu-category-heading-0600c59b.js'), import('./left-nav-overlay-f345f1da.js')]);
|
|
38794
38840
|
this._importedSideNav = true;
|
|
38795
38841
|
}
|
|
38796
38842
|
this.expanded = event.detail.active;
|