@carbon/ibmdotcom-web-components 2.46.0 → 2.48.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 +6 -0
- package/dist/dotcom-shell.js +6 -6
- package/dist/dotcom-shell.min.js +6 -6
- package/dist/ibmdotcom-web-components-dotcom-shell.js +6 -6
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +6 -6
- package/dist/{index-6499062e.js → index-7073ec78.js} +10 -10
- package/dist/{index-2a27319c.js → index-b819eefc.js} +81 -12
- package/dist/{left-nav-menu-87cb8009.js → left-nav-menu-0ddb90d7.js} +6 -6
- package/dist/{left-nav-menu-category-heading-8d21b7ff.js → left-nav-menu-category-heading-08d18557.js} +6 -6
- package/dist/{left-nav-menu-category-heading-f24e3053.js → left-nav-menu-category-heading-e2592d0d.js} +6 -6
- package/dist/{left-nav-menu-d2fd2328.js → left-nav-menu-e9108438.js} +6 -6
- package/dist/{left-nav-menu-item-65681d32.js → left-nav-menu-item-a604b8db.js} +6 -6
- package/dist/{left-nav-menu-item-c7dd7954.js → left-nav-menu-item-dcdac62f.js} +6 -6
- package/dist/{left-nav-menu-section-8f88f76b.js → left-nav-menu-section-3a22d6a2.js} +6 -6
- package/dist/{left-nav-menu-section-dfce35ff.js → left-nav-menu-section-763d7ada.js} +6 -6
- package/dist/{left-nav-overlay-69e1d9a3.js → left-nav-overlay-53202cdc.js} +6 -6
- package/dist/{left-nav-overlay-da850571.js → left-nav-overlay-f079f5bd.js} +6 -6
- package/dist/{megamenu-category-group-6674efc2.js → megamenu-category-group-7334a77c.js} +6 -6
- package/dist/{megamenu-category-group-c3e817e7.js → megamenu-category-group-916e8a0d.js} +6 -6
- package/dist/{megamenu-category-group-copy-49c71042.js → megamenu-category-group-copy-af2a7de6.js} +6 -6
- package/dist/{megamenu-category-group-copy-5da065ae.js → megamenu-category-group-copy-ee79d5dc.js} +6 -6
- package/dist/{megamenu-category-heading-e38dad42.js → megamenu-category-heading-53b9be81.js} +6 -6
- package/dist/{megamenu-category-heading-7cf0e3e0.js → megamenu-category-heading-c102de05.js} +6 -6
- package/dist/{megamenu-category-link-46334ebb.js → megamenu-category-link-800dad5a.js} +6 -6
- package/dist/{megamenu-category-link-fc2fc4fe.js → megamenu-category-link-defb1bd6.js} +6 -6
- package/dist/{megamenu-category-link-group-240c9051.js → megamenu-category-link-group-1cce18e8.js} +6 -6
- package/dist/{megamenu-category-link-group-20985052.js → megamenu-category-link-group-d67bfe11.js} +6 -6
- package/dist/{megamenu-left-navigation-f119bbfc.js → megamenu-left-navigation-a328f9e5.js} +6 -6
- package/dist/{megamenu-left-navigation-6245546d.js → megamenu-left-navigation-e98850ab.js} +6 -6
- package/dist/{megamenu-overlay-babb8218.js → megamenu-overlay-406f9d65.js} +6 -6
- package/dist/{megamenu-overlay-6350b555.js → megamenu-overlay-613423d7.js} +6 -6
- package/dist/{megamenu-tab-f8d14ecf.js → megamenu-tab-0b6918ac.js} +6 -6
- package/dist/{megamenu-tab-320d35fa.js → megamenu-tab-e2c7e080.js} +6 -6
- package/es/components/masthead/masthead-cart.d.ts +14 -1
- package/es/components/masthead/masthead-cart.js +76 -7
- package/es/components/masthead/masthead-cart.js.map +1 -1
- package/package.json +2 -2
|
@@ -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-element:
|
|
24
24
|
*
|
|
25
25
|
* @license
|
|
26
|
-
* Copyright
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*
|
|
29
|
-
* lit-
|
|
29
|
+
* lit-html:
|
|
30
30
|
*
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2022 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*
|
|
35
35
|
* @lit/reactive-element:
|
|
@@ -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-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
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
|
|
@@ -33015,7 +33015,7 @@ let C4DMegaMenuTopNavMenu = _decorate$s([carbonElement(`${c4dPrefix$s}-megamenu-
|
|
|
33015
33015
|
var _this$parentElement;
|
|
33016
33016
|
// Import needed subcomponents on first expansion
|
|
33017
33017
|
if (!((_this$parentElement = this.parentElement) !== null && _this$parentElement !== void 0 && _this$parentElement.importedMegamenu)) {
|
|
33018
|
-
await Promise.all([import('./megamenu-left-navigation-
|
|
33018
|
+
await Promise.all([import('./megamenu-left-navigation-a328f9e5.js'), import('./megamenu-category-link-800dad5a.js'), import('./megamenu-category-link-group-1cce18e8.js'), import('./megamenu-category-group-7334a77c.js'), import('./megamenu-category-group-copy-af2a7de6.js'), import('./megamenu-category-heading-53b9be81.js'), Promise.resolve().then(function () { return megamenuLinkWithIcon; }), import('./megamenu-overlay-406f9d65.js'), import('./megamenu-tab-0b6918ac.js'), Promise.resolve().then(function () { return megamenuTabs; })]);
|
|
33019
33019
|
this.parentElement.importedMegamenu = true;
|
|
33020
33020
|
}
|
|
33021
33021
|
|
|
@@ -36661,13 +36661,82 @@ _decorate$i([carbonElement(`${c4dPrefix$i}-masthead-cart`)], function (_initiali
|
|
|
36661
36661
|
|
|
36662
36662
|
function connectedCallback() {
|
|
36663
36663
|
_superPropGet$c(C4DMastheadCart, "connectedCallback", this, 3)([]);
|
|
36664
|
-
|
|
36665
|
-
|
|
36666
|
-
|
|
36664
|
+
|
|
36665
|
+
// Initial check
|
|
36666
|
+
this.updateCart();
|
|
36667
|
+
|
|
36668
|
+
// Fallback retry
|
|
36669
|
+
this.checkCartWithRetry();
|
|
36670
|
+
|
|
36671
|
+
// Listen for cross-tab updates
|
|
36672
|
+
window.addEventListener('storage', this.updateCart);
|
|
36673
|
+
|
|
36674
|
+
// Fetch locale
|
|
36667
36675
|
LocaleAPI.getLocale().then(locale => {
|
|
36668
36676
|
this.locale = locale;
|
|
36669
36677
|
});
|
|
36670
36678
|
}
|
|
36679
|
+
}, {
|
|
36680
|
+
kind: "method",
|
|
36681
|
+
key: "disconnectedCallback",
|
|
36682
|
+
value: function disconnectedCallback() {
|
|
36683
|
+
_superPropGet$c(C4DMastheadCart, "disconnectedCallback", this, 3)([]);
|
|
36684
|
+
window.removeEventListener('storage', this.updateCart);
|
|
36685
|
+
}
|
|
36686
|
+
|
|
36687
|
+
/**
|
|
36688
|
+
* Updates cart state
|
|
36689
|
+
*/
|
|
36690
|
+
}, {
|
|
36691
|
+
kind: "field",
|
|
36692
|
+
key: "updateCart",
|
|
36693
|
+
value() {
|
|
36694
|
+
return () => {
|
|
36695
|
+
console.log('Checking for activeCartId...');
|
|
36696
|
+
const hasCart = SAPCommerceAPI.hasActiveCart();
|
|
36697
|
+
this.hasActiveCart = hasCart;
|
|
36698
|
+
};
|
|
36699
|
+
}
|
|
36700
|
+
}, {
|
|
36701
|
+
kind: "method",
|
|
36702
|
+
key: "checkCartWithRetry",
|
|
36703
|
+
value:
|
|
36704
|
+
/**
|
|
36705
|
+
* Checks if the user has an active cart and retries a few times if the cart cookie is not available yet.
|
|
36706
|
+
*/
|
|
36707
|
+
function checkCartWithRetry(retries = 5, delay = 200) {
|
|
36708
|
+
const check = () => {
|
|
36709
|
+
const hasCart = SAPCommerceAPI.hasActiveCart();
|
|
36710
|
+
if (hasCart) {
|
|
36711
|
+
this.hasActiveCart = true;
|
|
36712
|
+
return;
|
|
36713
|
+
}
|
|
36714
|
+
if (retries > 0) {
|
|
36715
|
+
retries--;
|
|
36716
|
+
setTimeout(check, delay);
|
|
36717
|
+
}
|
|
36718
|
+
};
|
|
36719
|
+
check();
|
|
36720
|
+
}
|
|
36721
|
+
|
|
36722
|
+
/**
|
|
36723
|
+
* Filter the correct checkout URL based on locale and country code.
|
|
36724
|
+
*/
|
|
36725
|
+
}, {
|
|
36726
|
+
kind: "method",
|
|
36727
|
+
key: "handleURL",
|
|
36728
|
+
value: function handleURL(cc, lc) {
|
|
36729
|
+
switch (cc) {
|
|
36730
|
+
case 'uk':
|
|
36731
|
+
return `/store/en/gb/checkout`;
|
|
36732
|
+
case 'ae':
|
|
36733
|
+
return `/store/en/ae/checkout`;
|
|
36734
|
+
case 'sa':
|
|
36735
|
+
return `/store/en/sa/checkout`;
|
|
36736
|
+
default:
|
|
36737
|
+
return `/store/${lc}/${cc}/checkout`;
|
|
36738
|
+
}
|
|
36739
|
+
}
|
|
36671
36740
|
}, {
|
|
36672
36741
|
kind: "method",
|
|
36673
36742
|
key: "updated",
|
|
@@ -36694,12 +36763,12 @@ _decorate$i([carbonElement(`${c4dPrefix$i}-masthead-cart`)], function (_initiali
|
|
|
36694
36763
|
return x(_t$f || (_t$f = _$f`
|
|
36695
36764
|
<a
|
|
36696
36765
|
part="cart-link"
|
|
36697
|
-
href="
|
|
36766
|
+
href="${0}"
|
|
36698
36767
|
class="${0}--header__menu-item ${0}--header__menu-title"
|
|
36699
36768
|
aria-label="${0}"
|
|
36700
36769
|
>${0}</a
|
|
36701
36770
|
>
|
|
36702
|
-
`),
|
|
36771
|
+
`), this.handleURL(cc, lc), prefix$9, prefix$9, linkLabel, svgResultCarbonIcon$3());
|
|
36703
36772
|
}
|
|
36704
36773
|
}, {
|
|
36705
36774
|
kind: "get",
|
|
@@ -39078,7 +39147,7 @@ let C4DLeftNav = _decorate$b([carbonElement(`${c4dPrefix$b}-left-nav`)], functio
|
|
|
39078
39147
|
value() {
|
|
39079
39148
|
return async event => {
|
|
39080
39149
|
if (!this._importedSideNav) {
|
|
39081
|
-
await Promise.all([Promise.resolve().then(function () { return leftNavName; }), import('./left-nav-menu-
|
|
39150
|
+
await Promise.all([Promise.resolve().then(function () { return leftNavName; }), import('./left-nav-menu-e9108438.js'), import('./left-nav-menu-section-763d7ada.js'), import('./left-nav-menu-item-a604b8db.js'), import('./left-nav-menu-category-heading-08d18557.js'), import('./left-nav-overlay-f079f5bd.js')]);
|
|
39082
39151
|
this._importedSideNav = true;
|
|
39083
39152
|
}
|
|
39084
39153
|
this.expanded = event.detail.active;
|
|
@@ -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-element:
|
|
24
24
|
*
|
|
25
25
|
* @license
|
|
26
|
-
* Copyright
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*
|
|
29
|
-
* lit-
|
|
29
|
+
* lit-html:
|
|
30
30
|
*
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2022 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*
|
|
35
35
|
* @lit/reactive-element:
|
|
@@ -80,14 +80,14 @@
|
|
|
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-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
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{F as e,g as t,n as r,x as n,v as i,s as o,c as a,a as s,q as l}from"./index-
|
|
90
|
+
import{F as e,g as t,n as r,x as n,v as i,s as o,c as a,a as s,q as l}from"./index-7073ec78.js";let c,d=e=>e;function u(){u=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!h(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,i[o])(s)||s);e=l.element,this.addElementPlacement(e,t),l.finisher&&n.push(l.finisher);var c=l.extras;if(c){for(var d=0;d<c.length;d++)this.addElementPlacement(c[d],t);r.push.apply(r,c)}}return{element:e,finishers:n,extras:r}},decorateConstructor:function(e,t){for(var r=[],n=t.length-1;n>=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;a<e.length-1;a++)for(var s=a+1;s<e.length;s++)if(e[a].key===e[s].key&&e[a].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:r}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this);var t},toElementDescriptor:function(e){var t=e.kind+"";if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var r=y(e.key),n=e.placement+"";if("static"!==n&&"prototype"!==n&&"own"!==n)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+n+'"');var i=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:r,placement:n,descriptor:Object.assign({},i)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:v(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=e.kind+"";if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var r=v(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:r}},runClassFinishers:function(e,t){for(var r=0;r<t.length;r++){var n=(0,t[r])(e);if(void 0!==n){if("function"!=typeof n)throw new TypeError("Finishers must return a constructor.");e=n}}return e},disallowProperty:function(e,t,r){if(void 0!==e[t])throw new TypeError(r+" can't have a ."+t+" property.")}};return e}function p(e){var t,r=y(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var n={kind:"field"===e.kind?"field":"method",key:r,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(n.decorators=e.decorators),"field"===e.kind&&(n.initializer=e.value),n}function f(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function h(e){return e.decorators&&e.decorators.length}function m(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function v(e,t){var r=e[t];if(void 0!==r&&"function"!=typeof r)throw new TypeError("Expected '"+t+"' to be a function");return r}function y(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function k(){return k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},k.apply(null,arguments)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}const{prefix:w,stablePrefix:E}=s;let P=function(e,t,r,n){var i=u();if(n)for(var o=0;o<n.length;o++)i=n[o](i);var a=t((function(e){i.initializeInstanceElements(e,s.elements)}),r),s=i.decorateClass(function(e){for(var t=[],r=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},n=0;n<e.length;n++){var i,o=e[n];if("method"===o.kind&&(i=t.find(r)))if(m(o.descriptor)||m(i.descriptor)){if(h(o)||h(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(h(o)){if(h(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}f(o,i)}else t.push(o)}return t}(a.d.map(p)),e);return i.initializeClassElements(a.F,s.elements),i.runClassFinishers(a.F,s.finishers)}([a(`${E}-left-nav-menu`)],(function(e,t){class a extends t{constructor(...t){super(...t),e(this)}}return{F:a,d:[{kind:"method",key:"_handleUserInitiatedToggle",value:function(e=!this.expanded,t=this.panelId){const{eventBeforeToggle:r,eventToggle:n}=this.constructor,i={bubbles:!0,cancelable:!0,composed:!0,detail:{expanded:e,panelId:t}};this.dispatchEvent(new CustomEvent(r,i))&&(this.expanded=e,this.dispatchEvent(new CustomEvent(n,i)))}},{kind:"method",key:"_handleClickExpando",value:function(){this._handleUserInitiatedToggle()}},{kind:"field",decorators:[r({type:Boolean,reflect:!0})],key:"active",value:()=>!1},{kind:"field",decorators:[r({type:Boolean,reflect:!0})],key:"expanded",value:()=>!1},{kind:"field",decorators:[r({type:String,attribute:"panel-id"})],key:"panelId",value:()=>""},{kind:"field",decorators:[r()],key:"title",value:()=>""},{kind:"method",key:"connectedCallback",value:function(){!function(e,t,r,n){var i=k(g(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}(a,"connectedCallback",this,3)([]),document.dir&&(this.dir=document.dir)}},{kind:"method",key:"render",value:function(){var e;const{active:t,expanded:r,title:o,_handleClickExpando:a}=this,s=l({[`${w}--side-nav__submenu`]:!0,[`${w}--masthead__side-nav--submemu--selected`]:t}),u=(null===(e=this.parentElement)||void 0===e?void 0:e.hasAttribute("is-submenu"))||!1;return n(c||(c=d`
|
|
91
91
|
<div class="${0}--side-nav__item" part="side-nav-item-container">
|
|
92
92
|
<button
|
|
93
93
|
part="side-nav-item-button"
|
|
@@ -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-element:
|
|
24
24
|
*
|
|
25
25
|
* @license
|
|
26
|
-
* Copyright
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*
|
|
29
|
-
* lit-
|
|
29
|
+
* lit-html:
|
|
30
30
|
*
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2022 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*
|
|
35
35
|
* @lit/reactive-element:
|
|
@@ -80,15 +80,15 @@
|
|
|
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-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
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 { g as s, n, G as t, x, q as o, j as svgResultCarbonIcon, k as svgResultCarbonIcon$1, s as styles, c as carbonElement, a as settings } from './index-
|
|
91
|
+
import { g as s, n, G as t, x, q as o, j as svgResultCarbonIcon, k as svgResultCarbonIcon$1, s as styles, c as carbonElement, a as settings } from './index-b819eefc.js';
|
|
92
92
|
|
|
93
93
|
let _ = t => t,
|
|
94
94
|
_t,
|
|
@@ -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-element:
|
|
24
24
|
*
|
|
25
25
|
* @license
|
|
26
|
-
* Copyright
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*
|
|
29
|
-
* lit-
|
|
29
|
+
* lit-html:
|
|
30
30
|
*
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2022 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*
|
|
35
35
|
* @lit/reactive-element:
|
|
@@ -80,14 +80,14 @@
|
|
|
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-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
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{g as e,n as t,G as r,x as i,q as n,j as o,k as s,s as a,c as l,a as c}from"./index-
|
|
90
|
+
import{g as e,n as t,G as r,x as i,q as n,j as o,k as s,s as a,c as l,a as c}from"./index-7073ec78.js";let d,f,p,u=e=>e;function h(){h=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(i){t.forEach((function(t){var n=t.placement;if(t.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var i=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!y(e))return r.push(e);var t=this.decorateElement(e,n);r.push(t.element),r.push.apply(r,t.extras),i.push.apply(i,t.finishers)}),this),!t)return{elements:r,finishers:i};var o=this.decorateConstructor(r,t);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,t,r){var i=t[e.placement];if(!r&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,t){for(var r=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,n[o])(a)||a);e=l.element,this.addElementPlacement(e,t),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var d=0;d<c.length;d++)this.addElementPlacement(c[d],t);r.push.apply(r,c)}}return{element:e,finishers:i,extras:r}},decorateConstructor:function(e,t){for(var r=[],i=t.length-1;i>=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[i])(n)||n);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:r}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this);var t},toElementDescriptor:function(e){var t=e.kind+"";if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var r=g(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:r,placement:i,descriptor:Object.assign({},n)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:b(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=e.kind+"";if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var r=b(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:r}},runClassFinishers:function(e,t){for(var r=0;r<t.length;r++){var i=(0,t[r])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,t,r){if(void 0!==e[t])throw new TypeError(r+" can't have a ."+t+" property.")}};return e}function m(e){var t,r=g(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:r,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function v(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function y(e){return e.decorators&&e.decorators.length}function k(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function b(e,t){var r=e[t];if(void 0!==r&&"function"!=typeof r)throw new TypeError("Expected '"+t+"' to be a function");return r}function g(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}const{prefix:E,stablePrefix:P}=c;let D=function(e,t,r,i){var n=h();if(i)for(var o=0;o<i.length;o++)n=i[o](n);var s=t((function(e){n.initializeInstanceElements(e,a.elements)}),r),a=n.decorateClass(function(e){for(var t=[],r=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},i=0;i<e.length;i++){var n,o=e[i];if("method"===o.kind&&(n=t.find(r)))if(k(o.descriptor)||k(n.descriptor)){if(y(o)||y(n))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");n.descriptor=o.descriptor}else{if(y(o)){if(y(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");n.decorators=o.decorators}v(o,n)}else t.push(o)}return t}(s.d.map(m)),e);return n.initializeClassElements(s.F,a.elements),n.runClassFinishers(s.F,a.finishers)}([l(`${P}-left-nav-menu-category-heading`)],(function(e,l){return{F:class extends l{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[t({attribute:"title"})],key:"headingText",value:void 0},{kind:"field",decorators:[t({attribute:"url"})],key:"url",value:void 0},{kind:"field",decorators:[r()],key:"boostSize",value:void 0},{kind:"method",key:"updated",value:function(e){e.has("boostSize")&&this.classList.toggle(`${E}--left-nav-menu-category__heading-large`,this.boostSize)}},{kind:"method",key:"_renderHeading",value:function(){const{headingText:e,url:t}=this,r="rtl"===document.dir.toLowerCase(),a={[`${E}--side-nav__menu-section-title`]:this.boostSize||!1,[`${E}--side-nav__heading-title`]:!t};return t?i(d||(d=u`
|
|
91
91
|
<h2 part="heading" class="${0}">
|
|
92
92
|
<a
|
|
93
93
|
part="heading-link"
|
|
@@ -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-element:
|
|
24
24
|
*
|
|
25
25
|
* @license
|
|
26
|
-
* Copyright
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*
|
|
29
|
-
* lit-
|
|
29
|
+
* lit-html:
|
|
30
30
|
*
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2022 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*
|
|
35
35
|
* @lit/reactive-element:
|
|
@@ -80,15 +80,15 @@
|
|
|
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-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
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 { F as FocusMixin, g as s, n, x, v as svgResultCarbonIcon, s as styles, c as carbonElement, a as settings, q as o } from './index-
|
|
91
|
+
import { F as FocusMixin, g as s, n, x, v as svgResultCarbonIcon, s as styles, c as carbonElement, a as settings, q as o } from './index-b819eefc.js';
|
|
92
92
|
|
|
93
93
|
let _ = t => t,
|
|
94
94
|
_t;
|
|
@@ -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-element:
|
|
24
24
|
*
|
|
25
25
|
* @license
|
|
26
|
-
* Copyright
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*
|
|
29
|
-
* lit-
|
|
29
|
+
* lit-html:
|
|
30
30
|
*
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2022 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*
|
|
35
35
|
* @lit/reactive-element:
|
|
@@ -80,15 +80,15 @@
|
|
|
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-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
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 { _ as _decorate$1, F as FocusMixin, g as s, n, x, p as prefix$1, l as _objectSpread2, B as styles, c as carbonElement, t as _get$1, u as _getPrototypeOf$1, q as o, s as styles$1, a as settings, D as svgResultCarbonIcon, E as svgResultCarbonIcon$1 } from './index-
|
|
91
|
+
import { _ as _decorate$1, F as FocusMixin, g as s, n, x, p as prefix$1, l as _objectSpread2, B as styles, c as carbonElement, t as _get$1, u as _getPrototypeOf$1, q as o, s as styles$1, a as settings, D as svgResultCarbonIcon, E as svgResultCarbonIcon$1 } from './index-b819eefc.js';
|
|
92
92
|
|
|
93
93
|
let _$1 = t => t,
|
|
94
94
|
_t$1;
|
|
@@ -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-element:
|
|
24
24
|
*
|
|
25
25
|
* @license
|
|
26
|
-
* Copyright
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*
|
|
29
|
-
* lit-
|
|
29
|
+
* lit-html:
|
|
30
30
|
*
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2022 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*
|
|
35
35
|
* @lit/reactive-element:
|
|
@@ -80,14 +80,14 @@
|
|
|
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-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
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{_ as e,F as t,g as r,n as i,x as n,p as o,l as s,B as a,c as l,t as c,u as d,q as u,s as f,a as p,D as h,E as m}from"./index-
|
|
90
|
+
import{_ as e,F as t,g as r,n as i,x as n,p as o,l as s,B as a,c as l,t as c,u as d,q as u,s as f,a as p,D as h,E as m}from"./index-7073ec78.js";let v,y=e=>e;let k,b,w=e([l(`${o}-side-nav-menu-item`)],(function(e,t){class l extends t{constructor(...t){super(...t),e(this)}}return{F:l,d:[{kind:"field",decorators:[i({type:Boolean,reflect:!0})],key:"active",value:()=>!1},{kind:"field",decorators:[i()],key:"href",value:()=>""},{kind:"field",decorators:[i()],key:"title",value:void 0},{kind:"method",key:"shouldUpdate",value:function(e){if(e.has("active")&&this.active){const{selectorMenu:e}=this.constructor,t=this.closest(e);t&&(t.active=!0)}return!0}},{kind:"method",key:"connectedCallback",value:function(){this.hasAttribute("role")||this.setAttribute("role","button"),function(e,t,r,i){var n=c(d(1&i?e.prototype:e),t,r);return 2&i?function(e){return n.apply(r,e)}:n}(l,"connectedCallback",this,3)([])}},{kind:"method",key:"render",value:function(){const{active:e,href:t,title:r}=this,i=u({[`${o}--side-nav__link`]:!0,[`${o}--side-nav__link--current`]:e});return n(v||(v=y`
|
|
91
91
|
<a part="link" class="${0}" href="${0}">
|
|
92
92
|
<span part="title" class="${0}--side-nav__link-text">
|
|
93
93
|
<slot>${0}</slot>
|
|
@@ -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-element:
|
|
24
24
|
*
|
|
25
25
|
* @license
|
|
26
|
-
* Copyright
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*
|
|
29
|
-
* lit-
|
|
29
|
+
* lit-html:
|
|
30
30
|
*
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2022 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*
|
|
35
35
|
* @lit/reactive-element:
|
|
@@ -80,14 +80,14 @@
|
|
|
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-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
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{H as e,n as t,w as r,y as i,x as n,z as o,A as s,s as a,c as l,a as c,F as d,g as u}from"./index-6499062e.js";let f,p,h=e=>e;function m(){m=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(i){t.forEach((function(t){var n=t.placement;if(t.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var i=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!k(e))return r.push(e);var t=this.decorateElement(e,n);r.push(t.element),r.push.apply(r,t.extras),i.push.apply(i,t.finishers)}),this),!t)return{elements:r,finishers:i};var o=this.decorateConstructor(r,t);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,t,r){var i=t[e.placement];if(!r&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,t){for(var r=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,n[o])(a)||a);e=l.element,this.addElementPlacement(e,t),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var d=0;d<c.length;d++)this.addElementPlacement(c[d],t);r.push.apply(r,c)}}return{element:e,finishers:i,extras:r}},decorateConstructor:function(e,t){for(var r=[],i=t.length-1;i>=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[i])(n)||n);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:r}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this);var t},toElementDescriptor:function(e){var t=e.kind+"";if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var r=g(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:r,placement:i,descriptor:Object.assign({},n)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:w(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=e.kind+"";if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var r=w(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:r}},runClassFinishers:function(e,t){for(var r=0;r<t.length;r++){var i=(0,t[r])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,t,r){if(void 0!==e[t])throw new TypeError(r+" can't have a ."+t+" property.")}};return e}function y(e){var t,r=g(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:r,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function v(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function k(e){return e.decorators&&e.decorators.length}function b(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function w(e,t){var r=e[t];if(void 0!==r&&"function"!=typeof r)throw new TypeError("Expected '"+t+"' to be a function");return r}function g(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function x(){return x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}(e,t);if(i){var n=Object.getOwnPropertyDescriptor(i,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},x.apply(null,arguments)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}const{prefix:T,stablePrefix:C}=c;let D=function(e,t,r,i){var n=m();if(i)for(var o=0;o<i.length;o++)n=i[o](n);var s=t((function(e){n.initializeInstanceElements(e,a.elements)}),r),a=n.decorateClass(function(e){for(var t=[],r=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},i=0;i<e.length;i++){var n,o=e[i];if("method"===o.kind&&(n=t.find(r)))if(b(o.descriptor)||b(n.descriptor)){if(k(o)||k(n))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");n.descriptor=o.descriptor}else{if(k(o)){if(k(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");n.decorators=o.decorators}v(o,n)}else t.push(o)}return t}(s.d.map(y)),e);return n.initializeClassElements(s.F,a.elements),n.runClassFinishers(s.F,a.finishers)}([l(`${C}-left-nav-menu-section`)],(function(e,l){class c extends l{constructor(...t){super(...t),e(this)}}return{F:c,d:[{kind:"field",decorators:[t({type:String,attribute:"aria-hidden",reflect:!0})],key:"ariaHidden",value:()=>"true"},{kind:"field",decorators:[t({attribute:"back-button-text"})],key:"backButtonText",value:()=>"Back"},{kind:"field",decorators:[t({type:Boolean,reflect:!0})],key:"expanded",value:()=>!1},{kind:"field",decorators:[t({type:String,attribute:"section-id"})],key:"sectionId",value:()=>""},{kind:"field",decorators:[t({type:Boolean,reflect:!0})],key:"transition",value:()=>!1},{kind:"field",decorators:[t({type:Boolean,attribute:"is-submenu"})],key:"isSubmenu",value:()=>!1},{kind:"field",decorators:[t({type:Boolean,reflect:!0,attribute:"show-back-button"})],key:"showBackBtn",value:()=>!1},{kind:"field",decorators:[t()],key:"title",value:()=>""},{kind:"field",decorators:[t()],key:"titleUrl",value:()=>""},{kind:"method",key:"_requestLeftNavMenuSectionUpdate",value:async function(){const{eventToggle:e}=this.constructor;return new Promise((t=>{this.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:{active:this.expanded,resolveFn:t}})),setTimeout((()=>{t()}),0)}))}},{kind:"method",key:"_handleClickBack",value:function(){const{eventToggle:e}=this.constructor,t=this.sectionId.split(", ");let r="";r="-1"===t[1]?"-1, -1":`${t[0]}, -1`;const i={bubbles:!0,cancelable:!0,composed:!0,detail:{panelId:r}};this.dispatchEvent(new CustomEvent(e,i))}},{kind:"method",decorators:[r("transitionend")],key:"_handleTransitionEnd",value:function(){setTimeout((()=>{this.expanded?this.style.overflow="":(this.style.visibility="hidden",this.style.height="0",this.style.overflow="hidden")}),0)}},{kind:"method",key:"firstUpdated",value:function(){"-1, -1"===this.sectionId?(this.expanded=!0,this.ariaHidden="false"):(this.expanded=!1,this.ariaHidden="true",this.style.visibility="hidden",this.style.height="0",this.style.overflow="hidden")}},{kind:"method",key:"shouldUpdate",value:function(e){return e.has("expanded")&&this.expanded&&(this.style.visibility="",this.style.height=""),!0}},{kind:"method",key:"updated",value:async function(e){if(await this._requestLeftNavMenuSectionUpdate(),e.has("expanded")){const{expanded:e,isSubmenu:r}=this;if(e){let e;var t;if(r)e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("button");else e=this.getRootNode().querySelector(i.selectorNavItems);e&&this.addEventListener("transitionend",(()=>{e.focus()}),{once:!0})}}}},{kind:"method",key:"connectedCallback",value:function(){var e,t,r,i,n;(e=c,t="connectedCallback",r=this,n=x(P(1&(i=3)?e.prototype:e),t,r),2&i&&"function"==typeof n?function(e){return n.apply(r,e)}:n)([]),document.dir&&(this.dir=document.dir)}},{kind:"method",key:"render",value:function(){const{backButtonText:e,_handleClickBack:t,showBackBtn:r}=this;return n(f||(f=h`
|
|
90
|
+
import{H as e,n as t,w as r,y as i,x as n,z as o,A as s,s as a,c as l,a as c,F as d,g as u}from"./index-7073ec78.js";let f,p,h=e=>e;function m(){m=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(i){t.forEach((function(t){var n=t.placement;if(t.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var i=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!k(e))return r.push(e);var t=this.decorateElement(e,n);r.push(t.element),r.push.apply(r,t.extras),i.push.apply(i,t.finishers)}),this),!t)return{elements:r,finishers:i};var o=this.decorateConstructor(r,t);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,t,r){var i=t[e.placement];if(!r&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,t){for(var r=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,n[o])(a)||a);e=l.element,this.addElementPlacement(e,t),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var d=0;d<c.length;d++)this.addElementPlacement(c[d],t);r.push.apply(r,c)}}return{element:e,finishers:i,extras:r}},decorateConstructor:function(e,t){for(var r=[],i=t.length-1;i>=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[i])(n)||n);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:r}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this);var t},toElementDescriptor:function(e){var t=e.kind+"";if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var r=g(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:r,placement:i,descriptor:Object.assign({},n)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:w(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=e.kind+"";if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var r=w(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:r}},runClassFinishers:function(e,t){for(var r=0;r<t.length;r++){var i=(0,t[r])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,t,r){if(void 0!==e[t])throw new TypeError(r+" can't have a ."+t+" property.")}};return e}function y(e){var t,r=g(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:r,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function v(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function k(e){return e.decorators&&e.decorators.length}function b(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function w(e,t){var r=e[t];if(void 0!==r&&"function"!=typeof r)throw new TypeError("Expected '"+t+"' to be a function");return r}function g(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function x(){return x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}(e,t);if(i){var n=Object.getOwnPropertyDescriptor(i,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},x.apply(null,arguments)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}const{prefix:T,stablePrefix:C}=c;let D=function(e,t,r,i){var n=m();if(i)for(var o=0;o<i.length;o++)n=i[o](n);var s=t((function(e){n.initializeInstanceElements(e,a.elements)}),r),a=n.decorateClass(function(e){for(var t=[],r=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},i=0;i<e.length;i++){var n,o=e[i];if("method"===o.kind&&(n=t.find(r)))if(b(o.descriptor)||b(n.descriptor)){if(k(o)||k(n))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");n.descriptor=o.descriptor}else{if(k(o)){if(k(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");n.decorators=o.decorators}v(o,n)}else t.push(o)}return t}(s.d.map(y)),e);return n.initializeClassElements(s.F,a.elements),n.runClassFinishers(s.F,a.finishers)}([l(`${C}-left-nav-menu-section`)],(function(e,l){class c extends l{constructor(...t){super(...t),e(this)}}return{F:c,d:[{kind:"field",decorators:[t({type:String,attribute:"aria-hidden",reflect:!0})],key:"ariaHidden",value:()=>"true"},{kind:"field",decorators:[t({attribute:"back-button-text"})],key:"backButtonText",value:()=>"Back"},{kind:"field",decorators:[t({type:Boolean,reflect:!0})],key:"expanded",value:()=>!1},{kind:"field",decorators:[t({type:String,attribute:"section-id"})],key:"sectionId",value:()=>""},{kind:"field",decorators:[t({type:Boolean,reflect:!0})],key:"transition",value:()=>!1},{kind:"field",decorators:[t({type:Boolean,attribute:"is-submenu"})],key:"isSubmenu",value:()=>!1},{kind:"field",decorators:[t({type:Boolean,reflect:!0,attribute:"show-back-button"})],key:"showBackBtn",value:()=>!1},{kind:"field",decorators:[t()],key:"title",value:()=>""},{kind:"field",decorators:[t()],key:"titleUrl",value:()=>""},{kind:"method",key:"_requestLeftNavMenuSectionUpdate",value:async function(){const{eventToggle:e}=this.constructor;return new Promise((t=>{this.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:{active:this.expanded,resolveFn:t}})),setTimeout((()=>{t()}),0)}))}},{kind:"method",key:"_handleClickBack",value:function(){const{eventToggle:e}=this.constructor,t=this.sectionId.split(", ");let r="";r="-1"===t[1]?"-1, -1":`${t[0]}, -1`;const i={bubbles:!0,cancelable:!0,composed:!0,detail:{panelId:r}};this.dispatchEvent(new CustomEvent(e,i))}},{kind:"method",decorators:[r("transitionend")],key:"_handleTransitionEnd",value:function(){setTimeout((()=>{this.expanded?this.style.overflow="":(this.style.visibility="hidden",this.style.height="0",this.style.overflow="hidden")}),0)}},{kind:"method",key:"firstUpdated",value:function(){"-1, -1"===this.sectionId?(this.expanded=!0,this.ariaHidden="false"):(this.expanded=!1,this.ariaHidden="true",this.style.visibility="hidden",this.style.height="0",this.style.overflow="hidden")}},{kind:"method",key:"shouldUpdate",value:function(e){return e.has("expanded")&&this.expanded&&(this.style.visibility="",this.style.height=""),!0}},{kind:"method",key:"updated",value:async function(e){if(await this._requestLeftNavMenuSectionUpdate(),e.has("expanded")){const{expanded:e,isSubmenu:r}=this;if(e){let e;var t;if(r)e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("button");else e=this.getRootNode().querySelector(i.selectorNavItems);e&&this.addEventListener("transitionend",(()=>{e.focus()}),{once:!0})}}}},{kind:"method",key:"connectedCallback",value:function(){var e,t,r,i,n;(e=c,t="connectedCallback",r=this,n=x(P(1&(i=3)?e.prototype:e),t,r),2&i&&"function"==typeof n?function(e){return n.apply(r,e)}:n)([]),document.dir&&(this.dir=document.dir)}},{kind:"method",key:"render",value:function(){const{backButtonText:e,_handleClickBack:t,showBackBtn:r}=this;return n(f||(f=h`
|
|
91
91
|
<ul part="side-nav-submenu-container">
|
|
92
92
|
${0}
|
|
93
93
|
<slot></slot>
|
|
@@ -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-element:
|
|
24
24
|
*
|
|
25
25
|
* @license
|
|
26
|
-
* Copyright
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*
|
|
29
|
-
* lit-
|
|
29
|
+
* lit-html:
|
|
30
30
|
*
|
|
31
31
|
* @license
|
|
32
|
-
* Copyright
|
|
32
|
+
* Copyright 2022 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*
|
|
35
35
|
* @lit/reactive-element:
|
|
@@ -80,15 +80,15 @@
|
|
|
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-thunk
|
|
84
83
|
* https://www.npmjs.com/package/redux-logger
|
|
84
|
+
* https://www.npmjs.com/package/redux-thunk
|
|
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 { H as HostListenerMixin, n, w as HostListener, y as C4DLeftNav, x, z as svgResultCarbonIcon, A as selectorTabbable, s as styles, c as carbonElement, a as settings, F as FocusMixin, g as s } from './index-
|
|
91
|
+
import { H as HostListenerMixin, n, w as HostListener, y as C4DLeftNav, x, z as svgResultCarbonIcon, A as selectorTabbable, s as styles, c as carbonElement, a as settings, F as FocusMixin, g as s } from './index-b819eefc.js';
|
|
92
92
|
|
|
93
93
|
let _ = t => t,
|
|
94
94
|
_t,
|