@maggioli-design-system/mds-modal 4.3.0 → 4.4.1
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-f216518d.js → index-2ef62850.js} +219 -51
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/mds-modal.cjs.entry.js +2 -2
- package/dist/cjs/mds-modal.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/common/aria.js +9 -1
- package/dist/collection/components/mds-modal/mds-modal.css +37 -39
- package/dist/collection/components/mds-modal/mds-modal.js +12 -5
- package/dist/collection/components/mds-modal/test/mds-modal.e2e.js +55 -0
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +3 -3
- package/dist/collection/dictionary/icon.js +2 -2
- package/dist/components/index.d.ts +5 -3
- package/dist/components/index.js +1 -2
- package/dist/components/mds-modal.js +6 -3
- package/dist/documentation.d.ts +361 -88
- package/dist/documentation.json +69 -7
- package/dist/esm/{index-118e6bec.js → index-822a7c21.js} +219 -51
- package/dist/esm/loader.js +4 -13
- package/dist/esm/mds-modal.entry.js +2 -2
- package/dist/esm/mds-modal.js +4 -4
- package/dist/esm-es5/index-822a7c21.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-modal.js +1 -1
- package/dist/mds-modal/mds-modal.esm.js +1 -1
- package/dist/mds-modal/mds-modal.js +2 -6
- package/dist/mds-modal/{p-e2fdb863.system.js → p-0e1a634c.system.js} +1 -1
- package/dist/mds-modal/p-62ef7bee.system.entry.js +1 -0
- package/dist/mds-modal/p-6acd79b6.system.js +2 -0
- package/dist/mds-modal/p-cc1354fb.js +2 -0
- package/dist/mds-modal/p-f67f79a7.entry.js +1 -0
- package/dist/stats.json +74 -40
- package/dist/types/common/aria.d.ts +2 -1
- package/dist/types/components.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +32 -17
- package/documentation.json +416 -9
- package/loader/index.d.ts +2 -2
- package/package.json +4 -4
- package/readme.md +20 -1
- package/src/common/aria.ts +12 -0
- package/src/components/mds-modal/css/mds-modal-animate-bottom.css +2 -1
- package/src/components/mds-modal/css/mds-modal-animate-center.css +2 -1
- package/src/components/mds-modal/css/mds-modal-animate-left.css +1 -1
- package/src/components/mds-modal/css/mds-modal-animate-right.css +1 -1
- package/src/components/mds-modal/css/mds-modal-animate-top.css +2 -1
- package/src/components/mds-modal/mds-modal.css +18 -21
- package/src/components/mds-modal/mds-modal.tsx +7 -0
- package/src/components/mds-modal/readme.md +11 -1
- package/src/components/mds-modal/test/mds-modal.e2e.ts +1 -1
- package/src/components/mds-modal/test/mds-modal.stories.mdx +1 -3
- package/src/components.d.ts +1 -0
- package/src/fixtures/icons.json +4 -0
- package/src/fixtures/iconsauce.json +1 -0
- package/www/build/mds-modal.esm.js +1 -1
- package/www/build/mds-modal.js +2 -6
- package/www/build/{p-e2fdb863.system.js → p-0e1a634c.system.js} +1 -1
- package/www/build/p-62ef7bee.system.entry.js +1 -0
- package/www/build/p-6acd79b6.system.js +2 -0
- package/www/build/p-cc1354fb.js +2 -0
- package/www/build/p-f67f79a7.entry.js +1 -0
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm-es5/index-118e6bec.js +0 -2
- package/dist/mds-modal/p-24b3f7bd.entry.js +0 -1
- package/dist/mds-modal/p-3aeea0b7.system.js +0 -2
- package/dist/mds-modal/p-4fdbb5fc.js +0 -2
- package/dist/mds-modal/p-b2f313ba.system.entry.js +0 -1
- package/www/build/p-24b3f7bd.entry.js +0 -1
- package/www/build/p-3aeea0b7.system.js +0 -2
- package/www/build/p-4fdbb5fc.js +0 -2
- package/www/build/p-b2f313ba.system.entry.js +0 -1
|
@@ -36,6 +36,13 @@ const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
|
|
|
36
36
|
*/
|
|
37
37
|
const EMPTY_OBJ = {};
|
|
38
38
|
const isDef = (v) => v != null;
|
|
39
|
+
/**
|
|
40
|
+
* Check whether a value is a 'complex type', defined here as an object or a
|
|
41
|
+
* function.
|
|
42
|
+
*
|
|
43
|
+
* @param o the value to check
|
|
44
|
+
* @returns whether it's a complex type or not
|
|
45
|
+
*/
|
|
39
46
|
const isComplexType = (o) => {
|
|
40
47
|
// https://jsperf.com/typeof-fn-object/5
|
|
41
48
|
o = typeof o;
|
|
@@ -92,6 +99,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
92
99
|
};
|
|
93
100
|
walk(children);
|
|
94
101
|
if (vnodeData) {
|
|
102
|
+
// normalize class / className attributes
|
|
95
103
|
{
|
|
96
104
|
const classData = vnodeData.className || vnodeData.class;
|
|
97
105
|
if (classData) {
|
|
@@ -226,9 +234,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
226
234
|
}
|
|
227
235
|
styles.set(scopeId, style);
|
|
228
236
|
};
|
|
229
|
-
const addStyle = (styleContainerNode, cmpMeta, mode
|
|
237
|
+
const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
230
238
|
var _a;
|
|
231
|
-
|
|
239
|
+
const scopeId = getScopeId(cmpMeta);
|
|
232
240
|
const style = styles.get(scopeId);
|
|
233
241
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
234
242
|
// so the fallback is to always use the document for the root node in those cases
|
|
@@ -243,10 +251,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
243
251
|
}
|
|
244
252
|
if (!appliedStyles.has(scopeId)) {
|
|
245
253
|
{
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
styleElm.innerHTML = style;
|
|
249
|
-
}
|
|
254
|
+
styleElm = doc.createElement('style');
|
|
255
|
+
styleElm.innerHTML = style;
|
|
250
256
|
// Apply CSP nonce to the style tag if it exists
|
|
251
257
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
252
258
|
if (nonce != null) {
|
|
@@ -293,6 +299,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
293
299
|
*
|
|
294
300
|
* Modified for Stencil's compiler and vdom
|
|
295
301
|
*/
|
|
302
|
+
/**
|
|
303
|
+
* When running a VDom render set properties present on a VDom node onto the
|
|
304
|
+
* corresponding HTML element.
|
|
305
|
+
*
|
|
306
|
+
* Note that this function has special functionality for the `class`,
|
|
307
|
+
* `style`, `key`, and `ref` attributes, as well as event handlers (like
|
|
308
|
+
* `onClick`, etc). All others are just passed through as-is.
|
|
309
|
+
*
|
|
310
|
+
* @param elm the HTMLElement onto which attributes should be set
|
|
311
|
+
* @param memberName the name of the attribute to set
|
|
312
|
+
* @param oldValue the old value for the attribute
|
|
313
|
+
* @param newValue the new value for the attribute
|
|
314
|
+
* @param isSvg whether we're in an svg context or not
|
|
315
|
+
* @param flags bitflags for Vdom variables
|
|
316
|
+
*/
|
|
296
317
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
297
318
|
if (oldValue !== newValue) {
|
|
298
319
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -491,15 +512,16 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
491
512
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
492
513
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
493
514
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
494
|
-
* @param vnode a VNode
|
|
495
|
-
* @param elm an element
|
|
496
515
|
*/
|
|
497
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
498
|
-
for (
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
elm
|
|
516
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
517
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
518
|
+
const vnode = vnodes[index];
|
|
519
|
+
if (vnode) {
|
|
520
|
+
const elm = vnode.$elm$;
|
|
521
|
+
if (elm) {
|
|
522
|
+
// remove the vnode's element from the dom
|
|
523
|
+
elm.remove();
|
|
524
|
+
}
|
|
503
525
|
}
|
|
504
526
|
}
|
|
505
527
|
};
|
|
@@ -761,17 +783,44 @@ const patch = (oldVNode, newVNode) => {
|
|
|
761
783
|
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
762
784
|
* the DOM node into which it should be rendered.
|
|
763
785
|
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
786
|
+
* @param isInitialLoad whether or not this is the first call after page load
|
|
764
787
|
*/
|
|
765
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
788
|
+
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
766
789
|
const hostElm = hostRef.$hostElement$;
|
|
767
790
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
768
791
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
792
|
+
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
793
|
+
// we need to call `h` again to wrap the children of our component in a
|
|
794
|
+
// 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
|
|
795
|
+
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
796
|
+
// contains attrs that need to be set on the host element.
|
|
769
797
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
770
798
|
hostTagName = hostElm.tagName;
|
|
771
799
|
if (cmpMeta.$attrsToReflect$) {
|
|
772
800
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
773
801
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
774
802
|
}
|
|
803
|
+
// On the first render and *only* on the first render we want to check for
|
|
804
|
+
// any attributes set on the host element which are also set on the vdom
|
|
805
|
+
// node. If we find them, we override the value on the VDom node attrs with
|
|
806
|
+
// the value from the host element, which allows developers building apps
|
|
807
|
+
// with Stencil components to override e.g. the `role` attribute on a
|
|
808
|
+
// component even if it's already set on the `Host`.
|
|
809
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
810
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
811
|
+
// We have a special implementation in `setAccessor` for `style` and
|
|
812
|
+
// `class` which reconciles values coming from the VDom with values
|
|
813
|
+
// already present on the DOM element, so we don't want to override those
|
|
814
|
+
// attributes on the VDom tree with values from the host element if they
|
|
815
|
+
// are present.
|
|
816
|
+
//
|
|
817
|
+
// Likewise, `ref` and `key` are special internal values for the Stencil
|
|
818
|
+
// runtime and we don't want to override those either.
|
|
819
|
+
if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
|
|
820
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
}
|
|
775
824
|
rootVnode.$tag$ = null;
|
|
776
825
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
777
826
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -802,30 +851,96 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
802
851
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
803
852
|
return writeTask(dispatch) ;
|
|
804
853
|
};
|
|
854
|
+
/**
|
|
855
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
856
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
857
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
858
|
+
*
|
|
859
|
+
* @param hostRef a reference to a host DOM node
|
|
860
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
861
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
862
|
+
* the component
|
|
863
|
+
*/
|
|
805
864
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
806
865
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
807
866
|
const instance = hostRef.$lazyInstance$ ;
|
|
808
|
-
|
|
867
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
868
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
869
|
+
// the first function to the queue we'll set this variable to be that
|
|
870
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
871
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
872
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
873
|
+
// queue two nice properties:
|
|
874
|
+
//
|
|
875
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
876
|
+
// synchronously right away.
|
|
877
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
878
|
+
// called in order after `dispatchHooks` exits.
|
|
879
|
+
let maybePromise;
|
|
809
880
|
if (isInitialLoad) {
|
|
810
881
|
{
|
|
811
882
|
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
812
883
|
if (hostRef.$queuedListeners$) {
|
|
813
884
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
814
|
-
hostRef.$queuedListeners$ =
|
|
885
|
+
hostRef.$queuedListeners$ = undefined;
|
|
815
886
|
}
|
|
816
887
|
}
|
|
817
888
|
{
|
|
818
|
-
|
|
889
|
+
// If `componentWillLoad` returns a `Promise` then we want to wait on
|
|
890
|
+
// whatever's going on in that `Promise` before we launch into
|
|
891
|
+
// rendering the component, doing other lifecycle stuff, etc. So
|
|
892
|
+
// in that case we assign the returned promise to the variable we
|
|
893
|
+
// declared above to hold a possible 'queueing' Promise
|
|
894
|
+
maybePromise = safeCall(instance, 'componentWillLoad');
|
|
819
895
|
}
|
|
820
896
|
}
|
|
821
897
|
{
|
|
822
|
-
|
|
898
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
|
|
823
899
|
}
|
|
824
900
|
endSchedule();
|
|
825
|
-
return
|
|
901
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
826
902
|
};
|
|
903
|
+
/**
|
|
904
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
905
|
+
* of functions to be called.
|
|
906
|
+
*
|
|
907
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
908
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
909
|
+
* be called synchronously (although note that this function may return a
|
|
910
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
911
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
912
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
913
|
+
* as the first argument.
|
|
914
|
+
*
|
|
915
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
916
|
+
* @param fn a function to enqueue
|
|
917
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
918
|
+
*/
|
|
919
|
+
const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
|
|
920
|
+
/**
|
|
921
|
+
* Check that a value is a `Promise`. To check, we first see if the value is an
|
|
922
|
+
* instance of the `Promise` global. In a few circumstances, in particular if
|
|
923
|
+
* the global has been overwritten, this is could be misleading, so we also do
|
|
924
|
+
* a little 'duck typing' check to see if the `.then` property of the value is
|
|
925
|
+
* defined and a function.
|
|
926
|
+
*
|
|
927
|
+
* @param maybePromise it might be a promise!
|
|
928
|
+
* @returns whether it is or not
|
|
929
|
+
*/
|
|
930
|
+
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
931
|
+
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
932
|
+
/**
|
|
933
|
+
* Update a component given reference to its host elements and so on.
|
|
934
|
+
*
|
|
935
|
+
* @param hostRef an object containing references to the element's host node,
|
|
936
|
+
* VDom nodes, and other metadata
|
|
937
|
+
* @param instance a reference to the underlying host element where it will be
|
|
938
|
+
* rendered
|
|
939
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
940
|
+
* the first render cycle
|
|
941
|
+
*/
|
|
827
942
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
828
|
-
|
|
943
|
+
var _a;
|
|
829
944
|
const elm = hostRef.$hostElement$;
|
|
830
945
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
831
946
|
const rc = elm['s-rc'];
|
|
@@ -835,7 +950,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
835
950
|
}
|
|
836
951
|
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
837
952
|
{
|
|
838
|
-
callRender(hostRef, instance);
|
|
953
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
839
954
|
}
|
|
840
955
|
if (rc) {
|
|
841
956
|
// ok, so turns out there are some child host elements
|
|
@@ -847,7 +962,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
847
962
|
endRender();
|
|
848
963
|
endUpdate();
|
|
849
964
|
{
|
|
850
|
-
const childrenPromises = elm['s-p'];
|
|
965
|
+
const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
|
|
851
966
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
852
967
|
if (childrenPromises.length === 0) {
|
|
853
968
|
postUpdate();
|
|
@@ -859,7 +974,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
859
974
|
}
|
|
860
975
|
}
|
|
861
976
|
};
|
|
862
|
-
|
|
977
|
+
/**
|
|
978
|
+
* Handle making the call to the VDom renderer with the proper context given
|
|
979
|
+
* various build variables
|
|
980
|
+
*
|
|
981
|
+
* @param hostRef an object containing references to the element's host node,
|
|
982
|
+
* VDom nodes, and other metadata
|
|
983
|
+
* @param instance a reference to the underlying host element where it will be
|
|
984
|
+
* rendered
|
|
985
|
+
* @param elm the Host element for the component
|
|
986
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
987
|
+
* @returns an empty promise
|
|
988
|
+
*/
|
|
989
|
+
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
863
990
|
try {
|
|
864
991
|
instance = instance.render() ;
|
|
865
992
|
{
|
|
@@ -874,7 +1001,7 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
874
1001
|
// or we need to update the css class/attrs on the host element
|
|
875
1002
|
// DOM WRITE!
|
|
876
1003
|
{
|
|
877
|
-
renderVdom(hostRef, instance);
|
|
1004
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
878
1005
|
}
|
|
879
1006
|
}
|
|
880
1007
|
}
|
|
@@ -945,9 +1072,6 @@ const safeCall = (instance, method, arg) => {
|
|
|
945
1072
|
}
|
|
946
1073
|
return undefined;
|
|
947
1074
|
};
|
|
948
|
-
const then = (promise, thenFn) => {
|
|
949
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
950
|
-
};
|
|
951
1075
|
const addHydratedFlag = (elm) => elm.setAttribute('hydrated', '')
|
|
952
1076
|
;
|
|
953
1077
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -1004,6 +1128,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1004
1128
|
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1005
1129
|
*/
|
|
1006
1130
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1131
|
+
var _a;
|
|
1007
1132
|
if (cmpMeta.$members$) {
|
|
1008
1133
|
if (Cstr.watchers) {
|
|
1009
1134
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
@@ -1031,7 +1156,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1031
1156
|
});
|
|
1032
1157
|
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1033
1158
|
const attrNameToPropName = new Map();
|
|
1034
|
-
prototype.attributeChangedCallback = function (attrName,
|
|
1159
|
+
prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
|
|
1035
1160
|
plt.jmp(() => {
|
|
1036
1161
|
const propName = attrNameToPropName.get(attrName);
|
|
1037
1162
|
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
@@ -1054,12 +1179,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1054
1179
|
// customElements.define('my-component', MyComponent);
|
|
1055
1180
|
// </script>
|
|
1056
1181
|
// ```
|
|
1057
|
-
// In this case if we do not
|
|
1182
|
+
// In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1058
1183
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1059
1184
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1060
|
-
// the connectedCallback attempts to
|
|
1185
|
+
// the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
|
|
1061
1186
|
//
|
|
1062
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/
|
|
1187
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
|
|
1063
1188
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1064
1189
|
//
|
|
1065
1190
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
@@ -1079,21 +1204,49 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1079
1204
|
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1080
1205
|
return;
|
|
1081
1206
|
}
|
|
1207
|
+
else if (propName == null) {
|
|
1208
|
+
// At this point we should know this is not a "member", so we can treat it like watching an attribute
|
|
1209
|
+
// on a vanilla web component
|
|
1210
|
+
const hostRef = getHostRef(this);
|
|
1211
|
+
const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
|
|
1212
|
+
// We only want to trigger the callback(s) if:
|
|
1213
|
+
// 1. The instance is ready
|
|
1214
|
+
// 2. The watchers are ready
|
|
1215
|
+
// 3. The value has changed
|
|
1216
|
+
if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
|
|
1217
|
+
flags & 128 /* HOST_FLAGS.isWatchReady */ &&
|
|
1218
|
+
newValue !== oldValue) {
|
|
1219
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1220
|
+
const entry = cmpMeta.$watchers$[attrName];
|
|
1221
|
+
entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
|
|
1222
|
+
if (instance[callbackName] != null) {
|
|
1223
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1224
|
+
}
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
return;
|
|
1228
|
+
}
|
|
1082
1229
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1083
1230
|
});
|
|
1084
1231
|
};
|
|
1085
|
-
//
|
|
1086
|
-
//
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1232
|
+
// Create an array of attributes to observe
|
|
1233
|
+
// This list in comprised of all strings used within a `@Watch()` decorator
|
|
1234
|
+
// on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
|
|
1235
|
+
// As such, there is no way to guarantee type-safety here that a user hasn't entered
|
|
1236
|
+
// an invalid attribute.
|
|
1237
|
+
Cstr.observedAttributes = Array.from(new Set([
|
|
1238
|
+
...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
|
|
1239
|
+
...members
|
|
1240
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
|
|
1241
|
+
.map(([propName, m]) => {
|
|
1242
|
+
const attrName = m[1] || propName;
|
|
1243
|
+
attrNameToPropName.set(attrName, propName);
|
|
1244
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1245
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1246
|
+
}
|
|
1247
|
+
return attrName;
|
|
1248
|
+
}),
|
|
1249
|
+
]));
|
|
1097
1250
|
}
|
|
1098
1251
|
}
|
|
1099
1252
|
return Cstr;
|
|
@@ -1101,9 +1254,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1101
1254
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1102
1255
|
// initializeComponent
|
|
1103
1256
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1257
|
+
// Let the runtime know that the component has been initialized
|
|
1258
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1104
1259
|
{
|
|
1105
|
-
// we haven't initialized this element yet
|
|
1106
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1107
1260
|
// lazy loaded components
|
|
1108
1261
|
// request the component's implementation to be
|
|
1109
1262
|
// wired up with the host element
|
|
@@ -1176,6 +1329,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1176
1329
|
schedule();
|
|
1177
1330
|
}
|
|
1178
1331
|
};
|
|
1332
|
+
const fireConnectedCallback = (instance) => {
|
|
1333
|
+
};
|
|
1179
1334
|
const connectedCallback = (elm) => {
|
|
1180
1335
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1181
1336
|
const hostRef = getHostRef(elm);
|
|
@@ -1219,22 +1374,34 @@ const connectedCallback = (elm) => {
|
|
|
1219
1374
|
// reattach any event listeners to the host
|
|
1220
1375
|
// since they would have been removed when disconnected
|
|
1221
1376
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1377
|
+
// fire off connectedCallback() on component instance
|
|
1378
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1379
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1380
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1381
|
+
}
|
|
1222
1382
|
}
|
|
1223
1383
|
endConnected();
|
|
1224
1384
|
}
|
|
1225
1385
|
};
|
|
1226
|
-
const
|
|
1386
|
+
const disconnectInstance = (instance) => {
|
|
1387
|
+
{
|
|
1388
|
+
safeCall(instance, 'disconnectedCallback');
|
|
1389
|
+
}
|
|
1390
|
+
};
|
|
1391
|
+
const disconnectedCallback = async (elm) => {
|
|
1227
1392
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1228
1393
|
const hostRef = getHostRef(elm);
|
|
1229
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1230
1394
|
{
|
|
1231
1395
|
if (hostRef.$rmListeners$) {
|
|
1232
1396
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1233
1397
|
hostRef.$rmListeners$ = undefined;
|
|
1234
1398
|
}
|
|
1235
1399
|
}
|
|
1236
|
-
{
|
|
1237
|
-
|
|
1400
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
|
|
1401
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1402
|
+
}
|
|
1403
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1404
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1238
1405
|
}
|
|
1239
1406
|
}
|
|
1240
1407
|
};
|
|
@@ -1254,6 +1421,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1254
1421
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1255
1422
|
lazyBundles.map((lazyBundle) => {
|
|
1256
1423
|
lazyBundle[1].map((compactMeta) => {
|
|
1424
|
+
var _a;
|
|
1257
1425
|
const cmpMeta = {
|
|
1258
1426
|
$flags$: compactMeta[0],
|
|
1259
1427
|
$tagName$: compactMeta[1],
|
|
@@ -1270,7 +1438,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1270
1438
|
cmpMeta.$attrsToReflect$ = [];
|
|
1271
1439
|
}
|
|
1272
1440
|
{
|
|
1273
|
-
cmpMeta.$watchers$ = {};
|
|
1441
|
+
cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
|
|
1274
1442
|
}
|
|
1275
1443
|
const tagName = cmpMeta.$tagName$;
|
|
1276
1444
|
const HostElement = class extends HTMLElement {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { s as setNonce } from './index-
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
6
|
-
*/
|
|
7
|
-
const patchEsm = () => {
|
|
8
|
-
return promiseResolve();
|
|
9
|
-
};
|
|
1
|
+
import { b as bootstrapLazy } from './index-822a7c21.js';
|
|
2
|
+
export { s as setNonce } from './index-822a7c21.js';
|
|
10
3
|
|
|
11
4
|
const defineCustomElements = (win, options) => {
|
|
12
|
-
if (typeof window === 'undefined') return
|
|
13
|
-
return
|
|
14
|
-
return bootstrapLazy([["mds-modal",[[1,"mds-modal",{"opened":[1540],"position":[1537],"stateOpened":[32]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]]]]]], options);
|
|
15
|
-
});
|
|
5
|
+
if (typeof window === 'undefined') return undefined;
|
|
6
|
+
return bootstrapLazy([["mds-modal",[[1,"mds-modal",{"opened":[1540],"position":[1537],"stateOpened":[32]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]],{"position":["positionChange"],"opened":["openedChange"]}]]]], options);
|
|
16
7
|
};
|
|
17
8
|
|
|
18
9
|
export { defineCustomElements };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-822a7c21.js';
|
|
2
2
|
|
|
3
3
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
4
4
|
|
|
@@ -45,7 +45,7 @@ class KeyboardManager {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
const mdsModalCss = "@tailwind components; @tailwind utilities; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-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}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.focus-light-on,.focusable-light:focus-visible{--magma-outline-blur:2px solid rgb(var(--tone-neutral))}.svg{display:-ms-flexbox;display:flex}.svg svg{aspect-ratio:1 / 1;height:100%;width:100%}.animate-right-intro,.animate-right-outro{-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}.fixed{position:fixed}.absolute{position:absolute}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.ml-auto{margin-left:auto}.flex{display:-ms-flexbox;display:flex}.w-16{width:4rem}.min-w-0{min-width:0px}.max-w-lg{max-width:32rem}.max-w-xl{max-width:36rem}.items-center{-ms-flex-align:center;align-items:center}.gap-4{gap:1rem}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-tone-neutral-09{--tw-border-opacity:1;border-color:rgba(var(--tone-neutral-09), var(--tw-border-opacity))}.bg-transparent{background-color:transparent}.p-4{padding:1rem}.p-8{padding:2rem}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(var(--tone-neutral-04), var(--tw-text-opacity))}.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-modal-overlay-color:var(--magma-overlay-color, 0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity, 0.5);--mds-modal-window-background:rgb(var(--tone-neutral));--mds-modal-window-overflow:auto;--mds-modal-window-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--mds-modal-z-index:var(--magma-modal-z-index);pointer-events:none;position:fixed;inset:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition-duration:700ms;transition-duration:700ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);background-color:rgba(var(--mds-modal-overlay-color) / 0);fill:rgb(var(--tone-neutral));-webkit-perspective:600px;perspective:600px;z-index:var(--mds-modal-z-index, 1000)}:host([position=top]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position=bottom]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}:host(.to-bottom-opened),:host(.to-center-opened),:host(.to-left-opened),:host(.to-right-opened),:host(.to-top-opened){pointer-events:auto;-webkit-transition-duration:500ms;transition-duration:500ms;background-color:rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity))}.close{position:absolute;top:0px;height:2.25rem;width:2.25rem;-webkit-transform-origin:center;transform-origin:center;cursor:pointer;border-radius:9999px;font-size:2.25rem;line-height:2.5rem;opacity:0;-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);fill:inherit;-webkit-transform:translate(0, 24px) rotate(90deg);transform:translate(0, 24px) rotate(90deg);-webkit-transition-property:opacity, outline, outline-offset, -webkit-transform;transition-property:opacity, outline, outline-offset, -webkit-transform;transition-property:opacity, outline, outline-offset, transform;transition-property:opacity, outline, outline-offset, transform, -webkit-transform}.window{display:grid;height:100%;gap:0px;background-color:var(--mds-modal-window-background);-webkit-box-shadow:var(--mds-modal-window-shadow);box-shadow:var(--mds-modal-window-shadow);grid-template-rows:1fr;max-width:calc(100vw - 80px);overflow:var(--mds-modal-window-overflow)}.window--top{grid-template-rows:auto 1fr}.window--bottom{grid-template-rows:1fr auto}.window--top-bottom{grid-template-rows:auto 1fr auto}:host(.to-bottom){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.to-bottom){padding:1rem}}:host(.to-bottom) .window,:host(.to-bottom)>::slotted([slot=\"window\"]){opacity:0;-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(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-bottom-intro) .window,:host(.to-bottom-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-bottom-opened.to-bottom-outro) .window,:host(.to-bottom-opened.to-bottom-outro)>::slotted([slot=\"window\"]),:host(.to-bottom-opened) .window,:host(.to-bottom-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-bottom-outro) .window,:host(.to-bottom-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.to-center){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.to-center){padding:1rem}}:host(.to-center) .window,:host(.to-center)>::slotted([slot=\"window\"]){opacity:0;-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(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-center-intro) .window,:host(.to-center-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-center-opened.to-center-outro) .window,:host(.to-center-opened.to-center-outro)>::slotted([slot=\"window\"]),:host(.to-center-opened) .window,:host(.to-center-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-center-outro) .window,:host(.to-center-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.to-left){-ms-flex-pack:start;justify-content:flex-start}:host(.to-left) .window,:host(.to-left)>::slotted([slot=\"window\"]){opacity:0;-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(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-left-intro) .window,:host(.to-left-intro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.to-left-opened.to-left-outro) .window,:host(.to-left-opened.to-left-outro)>::slotted([slot=\"window\"]),:host(.to-left-opened) .window,:host(.to-left-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.to-left-opened) .close,:host(.to-left-opened.to-left-outro) .close{opacity:1;-webkit-transform:translate(-24px, 24px) rotate(0);transform:translate(-24px, 24px) rotate(0)}:host(.to-left-outro) .window,:host(.to-left-outro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.to-left-outro) .close{-webkit-transform:translate(24px, 24px) rotate(-90deg);transform:translate(24px, 24px) rotate(-90deg)}:host(.to-left) .close{right:0px;-webkit-transform:translate(36px, 24px) rotate(90deg);transform:translate(36px, 24px) rotate(90deg)}:host(.to-right){-ms-flex-pack:end;justify-content:flex-end}:host(.to-right) .window,:host(.to-right)>::slotted([slot=\"window\"]){opacity:0;-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(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-right-intro) .window,:host(.to-right-intro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.to-right-opened.to-right-outro) .window,:host(.to-right-opened.to-right-outro)>::slotted([slot=\"window\"]),:host(.to-right-opened) .window,:host(.to-right-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.to-right-opened) .close,:host(.to-right-opened.to-right-outro) .close{opacity:1;-webkit-transform:translate(24px, 24px) rotate(0);transform:translate(24px, 24px) rotate(0)}:host(.to-right-outro) .window,:host(.to-right-outro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.to-right-outro) .close{-webkit-transform:translate(-24px, 24px) rotate(90deg);transform:translate(-24px, 24px) rotate(90deg)}:host(.to-right) .close{left:0px;-webkit-transform:translate(-36px, 24px) rotate(-90deg);transform:translate(-36px, 24px) rotate(-90deg)}:host(.to-top){-ms-flex-pack:center;justify-content:center;padding:2rem}@media (max-width: 767px){:host(.to-top){padding:1rem}}:host(.to-top) .window,:host(.to-top)>::slotted([slot=\"window\"]){opacity:0;-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(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-top-intro) .window,:host(.to-top-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-top-opened.to-top-outro) .window,:host(.to-top-opened.to-top-outro)>::slotted([slot=\"window\"]),:host(.to-top-opened) .window,:host(.to-top-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-top-outro) .window,:host(.to-top-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}@media (max-width: 767px){.mobile\\:w-12{width:3rem}}";
|
|
48
|
+
const mdsModalCss = "@tailwind components; @tailwind utilities; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-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}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.focus-light-on,.focusable-light:focus-visible{--magma-outline-blur:2px solid rgb(var(--tone-neutral))}.svg{display:-ms-flexbox;display:flex}.svg svg{aspect-ratio:1 / 1;height:100%;width:100%}.animate-right-intro,.animate-right-outro{-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}.fixed{position:fixed}.absolute{position:absolute}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.ml-auto{margin-left:auto}.flex{display:-ms-flexbox;display:flex}.w-16{width:4rem}.min-w-0{min-width:0px}.max-w-lg{max-width:32rem}.max-w-xl{max-width:36rem}.items-center{-ms-flex-align:center;align-items:center}.gap-4{gap:1rem}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-tone-neutral-09{--tw-border-opacity:1;border-color:rgba(var(--tone-neutral-09), var(--tw-border-opacity))}.bg-transparent{background-color:transparent}.p-4{padding:1rem}.p-8{padding:2rem}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(var(--tone-neutral-04), var(--tw-text-opacity))}.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-modal-overlay-color:var(--magma-overlay-color, 0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity, 0.5);--mds-modal-window-background:rgb(var(--tone-neutral));--mds-modal-window-overflow:auto;--mds-modal-window-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--mds-modal-z-index:var(--magma-modal-z-index);-webkit-transition-duration:700ms;transition-duration:700ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);-ms-flex-align:center;align-items:center;background-color:rgba(var(--mds-modal-overlay-color) / 0);display:-ms-flexbox;display:flex;fill:rgb(var(--tone-neutral));inset:0;-ms-flex-pack:center;justify-content:center;-webkit-perspective:600px;perspective:600px;pointer-events:none;position:fixed;z-index:var(--mds-modal-z-index, 1000)}:host([position=top]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position=bottom]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}:host(.to-bottom-opened),:host(.to-center-opened),:host(.to-left-opened),:host(.to-right-opened),:host(.to-top-opened){-webkit-transition-duration:500ms;transition-duration:500ms;background-color:rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));pointer-events:auto}.close{top:0px;height:2.25rem;width:2.25rem;border-radius:9999px;font-size:2.25rem;line-height:2.5rem;opacity:0;-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);cursor:pointer;fill:inherit;position:absolute;-webkit-transform-origin:center;transform-origin:center;-webkit-transform:translate(0, 24px) rotate(90deg);transform:translate(0, 24px) rotate(90deg);-webkit-transition-property:opacity, outline, outline-offset, -webkit-transform;transition-property:opacity, outline, outline-offset, -webkit-transform;transition-property:opacity, outline, outline-offset, transform;transition-property:opacity, outline, outline-offset, transform, -webkit-transform}.window{height:100%;gap:0px;background-color:var(--mds-modal-window-background);-webkit-box-shadow:var(--mds-modal-window-shadow);box-shadow:var(--mds-modal-window-shadow);display:grid;grid-template-rows:1fr;max-width:calc(100vw - 80px);overflow:var(--mds-modal-window-overflow)}.window--top{grid-template-rows:auto 1fr}.window--bottom{grid-template-rows:1fr auto}.window--top-bottom{grid-template-rows:auto 1fr auto}:host(.to-bottom){padding:2rem}@media (max-width: 767px){:host(.to-bottom){padding:1rem}}:host(.to-bottom){-ms-flex-pack:center;justify-content:center}:host(.to-bottom) .window,:host(.to-bottom)>::slotted([slot=\"window\"]){opacity:0;-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(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-bottom-intro) .window,:host(.to-bottom-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-bottom-opened.to-bottom-outro) .window,:host(.to-bottom-opened.to-bottom-outro)>::slotted([slot=\"window\"]),:host(.to-bottom-opened) .window,:host(.to-bottom-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-bottom-outro) .window,:host(.to-bottom-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.to-center){padding:2rem}@media (max-width: 767px){:host(.to-center){padding:1rem}}:host(.to-center){-ms-flex-pack:center;justify-content:center}:host(.to-center) .window,:host(.to-center)>::slotted([slot=\"window\"]){opacity:0;-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(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-center-intro) .window,:host(.to-center-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-center-opened.to-center-outro) .window,:host(.to-center-opened.to-center-outro)>::slotted([slot=\"window\"]),:host(.to-center-opened) .window,:host(.to-center-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-center-outro) .window,:host(.to-center-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}:host(.to-left){-ms-flex-pack:start;justify-content:flex-start}:host(.to-left) .window,:host(.to-left)>::slotted([slot=\"window\"]){opacity:0;-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(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-left-intro) .window,:host(.to-left-intro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.to-left-opened.to-left-outro) .window,:host(.to-left-opened.to-left-outro)>::slotted([slot=\"window\"]),:host(.to-left-opened) .window,:host(.to-left-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.to-left-opened) .close,:host(.to-left-opened.to-left-outro) .close{opacity:1;-webkit-transform:translate(-24px, 24px) rotate(0);transform:translate(-24px, 24px) rotate(0)}:host(.to-left-outro) .window,:host(.to-left-outro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(-100% - 50px));transform:translateX(calc(-100% - 50px))}:host(.to-left-outro) .close{-webkit-transform:translate(24px, 24px) rotate(-90deg);transform:translate(24px, 24px) rotate(-90deg)}:host(.to-left) .close{right:0px;-webkit-transform:translate(36px, 24px) rotate(90deg);transform:translate(36px, 24px) rotate(90deg)}:host(.to-right){-ms-flex-pack:end;justify-content:flex-end}:host(.to-right) .window,:host(.to-right)>::slotted([slot=\"window\"]){opacity:0;-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(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-right-intro) .window,:host(.to-right-intro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.to-right-opened.to-right-outro) .window,:host(.to-right-opened.to-right-outro)>::slotted([slot=\"window\"]),:host(.to-right-opened) .window,:host(.to-right-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}:host(.to-right-opened) .close,:host(.to-right-opened.to-right-outro) .close{opacity:1;-webkit-transform:translate(24px, 24px) rotate(0);transform:translate(24px, 24px) rotate(0)}:host(.to-right-outro) .window,:host(.to-right-outro)>::slotted([slot=\"window\"]){-webkit-transform:translateX(calc(100% + 50px));transform:translateX(calc(100% + 50px))}:host(.to-right-outro) .close{-webkit-transform:translate(-24px, 24px) rotate(90deg);transform:translate(-24px, 24px) rotate(90deg)}:host(.to-right) .close{left:0px;-webkit-transform:translate(-36px, 24px) rotate(-90deg);transform:translate(-36px, 24px) rotate(-90deg)}:host(.to-top){padding:2rem}@media (max-width: 767px){:host(.to-top){padding:1rem}}:host(.to-top){-ms-flex-pack:center;justify-content:center}:host(.to-top) .window,:host(.to-top)>::slotted([slot=\"window\"]){opacity:0;-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(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host(.to-top-intro) .window,:host(.to-top-intro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(40%);transform:rotateX(-22deg) scale(0.5) translateY(40%)}:host(.to-top-opened.to-top-outro) .window,:host(.to-top-opened.to-top-outro)>::slotted([slot=\"window\"]),:host(.to-top-opened) .window,:host(.to-top-opened)>::slotted([slot=\"window\"]){opacity:1;-webkit-transform:rotateX(0) scale(1) translateY(0);transform:rotateX(0) scale(1) translateY(0)}:host(.to-top-outro) .window,:host(.to-top-outro)>::slotted([slot=\"window\"]){-webkit-transform:rotateX(-22deg) scale(0.5) translateY(-40%);transform:rotateX(-22deg) scale(0.5) translateY(-40%)}@media (max-width: 767px){.mobile\\:w-12{width:3rem}}";
|
|
49
49
|
|
|
50
50
|
const MdsModal = class {
|
|
51
51
|
constructor(hostRef) {
|
package/dist/esm/mds-modal.js
CHANGED
|
@@ -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-822a7c21.js';
|
|
2
|
+
export { s as setNonce } from './index-822a7c21.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser
|
|
5
|
+
Stencil Client Patch Browser v4.3.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["mds-modal",[[1,"mds-modal",{"opened":[1540],"position":[1537],"stateOpened":[32]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]]]]]], options);
|
|
17
|
+
return bootstrapLazy([["mds-modal",[[1,"mds-modal",{"opened":[1540],"position":[1537],"stateOpened":[32]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]],{"position":["positionChange"],"opened":["openedChange"]}]]]], options);
|
|
18
18
|
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function i(e){try{l(r["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):a(e.value).then(s,i)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(t){return l([e,t])}}function l(i){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,i[0]&&(n=0)),n)try{if(r=1,a&&(o=i[0]&2?a["return"]:i[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,i[1])).done)return o;if(a=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;a=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){n.label=i[1];break}if(i[0]===6&&n.label<o[1]){n.label=o[1];o=i;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(i);break}if(o[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];a=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};var NAMESPACE="mds-modal";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}[hydrated]{visibility:inherit}";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 t,n,r;return(r=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&r!==void 0?r:undefined}var h=function(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var a=null;var o=false;var s=false;var i=[];var l=function(t){for(var n=0;n<t.length;n++){a=t[n];if(Array.isArray(a)){l(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(o&&s){i[i.length-1].$text$+=a}else{i.push(o?newVNode(null,a):a)}s=o}}};l(n);if(t){{var u=t.className||t.class;if(u){t.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}var c=newVNode(e,null);c.$attrs$=t;if(i.length>0){c.$children$=i}return c};var newVNode=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{n.$attrs$=null}return n};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,n){var r=getElement(e);return{emit:function(e){return emitEvent(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}};var emitEvent=function(e,t,n){var r=plt.ce(t,n);e.dispatchEvent(r);return r};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,n){var r=styles.get(e);if(supportsConstructableStylesheets&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}styles.set(e,r)};var addStyle=function(e,t,n){var r;var a=getScopeId(t);var o=styles.get(a);e=e.nodeType===11?e:doc;if(o){if(typeof o==="string"){e=e.head||e;var s=rootAppliedStyles.get(e);var i=void 0;if(!s){rootAppliedStyles.set(e,s=new Set)}if(!s.has(a)){{i=doc.createElement("style");i.innerHTML=o;var l=(r=plt.$nonce$)!==null&&r!==void 0?r:queryNonceMetaTagContent(doc);if(l!=null){i.setAttribute("nonce",l)}e.insertBefore(i,e.querySelector("link"))}if(s){s.add(a)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return a};var attachStyles=function(e){var t=e.$cmpMeta$;var n=e.$hostElement$;var r=t.$flags$;var a=createTime("attachStyles",t.$tagName$);var o=addStyle(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=o;n.classList.add(o+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var setAccessor=function(e,t,n,r,a,o){if(n!==r){var s=isMemberInElement(e,t);var i=t.toLowerCase();if(t==="class"){var l=e.classList;var u=parseClassList(n);var c=parseClassList(r);l.remove.apply(l,u.filter((function(e){return e&&!c.includes(e)})));l.add.apply(l,c.filter((function(e){return e&&!u.includes(e)})))}else if(!s&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,i)){t=i.slice(2)}else{t=i[2]+t.slice(3)}if(n){plt.rel(e,t,n,false)}if(r){plt.ael(e,t,r,false)}}else{var f=isComplexType(r);if((s||f&&r!==null)&&!a){try{if(!e.tagName.includes("-")){var $=r==null?"":r;if(t==="list"){s=false}else if(n==null||e[t]!=$){e[t]=$}}else{e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!s||o&4||a)&&!f){r=r===true?"":r;{e.setAttribute(t,r)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,t,n,r){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var o=e&&e.$attrs$||EMPTY_OBJ;var s=t.$attrs$||EMPTY_OBJ;{for(r in o){if(!(r in s)){setAccessor(a,r,o[r],undefined,n,t.$flags$)}}}for(r in s){setAccessor(a,r,o[r],s[r],n,t.$flags$)}};var createElm=function(e,t,n,r){var a=t.$children$[n];var o=0;var s;var i;if(a.$text$!==null){s=a.$elm$=doc.createTextNode(a.$text$)}else{s=a.$elm$=doc.createElement(a.$tag$);{updateElement(null,a,isSvgMode)}if(isDef(scopeId)&&s["s-si"]!==scopeId){s.classList.add(s["s-si"]=scopeId)}if(a.$children$){for(o=0;o<a.$children$.length;++o){i=createElm(e,a,o);if(i){s.appendChild(i)}}}}return s};var addVnodes=function(e,t,n,r,a,o){var s=e;var i;if(s.shadowRoot&&s.tagName===hostTagName){s=s.shadowRoot}for(;a<=o;++a){if(r[a]){i=createElm(null,n,a);if(i){r[a].$elm$=i;s.insertBefore(i,t)}}}};var removeVnodes=function(e,t,n){for(var r=t;r<=n;++r){var a=e[r];if(a){var o=a.$elm$;if(o){o.remove()}}}};var updateChildren=function(e,t,n,r){var a=0;var o=0;var s=t.length-1;var i=t[0];var l=t[s];var u=r.length-1;var c=r[0];var f=r[u];var $;while(a<=s&&o<=u){if(i==null){i=t[++a]}else if(l==null){l=t[--s]}else if(c==null){c=r[++o]}else if(f==null){f=r[--u]}else if(isSameVnode(i,c)){patch(i,c);i=t[++a];c=r[++o]}else if(isSameVnode(l,f)){patch(l,f);l=t[--s];f=r[--u]}else if(isSameVnode(i,f)){patch(i,f);e.insertBefore(i.$elm$,l.$elm$.nextSibling);i=t[++a];f=r[--u]}else if(isSameVnode(l,c)){patch(l,c);e.insertBefore(l.$elm$,i.$elm$);l=t[--s];c=r[++o]}else{{$=createElm(t&&t[o],n,o);c=r[++o]}if($){{i.$elm$.parentNode.insertBefore($,i.$elm$)}}}}if(a>s){addVnodes(e,r[u+1]==null?null:r[u+1].$elm$,n,r,o,u)}else if(o>u){removeVnodes(t,a,s)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){return true}return false};var patch=function(e,t){var n=t.$elm$=e.$elm$;var r=e.$children$;var a=t.$children$;var o=t.$tag$;var s=t.$text$;if(s===null){{if(o==="slot");else{updateElement(e,t,isSvgMode)}}if(r!==null&&a!==null){updateChildren(n,r,t,a)}else if(a!==null){if(e.$text$!==null){n.textContent=""}addVnodes(n,null,t,a,0,a.length-1)}else if(r!==null){removeVnodes(r,0,r.length-1)}}else if(e.$text$!==s){n.data=s}};var renderVdom=function(e,t,n){if(n===void 0){n=false}var r=e.$hostElement$;var a=e.$cmpMeta$;var o=e.$vnode$||newVNode(null,null);var s=isHost(t)?t:h(null,null,t);hostTagName=r.tagName;if(a.$attrsToReflect$){s.$attrs$=s.$attrs$||{};a.$attrsToReflect$.map((function(e){var t=e[0],n=e[1];return s.$attrs$[n]=r[t]}))}if(n&&s.$attrs$){for(var i=0,l=Object.keys(s.$attrs$);i<l.length;i++){var u=l[i];if(r.hasAttribute(u)&&!["key","ref","style","class"].includes(u)){s.$attrs$[u]=r[u]}}}s.$tag$=null;s.$flags$|=4;e.$vnode$=s;s.$elm$=o.$elm$=r.shadowRoot||r;{scopeId=r["s-sc"]}patch(o,s)};var attachToAncestor=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var n=function(){return dispatchHooks(e,t)};return writeTask(n)};var dispatchHooks=function(e,t){var n=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var r=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],n=e[1];return safeCall(r,t,n)}));e.$queuedListeners$=undefined}}{a=safeCall(r,"componentWillLoad")}}{a=enqueue(a,(function(){return safeCall(r,"componentWillRender")}))}n();return enqueue(a,(function(){return updateComponent(e,r,t)}))};var enqueue=function(e,t){return isPromisey(e)?e.then(t):t()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){var r,a,o,s,i,l,u;return __generator(this,(function(c){a=e.$hostElement$;o=createTime("update",e.$cmpMeta$.$tagName$);s=a["s-rc"];if(n){attachStyles(e)}i=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t,a,n)}if(s){s.map((function(e){return e()}));a["s-rc"]=undefined}i();o();{l=(r=a["s-p"])!==null&&r!==void 0?r:[];u=function(){return postUpdateComponent(e)};if(l.length===0){u()}else{Promise.all(l).then(u);e.$flags$|=4;l.length=0}}return[2]}))}))};var callRender=function(e,t,n,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{renderVdom(e,t,r)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var r=createTime("postUpdate",t);var a=e.$lazyInstance$;var o=e.$ancestorComponent$;{safeCall(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{addHydratedFlag(n)}r();{e.$onReadyResolve$(n);if(!o){appDidLoad()}}}else{r()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,n){if(e&&e[t]){try{return e[t](n)}catch(e){consoleError(e)}}return undefined};var addHydratedFlag=function(e){return e.setAttribute("hydrated","")};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,n,r){var a=getHostRef(e);var o=a.$hostElement$;var s=a.$instanceValues$.get(t);var i=a.$flags$;var l=a.$lazyInstance$;n=parsePropertyValue(n,r.$members$[t][0]);var u=Number.isNaN(s)&&Number.isNaN(n);var c=n!==s&&!u;if((!(i&8)||s===undefined)&&c){a.$instanceValues$.set(t,n);if(l){if(r.$watchers$&&i&128){var f=r.$watchers$[t];if(f){f.map((function(e){try{l[e](n,s,t)}catch(e){consoleError(e,o)}}))}}if((i&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,n){var r;if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var a=Object.entries(t.$members$);var o=e.prototype;a.map((function(e){var r=e[0],a=e[1][0];if(a&31||n&2&&a&32){Object.defineProperty(o,r,{get:function(){return getValue(this,r)},set:function(e){setValue(this,r,e,t)},configurable:true,enumerable:true})}}));if(n&1){var s=new Map;o.attributeChangedCallback=function(e,n,r){var a=this;plt.jmp((function(){var i=s.get(e);if(a.hasOwnProperty(i)){r=a[i];delete a[i]}else if(o.hasOwnProperty(i)&&typeof a[i]==="number"&&a[i]==r){return}else if(i==null){var l=getHostRef(a);var u=l===null||l===void 0?void 0:l.$flags$;if(!(u&8)&&u&128&&r!==n){var c=l.$lazyInstance$;var f=t.$watchers$[e];f===null||f===void 0?void 0:f.forEach((function(t){if(c[t]!=null){c[t].call(c,r,n,e)}}))}return}a[i]=r===null&&typeof a[i]==="boolean"?false:r}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((r=t.$watchers$)!==null&&r!==void 0?r:{}),true),a.filter((function(e){var t=e[0],n=e[1];return n[0]&15})).map((function(e){var n=e[0],r=e[1];var a=r[1]||n;s.set(a,n);if(r[0]&512){t.$attrsToReflect$.push([n,a])}return a})),true)))}}return e};var initializeComponent=function(e,t,n,r,a){return __awaiter(void 0,void 0,void 0,(function(){var e,r,o,s,i,l,u;return __generator(this,(function(c){switch(c.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;a=loadModule(n);if(!a.then)return[3,2];e=uniqueTime();return[4,a];case 1:a=c.sent();e();c.label=2;case 2:if(!a.isProxied){{n.$watchers$=a.watchers}proxyComponent(a,n,2);a.isProxied=true}r=createTime("createInstance",n.$tagName$);{t.$flags$|=8}try{new a(t)}catch(e){consoleError(e)}{t.$flags$&=~8}{t.$flags$|=128}r();if(a.style){o=a.style;s=getScopeId(n);if(!styles.has(s)){i=createTime("registerStyles",n.$tagName$);registerStyle(s,o,!!(n.$flags$&1));i()}}c.label=3;case 3:l=t.$ancestorComponent$;u=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(u)}else{u()}return[2]}}))}))};var fireConnectedCallback=function(e){};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var n=t.$cmpMeta$;var r=createTime("connectedCallback",n.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(n.$members$){Object.entries(n.$members$).map((function(t){var n=t[0],r=t[1][0];if(r&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{initializeComponent(e,t,n)}}else{addHostEventListeners(e,t,n.$listeners$);if(t===null||t===void 0?void 0:t.$lazyInstance$);else if(t===null||t===void 0?void 0:t.$onReadyPromise$){t.$onReadyPromise$.then((function(){return fireConnectedCallback()}))}}r()}};var disconnectInstance=function(e){{safeCall(e,"disconnectedCallback")}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t;return __generator(this,(function(n){if((plt.$flags$&1)===0){t=getHostRef(e);{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}if(t===null||t===void 0?void 0:t.$lazyInstance$){disconnectInstance(t.$lazyInstance$)}else if(t===null||t===void 0?void 0:t.$onReadyPromise$){t.$onReadyPromise$.then((function(){return disconnectInstance(t.$lazyInstance$)}))}}return[2]}))}))};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var n;var r=createTime();var a=[];var o=t.exclude||[];var s=win.customElements;var i=doc.head;var l=i.querySelector("meta[charset]");var u=doc.createElement("style");var c=[];var f;var $=true;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(t){var n;var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$listeners$=t[3]}{r.$attrsToReflect$=[]}{r.$watchers$=(n=t[4])!==null&&n!==void 0?n:{}}var i=r.$tagName$;var l=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;registerHost(t,r);if(r.$flags$&1){{{t.attachShadow({mode:"open"})}}}return n}t.prototype.connectedCallback=function(){var e=this;if(f){clearTimeout(f);f=null}if($){c.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!o.includes(i)&&!s.get(i)){a.push(i);s.define(i,proxyComponent(l,r,1))}}))}));{u.innerHTML=a+HYDRATED_CSS;u.setAttribute("data-styles","");var d=(n=plt.$nonce$)!==null&&n!==void 0?n:queryNonceMetaTagContent(doc);if(d!=null){u.setAttribute("nonce",d)}i.insertBefore(u,l?l.nextSibling:i.firstChild)}$=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return f=setTimeout(appDidLoad,30)}))}}r()};var addHostEventListeners=function(e,t,n,r){if(n){n.map((function(n){var r=n[0],a=n[1],o=n[2];var s=getHostListenerTarget(e,r);var i=hostListenerProxy(t,o);var l=hostListenerOpts(r);plt.ael(s,a,i,l);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return plt.rel(s,a,i,l)}))}))}};var hostListenerProxy=function(e,t){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[t](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,t){if(t&4)return doc;return e};var hostListenerOpts=function(e){return(e&2)!==0};var setNonce=function(e){return plt.$nonce$=e};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,n,t.$listeners$);return hostRefs.set(e,n)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,n){var r=e.$tagName$.replace(/-/g,"_");var a=e.$lazyBundleId$;var o=cmpModules.get(a);if(o){return o[r]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[r]}),consoleError)};var styles=new Map;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}};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,t){return function(n){e.push(n);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](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,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|