@swisspost/internet-header 1.15.24 → 1.16.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/dist/cjs/focus-trap.cjs.entry.js +50 -32
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{klp-widget.controller-d8938377.js → klp-widget.controller-7a8a5ddc.js} +26 -2
- package/dist/cjs/{post-internet-header-7556c7d7.js → post-internet-header-72edf928.js} +4 -3
- package/dist/cjs/{post-klp-login-widget-0237ef6a.js → post-klp-login-widget-75dfc12f.js} +31 -1
- package/dist/cjs/post-klp-login-widget.cjs.entry.js +1 -1
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +1 -1
- package/dist/collection/assets/js/klp-login-widget.js +26 -2
- package/dist/collection/components/post-internet-breadcrumbs/post-internet-breadcrumbs.js +9 -3
- package/dist/collection/components/post-internet-header/post-internet-header.js +61 -15
- package/dist/collection/components/post-klp-login-widget/post-klp-login-widget.js +30 -0
- package/dist/components/focus-trap2.js +50 -32
- package/dist/components/klp-widget.controller.js +26 -2
- package/dist/components/post-klp-login-widget2.js +30 -0
- package/dist/components/swisspost-internet-header.js +4 -3
- package/dist/docs.json +120 -20
- package/dist/esm/focus-trap.entry.js +50 -32
- package/dist/esm/index.js +2 -2
- package/dist/esm/{klp-widget.controller-e635b42e.js → klp-widget.controller-6f5a7586.js} +26 -2
- package/dist/esm/{post-internet-header-e1b98bd6.js → post-internet-header-25cbaecc.js} +4 -3
- package/dist/esm/{post-klp-login-widget-0eadcd31.js → post-klp-login-widget-6aeb2fd2.js} +31 -1
- package/dist/esm/post-klp-login-widget.entry.js +1 -1
- package/dist/esm/swisspost-internet-header.entry.js +1 -1
- package/dist/esm-es5/focus-trap.entry.js +3 -3
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{klp-widget.controller-e635b42e.js → klp-widget.controller-6f5a7586.js} +2 -2
- package/dist/esm-es5/post-internet-header-25cbaecc.js +1 -0
- package/dist/esm-es5/{post-klp-login-widget-0eadcd31.js → post-klp-login-widget-6aeb2fd2.js} +1 -1
- package/dist/esm-es5/post-klp-login-widget.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
- package/dist/swisspost-internet-header/index.esm.js +1 -1
- package/dist/swisspost-internet-header/p-085d38af.entry.js +11 -0
- package/dist/swisspost-internet-header/{p-6e7f7a32.system.js → p-1d65df23.system.js} +1 -1
- package/dist/swisspost-internet-header/p-2aced2a4.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a14bbb6c.system.js → p-2ca95ddf.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-d7bb8c4f.js → p-572ff7a8.js} +1 -1
- package/dist/swisspost-internet-header/p-5a806d1a.system.js +1 -0
- package/dist/swisspost-internet-header/p-695fe962.system.js +1 -1
- package/dist/swisspost-internet-header/{p-ed30835e.entry.js → p-935c52e3.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-45fcb989.system.js → p-9ba6f8b6.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-dd01f7fe.js → p-9f6b64df.js} +1 -1
- package/dist/swisspost-internet-header/{p-4d5bddc5.system.entry.js → p-c45a080c.system.entry.js} +3 -3
- package/dist/swisspost-internet-header/p-cf4d8f82.js +1 -0
- package/dist/swisspost-internet-header/{p-28e2e93e.system.entry.js → p-df70d07e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-095131e8.system.entry.js → p-eefdd3f5.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/dist/types/components/post-internet-breadcrumbs/post-internet-breadcrumbs.d.ts +3 -1
- package/dist/types/components/post-internet-header/post-internet-header.d.ts +16 -1
- package/dist/types/components/post-klp-login-widget/post-klp-login-widget.d.ts +3 -0
- package/dist/types/components.d.ts +37 -4
- package/package.json +3 -3
- package/dist/esm-es5/post-internet-header-e1b98bd6.js +0 -1
- package/dist/swisspost-internet-header/p-1be3e7c9.js +0 -1
- package/dist/swisspost-internet-header/p-810b3f48.system.js +0 -1
- package/dist/swisspost-internet-header/p-944e8412.entry.js +0 -11
- package/dist/swisspost-internet-header/p-b44980bc.entry.js +0 -1
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-bb0e68fd.js';
|
|
2
2
|
|
|
3
3
|
/*!
|
|
4
|
-
* tabbable 6.
|
|
4
|
+
* tabbable 6.4.0
|
|
5
5
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
6
6
|
*/
|
|
7
7
|
// NOTE: separate `:not()` selectors has broader browser support than the newer
|
|
8
8
|
// `:not([inert], [inert] *)` (Feb 2023)
|
|
9
|
-
|
|
10
|
-
// the entire query to fail, resulting in no nodes found, which will break a lot
|
|
11
|
-
// of things... so we have to rely on JS to identify nodes inside an inert container
|
|
12
|
-
var candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable="false"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];
|
|
9
|
+
var candidateSelectors = ['input:not([inert]):not([inert] *)', 'select:not([inert]):not([inert] *)', 'textarea:not([inert]):not([inert] *)', 'a[href]:not([inert]):not([inert] *)', 'button:not([inert]):not([inert] *)', '[tabindex]:not(slot):not([inert]):not([inert] *)', 'audio[controls]:not([inert]):not([inert] *)', 'video[controls]:not([inert]):not([inert] *)', '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', 'details>summary:first-of-type:not([inert]):not([inert] *)', 'details:not([inert]):not([inert] *)'];
|
|
13
10
|
var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
|
|
14
11
|
var NoElement = typeof Element === 'undefined';
|
|
15
12
|
var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
@@ -22,13 +19,13 @@ var getRootNode = !NoElement && Element.prototype.getRootNode ? function (elemen
|
|
|
22
19
|
|
|
23
20
|
/**
|
|
24
21
|
* Determines if a node is inert or in an inert ancestor.
|
|
25
|
-
* @param {
|
|
22
|
+
* @param {Node} [node]
|
|
26
23
|
* @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
|
|
27
24
|
* see if any of them are inert. If false, only `node` itself is considered.
|
|
28
25
|
* @returns {boolean} True if inert itself or by way of being in an inert ancestor.
|
|
29
26
|
* False if `node` is falsy.
|
|
30
27
|
*/
|
|
31
|
-
var
|
|
28
|
+
var _isInert = function isInert(node, lookUp) {
|
|
32
29
|
var _node$getAttribute;
|
|
33
30
|
if (lookUp === void 0) {
|
|
34
31
|
lookUp = true;
|
|
@@ -42,10 +39,10 @@ var isInert = function isInert(node, lookUp) {
|
|
|
42
39
|
// NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
|
|
43
40
|
// if it weren't for `matches()` not being a function on shadow roots; the following
|
|
44
41
|
// code works for any kind of node
|
|
45
|
-
|
|
46
|
-
//
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
var result = inert || lookUp && node && (
|
|
43
|
+
// closest does not exist on shadow roots, so we fall back to a manual
|
|
44
|
+
// lookup upward, in case it is not defined.
|
|
45
|
+
typeof node.closest === 'function' ? node.closest('[inert]') : _isInert(node.parentNode));
|
|
49
46
|
return result;
|
|
50
47
|
};
|
|
51
48
|
|
|
@@ -71,8 +68,8 @@ var isContentEditable = function isContentEditable(node) {
|
|
|
71
68
|
*/
|
|
72
69
|
var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
73
70
|
// even if `includeContainer=false`, we still have to check it for inertness because
|
|
74
|
-
// if it's inert, all its children are inert
|
|
75
|
-
if (
|
|
71
|
+
// if it's inert (either by itself or via its parent), then all its children are inert
|
|
72
|
+
if (_isInert(el)) {
|
|
76
73
|
return [];
|
|
77
74
|
}
|
|
78
75
|
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
@@ -117,12 +114,12 @@ var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
|
117
114
|
* @param {IterativeOptions} options
|
|
118
115
|
* @returns {Array.<Element|CandidateScope>}
|
|
119
116
|
*/
|
|
120
|
-
var
|
|
117
|
+
var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
121
118
|
var candidates = [];
|
|
122
119
|
var elementsToCheck = Array.from(elements);
|
|
123
120
|
while (elementsToCheck.length) {
|
|
124
121
|
var element = elementsToCheck.shift();
|
|
125
|
-
if (
|
|
122
|
+
if (_isInert(element, false)) {
|
|
126
123
|
// no need to look up since we're drilling down
|
|
127
124
|
// anything inside this container will also be inert
|
|
128
125
|
continue;
|
|
@@ -131,7 +128,7 @@ var getCandidatesIteratively = function getCandidatesIteratively(elements, inclu
|
|
|
131
128
|
// add shadow dom slot scope (slot itself cannot be focusable)
|
|
132
129
|
var assigned = element.assignedElements();
|
|
133
130
|
var content = assigned.length ? assigned : element.children;
|
|
134
|
-
var nestedCandidates =
|
|
131
|
+
var nestedCandidates = _getCandidatesIteratively(content, true, options);
|
|
135
132
|
if (options.flatten) {
|
|
136
133
|
candidates.push.apply(candidates, nestedCandidates);
|
|
137
134
|
} else {
|
|
@@ -155,7 +152,7 @@ var getCandidatesIteratively = function getCandidatesIteratively(elements, inclu
|
|
|
155
152
|
// no inert look up because we're already drilling down and checking for inertness
|
|
156
153
|
// on the way down, so all containers to this root node should have already been
|
|
157
154
|
// vetted as non-inert
|
|
158
|
-
var validShadowRoot = !
|
|
155
|
+
var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
|
|
159
156
|
if (shadowRoot && validShadowRoot) {
|
|
160
157
|
// add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
|
|
161
158
|
// shadow exists, so look at light dom children as fallback BUT create a scope for any
|
|
@@ -163,7 +160,7 @@ var getCandidatesIteratively = function getCandidatesIteratively(elements, inclu
|
|
|
163
160
|
// children of the web component element (which has the shadow), in the light dom, but
|
|
164
161
|
// slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
|
|
165
162
|
// _after_ we return from this recursive call
|
|
166
|
-
var _nestedCandidates =
|
|
163
|
+
var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
167
164
|
if (options.flatten) {
|
|
168
165
|
candidates.push.apply(candidates, _nestedCandidates);
|
|
169
166
|
} else {
|
|
@@ -340,6 +337,28 @@ var isZeroArea = function isZeroArea(node) {
|
|
|
340
337
|
var isHidden = function isHidden(node, _ref) {
|
|
341
338
|
var displayCheck = _ref.displayCheck,
|
|
342
339
|
getShadowRoot = _ref.getShadowRoot;
|
|
340
|
+
if (displayCheck === 'full-native') {
|
|
341
|
+
if ('checkVisibility' in node) {
|
|
342
|
+
// Chrome >= 105, Edge >= 105, Firefox >= 106, Safari >= 17.4
|
|
343
|
+
// @see https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility#browser_compatibility
|
|
344
|
+
var visible = node.checkVisibility({
|
|
345
|
+
// Checking opacity might be desirable for some use cases, but natively,
|
|
346
|
+
// opacity zero elements _are_ focusable and tabbable.
|
|
347
|
+
checkOpacity: false,
|
|
348
|
+
opacityProperty: false,
|
|
349
|
+
contentVisibilityAuto: true,
|
|
350
|
+
visibilityProperty: true,
|
|
351
|
+
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
352
|
+
// support both. However, this alias has wider browser support (Chrome
|
|
353
|
+
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
354
|
+
// we include it anyway.
|
|
355
|
+
checkVisibilityCSS: true
|
|
356
|
+
});
|
|
357
|
+
return !visible;
|
|
358
|
+
}
|
|
359
|
+
// Fall through to manual visibility checks
|
|
360
|
+
}
|
|
361
|
+
|
|
343
362
|
// NOTE: visibility will be `undefined` if node is detached from the document
|
|
344
363
|
// (see notes about this further down), which means we will consider it visible
|
|
345
364
|
// (this is legacy behavior from a very long way back)
|
|
@@ -353,7 +372,10 @@ var isHidden = function isHidden(node, _ref) {
|
|
|
353
372
|
if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
|
|
354
373
|
return true;
|
|
355
374
|
}
|
|
356
|
-
if (!displayCheck || displayCheck === 'full' ||
|
|
375
|
+
if (!displayCheck || displayCheck === 'full' ||
|
|
376
|
+
// full-native can run this branch when it falls through in case
|
|
377
|
+
// Element#checkVisibility is unsupported
|
|
378
|
+
displayCheck === 'full-native' || displayCheck === 'legacy-full') {
|
|
357
379
|
if (typeof getShadowRoot === 'function') {
|
|
358
380
|
// figure out if we should consider the node to be in an undisclosed shadow and use the
|
|
359
381
|
// 'non-zero-area' fallback
|
|
@@ -462,11 +484,7 @@ var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
|
462
484
|
return false;
|
|
463
485
|
};
|
|
464
486
|
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
|
|
465
|
-
if (node.disabled ||
|
|
466
|
-
// we must do an inert look up to filter out any elements inside an inert ancestor
|
|
467
|
-
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
468
|
-
// note related to `candidateSelectors`)
|
|
469
|
-
isInert(node) || isHiddenInput(node) || isHidden(node, options) ||
|
|
487
|
+
if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
|
|
470
488
|
// For a details element with a summary, the summary element gets the focus
|
|
471
489
|
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
472
490
|
return false;
|
|
@@ -479,7 +497,7 @@ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(opt
|
|
|
479
497
|
}
|
|
480
498
|
return true;
|
|
481
499
|
};
|
|
482
|
-
var
|
|
500
|
+
var isShadowRootTabbable = function isShadowRootTabbable(shadowHostNode) {
|
|
483
501
|
var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
|
|
484
502
|
if (isNaN(tabIndex) || tabIndex >= 0) {
|
|
485
503
|
return true;
|
|
@@ -493,14 +511,14 @@ var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNod
|
|
|
493
511
|
* @param {Array.<Element|CandidateScope>} candidates
|
|
494
512
|
* @returns Element[]
|
|
495
513
|
*/
|
|
496
|
-
var
|
|
514
|
+
var _sortByOrder = function sortByOrder(candidates) {
|
|
497
515
|
var regularTabbables = [];
|
|
498
516
|
var orderedTabbables = [];
|
|
499
517
|
candidates.forEach(function (item, i) {
|
|
500
518
|
var isScope = !!item.scopeParent;
|
|
501
519
|
var element = isScope ? item.scopeParent : item;
|
|
502
520
|
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
503
|
-
var elements = isScope ?
|
|
521
|
+
var elements = isScope ? _sortByOrder(item.candidates) : element;
|
|
504
522
|
if (candidateTabindex === 0) {
|
|
505
523
|
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
506
524
|
} else {
|
|
@@ -522,22 +540,22 @@ var tabbable = function tabbable(container, options) {
|
|
|
522
540
|
options = options || {};
|
|
523
541
|
var candidates;
|
|
524
542
|
if (options.getShadowRoot) {
|
|
525
|
-
candidates =
|
|
543
|
+
candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
526
544
|
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
527
545
|
flatten: false,
|
|
528
546
|
getShadowRoot: options.getShadowRoot,
|
|
529
|
-
shadowRootFilter:
|
|
547
|
+
shadowRootFilter: isShadowRootTabbable
|
|
530
548
|
});
|
|
531
549
|
} else {
|
|
532
550
|
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
533
551
|
}
|
|
534
|
-
return
|
|
552
|
+
return _sortByOrder(candidates);
|
|
535
553
|
};
|
|
536
554
|
var focusable = function focusable(container, options) {
|
|
537
555
|
options = options || {};
|
|
538
556
|
var candidates;
|
|
539
557
|
if (options.getShadowRoot) {
|
|
540
|
-
candidates =
|
|
558
|
+
candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
541
559
|
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
542
560
|
flatten: true,
|
|
543
561
|
getShadowRoot: options.getShadowRoot
|
|
@@ -557,7 +575,7 @@ var isTabbable = function isTabbable(node, options) {
|
|
|
557
575
|
}
|
|
558
576
|
return isNodeMatchingSelectorTabbable(options, node);
|
|
559
577
|
};
|
|
560
|
-
var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
|
|
578
|
+
var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe:not([inert]):not([inert] *)').join(',');
|
|
561
579
|
var isFocusable = function isFocusable(node, options) {
|
|
562
580
|
options = options || {};
|
|
563
581
|
if (!node) {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as PostInternetHeader } from './post-internet-header-
|
|
1
|
+
export { P as PostInternetHeader } from './post-internet-header-25cbaecc.js';
|
|
2
2
|
export { P as PostInternetBreadcrumbs } from './post-internet-breadcrumbs-ee507bec.js';
|
|
3
3
|
export { P as PostInternetFooter } from './post-internet-footer-cae59692.js';
|
|
4
4
|
export { P as PostSkiplinks } from './post-skiplinks-0779348d.js';
|
|
@@ -7,7 +7,7 @@ export { P as PostLanguageSwitch } from './post-language-switch-d9159f47.js';
|
|
|
7
7
|
export { P as PostLogo } from './post-logo-2c3faf36.js';
|
|
8
8
|
export { P as PostMainNavigation } from './post-main-navigation-58b5c03d.js';
|
|
9
9
|
export { P as PostSearch } from './post-search-daf7d66d.js';
|
|
10
|
-
export { P as PostKlpLoginWidget } from './post-klp-login-widget-
|
|
10
|
+
export { P as PostKlpLoginWidget } from './post-klp-login-widget-6aeb2fd2.js';
|
|
11
11
|
import './index-bb0e68fd.js';
|
|
12
12
|
import './index-d3f1363d.js';
|
|
13
13
|
import './language.service-2960ab93.js';
|
|
@@ -14309,6 +14309,7 @@ const vertx = window.vertx || {};
|
|
|
14309
14309
|
}
|
|
14310
14310
|
}
|
|
14311
14311
|
|
|
14312
|
+
|
|
14312
14313
|
function audit(message) {
|
|
14313
14314
|
const auditingEvent = JSON.stringify({
|
|
14314
14315
|
adr: address,
|
|
@@ -15217,6 +15218,12 @@ const vertx = window.vertx || {};
|
|
|
15217
15218
|
if (!address) {
|
|
15218
15219
|
if (trySubscription()) {
|
|
15219
15220
|
log('Subscribing to get an address');
|
|
15221
|
+
if (globalThis.console && globalThis.console.info) {
|
|
15222
|
+
console.info('[klp-login-widget] subscribe attempt', {
|
|
15223
|
+
hasNctrl: document.cookie.includes(controlCookieName + '='),
|
|
15224
|
+
userAgent: navigator.userAgent,
|
|
15225
|
+
});
|
|
15226
|
+
}
|
|
15220
15227
|
const startTime = new Date().getTime();
|
|
15221
15228
|
fetch(platformEndPoints.subscribe, {
|
|
15222
15229
|
method: 'GET',
|
|
@@ -15227,8 +15234,25 @@ const vertx = window.vertx || {};
|
|
|
15227
15234
|
.then(message => handleMessage(message))
|
|
15228
15235
|
.catch(error => {
|
|
15229
15236
|
log('Failed to subscribe: ' + error.message);
|
|
15230
|
-
|
|
15231
|
-
|
|
15237
|
+
if (globalThis.console && globalThis.console.warn) {
|
|
15238
|
+
console.warn('[klp-login-widget] subscribe failed', {
|
|
15239
|
+
errorType: error.constructor ? error.constructor.name : typeof error,
|
|
15240
|
+
errorMessage: error.message,
|
|
15241
|
+
isTypeError: error instanceof TypeError,
|
|
15242
|
+
hasNctrl: document.cookie.includes(controlCookieName + '='),
|
|
15243
|
+
userAgent: navigator.userAgent,
|
|
15244
|
+
url: globalThis.location.href,
|
|
15245
|
+
});
|
|
15246
|
+
}
|
|
15247
|
+
if (error instanceof TypeError) {
|
|
15248
|
+
// Fetch cancelled by browser navigation, not an auth failure.
|
|
15249
|
+
// Do not call logout(): this would delete NCTRL and prevent recovery.
|
|
15250
|
+
log('Subscribe cancelled by navigation: preserving NCTRL, skipping logout.');
|
|
15251
|
+
renderWidget();
|
|
15252
|
+
} else {
|
|
15253
|
+
logout();
|
|
15254
|
+
renderWidget();
|
|
15255
|
+
}
|
|
15232
15256
|
});
|
|
15233
15257
|
logPerformanceMetric('subscribe()', new Date().getTime() - startTime);
|
|
15234
15258
|
} else {
|
|
@@ -371,7 +371,7 @@ const setMainNavigationIds = (navMainEntities) => {
|
|
|
371
371
|
};
|
|
372
372
|
|
|
373
373
|
const name = "@swisspost/internet-header";
|
|
374
|
-
const version = "1.
|
|
374
|
+
const version = "1.16.0";
|
|
375
375
|
const description = "The header for client facing applications.";
|
|
376
376
|
const author = "Swiss Post <design-system@post.ch>";
|
|
377
377
|
const license = "Apache-2.0";
|
|
@@ -412,7 +412,7 @@ const scripts = {
|
|
|
412
412
|
generate: "stencil generate"
|
|
413
413
|
};
|
|
414
414
|
const dependencies = {
|
|
415
|
-
"@swisspost/design-system-styles": "workspace:9.
|
|
415
|
+
"@swisspost/design-system-styles": "workspace:9.7.0",
|
|
416
416
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
417
417
|
"iframe-resizer": "4.4.5",
|
|
418
418
|
jquery: "3.7.1",
|
|
@@ -451,7 +451,7 @@ const devDependencies = {
|
|
|
451
451
|
sass: "1.77.8",
|
|
452
452
|
"start-server-and-test": "2.0.5",
|
|
453
453
|
"ts-jest": "29.2.4",
|
|
454
|
-
typescript: "5.
|
|
454
|
+
typescript: "5.9.3"
|
|
455
455
|
};
|
|
456
456
|
const keywords = [
|
|
457
457
|
"components",
|
|
@@ -582,6 +582,7 @@ const PostInternetHeader = class {
|
|
|
582
582
|
/**
|
|
583
583
|
* Get the currently set language as a two letter string ("de", "fr" "it" or "en")
|
|
584
584
|
* @returns string
|
|
585
|
+
* @deprecated use `document.documentElement.lang` instead
|
|
585
586
|
*/
|
|
586
587
|
async getCurrentLanguage() {
|
|
587
588
|
var _a;
|
|
@@ -29,7 +29,7 @@ const PostKlpLoginWidget = class {
|
|
|
29
29
|
if (((_b = (_a = state.localizedConfig) === null || _a === void 0 ? void 0 : _a.header) === null || _b === void 0 ? void 0 : _b.showJobsLoginWidget) ||
|
|
30
30
|
!((_d = (_c = state.localizedConfig) === null || _c === void 0 ? void 0 : _c.header) === null || _d === void 0 ? void 0 : _d.loginWidgetOptions))
|
|
31
31
|
return;
|
|
32
|
-
const { initializeKLPLoginWidget } = await import('./klp-widget.controller-
|
|
32
|
+
const { initializeKLPLoginWidget } = await import('./klp-widget.controller-6f5a7586.js');
|
|
33
33
|
let _e = state.localizedConfig.header.loginWidgetOptions, { platform } = _e, widgetOptions = __rest(_e, ["platform"]);
|
|
34
34
|
if (this.logoutUrl !== undefined) {
|
|
35
35
|
platform = Object.assign(Object.assign({}, platform), { logoutURL: this.logoutUrl });
|
|
@@ -38,6 +38,36 @@ const PostKlpLoginWidget = class {
|
|
|
38
38
|
platform = Object.assign(Object.assign({}, platform), { selfAdminOrigin: this.selfAdminOrigin });
|
|
39
39
|
}
|
|
40
40
|
initializeKLPLoginWidget('post-klp-login-widget', Object.assign(Object.assign(Object.assign({}, widgetOptions), { environment: state.environment }), { platform }));
|
|
41
|
+
this.setupTracking();
|
|
42
|
+
}
|
|
43
|
+
setupTracking() {
|
|
44
|
+
var _a;
|
|
45
|
+
if (typeof window === 'undefined')
|
|
46
|
+
return;
|
|
47
|
+
window.dataLayer = window.dataLayer || [];
|
|
48
|
+
(_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.addEventListener('click', this.handleClick);
|
|
49
|
+
}
|
|
50
|
+
handleClick(event) {
|
|
51
|
+
var _a, _b;
|
|
52
|
+
const settingsLink = event
|
|
53
|
+
.composedPath()
|
|
54
|
+
.find(el => el instanceof HTMLAnchorElement && el.matches('#authenticated-menu a[href*="/settings"]'));
|
|
55
|
+
if (!settingsLink)
|
|
56
|
+
return;
|
|
57
|
+
const linkText = (_b = (_a = settingsLink
|
|
58
|
+
.querySelector('.klp-widget-notification-link-text')) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim();
|
|
59
|
+
window.dataLayer.push({
|
|
60
|
+
event: 'select_menu',
|
|
61
|
+
type: 'authenticated_menu',
|
|
62
|
+
label: 'settings',
|
|
63
|
+
text: linkText,
|
|
64
|
+
link_url: settingsLink.href,
|
|
65
|
+
additional_info: '',
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
disconnectedCallback() {
|
|
69
|
+
var _a;
|
|
70
|
+
(_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeEventListener('click', this.handleClick);
|
|
41
71
|
}
|
|
42
72
|
/**
|
|
43
73
|
* Sets the focus on the login button
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as post_klp_login_widget } from './post-klp-login-widget-
|
|
1
|
+
export { P as post_klp_login_widget } from './post-klp-login-widget-6aeb2fd2.js';
|
|
2
2
|
import './index-bb0e68fd.js';
|
|
3
3
|
import './store-629cab77.js';
|
|
4
4
|
import './svg-sprite.component-abb69a1b.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as swisspost_internet_header } from './post-internet-header-
|
|
1
|
+
export { P as swisspost_internet_header } from './post-internet-header-25cbaecc.js';
|
|
2
2
|
import './index-bb0e68fd.js';
|
|
3
3
|
import './index-d3f1363d.js';
|
|
4
4
|
import './language.service-2960ab93.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import{r as registerInstance,h,H as Host,g as getElement}from"./index-bb0e68fd.js";
|
|
2
2
|
/*!
|
|
3
|
-
* tabbable 6.
|
|
3
|
+
* tabbable 6.4.0
|
|
4
4
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5
5
|
*/
|
|
6
|
-
var candidateSelectors=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"];var candidateSelector=candidateSelectors.join(",");var NoElement=typeof Element==="undefined";var matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var getRootNode=!NoElement&&Element.prototype.getRootNode?function(e){var t;return e===null||e===void 0?void 0:(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e===null||e===void 0?void 0:e.ownerDocument};var
|
|
6
|
+
var candidateSelectors=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"];var candidateSelector=candidateSelectors.join(",");var NoElement=typeof Element==="undefined";var matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var getRootNode=!NoElement&&Element.prototype.getRootNode?function(e){var t;return e===null||e===void 0?void 0:(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e===null||e===void 0?void 0:e.ownerDocument};var _isInert=function e(t,r){var n;if(r===void 0){r=true}var i=t===null||t===void 0?void 0:(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert");var a=i===""||i==="true";var o=a||r&&t&&(typeof t.closest==="function"?t.closest("[inert]"):_isInert(t.parentNode));return o};var isContentEditable=function e(t){var r;var n=t===null||t===void 0?void 0:(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"};var getCandidates=function e(t,r,n){if(_isInert(t)){return[]}var i=Array.prototype.slice.apply(t.querySelectorAll(candidateSelector));if(r&&matches.call(t,candidateSelector)){i.unshift(t)}i=i.filter(n);return i};var _getCandidatesIteratively=function e(t,r,n){var i=[];var a=Array.from(t);while(a.length){var o=a.shift();if(_isInert(o,false)){continue}if(o.tagName==="SLOT"){var u=o.assignedElements();var f=u.length?u:o.children;var s=_getCandidatesIteratively(f,true,n);if(n.flatten){i.push.apply(i,s)}else{i.push({scopeParent:o,candidates:s})}}else{var l=matches.call(o,candidateSelector);if(l&&n.filter(o)&&(r||!t.includes(o))){i.push(o)}var c=o.shadowRoot||typeof n.getShadowRoot==="function"&&n.getShadowRoot(o);var d=!_isInert(c,false)&&(!n.shadowRootFilter||n.shadowRootFilter(o));if(c&&d){var v=_getCandidatesIteratively(c===true?o.children:c.children,true,n);if(n.flatten){i.push.apply(i,v)}else{i.push({scopeParent:o,candidates:v})}}else{a.unshift.apply(a,o.children)}}}return i};var hasTabIndex=function e(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))};var getTabIndex=function e(t){if(!t){throw new Error("No node provided")}if(t.tabIndex<0){if((/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||isContentEditable(t))&&!hasTabIndex(t)){return 0}}return t.tabIndex};var getSortOrderTabIndex=function e(t,r){var n=getTabIndex(t);if(n<0&&r&&!hasTabIndex(t)){return 0}return n};var sortOrderedTabbables=function e(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex};var isInput=function e(t){return t.tagName==="INPUT"};var isHiddenInput=function e(t){return isInput(t)&&t.type==="hidden"};var isDetailsWithSummary=function e(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some((function(e){return e.tagName==="SUMMARY"}));return r};var getCheckedRadio=function e(t,r){for(var n=0;n<t.length;n++){if(t[n].checked&&t[n].form===r){return t[n]}}};var isTabbableRadio=function e(t){if(!t.name){return true}var r=t.form||getRootNode(t);var n=function e(t){return r.querySelectorAll('input[type="radio"][name="'+t+'"]')};var i;if(typeof window!=="undefined"&&typeof window.CSS!=="undefined"&&typeof window.CSS.escape==="function"){i=n(window.CSS.escape(t.name))}else{try{i=n(t.name)}catch(e){console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message);return false}}var a=getCheckedRadio(i,t.form);return!a||a===t};var isRadio=function e(t){return isInput(t)&&t.type==="radio"};var isNonTabbableRadio=function e(t){return isRadio(t)&&!isTabbableRadio(t)};var isNodeAttached=function e(t){var r;var n=t&&getRootNode(t);var i=(r=n)===null||r===void 0?void 0:r.host;var a=false;if(n&&n!==t){var o,u,f;a=!!((o=i)!==null&&o!==void 0&&(u=o.ownerDocument)!==null&&u!==void 0&&u.contains(i)||t!==null&&t!==void 0&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));while(!a&&i){var s,l,c;n=getRootNode(i);i=(s=n)===null||s===void 0?void 0:s.host;a=!!((l=i)!==null&&l!==void 0&&(c=l.ownerDocument)!==null&&c!==void 0&&c.contains(i))}}return a};var isZeroArea=function e(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0};var isHidden=function e(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(n==="full-native"){if("checkVisibility"in t){var a=t.checkVisibility({checkOpacity:false,opacityProperty:false,contentVisibilityAuto:true,visibilityProperty:true,checkVisibilityCSS:true});return!a}}if(getComputedStyle(t).visibility==="hidden"){return true}var o=matches.call(t,"details>summary:first-of-type");var u=o?t.parentElement:t;if(matches.call(u,"details:not([open]) *")){return true}if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof i==="function"){var f=t;while(t){var s=t.parentElement;var l=getRootNode(t);if(s&&!s.shadowRoot&&i(s)===true){return isZeroArea(t)}else if(t.assignedSlot){t=t.assignedSlot}else if(!s&&l!==t.ownerDocument){t=l.host}else{t=s}}t=f}if(isNodeAttached(t)){return!t.getClientRects().length}if(n!=="legacy-full"){return true}}else if(n==="non-zero-area"){return isZeroArea(t)}return false};var isDisabledFromFieldset=function e(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName)){var r=t.parentElement;while(r){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND"){return matches.call(r,"fieldset[disabled] *")?true:!i.contains(t)}}return true}r=r.parentElement}}return false};var isNodeMatchingSelectorFocusable=function e(t,r){if(r.disabled||isHiddenInput(r)||isHidden(r,t)||isDetailsWithSummary(r)||isDisabledFromFieldset(r)){return false}return true};var isNodeMatchingSelectorTabbable=function e(t,r){if(isNonTabbableRadio(r)||getTabIndex(r)<0||!isNodeMatchingSelectorFocusable(t,r)){return false}return true};var isShadowRootTabbable=function e(t){var r=parseInt(t.getAttribute("tabindex"),10);if(isNaN(r)||r>=0){return true}return false};var _sortByOrder=function e(t){var r=[];var n=[];t.forEach((function(e,t){var i=!!e.scopeParent;var a=i?e.scopeParent:e;var o=getSortOrderTabIndex(a,i);var u=i?_sortByOrder(e.candidates):a;if(o===0){i?r.push.apply(r,u):r.push(a)}else{n.push({documentOrder:t,tabIndex:o,item:e,isScope:i,content:u})}}));return n.sort(sortOrderedTabbables).reduce((function(e,t){t.isScope?e.push.apply(e,t.content):e.push(t.content);return e}),[]).concat(r)};var tabbable=function e(t,r){r=r||{};var n;if(r.getShadowRoot){n=_getCandidatesIteratively([t],r.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,r),flatten:false,getShadowRoot:r.getShadowRoot,shadowRootFilter:isShadowRootTabbable})}else{n=getCandidates(t,r.includeContainer,isNodeMatchingSelectorTabbable.bind(null,r))}return _sortByOrder(n)};var focusable=function e(t,r){r=r||{};var n;if(r.getShadowRoot){n=_getCandidatesIteratively([t],r.includeContainer,{filter:isNodeMatchingSelectorFocusable.bind(null,r),flatten:true,getShadowRoot:r.getShadowRoot})}else{n=getCandidates(t,r.includeContainer,isNodeMatchingSelectorFocusable.bind(null,r))}return n};var isTabbable=function e(t,r){r=r||{};if(!t){throw new Error("No node provided")}if(matches.call(t,candidateSelector)===false){return false}return isNodeMatchingSelectorTabbable(r,t)};var focusableCandidateSelector=candidateSelectors.concat("iframe:not([inert]):not([inert] *)").join(",");var isFocusable=function e(t,r){r=r||{};if(!t){throw new Error("No node provided")}if(matches.call(t,focusableCandidateSelector)===false){return false}return isNodeMatchingSelectorFocusable(r,t)};
|
|
7
7
|
/*!
|
|
8
8
|
* focus-trap 7.5.4
|
|
9
9
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
10
|
-
*/function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){t=_toPropertyKey(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function _toPrimitive(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t==="symbol"?t:String(t)}var activeFocusTraps={activateTrap:function e(t,r){if(t.length>0){var n=t[t.length-1];if(n!==r){n.pause()}}var a=t.indexOf(r);if(a===-1){t.push(r)}else{t.splice(a,1);t.push(r)}},deactivateTrap:function e(t,r){var n=t.indexOf(r);if(n!==-1){t.splice(n,1)}if(t.length>0){t[t.length-1].unpause()}}};var isSelectableInput=function e(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select==="function"};var isEscapeEvent=function e(t){return(t===null||t===void 0?void 0:t.key)==="Escape"||(t===null||t===void 0?void 0:t.key)==="Esc"||(t===null||t===void 0?void 0:t.keyCode)===27};var isTabEvent=function e(t){return(t===null||t===void 0?void 0:t.key)==="Tab"||(t===null||t===void 0?void 0:t.keyCode)===9};var isKeyForward=function e(t){return isTabEvent(t)&&!t.shiftKey};var isKeyBackward=function e(t){return isTabEvent(t)&&t.shiftKey};var delay=function e(t){return setTimeout(t,0)};var findIndex=function e(t,r){var n=-1;t.every((function(e,t){if(r(e)){n=t;return false}return true}));return n};var valueOrHandler=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++){n[a-1]=arguments[a]}return typeof t==="function"?t.apply(void 0,n):t};var getActualTarget=function e(t){return t.target.shadowRoot&&typeof t.composedPath==="function"?t.composedPath()[0]:t.target};var internalTrapStack=[];var createFocusTrap=function e(t,r){var n=(r===null||r===void 0?void 0:r.document)||document;var a=(r===null||r===void 0?void 0:r.trapStack)||internalTrapStack;var i=_objectSpread2({returnFocusOnDeactivate:true,escapeDeactivates:true,delayInitialFocus:true,isKeyForward:isKeyForward,isKeyBackward:isKeyBackward},r);var o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:false,paused:false,delayInitialFocusTimer:undefined,recentNavEvent:undefined};var u;var f=function e(t,r,n){return t&&t[r]!==undefined?t[r]:i[n||r]};var s=function e(t,r){var n=typeof(r===null||r===void 0?void 0:r.composedPath)==="function"?r.composedPath():undefined;return o.containerGroups.findIndex((function(e){var r=e.container,a=e.tabbableNodes;return r.contains(t)||(n===null||n===void 0?void 0:n.includes(r))||a.find((function(e){return e===t}))}))};var l=function e(t){var r=i[t];if(typeof r==="function"){for(var a=arguments.length,o=new Array(a>1?a-1:0),u=1;u<a;u++){o[u-1]=arguments[u]}r=r.apply(void 0,o)}if(r===true){r=undefined}if(!r){if(r===undefined||r===false){return r}throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var f=r;if(typeof r==="string"){f=n.querySelector(r);if(!f){throw new Error("`".concat(t,"` as selector refers to no known node"))}}return f};var c=function e(){var t=l("initialFocus");if(t===false){return false}if(t===undefined||!isFocusable(t,i.tabbableOptions)){if(s(n.activeElement)>=0){t=n.activeElement}else{var r=o.tabbableGroups[0];var a=r&&r.firstTabbableNode;t=a||l("fallbackFocus")}}if(!t){throw new Error("Your focus-trap needs to have at least one focusable element")}return t};var d=function e(){o.containerGroups=o.containers.map((function(e){var t=tabbable(e,i.tabbableOptions);var r=focusable(e,i.tabbableOptions);var n=t.length>0?t[0]:undefined;var a=t.length>0?t[t.length-1]:undefined;var o=r.find((function(e){return isTabbable(e)}));var u=r.slice().reverse().find((function(e){return isTabbable(e)}));var f=!!t.find((function(e){return getTabIndex(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:f,firstTabbableNode:n,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:u,nextTabbableNode:function e(n){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var i=t.indexOf(n);if(i<0){if(a){return r.slice(r.indexOf(n)+1).find((function(e){return isTabbable(e)}))}return r.slice(0,r.indexOf(n)).reverse().find((function(e){return isTabbable(e)}))}return t[i+(a?1:-1)]}}}));o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0}));if(o.tabbableGroups.length<=0&&!l("fallbackFocus")){throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")}if(o.containerGroups.find((function(e){return e.posTabIndexesFound}))&&o.containerGroups.length>1){throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}};var v=function e(t){var r=t.activeElement;if(!r){return}if(r.shadowRoot&&r.shadowRoot.activeElement!==null){return e(r.shadowRoot)}return r};var b=function e(t){if(t===false){return}if(t===v(document)){return}if(!t||!t.focus){e(c());return}t.focus({preventScroll:!!i.preventScroll});o.mostRecentlyFocusedNode=t;if(isSelectableInput(t)){t.select()}};var p=function e(t){var r=l("setReturnFocus",t);return r?r:r===false?false:t};var h=function e(t){var r=t.target,n=t.event,a=t.isBackward,u=a===void 0?false:a;r=r||getActualTarget(n);d();var f=null;if(o.tabbableGroups.length>0){var c=s(r,n);var v=c>=0?o.containerGroups[c]:undefined;if(c<0){if(u){f=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode}else{f=o.tabbableGroups[0].firstTabbableNode}}else if(u){var b=findIndex(o.tabbableGroups,(function(e){var t=e.firstTabbableNode;return r===t}));if(b<0&&(v.container===r||isFocusable(r,i.tabbableOptions)&&!isTabbable(r,i.tabbableOptions)&&!v.nextTabbableNode(r,false))){b=c}if(b>=0){var p=b===0?o.tabbableGroups.length-1:b-1;var h=o.tabbableGroups[p];f=getTabIndex(r)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else if(!isTabEvent(n)){f=v.nextTabbableNode(r,false)}}else{var T=findIndex(o.tabbableGroups,(function(e){var t=e.lastTabbableNode;return r===t}));if(T<0&&(v.container===r||isFocusable(r,i.tabbableOptions)&&!isTabbable(r,i.tabbableOptions)&&!v.nextTabbableNode(r))){T=c}if(T>=0){var y=T===o.tabbableGroups.length-1?0:T+1;var g=o.tabbableGroups[y];f=getTabIndex(r)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else if(!isTabEvent(n)){f=v.nextTabbableNode(r)}}}else{f=l("fallbackFocus")}return f};var T=function e(t){var r=getActualTarget(t);if(s(r,t)>=0){return}if(valueOrHandler(i.clickOutsideDeactivates,t)){u.deactivate({returnFocus:i.returnFocusOnDeactivate});return}if(valueOrHandler(i.allowOutsideClick,t)){return}t.preventDefault()};var y=function e(t){var r=getActualTarget(t);var n=s(r,t)>=0;if(n||r instanceof Document){if(n){o.mostRecentlyFocusedNode=r}}else{t.stopImmediatePropagation();var a;var u=true;if(o.mostRecentlyFocusedNode){if(getTabIndex(o.mostRecentlyFocusedNode)>0){var f=s(o.mostRecentlyFocusedNode);var l=o.containerGroups[f].tabbableNodes;if(l.length>0){var d=l.findIndex((function(e){return e===o.mostRecentlyFocusedNode}));if(d>=0){if(i.isKeyForward(o.recentNavEvent)){if(d+1<l.length){a=l[d+1];u=false}}else{if(d-1>=0){a=l[d-1];u=false}}}}}else{if(!o.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return getTabIndex(e)>0}))}))){u=false}}}else{u=false}if(u){a=h({target:o.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(o.recentNavEvent)})}if(a){b(a)}else{b(o.mostRecentlyFocusedNode||c())}}o.recentNavEvent=undefined};var g=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;o.recentNavEvent=t;var n=h({event:t,isBackward:r});if(n){if(isTabEvent(t)){t.preventDefault()}b(n)}};var w=function e(t){if(isEscapeEvent(t)&&valueOrHandler(i.escapeDeactivates,t)!==false){t.preventDefault();u.deactivate();return}if(i.isKeyForward(t)||i.isKeyBackward(t)){g(t,i.isKeyBackward(t))}};var m=function e(t){var r=getActualTarget(t);if(s(r,t)>=0){return}if(valueOrHandler(i.clickOutsideDeactivates,t)){return}if(valueOrHandler(i.allowOutsideClick,t)){return}t.preventDefault();t.stopImmediatePropagation()};var S=function e(){if(!o.active){return}activeFocusTraps.activateTrap(a,u);o.delayInitialFocusTimer=i.delayInitialFocus?delay((function(){b(c())})):b(c());n.addEventListener("focusin",y,true);n.addEventListener("mousedown",T,{capture:true,passive:false});n.addEventListener("touchstart",T,{capture:true,passive:false});n.addEventListener("click",m,{capture:true,passive:false});n.addEventListener("keydown",w,{capture:true,passive:false});return u};var E=function e(){if(!o.active){return}n.removeEventListener("focusin",y,true);n.removeEventListener("mousedown",T,true);n.removeEventListener("touchstart",T,true);n.removeEventListener("click",m,true);n.removeEventListener("keydown",w,true);return u};var I=function e(t){var r=t.some((function(e){var t=Array.from(e.removedNodes);return t.some((function(e){return e===o.mostRecentlyFocusedNode}))}));if(r){b(c())}};var F=typeof window!=="undefined"&&"MutationObserver"in window?new MutationObserver(I):undefined;var N=function e(){if(!F){return}F.disconnect();if(o.active&&!o.paused){o.containers.map((function(e){F.observe(e,{subtree:true,childList:true})}))}};u={get active(){return o.active},get paused(){return o.paused},activate:function e(t){if(o.active){return this}var r=f(t,"onActivate");var a=f(t,"onPostActivate");var i=f(t,"checkCanFocusTrap");if(!i){d()}o.active=true;o.paused=false;o.nodeFocusedBeforeActivation=n.activeElement;r===null||r===void 0||r();var u=function e(){if(i){d()}S();N();a===null||a===void 0||a()};if(i){i(o.containers.concat()).then(u,u);return this}u();return this},deactivate:function e(t){if(!o.active){return this}var r=_objectSpread2({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},t);clearTimeout(o.delayInitialFocusTimer);o.delayInitialFocusTimer=undefined;E();o.active=false;o.paused=false;N();activeFocusTraps.deactivateTrap(a,u);var n=f(r,"onDeactivate");var s=f(r,"onPostDeactivate");var l=f(r,"checkCanReturnFocus");var c=f(r,"returnFocus","returnFocusOnDeactivate");n===null||n===void 0||n();var d=function e(){delay((function(){if(c){b(p(o.nodeFocusedBeforeActivation))}s===null||s===void 0||s()}))};if(c&&l){l(p(o.nodeFocusedBeforeActivation)).then(d,d);return this}d();return this},pause:function e(t){if(o.paused||!o.active){return this}var r=f(t,"onPause");var n=f(t,"onPostPause");o.paused=true;r===null||r===void 0||r();E();N();n===null||n===void 0||n();return this},unpause:function e(t){if(!o.paused||!o.active){return this}var r=f(t,"onUnpause");var n=f(t,"onPostUnpause");o.paused=false;r===null||r===void 0||r();d();S();N();n===null||n===void 0||n();return this},updateContainerElements:function e(t){var r=[].concat(t).filter(Boolean);o.containers=r.map((function(e){return typeof e==="string"?n.querySelector(e):e}));if(o.active){d()}N();return this}};u.updateContainerElements(t);return u};var FocusTrap=function(){function e(e){registerInstance(this,e);this.active=false;this.trap=undefined}e.prototype.handleActiveChange=function(e){this.toggleTrap(e)};e.prototype.connectedCallback=function(){var e;if(!this.trap){this.trap=createFocusTrap((e=this.host)===null||e===void 0?void 0:e.firstElementChild,{allowOutsideClick:true})}};e.prototype.componentDidLoad=function(){this.toggleTrap(this.active)};e.prototype.disconnectedCallback=function(){var e;(e=this.trap)===null||e===void 0?void 0:e.deactivate()};e.prototype.toggleTrap=function(e){var t,r;if(e){(t=this.trap)===null||t===void 0?void 0:t.activate()}else{(r=this.trap)===null||r===void 0?void 0:r.deactivate()}};e.prototype.render=function(){return h(Host,{key:"40e6912cae0ae3e92b46cf4d251e1b1a47320d0f"},h("slot",{key:"39fe2c6ad0e0b419090ac8270840a83e49c286cf"}))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{active:["handleActiveChange"]}},enumerable:false,configurable:true});return e}();export{FocusTrap as focus_trap};
|
|
10
|
+
*/function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){t=_toPropertyKey(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function _toPrimitive(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t==="symbol"?t:String(t)}var activeFocusTraps={activateTrap:function e(t,r){if(t.length>0){var n=t[t.length-1];if(n!==r){n.pause()}}var i=t.indexOf(r);if(i===-1){t.push(r)}else{t.splice(i,1);t.push(r)}},deactivateTrap:function e(t,r){var n=t.indexOf(r);if(n!==-1){t.splice(n,1)}if(t.length>0){t[t.length-1].unpause()}}};var isSelectableInput=function e(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select==="function"};var isEscapeEvent=function e(t){return(t===null||t===void 0?void 0:t.key)==="Escape"||(t===null||t===void 0?void 0:t.key)==="Esc"||(t===null||t===void 0?void 0:t.keyCode)===27};var isTabEvent=function e(t){return(t===null||t===void 0?void 0:t.key)==="Tab"||(t===null||t===void 0?void 0:t.keyCode)===9};var isKeyForward=function e(t){return isTabEvent(t)&&!t.shiftKey};var isKeyBackward=function e(t){return isTabEvent(t)&&t.shiftKey};var delay=function e(t){return setTimeout(t,0)};var findIndex=function e(t,r){var n=-1;t.every((function(e,t){if(r(e)){n=t;return false}return true}));return n};var valueOrHandler=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++){n[i-1]=arguments[i]}return typeof t==="function"?t.apply(void 0,n):t};var getActualTarget=function e(t){return t.target.shadowRoot&&typeof t.composedPath==="function"?t.composedPath()[0]:t.target};var internalTrapStack=[];var createFocusTrap=function e(t,r){var n=(r===null||r===void 0?void 0:r.document)||document;var i=(r===null||r===void 0?void 0:r.trapStack)||internalTrapStack;var a=_objectSpread2({returnFocusOnDeactivate:true,escapeDeactivates:true,delayInitialFocus:true,isKeyForward:isKeyForward,isKeyBackward:isKeyBackward},r);var o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:false,paused:false,delayInitialFocusTimer:undefined,recentNavEvent:undefined};var u;var f=function e(t,r,n){return t&&t[r]!==undefined?t[r]:a[n||r]};var s=function e(t,r){var n=typeof(r===null||r===void 0?void 0:r.composedPath)==="function"?r.composedPath():undefined;return o.containerGroups.findIndex((function(e){var r=e.container,i=e.tabbableNodes;return r.contains(t)||(n===null||n===void 0?void 0:n.includes(r))||i.find((function(e){return e===t}))}))};var l=function e(t){var r=a[t];if(typeof r==="function"){for(var i=arguments.length,o=new Array(i>1?i-1:0),u=1;u<i;u++){o[u-1]=arguments[u]}r=r.apply(void 0,o)}if(r===true){r=undefined}if(!r){if(r===undefined||r===false){return r}throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var f=r;if(typeof r==="string"){f=n.querySelector(r);if(!f){throw new Error("`".concat(t,"` as selector refers to no known node"))}}return f};var c=function e(){var t=l("initialFocus");if(t===false){return false}if(t===undefined||!isFocusable(t,a.tabbableOptions)){if(s(n.activeElement)>=0){t=n.activeElement}else{var r=o.tabbableGroups[0];var i=r&&r.firstTabbableNode;t=i||l("fallbackFocus")}}if(!t){throw new Error("Your focus-trap needs to have at least one focusable element")}return t};var d=function e(){o.containerGroups=o.containers.map((function(e){var t=tabbable(e,a.tabbableOptions);var r=focusable(e,a.tabbableOptions);var n=t.length>0?t[0]:undefined;var i=t.length>0?t[t.length-1]:undefined;var o=r.find((function(e){return isTabbable(e)}));var u=r.slice().reverse().find((function(e){return isTabbable(e)}));var f=!!t.find((function(e){return getTabIndex(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:f,firstTabbableNode:n,lastTabbableNode:i,firstDomTabbableNode:o,lastDomTabbableNode:u,nextTabbableNode:function e(n){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var a=t.indexOf(n);if(a<0){if(i){return r.slice(r.indexOf(n)+1).find((function(e){return isTabbable(e)}))}return r.slice(0,r.indexOf(n)).reverse().find((function(e){return isTabbable(e)}))}return t[a+(i?1:-1)]}}}));o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0}));if(o.tabbableGroups.length<=0&&!l("fallbackFocus")){throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")}if(o.containerGroups.find((function(e){return e.posTabIndexesFound}))&&o.containerGroups.length>1){throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}};var v=function e(t){var r=t.activeElement;if(!r){return}if(r.shadowRoot&&r.shadowRoot.activeElement!==null){return e(r.shadowRoot)}return r};var b=function e(t){if(t===false){return}if(t===v(document)){return}if(!t||!t.focus){e(c());return}t.focus({preventScroll:!!a.preventScroll});o.mostRecentlyFocusedNode=t;if(isSelectableInput(t)){t.select()}};var p=function e(t){var r=l("setReturnFocus",t);return r?r:r===false?false:t};var h=function e(t){var r=t.target,n=t.event,i=t.isBackward,u=i===void 0?false:i;r=r||getActualTarget(n);d();var f=null;if(o.tabbableGroups.length>0){var c=s(r,n);var v=c>=0?o.containerGroups[c]:undefined;if(c<0){if(u){f=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode}else{f=o.tabbableGroups[0].firstTabbableNode}}else if(u){var b=findIndex(o.tabbableGroups,(function(e){var t=e.firstTabbableNode;return r===t}));if(b<0&&(v.container===r||isFocusable(r,a.tabbableOptions)&&!isTabbable(r,a.tabbableOptions)&&!v.nextTabbableNode(r,false))){b=c}if(b>=0){var p=b===0?o.tabbableGroups.length-1:b-1;var h=o.tabbableGroups[p];f=getTabIndex(r)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else if(!isTabEvent(n)){f=v.nextTabbableNode(r,false)}}else{var y=findIndex(o.tabbableGroups,(function(e){var t=e.lastTabbableNode;return r===t}));if(y<0&&(v.container===r||isFocusable(r,a.tabbableOptions)&&!isTabbable(r,a.tabbableOptions)&&!v.nextTabbableNode(r))){y=c}if(y>=0){var T=y===o.tabbableGroups.length-1?0:y+1;var g=o.tabbableGroups[T];f=getTabIndex(r)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else if(!isTabEvent(n)){f=v.nextTabbableNode(r)}}}else{f=l("fallbackFocus")}return f};var y=function e(t){var r=getActualTarget(t);if(s(r,t)>=0){return}if(valueOrHandler(a.clickOutsideDeactivates,t)){u.deactivate({returnFocus:a.returnFocusOnDeactivate});return}if(valueOrHandler(a.allowOutsideClick,t)){return}t.preventDefault()};var T=function e(t){var r=getActualTarget(t);var n=s(r,t)>=0;if(n||r instanceof Document){if(n){o.mostRecentlyFocusedNode=r}}else{t.stopImmediatePropagation();var i;var u=true;if(o.mostRecentlyFocusedNode){if(getTabIndex(o.mostRecentlyFocusedNode)>0){var f=s(o.mostRecentlyFocusedNode);var l=o.containerGroups[f].tabbableNodes;if(l.length>0){var d=l.findIndex((function(e){return e===o.mostRecentlyFocusedNode}));if(d>=0){if(a.isKeyForward(o.recentNavEvent)){if(d+1<l.length){i=l[d+1];u=false}}else{if(d-1>=0){i=l[d-1];u=false}}}}}else{if(!o.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return getTabIndex(e)>0}))}))){u=false}}}else{u=false}if(u){i=h({target:o.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(o.recentNavEvent)})}if(i){b(i)}else{b(o.mostRecentlyFocusedNode||c())}}o.recentNavEvent=undefined};var g=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;o.recentNavEvent=t;var n=h({event:t,isBackward:r});if(n){if(isTabEvent(t)){t.preventDefault()}b(n)}};var w=function e(t){if(isEscapeEvent(t)&&valueOrHandler(a.escapeDeactivates,t)!==false){t.preventDefault();u.deactivate();return}if(a.isKeyForward(t)||a.isKeyBackward(t)){g(t,a.isKeyBackward(t))}};var m=function e(t){var r=getActualTarget(t);if(s(r,t)>=0){return}if(valueOrHandler(a.clickOutsideDeactivates,t)){return}if(valueOrHandler(a.allowOutsideClick,t)){return}t.preventDefault();t.stopImmediatePropagation()};var S=function e(){if(!o.active){return}activeFocusTraps.activateTrap(i,u);o.delayInitialFocusTimer=a.delayInitialFocus?delay((function(){b(c())})):b(c());n.addEventListener("focusin",T,true);n.addEventListener("mousedown",y,{capture:true,passive:false});n.addEventListener("touchstart",y,{capture:true,passive:false});n.addEventListener("click",m,{capture:true,passive:false});n.addEventListener("keydown",w,{capture:true,passive:false});return u};var I=function e(){if(!o.active){return}n.removeEventListener("focusin",T,true);n.removeEventListener("mousedown",y,true);n.removeEventListener("touchstart",y,true);n.removeEventListener("click",m,true);n.removeEventListener("keydown",w,true);return u};var E=function e(t){var r=t.some((function(e){var t=Array.from(e.removedNodes);return t.some((function(e){return e===o.mostRecentlyFocusedNode}))}));if(r){b(c())}};var F=typeof window!=="undefined"&&"MutationObserver"in window?new MutationObserver(E):undefined;var N=function e(){if(!F){return}F.disconnect();if(o.active&&!o.paused){o.containers.map((function(e){F.observe(e,{subtree:true,childList:true})}))}};u={get active(){return o.active},get paused(){return o.paused},activate:function e(t){if(o.active){return this}var r=f(t,"onActivate");var i=f(t,"onPostActivate");var a=f(t,"checkCanFocusTrap");if(!a){d()}o.active=true;o.paused=false;o.nodeFocusedBeforeActivation=n.activeElement;r===null||r===void 0||r();var u=function e(){if(a){d()}S();N();i===null||i===void 0||i()};if(a){a(o.containers.concat()).then(u,u);return this}u();return this},deactivate:function e(t){if(!o.active){return this}var r=_objectSpread2({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},t);clearTimeout(o.delayInitialFocusTimer);o.delayInitialFocusTimer=undefined;I();o.active=false;o.paused=false;N();activeFocusTraps.deactivateTrap(i,u);var n=f(r,"onDeactivate");var s=f(r,"onPostDeactivate");var l=f(r,"checkCanReturnFocus");var c=f(r,"returnFocus","returnFocusOnDeactivate");n===null||n===void 0||n();var d=function e(){delay((function(){if(c){b(p(o.nodeFocusedBeforeActivation))}s===null||s===void 0||s()}))};if(c&&l){l(p(o.nodeFocusedBeforeActivation)).then(d,d);return this}d();return this},pause:function e(t){if(o.paused||!o.active){return this}var r=f(t,"onPause");var n=f(t,"onPostPause");o.paused=true;r===null||r===void 0||r();I();N();n===null||n===void 0||n();return this},unpause:function e(t){if(!o.paused||!o.active){return this}var r=f(t,"onUnpause");var n=f(t,"onPostUnpause");o.paused=false;r===null||r===void 0||r();d();S();N();n===null||n===void 0||n();return this},updateContainerElements:function e(t){var r=[].concat(t).filter(Boolean);o.containers=r.map((function(e){return typeof e==="string"?n.querySelector(e):e}));if(o.active){d()}N();return this}};u.updateContainerElements(t);return u};var FocusTrap=function(){function e(e){registerInstance(this,e);this.active=false;this.trap=undefined}e.prototype.handleActiveChange=function(e){this.toggleTrap(e)};e.prototype.connectedCallback=function(){var e;if(!this.trap){this.trap=createFocusTrap((e=this.host)===null||e===void 0?void 0:e.firstElementChild,{allowOutsideClick:true})}};e.prototype.componentDidLoad=function(){this.toggleTrap(this.active)};e.prototype.disconnectedCallback=function(){var e;(e=this.trap)===null||e===void 0?void 0:e.deactivate()};e.prototype.toggleTrap=function(e){var t,r;if(e){(t=this.trap)===null||t===void 0?void 0:t.activate()}else{(r=this.trap)===null||r===void 0?void 0:r.deactivate()}};e.prototype.render=function(){return h(Host,{key:"40e6912cae0ae3e92b46cf4d251e1b1a47320d0f"},h("slot",{key:"39fe2c6ad0e0b419090ac8270840a83e49c286cf"}))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{active:["handleActiveChange"]}},enumerable:false,configurable:true});return e}();export{FocusTrap as focus_trap};
|
package/dist/esm-es5/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PostInternetHeader}from"./post-internet-header-
|
|
1
|
+
export{P as PostInternetHeader}from"./post-internet-header-25cbaecc.js";export{P as PostInternetBreadcrumbs}from"./post-internet-breadcrumbs-ee507bec.js";export{P as PostInternetFooter}from"./post-internet-footer-cae59692.js";export{P as PostSkiplinks}from"./post-skiplinks-0779348d.js";export{P as PostMetaNavigation}from"./post-meta-navigation-4bf72315.js";export{P as PostLanguageSwitch}from"./post-language-switch-d9159f47.js";export{P as PostLogo}from"./post-logo-2c3faf36.js";export{P as PostMainNavigation}from"./post-main-navigation-58b5c03d.js";export{P as PostSearch}from"./post-search-daf7d66d.js";export{P as PostKlpLoginWidget}from"./post-klp-login-widget-6aeb2fd2.js";import"./index-bb0e68fd.js";import"./index-d3f1363d.js";import"./language.service-2960ab93.js";import"./store-629cab77.js";import"./utils-c8805f81.js";import"./svg-sprite.component-abb69a1b.js";import"./svg-icon.component-70692acc.js";import"./if.component-d88d9e48.js";import"./bodyScrollLock.esm-afcc00e3.js";import"./ui.service-22f2c593.js";
|