@maggioli-design-system/mds-accordion-timer-item 3.6.2 → 3.6.4
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/{index-3f08e534.js → index-8c0e2a15.js} +22 -14
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-accordion-timer-item.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +0 -3
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/documentation.d.ts +1 -21
- package/dist/documentation.json +2 -2
- package/dist/esm/{index-f19cd1cd.js → index-fc4ad4eb.js} +22 -14
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-accordion-timer-item.entry.js +2 -2
- package/dist/esm/mds-accordion-timer-item.js +3 -3
- package/dist/esm-es5/index-fc4ad4eb.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.js +1 -1
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js +1 -1
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
- package/dist/mds-accordion-timer-item/p-5344b64b.system.entry.js +1 -0
- package/dist/mds-accordion-timer-item/{p-651ad9a5.system.js → p-73eb6851.system.js} +1 -1
- package/dist/mds-accordion-timer-item/p-7700d179.js +2 -0
- package/dist/mds-accordion-timer-item/p-8ea9c26e.entry.js +1 -0
- package/dist/mds-accordion-timer-item/p-b5e64a55.system.js +2 -0
- package/dist/stats.json +36 -33
- package/documentation.json +2 -2
- package/package.json +5 -5
- package/www/build/mds-accordion-timer-item.esm.js +1 -1
- package/www/build/mds-accordion-timer-item.js +1 -1
- package/www/build/p-5344b64b.system.entry.js +1 -0
- package/www/build/{p-651ad9a5.system.js → p-73eb6851.system.js} +1 -1
- package/www/build/p-7700d179.js +2 -0
- package/www/build/p-8ea9c26e.entry.js +1 -0
- package/www/build/p-b5e64a55.system.js +2 -0
- package/dist/esm-es5/index-f19cd1cd.js +0 -1
- package/dist/mds-accordion-timer-item/p-1e2aba26.entry.js +0 -1
- package/dist/mds-accordion-timer-item/p-45efdd90.system.entry.js +0 -1
- package/dist/mds-accordion-timer-item/p-477aad5a.system.js +0 -2
- package/dist/mds-accordion-timer-item/p-a71f8ebc.js +0 -2
- package/www/build/p-1e2aba26.entry.js +0 -1
- package/www/build/p-45efdd90.system.entry.js +0 -1
- package/www/build/p-477aad5a.system.js +0 -2
- package/www/build/p-a71f8ebc.js +0 -2
|
@@ -525,6 +525,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
+
// This needs to always happen so we can hide nodes that are projected
|
|
529
|
+
// to another component but don't end up in a slot
|
|
530
|
+
elm['s-hn'] = hostTagName;
|
|
528
531
|
return elm;
|
|
529
532
|
};
|
|
530
533
|
/**
|
|
@@ -648,8 +651,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
648
651
|
* @param oldCh the old children of the parent node
|
|
649
652
|
* @param newVNode the new VNode which will replace the parent
|
|
650
653
|
* @param newCh the new children of the parent node
|
|
654
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
651
655
|
*/
|
|
652
|
-
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
656
|
+
const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
|
|
653
657
|
let oldStartIdx = 0;
|
|
654
658
|
let newStartIdx = 0;
|
|
655
659
|
let oldEndIdx = oldCh.length - 1;
|
|
@@ -673,25 +677,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
673
677
|
else if (newEndVnode == null) {
|
|
674
678
|
newEndVnode = newCh[--newEndIdx];
|
|
675
679
|
}
|
|
676
|
-
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
680
|
+
else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
677
681
|
// if the start nodes are the same then we should patch the new VNode
|
|
678
682
|
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
679
683
|
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
680
684
|
// since things are matched up in order.
|
|
681
|
-
patch(oldStartVnode, newStartVnode);
|
|
685
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
682
686
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
683
687
|
newStartVnode = newCh[++newStartIdx];
|
|
684
688
|
}
|
|
685
|
-
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
689
|
+
else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
686
690
|
// likewise, if the end nodes are the same we patch new onto old and
|
|
687
691
|
// decrement our end indices, and also likewise in this case we don't
|
|
688
692
|
// need to move any DOM Nodes.
|
|
689
|
-
patch(oldEndVnode, newEndVnode);
|
|
693
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
690
694
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
691
695
|
newEndVnode = newCh[--newEndIdx];
|
|
692
696
|
}
|
|
693
|
-
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
694
|
-
patch(oldStartVnode, newEndVnode);
|
|
697
|
+
else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
698
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
695
699
|
// We need to move the element for `oldStartVnode` into a position which
|
|
696
700
|
// will be appropriate for `newEndVnode`. For this we can use
|
|
697
701
|
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
@@ -713,8 +717,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
713
717
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
714
718
|
newEndVnode = newCh[--newEndIdx];
|
|
715
719
|
}
|
|
716
|
-
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
717
|
-
patch(oldEndVnode, newStartVnode);
|
|
720
|
+
else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
721
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
718
722
|
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
719
723
|
// the same node, so since we're here we know that they are not. Thus we
|
|
720
724
|
// can move the element for `oldEndVnode` _before_ the element for
|
|
@@ -768,9 +772,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
768
772
|
*
|
|
769
773
|
* @param leftVNode the first VNode to check
|
|
770
774
|
* @param rightVNode the second VNode to check
|
|
775
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
771
776
|
* @returns whether they're equal or not
|
|
772
777
|
*/
|
|
773
|
-
const isSameVnode = (leftVNode, rightVNode) => {
|
|
778
|
+
const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
774
779
|
// compare if two vnode to see if they're "technically" the same
|
|
775
780
|
// need to have the same element tag, and same key to be the same
|
|
776
781
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
@@ -785,8 +790,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
785
790
|
*
|
|
786
791
|
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
787
792
|
* @param newVNode a new VNode representing an updated version of the old one
|
|
793
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
788
794
|
*/
|
|
789
|
-
const patch = (oldVNode, newVNode) => {
|
|
795
|
+
const patch = (oldVNode, newVNode, isInitialRender = false) => {
|
|
790
796
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
791
797
|
const oldChildren = oldVNode.$children$;
|
|
792
798
|
const newChildren = newVNode.$children$;
|
|
@@ -806,7 +812,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
806
812
|
if (oldChildren !== null && newChildren !== null) {
|
|
807
813
|
// looks like there's child vnodes for both the old and new vnodes
|
|
808
814
|
// so we need to call `updateChildren` to reconcile them
|
|
809
|
-
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
815
|
+
updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
|
|
810
816
|
}
|
|
811
817
|
else if (newChildren !== null) {
|
|
812
818
|
// no old child vnodes, but there are new child vnodes to add
|
|
@@ -885,7 +891,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
885
891
|
scopeId = hostElm['s-sc'];
|
|
886
892
|
}
|
|
887
893
|
// synchronous patch
|
|
888
|
-
patch(oldVNode, rootVnode);
|
|
894
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
889
895
|
};
|
|
890
896
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
891
897
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
@@ -1492,12 +1498,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1492
1498
|
// If we have styles, add them to the DOM
|
|
1493
1499
|
if (dataStyles.innerHTML.length) {
|
|
1494
1500
|
dataStyles.setAttribute('data-styles', '');
|
|
1495
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1496
1501
|
// Apply CSP nonce to the style tag if it exists
|
|
1497
1502
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1498
1503
|
if (nonce != null) {
|
|
1499
1504
|
dataStyles.setAttribute('nonce', nonce);
|
|
1500
1505
|
}
|
|
1506
|
+
// Insert the styles into the document head
|
|
1507
|
+
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1508
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1501
1509
|
}
|
|
1502
1510
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1503
1511
|
isBootstrapping = false;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8c0e2a15.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8c0e2a15.js');
|
|
6
6
|
|
|
7
|
-
const mdsAccordionTimerItemCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .focus-bounce{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-bounce--focused,.focus-bounce:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.
|
|
7
|
+
const mdsAccordionTimerItemCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .focus-bounce{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-bounce--focused,.focus-bounce:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";
|
|
8
8
|
|
|
9
9
|
const MdsAccordionTimerItem = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8c0e2a15.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.
|
|
8
|
+
Stencil Client Patch Browser v4.9.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-accordion-timer-item.cjs.js', document.baseURI).href));
|
|
@@ -42,9 +42,6 @@
|
|
|
42
42
|
.border {
|
|
43
43
|
border-width: 1px;
|
|
44
44
|
}
|
|
45
|
-
.text {
|
|
46
|
-
font-size: 1rem;
|
|
47
|
-
}
|
|
48
45
|
.shadow {
|
|
49
46
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
50
47
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const mdsAccordionTimerItemCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .focus-bounce{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-bounce--focused,.focus-bounce:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.
|
|
3
|
+
const mdsAccordionTimerItemCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .focus-bounce{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-bounce--focused,.focus-bounce:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";
|
|
4
4
|
|
|
5
5
|
const MdsAccordionTimerItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsAccordionTimerItem extends HTMLElement {
|
|
6
6
|
constructor() {
|
package/dist/documentation.d.ts
CHANGED
|
@@ -60,30 +60,10 @@ interface ComponentCompilerEventComplexType {
|
|
|
60
60
|
}
|
|
61
61
|
interface ComponentCompilerMethodComplexType {
|
|
62
62
|
signature: string;
|
|
63
|
-
parameters:
|
|
63
|
+
parameters: JsonDocMethodParameter[];
|
|
64
64
|
references: ComponentCompilerTypeReferences;
|
|
65
65
|
return: string;
|
|
66
66
|
}
|
|
67
|
-
interface CompilerJsDoc {
|
|
68
|
-
/**
|
|
69
|
-
* The text associated with the JSDoc
|
|
70
|
-
*/
|
|
71
|
-
text: string;
|
|
72
|
-
/**
|
|
73
|
-
* Tags included in the JSDoc
|
|
74
|
-
*/
|
|
75
|
-
tags: CompilerJsDocTagInfo[];
|
|
76
|
-
}
|
|
77
|
-
interface CompilerJsDocTagInfo {
|
|
78
|
-
/**
|
|
79
|
-
* The name of the tag - e.g. `@deprecated`
|
|
80
|
-
*/
|
|
81
|
-
name: string;
|
|
82
|
-
/**
|
|
83
|
-
* Additional text that is associated with the tag - e.g. `@deprecated use v2 of this API`
|
|
84
|
-
*/
|
|
85
|
-
text?: string;
|
|
86
|
-
}
|
|
87
67
|
/**
|
|
88
68
|
* The Type Library holds information about the types which are used in a
|
|
89
69
|
* Stencil project. During compilation, Stencil gathers information about the
|
package/dist/documentation.json
CHANGED
|
@@ -503,6 +503,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
+
// This needs to always happen so we can hide nodes that are projected
|
|
507
|
+
// to another component but don't end up in a slot
|
|
508
|
+
elm['s-hn'] = hostTagName;
|
|
506
509
|
return elm;
|
|
507
510
|
};
|
|
508
511
|
/**
|
|
@@ -626,8 +629,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
626
629
|
* @param oldCh the old children of the parent node
|
|
627
630
|
* @param newVNode the new VNode which will replace the parent
|
|
628
631
|
* @param newCh the new children of the parent node
|
|
632
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
629
633
|
*/
|
|
630
|
-
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
634
|
+
const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
|
|
631
635
|
let oldStartIdx = 0;
|
|
632
636
|
let newStartIdx = 0;
|
|
633
637
|
let oldEndIdx = oldCh.length - 1;
|
|
@@ -651,25 +655,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
651
655
|
else if (newEndVnode == null) {
|
|
652
656
|
newEndVnode = newCh[--newEndIdx];
|
|
653
657
|
}
|
|
654
|
-
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
658
|
+
else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
655
659
|
// if the start nodes are the same then we should patch the new VNode
|
|
656
660
|
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
657
661
|
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
658
662
|
// since things are matched up in order.
|
|
659
|
-
patch(oldStartVnode, newStartVnode);
|
|
663
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
660
664
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
661
665
|
newStartVnode = newCh[++newStartIdx];
|
|
662
666
|
}
|
|
663
|
-
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
667
|
+
else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
664
668
|
// likewise, if the end nodes are the same we patch new onto old and
|
|
665
669
|
// decrement our end indices, and also likewise in this case we don't
|
|
666
670
|
// need to move any DOM Nodes.
|
|
667
|
-
patch(oldEndVnode, newEndVnode);
|
|
671
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
668
672
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
669
673
|
newEndVnode = newCh[--newEndIdx];
|
|
670
674
|
}
|
|
671
|
-
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
672
|
-
patch(oldStartVnode, newEndVnode);
|
|
675
|
+
else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
676
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
673
677
|
// We need to move the element for `oldStartVnode` into a position which
|
|
674
678
|
// will be appropriate for `newEndVnode`. For this we can use
|
|
675
679
|
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
@@ -691,8 +695,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
691
695
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
692
696
|
newEndVnode = newCh[--newEndIdx];
|
|
693
697
|
}
|
|
694
|
-
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
695
|
-
patch(oldEndVnode, newStartVnode);
|
|
698
|
+
else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
699
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
696
700
|
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
697
701
|
// the same node, so since we're here we know that they are not. Thus we
|
|
698
702
|
// can move the element for `oldEndVnode` _before_ the element for
|
|
@@ -746,9 +750,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
746
750
|
*
|
|
747
751
|
* @param leftVNode the first VNode to check
|
|
748
752
|
* @param rightVNode the second VNode to check
|
|
753
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
749
754
|
* @returns whether they're equal or not
|
|
750
755
|
*/
|
|
751
|
-
const isSameVnode = (leftVNode, rightVNode) => {
|
|
756
|
+
const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
752
757
|
// compare if two vnode to see if they're "technically" the same
|
|
753
758
|
// need to have the same element tag, and same key to be the same
|
|
754
759
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
@@ -763,8 +768,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
763
768
|
*
|
|
764
769
|
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
765
770
|
* @param newVNode a new VNode representing an updated version of the old one
|
|
771
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
766
772
|
*/
|
|
767
|
-
const patch = (oldVNode, newVNode) => {
|
|
773
|
+
const patch = (oldVNode, newVNode, isInitialRender = false) => {
|
|
768
774
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
769
775
|
const oldChildren = oldVNode.$children$;
|
|
770
776
|
const newChildren = newVNode.$children$;
|
|
@@ -784,7 +790,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
784
790
|
if (oldChildren !== null && newChildren !== null) {
|
|
785
791
|
// looks like there's child vnodes for both the old and new vnodes
|
|
786
792
|
// so we need to call `updateChildren` to reconcile them
|
|
787
|
-
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
793
|
+
updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
|
|
788
794
|
}
|
|
789
795
|
else if (newChildren !== null) {
|
|
790
796
|
// no old child vnodes, but there are new child vnodes to add
|
|
@@ -863,7 +869,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
863
869
|
scopeId = hostElm['s-sc'];
|
|
864
870
|
}
|
|
865
871
|
// synchronous patch
|
|
866
|
-
patch(oldVNode, rootVnode);
|
|
872
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
867
873
|
};
|
|
868
874
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
869
875
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
@@ -1470,12 +1476,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1470
1476
|
// If we have styles, add them to the DOM
|
|
1471
1477
|
if (dataStyles.innerHTML.length) {
|
|
1472
1478
|
dataStyles.setAttribute('data-styles', '');
|
|
1473
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1474
1479
|
// Apply CSP nonce to the style tag if it exists
|
|
1475
1480
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1476
1481
|
if (nonce != null) {
|
|
1477
1482
|
dataStyles.setAttribute('nonce', nonce);
|
|
1478
1483
|
}
|
|
1484
|
+
// Insert the styles into the document head
|
|
1485
|
+
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1486
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1479
1487
|
}
|
|
1480
1488
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1481
1489
|
isBootstrapping = false;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-fc4ad4eb.js';
|
|
2
|
+
export { s as setNonce } from './index-fc4ad4eb.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-fc4ad4eb.js';
|
|
2
2
|
|
|
3
|
-
const mdsAccordionTimerItemCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .focus-bounce{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-bounce--focused,.focus-bounce:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.
|
|
3
|
+
const mdsAccordionTimerItemCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .focus-bounce{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-bounce--focused,.focus-bounce:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";
|
|
4
4
|
|
|
5
5
|
const MdsAccordionTimerItem = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-fc4ad4eb.js';
|
|
2
|
+
export { s as setNonce } from './index-fc4ad4eb.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
5
|
+
Stencil Client Patch Browser v4.9.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(n,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r))e[r]=n[r]};return e(n,r)};return function(n,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,n,r,t){function i(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{f(t.next(e))}catch(e){a(e)}}function u(e){try{f(t["throw"](e))}catch(e){a(e)}}function f(e){e.done?r(e.value):i(e.value).then(o,u)}f((t=t.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(n){return f([e,n])}}function f(u){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(r=0)),r)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1];a=u;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(u);break}if(a[2])r.ops.pop();r.trys.pop();continue}u=n.call(e,r)}catch(e){u=[6,e];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,n,r){if(r||arguments.length===2)for(var t=0,i=n.length,a;t<i;t++){if(a||!(t in n)){if(!a)a=Array.prototype.slice.call(n,0,t);a[t]=n[t]}}return e.concat(a||Array.prototype.slice.call(n))};var NAMESPACE="mds-accordion-timer-item";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var createTime=function(e,n){if(n===void 0){n=""}{return function(){return}}};var uniqueTime=function(e,n){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}[hydrated]{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var EMPTY_OBJ={};var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var n,r,t;return(t=(r=(n=e.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&t!==void 0?t:undefined}var h=function(e,n){var r=[];for(var t=2;t<arguments.length;t++){r[t-2]=arguments[t]}var i=null;var a=false;var o=false;var u=[];var f=function(n){for(var r=0;r<n.length;r++){i=n[r];if(Array.isArray(i)){f(i)}else if(i!=null&&typeof i!=="boolean"){if(a=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(a&&o){u[u.length-1].t+=i}else{u.push(a?newVNode(null,i):i)}o=a}}};f(r);if(n){{var s=n.className||n.class;if(s){n.class=typeof s!=="object"?s:Object.keys(s).filter((function(e){return s[e]})).join(" ")}}}var l=newVNode(e,null);l.i=n;if(u.length>0){l.o=u}return l};var newVNode=function(e,n){var r={u:0,l:e,t:n,v:null,o:null};{r.i=null}return r};var Host={};var isHost=function(e){return e&&e.l===Host};var parsePropertyValue=function(e,n){if(e!=null&&!isComplexType(e)){if(n&4){return e==="false"?false:e===""||!!e}if(n&2){return parseFloat(e)}if(n&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,n,r){var t=getElement(e);return{emit:function(e){return emitEvent(t,n,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}};var emitEvent=function(e,n,r){var t=plt.ce(n,r);e.dispatchEvent(t);return t};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,n,r){var t=styles.get(e);if(supportsConstructableStylesheets&&r){t=t||new CSSStyleSheet;if(typeof t==="string"){t=n}else{t.replaceSync(n)}}else{t=n}styles.set(e,t)};var addStyle=function(e,n,r){var t;var i=getScopeId(n);var a=styles.get(i);e=e.nodeType===11?e:doc;if(a){if(typeof a==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var u=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(i)){{u=doc.createElement("style");u.innerHTML=a;var f=(t=plt.p)!==null&&t!==void 0?t:queryNonceMetaTagContent(doc);if(f!=null){u.setAttribute("nonce",f)}e.insertBefore(u,e.querySelector("link"))}if(n.u&4){u.innerHTML+=SLOT_FB_CSS}if(o){o.add(i)}}}else if(!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}return i};var attachStyles=function(e){var n=e.m;var r=e.$hostElement$;var t=n.u;var i=createTime("attachStyles",n.h);var a=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),n);if(t&10){r["s-sc"]=a;r.classList.add(a+"-h")}i()};var getScopeId=function(e,n){return"sc-"+e.h};var setAccessor=function(e,n,r,t,i,a){if(r!==t){var o=isMemberInElement(e,n);var u=n.toLowerCase();if(n==="class"){var f=e.classList;var s=parseClassList(r);var l=parseClassList(t);f.remove.apply(f,s.filter((function(e){return e&&!l.includes(e)})));f.add.apply(f,l.filter((function(e){return e&&!s.includes(e)})))}else if(!o&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(isMemberInElement(win,u)){n=u.slice(2)}else{n=u[2]+n.slice(3)}if(r||t){var c=n.endsWith(CAPTURE_EVENT_SUFFIX);n=n.replace(CAPTURE_EVENT_REGEX,"");if(r){plt.rel(e,n,r,c)}if(t){plt.ael(e,n,t,c)}}}else{var v=isComplexType(t);if((o||v&&t!==null)&&!i){try{if(!e.tagName.includes("-")){var d=t==null?"":t;if(n==="list"){o=false}else if(r==null||e[n]!=d){e[n]=d}}else{e[n]=t}}catch(e){}}if(t==null||t===false){if(t!==false||e.getAttribute(n)===""){{e.removeAttribute(n)}}}else if((!o||a&4||i)&&!v){t=t===true?"":t;{e.setAttribute(n,t)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,n,r,t){var i=n.v.nodeType===11&&n.v.host?n.v.host:n.v;var a=e&&e.i||EMPTY_OBJ;var o=n.i||EMPTY_OBJ;{for(t in a){if(!(t in o)){setAccessor(i,t,a[t],undefined,r,n.u)}}}for(t in o){setAccessor(i,t,a[t],o[t],r,n.u)}};var createElm=function(e,n,r,t){var i=n.o[r];var a=0;var o;var u;if(i.t!==null){o=i.v=doc.createTextNode(i.t)}else{o=i.v=doc.createElement(i.l);{updateElement(null,i,isSvgMode)}if(isDef(scopeId)&&o["s-si"]!==scopeId){o.classList.add(o["s-si"]=scopeId)}if(i.o){for(a=0;a<i.o.length;++a){u=createElm(e,i,a);if(u){o.appendChild(u)}}}}o["s-hn"]=hostTagName;return o};var addVnodes=function(e,n,r,t,i,a){var o=e;var u;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;i<=a;++i){if(t[i]){u=createElm(null,r,i);if(u){t[i].v=u;o.insertBefore(u,n)}}}};var removeVnodes=function(e,n,r){for(var t=n;t<=r;++t){var i=e[t];if(i){var a=i.v;if(a){a.remove()}}}};var updateChildren=function(e,n,r,t,i){if(i===void 0){i=false}var a=0;var o=0;var u=n.length-1;var f=n[0];var s=n[u];var l=t.length-1;var c=t[0];var v=t[l];var d;while(a<=u&&o<=l){if(f==null){f=n[++a]}else if(s==null){s=n[--u]}else if(c==null){c=t[++o]}else if(v==null){v=t[--l]}else if(isSameVnode(f,c,i)){patch(f,c,i);f=n[++a];c=t[++o]}else if(isSameVnode(s,v,i)){patch(s,v,i);s=n[--u];v=t[--l]}else if(isSameVnode(f,v,i)){patch(f,v,i);e.insertBefore(f.v,s.v.nextSibling);f=n[++a];v=t[--l]}else if(isSameVnode(s,c,i)){patch(s,c,i);e.insertBefore(s.v,f.v);s=n[--u];c=t[++o]}else{{d=createElm(n&&n[o],r,o);c=t[++o]}if(d){{f.v.parentNode.insertBefore(d,f.v)}}}}if(a>u){addVnodes(e,t[l+1]==null?null:t[l+1].v,r,t,o,l)}else if(o>l){removeVnodes(n,a,u)}};var isSameVnode=function(e,n,r){if(r===void 0){r=false}if(e.l===n.l){return true}return false};var patch=function(e,n,r){if(r===void 0){r=false}var t=n.v=e.v;var i=e.o;var a=n.o;var o=n.l;var u=n.t;if(u===null){{if(o==="slot");else{updateElement(e,n,isSvgMode)}}if(i!==null&&a!==null){updateChildren(t,i,n,a,r)}else if(a!==null){if(e.t!==null){t.textContent=""}addVnodes(t,null,n,a,0,a.length-1)}else if(i!==null){removeVnodes(i,0,i.length-1)}}else if(e.t!==u){t.data=u}};var renderVdom=function(e,n,r){if(r===void 0){r=false}var t=e.$hostElement$;var i=e.m;var a=e.S||newVNode(null,null);var o=isHost(n)?n:h(null,null,n);hostTagName=t.tagName;if(i.T){o.i=o.i||{};i.T.map((function(e){var n=e[0],r=e[1];return o.i[r]=t[n]}))}if(r&&o.i){for(var u=0,f=Object.keys(o.i);u<f.length;u++){var s=f[u];if(t.hasAttribute(s)&&!["key","ref","style","class"].includes(s)){o.i[s]=t[s]}}}o.l=null;o.u|=4;e.S=o;o.v=a.v=t.shadowRoot||t;{scopeId=t["s-sc"]}patch(a,o,r)};var attachToAncestor=function(e,n){if(n&&!e._&&n["s-p"]){n["s-p"].push(new Promise((function(n){return e._=n})))}};var scheduleUpdate=function(e,n){{e.u|=16}if(e.u&4){e.u|=512;return}attachToAncestor(e,e.C);var r=function(){return dispatchHooks(e,n)};return writeTask(r)};var dispatchHooks=function(e,n){var r=createTime("scheduleUpdate",e.m.h);var t=e.R;var i;r();return enqueue(i,(function(){return updateComponent(e,t,n)}))};var enqueue=function(e,n){return isPromisey(e)?e.then(n):n()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,n,r){return __awaiter(void 0,void 0,void 0,(function(){var t,i,a,o,u,f,s;return __generator(this,(function(l){i=e.$hostElement$;a=createTime("update",e.m.h);o=i["s-rc"];if(r){attachStyles(e)}u=createTime("render",e.m.h);{callRender(e,n,i,r)}if(o){o.map((function(e){return e()}));i["s-rc"]=undefined}u();a();{f=(t=i["s-p"])!==null&&t!==void 0?t:[];s=function(){return postUpdateComponent(e)};if(f.length===0){s()}else{Promise.all(f).then(s);e.u|=4;f.length=0}}return[2]}))}))};var callRender=function(e,n,r,t){try{n=n.render();{e.u&=~16}{e.u|=2}{{{renderVdom(e,n,t)}}}}catch(n){consoleError(n,e.$hostElement$)}return null};var postUpdateComponent=function(e){var n=e.m.h;var r=e.$hostElement$;var t=createTime("postUpdate",n);var i=e.C;if(!(e.u&64)){e.u|=64;{addHydratedFlag(r)}t();{e.A(r);if(!i){appDidLoad()}}}else{t()}{if(e._){e._();e._=undefined}if(e.u&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.u&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var addHydratedFlag=function(e){return e.setAttribute("hydrated","")};var getValue=function(e,n){return getHostRef(e).$.get(n)};var setValue=function(e,n,r,t){var i=getHostRef(e);var a=i.$.get(n);var o=i.u;var u=i.R;r=parsePropertyValue(r,t.V[n][0]);var f=Number.isNaN(a)&&Number.isNaN(r);var s=r!==a&&!f;if((!(o&8)||a===undefined)&&s){i.$.set(n,r);if(u){if((o&(2|16))===2){scheduleUpdate(i,false)}}}};var proxyComponent=function(e,n,r){var t;var i=e.prototype;if(n.V){var a=Object.entries(n.V);a.map((function(e){var t=e[0],a=e[1][0];if(a&31||r&2&&a&32){Object.defineProperty(i,t,{get:function(){return getValue(this,t)},set:function(e){setValue(this,t,e,n)},configurable:true,enumerable:true})}}));if(r&1){var o=new Map;i.attributeChangedCallback=function(e,r,t){var a=this;plt.jmp((function(){var u;var f=o.get(e);if(a.hasOwnProperty(f)){t=a[f];delete a[f]}else if(i.hasOwnProperty(f)&&typeof a[f]==="number"&&a[f]==t){return}else if(f==null){var s=getHostRef(a);var l=s===null||s===void 0?void 0:s.u;if(l&&!(l&8)&&l&128&&t!==r){var c=s.R;var v=(u=n.M)===null||u===void 0?void 0:u[e];v===null||v===void 0?void 0:v.forEach((function(n){if(c[n]!=null){c[n].call(c,t,r,e)}}))}return}a[f]=t===null&&typeof a[f]==="boolean"?false:t}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=n.M)!==null&&t!==void 0?t:{}),true),a.filter((function(e){var n=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],t=e[1];var i;var a=t[1]||r;o.set(a,r);if(t[0]&512){(i=n.T)===null||i===void 0?void 0:i.push([r,a])}return a})),true)))}}return e};var initializeComponent=function(e,n,r,t){return __awaiter(void 0,void 0,void 0,(function(){var e,t,i,a,o,u,f,s;return __generator(this,(function(l){switch(l.label){case 0:if(!((n.u&32)===0))return[3,3];n.u|=32;e=loadModule(r);if(!e.then)return[3,2];t=uniqueTime();return[4,e];case 1:e=l.sent();t();l.label=2;case 2:if(!e.isProxied){proxyComponent(e,r,2);e.isProxied=true}i=createTime("createInstance",r.h);{n.u|=8}try{new e(n)}catch(e){consoleError(e)}{n.u&=~8}i();if(e.style){a=e.style;o=getScopeId(r);if(!styles.has(o)){u=createTime("registerStyles",r.h);registerStyle(o,a,!!(r.u&1));u()}}l.label=3;case 3:f=n.C;s=function(){return scheduleUpdate(n,true)};if(f&&f["s-rc"]){f["s-rc"].push(s)}else{s()}return[2]}}))}))};var fireConnectedCallback=function(e){};var connectedCallback=function(e){if((plt.u&1)===0){var n=getHostRef(e);var r=n.m;var t=createTime("connectedCallback",r.h);if(!(n.u&1)){n.u|=1;{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){attachToAncestor(n,n.C=i);break}}}if(r.V){Object.entries(r.V).map((function(n){var r=n[0],t=n[1][0];if(t&31&&e.hasOwnProperty(r)){var i=e[r];delete e[r];e[r]=i}}))}{initializeComponent(e,n,r)}}else{if(n===null||n===void 0?void 0:n.R);else if(n===null||n===void 0?void 0:n.k){n.k.then((function(){return fireConnectedCallback()}))}}t()}};var disconnectInstance=function(e){};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var n;return __generator(this,(function(r){if((plt.u&1)===0){n=getHostRef(e);if(n===null||n===void 0?void 0:n.R);else if(n===null||n===void 0?void 0:n.k){n.k.then((function(){return disconnectInstance()}))}}return[2]}))}))};var bootstrapLazy=function(e,n){if(n===void 0){n={}}var r;var t=createTime();var i=[];var a=n.exclude||[];var o=win.customElements;var u=doc.head;var f=u.querySelector("meta[charset]");var s=doc.createElement("style");var l=[];var c;var v=true;Object.assign(plt,n);plt.H=new URL(n.resourcesUrl||"./",doc.baseURI).href;var d=false;e.map((function(e){e[1].map((function(n){var r={u:n[0],h:n[1],V:n[2],P:n[3]};if(r.u&4){d=true}{r.V=n[2]}{r.T=[]}var t=r.h;var u=function(e){__extends(n,e);function n(n){var t=e.call(this,n)||this;n=t;registerHost(n,r);if(r.u&1){{{n.attachShadow({mode:"open"})}}}return t}n.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(v){l.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};n.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};n.prototype.componentOnReady=function(){return getHostRef(this).k};return n}(HTMLElement);r.N=e[0];if(!a.includes(t)&&!o.get(t)){i.push(t);o.define(t,proxyComponent(u,r,1))}}))}));if(d){s.innerHTML+=SLOT_FB_CSS}{s.innerHTML+=i+HYDRATED_CSS}if(s.innerHTML.length){s.setAttribute("data-styles","");var p=(r=plt.p)!==null&&r!==void 0?r:queryNonceMetaTagContent(doc);if(p!=null){s.setAttribute("nonce",p)}u.insertBefore(s,f?f.nextSibling:u.firstChild)}v=false;if(l.length){l.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}t()};var setNonce=function(e){return plt.p=e};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,n){return hostRefs.set(n.R=e,n)};var registerHost=function(e,n){var r={u:0,$hostElement$:e,m:n,$:new Map};{r.k=new Promise((function(e){return r.A=e}));e["s-p"]=[];e["s-rc"]=[]}return hostRefs.set(e,r)};var isMemberInElement=function(e,n){return n in e};var consoleError=function(e,n){return(0,console.error)(e,n)};var cmpModules=new Map;var loadModule=function(e,n,r){var t=e.h.replace(/-/g,"_");var i=e.N;var a=cmpModules.get(i);if(a){return a[t]}if(!r||!BUILD.hotModuleReplacement){var o=function(e){cmpModules.set(i,e);return e[t]};switch(i){case"mds-accordion-timer-item":return import("./mds-accordion-timer-item.entry.js").then(o,consoleError)}}return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[t]}),consoleError)};var styles=new Map;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={u:0,H:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,n,r,t){return e.addEventListener(n,r,t)},rel:function(e,n,r,t){return e.removeEventListener(n,r,t)},ce:function(e,n){return new CustomEvent(e,n)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,n){return function(r){e.push(r);if(!queuePending){queuePending=true;if(n&&plt.u&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var n=0;n<e.length;n++){try{e[n](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,bootstrapLazy as b,createEvent as c,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as bootstrapLazy}from"./index-
|
|
1
|
+
import{b as bootstrapLazy}from"./index-fc4ad4eb.js";export{s as setNonce}from"./index-fc4ad4eb.js";var defineCustomElements=function(e,t){if(typeof window==="undefined")return undefined;return bootstrapLazy([["mds-accordion-timer-item",[[1,"mds-accordion-timer-item",{typography:[1],selected:[516],description:[1],progress:[2],uuid:[2]}]]]],t)};export{defineCustomElements};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-fc4ad4eb.js";var mdsAccordionTimerItemCss="@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .focus-bounce{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-bounce--focused,.focus-bounce:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";var MdsAccordionTimerItem=function(){function o(o){var i=this;registerInstance(this,o);this.clickSelectEvent=createEvent(this,"mdsAccordionTimerItemClickSelect",7);this.selectedMouseEnterEvent=createEvent(this,"mdsAccordionTimerItemMouseEnterSelect",7);this.selectedMouseLeaveEvent=createEvent(this,"mdsAccordionTimerItemMouseLeaveSelect",7);this.toggle=function(){i.selected=!i.selected;i.progress=0;if(i.selected){i.clickSelectEvent.emit({selected:i.selected,uuid:i.uuid})}};this.mouseEnter=function(){if(i.selected){i.selectedMouseEnterEvent.emit({selected:i.selected,uuid:i.uuid})}};this.mouseLeave=function(){if(i.selected){i.selectedMouseLeaveEvent.emit({selected:i.selected,uuid:i.uuid})}};this.typography="h5";this.selected=false;this.description=undefined;this.progress=0;this.uuid=0}o.prototype.render=function(){var o;return h(Host,{onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave},h("div",{class:"row"},h("mds-progress",{class:"progress-bar",progress:Number((o=this.progress)===null||o===void 0?void 0:o.toFixed(2)),direction:"vertical"}),h("div",{class:"accordion"},h("button",{"aria-controls":"contents","aria-expanded":this.selected?"true":"false",class:"action focus-bounce",id:"action",onClick:this.toggle,role:"button",tabindex:"0"},h("mds-text",{typography:this.typography},this.description)),h("div",{class:"contents",id:"contents"},h("div",{class:"contents-expander"},h("slot",null))))))};return o}();MdsAccordionTimerItem.style=mdsAccordionTimerItemCss;export{MdsAccordionTimerItem as mds_accordion_timer_item};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-fc4ad4eb.js";export{s as setNonce}from"./index-fc4ad4eb.js";var patchBrowser=function(){var e=import.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return promiseResolve(r)};patchBrowser().then((function(e){return bootstrapLazy([["mds-accordion-timer-item",[[1,"mds-accordion-timer-item",{typography:[1],selected:[516],description:[1],progress:[2],uuid:[2]}]]]],e)}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as r}from"./p-
|
|
1
|
+
import{p as e,b as r}from"./p-7700d179.js";export{s as setNonce}from"./p-7700d179.js";(()=>{const r=import.meta.url,s={};return""!==r&&(s.resourcesUrl=new URL(".",r).href),e(s)})().then((e=>r([["p-8ea9c26e",[[1,"mds-accordion-timer-item",{typography:[1],selected:[516],description:[1],progress:[2],uuid:[2]}]]]],e)));
|
|
@@ -115,7 +115,7 @@ DOMTokenList
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
117
|
// if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
|
|
118
|
-
var url = new URL('./p-
|
|
118
|
+
var url = new URL('./p-73eb6851.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-b5e64a55.system.js"],(function(o){"use strict";var i,t,r,n;return{setters:[function(o){i=o.r;t=o.c;r=o.h;n=o.H}],execute:function(){var e="@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .focus-bounce{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-bounce--focused,.focus-bounce:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";var a=o("mds_accordion_timer_item",function(){function o(o){var r=this;i(this,o);this.clickSelectEvent=t(this,"mdsAccordionTimerItemClickSelect",7);this.selectedMouseEnterEvent=t(this,"mdsAccordionTimerItemMouseEnterSelect",7);this.selectedMouseLeaveEvent=t(this,"mdsAccordionTimerItemMouseLeaveSelect",7);this.toggle=function(){r.selected=!r.selected;r.progress=0;if(r.selected){r.clickSelectEvent.emit({selected:r.selected,uuid:r.uuid})}};this.mouseEnter=function(){if(r.selected){r.selectedMouseEnterEvent.emit({selected:r.selected,uuid:r.uuid})}};this.mouseLeave=function(){if(r.selected){r.selectedMouseLeaveEvent.emit({selected:r.selected,uuid:r.uuid})}};this.typography="h5";this.selected=false;this.description=undefined;this.progress=0;this.uuid=0}o.prototype.render=function(){var o;return r(n,{onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave},r("div",{class:"row"},r("mds-progress",{class:"progress-bar",progress:Number((o=this.progress)===null||o===void 0?void 0:o.toFixed(2)),direction:"vertical"}),r("div",{class:"accordion"},r("button",{"aria-controls":"contents","aria-expanded":this.selected?"true":"false",class:"action focus-bounce",id:"action",onClick:this.toggle,role:"button",tabindex:"0"},r("mds-text",{typography:this.typography},this.description)),r("div",{class:"contents",id:"contents"},r("div",{class:"contents-expander"},r("slot",null))))))};return o}());a.style=e}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-b5e64a55.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(t){r=t.p;n=t.b;e("setNonce",t.s)}],execute:function(){var e=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};e().then((function(e){return n([["p-5344b64b.system",[[1,"mds-accordion-timer-item",{typography:[1],selected:[516],description:[1],progress:[2],uuid:[2]}]]]],e)}))}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let n,e,t=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",o={},s=n=>"object"==(n=typeof n)||"function"===n;function i(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const c=(n,e,...t)=>{let l=null,o=!1,i=!1;const c=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!s(l))&&(l+=""),o&&i?c[c.length-1].t+=l:c.push(o?r(null,l):l),i=o)};if(u(t),e){const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}const a=r(n,null);return a.l=e,c.length>0&&(a.o=c),a},r=(n,e)=>({i:0,u:n,t:e,p:null,o:null,l:null}),u={},a=(n,e,t)=>{const l=(n=>W(n).$hostElement$)(n);return{emit:n=>f(l,e,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:n})}},f=(n,e,t)=>{const l=K.ce(e,t);return n.dispatchEvent(l),l},d=new WeakMap,y=n=>"sc-"+n.m,p=(n,e,t,l,o,i)=>{if(t!==l){let c=_(n,e),r=e.toLowerCase();if("class"===e){const e=n.classList,o=$(t),s=$(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if(c||"o"!==e[0]||"n"!==e[1]){const r=s(l);if((c||r&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?c=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(e)||n.removeAttribute(e):(!c||4&i||o)&&!r&&n.setAttribute(e,l=!0===l?"":l)}else if(e="-"===e[2]?e.slice(3):_(I,r)?r.slice(2):r[2]+e.slice(3),t||l){const o=e.endsWith(h);e=e.replace(v,""),t&&K.rel(n,e,t,o),l&&K.ael(n,e,l,o)}}},m=/\s/,$=n=>n?n.split(m):[],h="Capture",v=RegExp(h+"$"),b=(n,e,t,l)=>{const s=11===e.p.nodeType&&e.p.host?e.p.host:e.p,i=n&&n.l||o,c=e.l||o;for(l in i)l in c||p(s,l,i[l],void 0,t,e.i);for(l in c)p(s,l,i[l],c[l],t,e.i)},w=(t,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.p=J.createTextNode(s.t);else if(i=s.p=J.createElement(s.u),b(null,s,!1),null!=n&&i["s-si"]!==n&&i.classList.add(i["s-si"]=n),s.o)for(r=0;r<s.o.length;++r)c=w(t,s,r),c&&i.appendChild(c);return i["s-hn"]=e,i},S=(n,t,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=w(null,l,s),c&&(o[s].p=c,r.insertBefore(c,t)))},g=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.p;n&&n.remove()}}},j=(n,e)=>n.u===e.u,M=(n,e,t=!1)=>{const l=e.p=n.p,o=n.o,s=e.o,i=e.t;null===i?("slot"===e.u||b(n,e,!1),null!==o&&null!==s?((n,e,t,l,o=!1)=>{let s,i=0,c=0,r=e.length-1,u=e[0],a=e[r],f=l.length-1,d=l[0],y=l[f];for(;i<=r&&c<=f;)null==u?u=e[++i]:null==a?a=e[--r]:null==d?d=l[++c]:null==y?y=l[--f]:j(u,d)?(M(u,d,o),u=e[++i],d=l[++c]):j(a,y)?(M(a,y,o),a=e[--r],y=l[--f]):j(u,y)?(M(u,y,o),n.insertBefore(u.p,a.p.nextSibling),u=e[++i],y=l[--f]):j(a,d)?(M(a,d,o),n.insertBefore(a.p,u.p),a=e[--r],d=l[++c]):(s=w(e&&e[c],t,c),d=l[++c],s&&u.p.parentNode.insertBefore(s,u.p));i>r?S(n,null==l[f+1]?null:l[f+1].p,t,l,c,f):c>f&&g(e,i,r)})(l,o,e,s,t):null!==s?(null!==n.t&&(l.textContent=""),S(l,null,e,s,0,s.length-1)):null!==o&&g(o,0,o.length-1)):n.t!==i&&(l.data=i)},O=(n,e)=>{e&&!n.$&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.$=e)))},k=(n,e)=>{if(n.i|=16,!(4&n.i))return O(n,n.h),on((()=>C(n,e)));n.i|=512},C=(n,e)=>{const t=n.v;return P(void 0,(()=>E(n,t,e)))},P=(n,e)=>x(n)?n.then(e):e(),x=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,E=async(n,e,t)=>{var o;const s=n.$hostElement$,c=s["s-rc"];t&&(n=>{const e=n.S,t=n.$hostElement$,o=e.i,s=((n,e)=>{var t;const o=y(e),s=G.get(o);if(n=11===n.nodeType?n:J,s)if("string"==typeof s){let c,r=d.get(n=n.head||n);if(r||d.set(n,r=new Set),!r.has(o)){{c=J.createElement("style"),c.innerHTML=s;const e=null!==(t=K.j)&&void 0!==t?t:i(J);null!=e&&c.setAttribute("nonce",e),n.insertBefore(c,n.querySelector("link"))}4&e.i&&(c.innerHTML+=l),r&&r.add(o)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s]);return o})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&o&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(n);A(n,e,s,t),c&&(c.map((n=>n())),s["s-rc"]=void 0);{const e=null!==(o=s["s-p"])&&void 0!==o?o:[],t=()=>N(n);0===e.length?t():(Promise.all(e).then(t),n.i|=4,e.length=0)}},A=(t,l,o,s)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.S,a=t.M||r(null,null),f=(n=>n&&n.u===u)(l)?l:c(null,null,l);if(e=s.tagName,i.O&&(f.l=f.l||{},i.O.map((([n,e])=>f.l[e]=s[n]))),o&&f.l)for(const n of Object.keys(f.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(f.l[n]=s[n]);f.u=null,f.i|=4,t.M=f,f.p=a.p=s.shadowRoot||s,n=s["s-sc"],M(a,f,o)})(t,l,s)}catch(n){z(n,t.$hostElement$)}return null},N=n=>{const e=n.$hostElement$,t=n.h;64&n.i||(n.i|=64,T(e),n.k(e),t||R()),n.$&&(n.$(),n.$=void 0),512&n.i&&ln((()=>k(n,!1))),n.i&=-517},R=()=>{T(J.documentElement),ln((()=>f(I,"appload",{detail:{namespace:"mds-accordion-timer-item"}})))},T=n=>n.setAttribute("hydrated",""),F=(n,e,t)=>{var l;const o=n.prototype;if(e.C){const i=Object.entries(e.C);if(i.map((([n,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,n,{get(){return((n,e)=>W(this).P.get(e))(0,n)},set(t){((n,e,t,l)=>{const o=W(n),i=o.P.get(e),c=o.i,r=o.v;t=((n,e)=>null==n||s(n)?n:4&e?"false"!==n&&(""===n||!!n):2&e?parseFloat(n):1&e?n+"":n)(t,l.C[e][0]),8&c&&void 0!==i||t===i||Number.isNaN(i)&&Number.isNaN(t)||(o.P.set(e,t),r&&2==(18&c)&&k(o,!1))})(this,n,t,e)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(n,l,s){K.jmp((()=>{var i;const c=t.get(n);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=W(this),o=null==t?void 0:t.i;if(o&&!(8&o)&&128&o&&s!==l){const o=t.v,c=null===(i=e.A)||void 0===i?void 0:i[n];null==c||c.forEach((e=>{null!=o[e]&&o[e].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=e.A)&&void 0!==l?l:{}),...i.filter((([n,e])=>15&e[0])).map((([n,l])=>{var o;const s=l[1]||n;return t.set(s,n),512&l[0]&&(null===(o=e.O)||void 0===o||o.push([n,s])),s}))]))}}return n},H=(n,e={})=>{var t;const o=[],s=e.exclude||[],c=I.customElements,r=J.head,u=r.querySelector("meta[charset]"),a=J.createElement("style"),f=[];let d,p=!0;Object.assign(K,e),K.N=new URL(e.resourcesUrl||"./",J.baseURI).href;let m=!1;if(n.map((n=>{n[1].map((e=>{const t={i:e[0],m:e[1],C:e[2],R:e[3]};4&t.i&&(m=!0),t.C=e[2],t.O=[];const l=t.m,i=class extends HTMLElement{constructor(n){super(n),V(n=this,t),1&t.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),p?f.push(this):K.jmp((()=>(n=>{if(0==(1&K.i)){const e=W(n),t=e.S,l=()=>{};if(1&e.i)(null==e?void 0:e.v)||(null==e?void 0:e.T)&&e.T.then((()=>{}));else{e.i|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){O(e,e.h=t);break}}t.C&&Object.entries(t.C).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t)=>{let l;if(0==(32&e.i)){e.i|=32;{if(l=D(t),l.then){const n=()=>{};l=await l,n()}l.isProxied||(F(l,t,2),l.isProxied=!0);const n=()=>{};e.i|=8;try{new l(e)}catch(n){z(n)}e.i&=-9,n()}if(l.style){let n=l.style;const e=y(t);if(!G.has(e)){const l=()=>{};((n,e,t)=>{let l=G.get(n);X&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,G.set(n,l)})(e,n,!!(1&t.i)),l()}}}const o=e.h,s=()=>k(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,e,t)}l()}})(this)))}disconnectedCallback(){K.jmp((()=>(async()=>{if(0==(1&K.i)){const n=W(this);(null==n?void 0:n.v)||(null==n?void 0:n.T)&&n.T.then((()=>{}))}})()))}componentOnReady(){return W(this).T}};t.F=n[0],s.includes(l)||c.get(l)||(o.push(l),c.define(l,F(i,t,1)))}))})),m&&(a.innerHTML+=l),a.innerHTML+=o+"{visibility:hidden}[hydrated]{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(t=K.j)&&void 0!==t?t:i(J);null!=n&&a.setAttribute("nonce",n),r.insertBefore(a,u?u.nextSibling:r.firstChild)}p=!1,f.length?f.map((n=>n.connectedCallback())):K.jmp((()=>d=setTimeout(R,30)))},L=n=>K.j=n,U=new WeakMap,W=n=>U.get(n),q=(n,e)=>U.set(e.v=n,e),V=(n,e)=>{const t={i:0,$hostElement$:n,S:e,P:new Map};return t.T=new Promise((n=>t.k=n)),n["s-p"]=[],n["s-rc"]=[],U.set(n,t)},_=(n,e)=>e in n,z=(n,e)=>(0,console.error)(n,e),B=new Map,D=n=>{const e=n.m.replace(/-/g,"_"),t=n.F,l=B.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(B.set(t,n),n[e])),z)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},G=new Map,I="undefined"!=typeof window?window:{},J=I.document||{head:{}},K={i:0,N:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},Q=n=>Promise.resolve(n),X=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),Y=[],Z=[],nn=(n,e)=>l=>{n.push(l),t||(t=!0,e&&4&K.i?ln(tn):K.raf(tn))},en=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){z(n)}n.length=0},tn=()=>{en(Y),en(Z),(t=Y.length>0)&&K.raf(tn)},ln=n=>Q().then(n),on=nn(Z,!0);export{u as H,H as b,a as c,c as h,Q as p,q as r,L as s}
|