@uoguelph/web-components 0.0.13 → 0.0.14
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-160752dd.js → index-f0452ddd.js} +4 -8
- package/dist/cjs/loader.cjs.js +1 -10
- package/dist/cjs/uofg-footer_3.cjs.entry.js +24 -24
- package/dist/cjs/uofg-web-components.cjs.js +2 -5
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/uofg-footer/footer-links.js +4 -4
- package/dist/collection/components/uofg-footer/social-links.js +4 -4
- package/dist/collection/components/uofg-footer/uofg-footer.js +6 -6
- package/dist/collection/components/uofg-header/global-links.js +1 -1
- package/dist/collection/components/uofg-header/hello-you.js +4 -4
- package/dist/collection/components/uofg-header/page-specific.js +6 -6
- package/dist/collection/components/uofg-header/search.js +3 -3
- package/dist/collection/components/uofg-header/single-sign-on.js +1 -1
- package/dist/collection/components/uofg-header/uofg-header.js +16 -16
- package/dist/collection/components/uofg-menu/uofg-menu.js +21 -16
- package/dist/collection/utils/font-awesome-icon.js +3 -3
- package/dist/components/index2.js +2 -2
- package/dist/components/uofg-footer.js +2 -2
- package/dist/components/uofg-header.js +10 -10
- package/dist/components/uofg-menu2.js +9 -9
- package/dist/esm/{index-48bb3110.js → index-24999f13.js} +4 -8
- package/dist/esm/loader.js +2 -11
- package/dist/esm/uofg-footer_3.entry.js +24 -24
- package/dist/esm/uofg-web-components.js +3 -6
- package/dist/uofg-web-components/{p-b6a9700a.js → p-b7dfbfdc.js} +1 -1
- package/dist/uofg-web-components/{p-d148b8e8.entry.js → p-d87070ab.entry.js} +1 -1
- package/dist/uofg-web-components/uofg-web-components.esm.js +1 -1
- package/{dist/loader → loader}/cdn.js +1 -1
- package/{dist/loader → loader}/index.cjs.js +1 -1
- package/{dist/loader → loader}/index.d.ts +1 -1
- package/loader/index.es2017.js +3 -0
- package/{dist/loader → loader}/index.js +2 -2
- package/package.json +10 -7
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/loader/index.es2017.js +0 -3
- /package/{dist/loader → loader}/package.json +0 -0
|
@@ -2,9 +2,9 @@ import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/clien
|
|
|
2
2
|
import { F as FontAwesomeIcon, k as faCaretDown, l as faSearch, m as faRightToBracket, n as faBars } from './index2.js';
|
|
3
3
|
import { d as defineCustomElement$2 } from './uofg-menu2.js';
|
|
4
4
|
|
|
5
|
-
const PageSpecific =
|
|
5
|
+
const PageSpecific = props => {
|
|
6
6
|
var _a;
|
|
7
|
-
return (h("ul", { class: "uofg-header-page-specific" }, (_a = props.content) === null || _a === void 0 ? void 0 : _a.map(
|
|
7
|
+
return (h("ul", { class: "uofg-header-page-specific" }, (_a = props.content) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
8
8
|
if (!item) {
|
|
9
9
|
return null;
|
|
10
10
|
}
|
|
@@ -17,7 +17,7 @@ const PageSpecific = (props) => {
|
|
|
17
17
|
h("button", { slot: "button" },
|
|
18
18
|
h("span", null, item.title),
|
|
19
19
|
h(FontAwesomeIcon, { icon: faCaretDown })),
|
|
20
|
-
h("ul", { slot: "content", role: "menu" }, item.links.map(
|
|
20
|
+
h("ul", { slot: "content", role: "menu" }, item.links.map(link => (h("li", null,
|
|
21
21
|
h("a", Object.assign({ href: link.href }, link.attributes), link.text))))))));
|
|
22
22
|
}).filter(Boolean)));
|
|
23
23
|
};
|
|
@@ -40,7 +40,7 @@ const GlobalLinks = () => (h("ul", { class: "uofg-header-global-links" },
|
|
|
40
40
|
h("li", null,
|
|
41
41
|
h("a", { href: "https://uoguelph.ca/student-life" }, "Student Life"))));
|
|
42
42
|
|
|
43
|
-
const HelloYou =
|
|
43
|
+
const HelloYou = props => (h("uofg-menu", { class: "uofg-header-hello-you-menu", "auto-collapse": props.autoCollapse },
|
|
44
44
|
h("button", { slot: "button", "aria-label": "Hello, YOU! menu" },
|
|
45
45
|
h("span", null, "Hello, YOU!"),
|
|
46
46
|
h(FontAwesomeIcon, { icon: faCaretDown })),
|
|
@@ -95,24 +95,24 @@ const UofgHeader$1 = /*@__PURE__*/ proxyCustomElement(class UofgHeader extends H
|
|
|
95
95
|
const aToPageSpecificLink = (a) => {
|
|
96
96
|
const attributes = {};
|
|
97
97
|
a.getAttributeNames()
|
|
98
|
-
.filter(
|
|
99
|
-
.forEach(
|
|
98
|
+
.filter(name => name !== 'href')
|
|
99
|
+
.forEach(name => (attributes[name] = a.getAttribute(name)));
|
|
100
100
|
return {
|
|
101
101
|
href: a.getAttribute('href'),
|
|
102
102
|
text: a.textContent,
|
|
103
|
-
attributes
|
|
103
|
+
attributes,
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
106
|
this.pageSpecificContent = Array.from((_a = this.el) === null || _a === void 0 ? void 0 : _a.children)
|
|
107
|
-
.filter(
|
|
108
|
-
.map(
|
|
107
|
+
.filter(child => child.tagName === 'A' || child.tagName === 'UL')
|
|
108
|
+
.map(child => {
|
|
109
109
|
switch (child.tagName) {
|
|
110
110
|
case 'A':
|
|
111
111
|
return aToPageSpecificLink(child);
|
|
112
112
|
case 'UL':
|
|
113
113
|
return {
|
|
114
114
|
title: child.getAttribute('data-title'),
|
|
115
|
-
links: Array.from(child.querySelectorAll('a')).map(aToPageSpecificLink)
|
|
115
|
+
links: Array.from(child.querySelectorAll('a')).map(aToPageSpecificLink),
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
});
|
|
@@ -5,13 +5,13 @@ const PREFERS_REDUCED_MOTION = window.matchMedia('(prefers-reduced-motion: reduc
|
|
|
5
5
|
|
|
6
6
|
const DURATION_REGEX = /^(\d*\.?\d+)(s|ms)$/;
|
|
7
7
|
const EASING_FUNCTION_REGEX = /^cubic-bezier\((\s*-?\d*\.?\d+\s*,){3}\s*-?\d*\.?\d+\s*\)$|^steps\(\s*\d+\s*(,\s*(start|end))?\s*\)$/;
|
|
8
|
-
const observer = new MutationObserver(
|
|
8
|
+
const observer = new MutationObserver(mutations => {
|
|
9
9
|
for (const mutation of mutations) {
|
|
10
10
|
mutation.target.dispatchEvent(new CustomEvent('childListChange', { bubbles: false }));
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
const observerConfig = {
|
|
14
|
-
childList: true
|
|
14
|
+
childList: true,
|
|
15
15
|
};
|
|
16
16
|
const UofgMenu = /*@__PURE__*/ proxyCustomElement(class UofgMenu extends HTMLElement$1 {
|
|
17
17
|
constructor() {
|
|
@@ -104,10 +104,10 @@ const UofgMenu = /*@__PURE__*/ proxyCustomElement(class UofgMenu extends HTMLEle
|
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
// Check if we are in the middle of an animation.
|
|
107
|
-
const animations = (_b = this.content) === null || _b === void 0 ? void 0 : _b.getAnimations().filter(
|
|
107
|
+
const animations = (_b = this.content) === null || _b === void 0 ? void 0 : _b.getAnimations().filter(animation => animation.id === 'uofg-menu-animation');
|
|
108
108
|
// If we are, then we want to reverse the existing one rather than starting a new animation.
|
|
109
109
|
if (animations.length > 0) {
|
|
110
|
-
animations === null || animations === void 0 ? void 0 : animations.forEach(
|
|
110
|
+
animations === null || animations === void 0 ? void 0 : animations.forEach(animation => animation.reverse());
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
let animationDef;
|
|
@@ -116,7 +116,7 @@ const UofgMenu = /*@__PURE__*/ proxyCustomElement(class UofgMenu extends HTMLEle
|
|
|
116
116
|
duration: this.getAnimationDuration(),
|
|
117
117
|
fill: 'none',
|
|
118
118
|
easing: this.getAnimationEasing(),
|
|
119
|
-
direction: newValue ? 'normal' : 'reverse'
|
|
119
|
+
direction: newValue ? 'normal' : 'reverse',
|
|
120
120
|
};
|
|
121
121
|
// Need to remove display none, otherwise keyframe values won't be calculated correctly.
|
|
122
122
|
this.content.style.display = '';
|
|
@@ -191,19 +191,19 @@ const UofgMenu = /*@__PURE__*/ proxyCustomElement(class UofgMenu extends HTMLEle
|
|
|
191
191
|
paddingTop: 0,
|
|
192
192
|
paddingBottom: 0,
|
|
193
193
|
marginTop: 0,
|
|
194
|
-
marginBottom: 0
|
|
194
|
+
marginBottom: 0,
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
height: ((_a = this.contentComputedStyle) === null || _a === void 0 ? void 0 : _a.height) || 0,
|
|
198
198
|
paddingTop: ((_b = this.contentComputedStyle) === null || _b === void 0 ? void 0 : _b.paddingTop) || 0,
|
|
199
199
|
paddingBottom: ((_c = this.contentComputedStyle) === null || _c === void 0 ? void 0 : _c.paddingBottom) || 0,
|
|
200
200
|
marginTop: ((_d = this.contentComputedStyle) === null || _d === void 0 ? void 0 : _d.marginTop) || 0,
|
|
201
|
-
marginBottom: ((_e = this.contentComputedStyle) === null || _e === void 0 ? void 0 : _e.marginBottom) || 0
|
|
202
|
-
}
|
|
201
|
+
marginBottom: ((_e = this.contentComputedStyle) === null || _e === void 0 ? void 0 : _e.marginBottom) || 0,
|
|
202
|
+
},
|
|
203
203
|
],
|
|
204
204
|
callback: () => {
|
|
205
205
|
this.content && (this.content.style.overflowY = '');
|
|
206
|
-
}
|
|
206
|
+
},
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
render() {
|
|
@@ -308,9 +308,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
308
308
|
}
|
|
309
309
|
styles.set(scopeId, style);
|
|
310
310
|
};
|
|
311
|
-
const addStyle = (styleContainerNode, cmpMeta, mode
|
|
311
|
+
const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
312
312
|
var _a;
|
|
313
|
-
|
|
313
|
+
const scopeId = getScopeId(cmpMeta);
|
|
314
314
|
const style = styles.get(scopeId);
|
|
315
315
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
316
316
|
// so the fallback is to always use the document for the root node in those cases
|
|
@@ -325,11 +325,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
325
325
|
}
|
|
326
326
|
if (!appliedStyles.has(scopeId)) {
|
|
327
327
|
{
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
styleElm = doc.createElement('style');
|
|
331
|
-
styleElm.innerHTML = style;
|
|
332
|
-
}
|
|
328
|
+
styleElm = doc.createElement('style');
|
|
329
|
+
styleElm.innerHTML = style;
|
|
333
330
|
// Apply CSP nonce to the style tag if it exists
|
|
334
331
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
335
332
|
if (nonce != null) {
|
|
@@ -354,7 +351,6 @@ const attachStyles = (hostRef) => {
|
|
|
354
351
|
const flags = cmpMeta.$flags$;
|
|
355
352
|
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
356
353
|
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
357
|
-
// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
|
|
358
354
|
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
|
359
355
|
// only required when we're NOT using native shadow dom (slot)
|
|
360
356
|
// or this browser doesn't support native shadow dom
|
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 v3.4.0 | MIT Licensed | https://stenciljs.com
|
|
6
|
-
*/
|
|
7
|
-
const patchEsm = () => {
|
|
8
|
-
return promiseResolve();
|
|
9
|
-
};
|
|
1
|
+
import { b as bootstrapLazy } from './index-24999f13.js';
|
|
2
|
+
export { s as setNonce } from './index-24999f13.js';
|
|
10
3
|
|
|
11
4
|
const defineCustomElements = (win, options) => {
|
|
12
5
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
|
-
return patchEsm().then(() => {
|
|
14
6
|
return bootstrapLazy([["uofg-footer_3",[[1,"uofg-header",{"pageTitle":[1,"page-title"],"pageUrl":[1,"page-url"],"isFullSize":[32],"pageSpecificContent":[32]},[[9,"resize","updateFullSize"]]],[1,"uofg-footer"],[0,"uofg-menu",{"autoCollapse":[4,"auto-collapse"],"isExpanded":[32],"getExpanded":[64],"setExpanded":[64],"toggle":[64],"collapse":[64],"expand":[64]},[[0,"onChildListChange","handleChildListChange"]]]]]], options);
|
|
15
|
-
});
|
|
16
7
|
};
|
|
17
8
|
|
|
18
9
|
export { defineCustomElements };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { h, r as registerInstance, g as getElement, c as createEvent, H as Host } from './index-
|
|
1
|
+
import { h, r as registerInstance, g as getElement, c as createEvent, H as Host } from './index-24999f13.js';
|
|
2
2
|
|
|
3
|
-
const FontAwesomeIcon =
|
|
3
|
+
const FontAwesomeIcon = props => {
|
|
4
4
|
const width = props.icon.icon[0];
|
|
5
5
|
const height = props.icon.icon[1];
|
|
6
6
|
const iconPathData = props.icon.icon[4];
|
|
7
|
-
return (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: `0 0 ${width} ${height}` }, Array.isArray(iconPathData) ? (iconPathData.map(
|
|
7
|
+
return (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: `0 0 ${width} ${height}` }, Array.isArray(iconPathData) ? (iconPathData.map(path => h("path", { d: path }))) : (h("path", { d: iconPathData }))));
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
var faSquareTwitter = {
|
|
@@ -40,7 +40,7 @@ var faYoutube = {
|
|
|
40
40
|
icon: [576, 512, [61802], "f167", "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"]
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
const SocialLink =
|
|
43
|
+
const SocialLink = props => (h("li", null,
|
|
44
44
|
h("a", { href: props.url, "aria-label": props.name },
|
|
45
45
|
h(FontAwesomeIcon, { icon: props.icon }))));
|
|
46
46
|
const SocialLinks = () => (h("ul", { id: "uofg-footer-social-links" },
|
|
@@ -123,7 +123,7 @@ var faBriefcase = {
|
|
|
123
123
|
icon: [512, 512, [128188], "f0b1", "M184 48H328c4.4 0 8 3.6 8 8V96H176V56c0-4.4 3.6-8 8-8zm-56 8V96H64C28.7 96 0 124.7 0 160v96H192 320 512V160c0-35.3-28.7-64-64-64H384V56c0-30.9-25.1-56-56-56H184c-30.9 0-56 25.1-56 56zM512 288H320v32c0 17.7-14.3 32-32 32H224c-17.7 0-32-14.3-32-32V288H0V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V288z"]
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
const FooterLink =
|
|
126
|
+
const FooterLink = props => (h("li", null,
|
|
127
127
|
h("a", { href: props.url, title: props.title },
|
|
128
128
|
h(FontAwesomeIcon, { icon: props.icon }),
|
|
129
129
|
h("span", null, props.text))));
|
|
@@ -157,9 +157,9 @@ const UofgFooter = class {
|
|
|
157
157
|
};
|
|
158
158
|
UofgFooter.style = uofgFooterCss;
|
|
159
159
|
|
|
160
|
-
const PageSpecific =
|
|
160
|
+
const PageSpecific = props => {
|
|
161
161
|
var _a;
|
|
162
|
-
return (h("ul", { class: "uofg-header-page-specific" }, (_a = props.content) === null || _a === void 0 ? void 0 : _a.map(
|
|
162
|
+
return (h("ul", { class: "uofg-header-page-specific" }, (_a = props.content) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
163
163
|
if (!item) {
|
|
164
164
|
return null;
|
|
165
165
|
}
|
|
@@ -172,7 +172,7 @@ const PageSpecific = (props) => {
|
|
|
172
172
|
h("button", { slot: "button" },
|
|
173
173
|
h("span", null, item.title),
|
|
174
174
|
h(FontAwesomeIcon, { icon: faCaretDown })),
|
|
175
|
-
h("ul", { slot: "content", role: "menu" }, item.links.map(
|
|
175
|
+
h("ul", { slot: "content", role: "menu" }, item.links.map(link => (h("li", null,
|
|
176
176
|
h("a", Object.assign({ href: link.href }, link.attributes), link.text))))))));
|
|
177
177
|
}).filter(Boolean)));
|
|
178
178
|
};
|
|
@@ -195,7 +195,7 @@ const GlobalLinks = () => (h("ul", { class: "uofg-header-global-links" },
|
|
|
195
195
|
h("li", null,
|
|
196
196
|
h("a", { href: "https://uoguelph.ca/student-life" }, "Student Life"))));
|
|
197
197
|
|
|
198
|
-
const HelloYou =
|
|
198
|
+
const HelloYou = props => (h("uofg-menu", { class: "uofg-header-hello-you-menu", "auto-collapse": props.autoCollapse },
|
|
199
199
|
h("button", { slot: "button", "aria-label": "Hello, YOU! menu" },
|
|
200
200
|
h("span", null, "Hello, YOU!"),
|
|
201
201
|
h(FontAwesomeIcon, { icon: faCaretDown })),
|
|
@@ -248,24 +248,24 @@ const UofgHeader = class {
|
|
|
248
248
|
const aToPageSpecificLink = (a) => {
|
|
249
249
|
const attributes = {};
|
|
250
250
|
a.getAttributeNames()
|
|
251
|
-
.filter(
|
|
252
|
-
.forEach(
|
|
251
|
+
.filter(name => name !== 'href')
|
|
252
|
+
.forEach(name => (attributes[name] = a.getAttribute(name)));
|
|
253
253
|
return {
|
|
254
254
|
href: a.getAttribute('href'),
|
|
255
255
|
text: a.textContent,
|
|
256
|
-
attributes
|
|
256
|
+
attributes,
|
|
257
257
|
};
|
|
258
258
|
};
|
|
259
259
|
this.pageSpecificContent = Array.from((_a = this.el) === null || _a === void 0 ? void 0 : _a.children)
|
|
260
|
-
.filter(
|
|
261
|
-
.map(
|
|
260
|
+
.filter(child => child.tagName === 'A' || child.tagName === 'UL')
|
|
261
|
+
.map(child => {
|
|
262
262
|
switch (child.tagName) {
|
|
263
263
|
case 'A':
|
|
264
264
|
return aToPageSpecificLink(child);
|
|
265
265
|
case 'UL':
|
|
266
266
|
return {
|
|
267
267
|
title: child.getAttribute('data-title'),
|
|
268
|
-
links: Array.from(child.querySelectorAll('a')).map(aToPageSpecificLink)
|
|
268
|
+
links: Array.from(child.querySelectorAll('a')).map(aToPageSpecificLink),
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
});
|
|
@@ -283,13 +283,13 @@ const PREFERS_REDUCED_MOTION = window.matchMedia('(prefers-reduced-motion: reduc
|
|
|
283
283
|
|
|
284
284
|
const DURATION_REGEX = /^(\d*\.?\d+)(s|ms)$/;
|
|
285
285
|
const EASING_FUNCTION_REGEX = /^cubic-bezier\((\s*-?\d*\.?\d+\s*,){3}\s*-?\d*\.?\d+\s*\)$|^steps\(\s*\d+\s*(,\s*(start|end))?\s*\)$/;
|
|
286
|
-
const observer = new MutationObserver(
|
|
286
|
+
const observer = new MutationObserver(mutations => {
|
|
287
287
|
for (const mutation of mutations) {
|
|
288
288
|
mutation.target.dispatchEvent(new CustomEvent('childListChange', { bubbles: false }));
|
|
289
289
|
}
|
|
290
290
|
});
|
|
291
291
|
const observerConfig = {
|
|
292
|
-
childList: true
|
|
292
|
+
childList: true,
|
|
293
293
|
};
|
|
294
294
|
const UofgMenu = class {
|
|
295
295
|
constructor(hostRef) {
|
|
@@ -381,10 +381,10 @@ const UofgMenu = class {
|
|
|
381
381
|
return;
|
|
382
382
|
}
|
|
383
383
|
// Check if we are in the middle of an animation.
|
|
384
|
-
const animations = (_b = this.content) === null || _b === void 0 ? void 0 : _b.getAnimations().filter(
|
|
384
|
+
const animations = (_b = this.content) === null || _b === void 0 ? void 0 : _b.getAnimations().filter(animation => animation.id === 'uofg-menu-animation');
|
|
385
385
|
// If we are, then we want to reverse the existing one rather than starting a new animation.
|
|
386
386
|
if (animations.length > 0) {
|
|
387
|
-
animations === null || animations === void 0 ? void 0 : animations.forEach(
|
|
387
|
+
animations === null || animations === void 0 ? void 0 : animations.forEach(animation => animation.reverse());
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
let animationDef;
|
|
@@ -393,7 +393,7 @@ const UofgMenu = class {
|
|
|
393
393
|
duration: this.getAnimationDuration(),
|
|
394
394
|
fill: 'none',
|
|
395
395
|
easing: this.getAnimationEasing(),
|
|
396
|
-
direction: newValue ? 'normal' : 'reverse'
|
|
396
|
+
direction: newValue ? 'normal' : 'reverse',
|
|
397
397
|
};
|
|
398
398
|
// Need to remove display none, otherwise keyframe values won't be calculated correctly.
|
|
399
399
|
this.content.style.display = '';
|
|
@@ -468,19 +468,19 @@ const UofgMenu = class {
|
|
|
468
468
|
paddingTop: 0,
|
|
469
469
|
paddingBottom: 0,
|
|
470
470
|
marginTop: 0,
|
|
471
|
-
marginBottom: 0
|
|
471
|
+
marginBottom: 0,
|
|
472
472
|
},
|
|
473
473
|
{
|
|
474
474
|
height: ((_a = this.contentComputedStyle) === null || _a === void 0 ? void 0 : _a.height) || 0,
|
|
475
475
|
paddingTop: ((_b = this.contentComputedStyle) === null || _b === void 0 ? void 0 : _b.paddingTop) || 0,
|
|
476
476
|
paddingBottom: ((_c = this.contentComputedStyle) === null || _c === void 0 ? void 0 : _c.paddingBottom) || 0,
|
|
477
477
|
marginTop: ((_d = this.contentComputedStyle) === null || _d === void 0 ? void 0 : _d.marginTop) || 0,
|
|
478
|
-
marginBottom: ((_e = this.contentComputedStyle) === null || _e === void 0 ? void 0 : _e.marginBottom) || 0
|
|
479
|
-
}
|
|
478
|
+
marginBottom: ((_e = this.contentComputedStyle) === null || _e === void 0 ? void 0 : _e.marginBottom) || 0,
|
|
479
|
+
},
|
|
480
480
|
],
|
|
481
481
|
callback: () => {
|
|
482
482
|
this.content && (this.content.style.overflowY = '');
|
|
483
|
-
}
|
|
483
|
+
},
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
486
|
render() {
|
|
@@ -1,17 +1,14 @@
|
|
|
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-24999f13.js';
|
|
2
|
+
export { s as setNonce } from './index-24999f13.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser
|
|
5
|
+
Stencil Client Patch Browser v4.0.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
9
9
|
const opts = {};
|
|
10
|
-
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
|
11
10
|
if (importMeta !== '') {
|
|
12
11
|
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
13
|
-
// TODO(STENCIL-661): Remove code related to the dynamic import shim
|
|
14
|
-
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
|
15
12
|
}
|
|
16
13
|
return promiseResolve(opts);
|
|
17
14
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let e,t,n=!1,l=0,o=!1;const s="http://www.w3.org/1999/xlink",i={},c=e=>"object"==(e=typeof e)||"function"===e;function r(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const u=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!c(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?f(null,l):l),i=s)};if(u(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,d);const a=f(e,null);return a.l=t,r.length>0&&(a.o=r),a.i=o,a},f=(e,t)=>({u:0,h:e,t,p:null,o:null,l:null,i:null}),a={},d={forEach:(e,t)=>e.map(h).forEach(t),map:(e,t)=>e.map(h).map(t).map(y)},h=e=>({vattrs:e.l,vchildren:e.o,vkey:e.i,vname:e.m,vtag:e.h,vtext:e.t}),y=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),u(e.vtag,t,...e.vchildren||[])}const t=f(e.vtag,e.vtext);return t.l=e.vattrs,t.o=e.vchildren,t.i=e.vkey,t.m=e.vname,t},p=e=>Q(e).v,m=(e,t,n)=>{const l=p(e);return{emit:e=>v(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},v=(e,t,n)=>{const l=ie.ce(t,n);return e.dispatchEvent(l),l},$=new WeakMap,w=e=>"sc-"+e.$,b=(e,t,n,l,o,i)=>{if(n!==l){let r=Z(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,o=j(n),s=j(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const f=c(l);if((r||f&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(s,t):e.removeAttribute(t)):(!r||4&i||o)&&!f&&(l=!0===l?"":l,a?e.setAttributeNS(s,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):Z(oe,u)?u.slice(2):u[2]+t.slice(3),n&&ie.rel(e,t,n,!1),l&&ie.ael(e,t,l,!1)}},g=/\s/,j=e=>e?e.split(g):[],k=(e,t,n,l)=>{const o=11===t.p.nodeType&&t.p.host?t.p.host:t.p,s=e&&e.l||i,c=t.l||i;for(l in s)l in c||b(o,l,s[l],void 0,n,t.u);for(l in c)b(o,l,s[l],c[l],n,t.u)},S=(t,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.p=se.createTextNode(s.t);else{if(n||(n="svg"===s.h),i=s.p=se.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.h),n&&"foreignObject"===s.h&&(n=!1),k(null,s,n),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.o)for(r=0;r<s.o.length;++r)c=S(t,s,r),c&&i.appendChild(c);"svg"===s.h?n=!1:"foreignObject"===i.tagName&&(n=!0)}return i},O=(e,n,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=S(null,l,s),c&&(o[s].p=c,r.insertBefore(c,n)))},M=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.p;P(t),e&&e.remove()}}},x=(e,t)=>e.h===t.h&&e.i===t.i,C=(e,t)=>{const l=t.p=e.p,o=e.o,s=t.o,i=t.h,c=t.t;null===c?(n="svg"===i||"foreignObject"!==i&&n,k(e,t,n),null!==o&&null!==s?((e,t,n,l)=>{let o,s,i=0,c=0,r=0,u=0,f=t.length-1,a=t[0],d=t[f],h=l.length-1,y=l[0],p=l[h];for(;i<=f&&c<=h;)if(null==a)a=t[++i];else if(null==d)d=t[--f];else if(null==y)y=l[++c];else if(null==p)p=l[--h];else if(x(a,y))C(a,y),a=t[++i],y=l[++c];else if(x(d,p))C(d,p),d=t[--f],p=l[--h];else if(x(a,p))C(a,p),e.insertBefore(a.p,d.p.nextSibling),a=t[++i],p=l[--h];else if(x(d,y))C(d,y),e.insertBefore(d.p,a.p),d=t[--f],y=l[++c];else{for(r=-1,u=i;u<=f;++u)if(t[u]&&null!==t[u].i&&t[u].i===y.i){r=u;break}r>=0?(s=t[r],s.h!==y.h?o=S(t&&t[c],n,r):(C(s,y),t[r]=void 0,o=s.p),y=l[++c]):(o=S(t&&t[c],n,c),y=l[++c]),o&&a.p.parentNode.insertBefore(o,a.p)}i>f?O(e,null==l[h+1]?null:l[h+1].p,n,l,c,h):c>h&&M(t,i,f)})(l,o,t,s):null!==s?(null!==e.t&&(l.textContent=""),O(l,null,t,s,0,s.length-1)):null!==o&&M(o,0,o.length-1),n&&"svg"===i&&(n=!1)):e.t!==c&&(l.data=c)},P=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(P)},E=(e,t)=>{t&&!e.g&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.g=t)))},N=(e,t)=>{if(e.u|=16,!(4&e.u))return E(e,e.j),me((()=>T(e,t)));e.u|=512},T=(e,t)=>{const n=e.k;return t&&(e.u|=256,e.S&&(e.S.map((([e,t])=>q(n,e,t))),e.S=void 0)),A(void 0,(()=>L(e,n,t)))},A=(e,t)=>H(e)?e.then(t):t(),H=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,L=async(e,t,n)=>{var l;const o=e.v,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.v,l=t.u,o=((e,t)=>{var n;
|
|
1
|
+
let e,t,n=!1,l=0,o=!1;const s="http://www.w3.org/1999/xlink",i={},c=e=>"object"==(e=typeof e)||"function"===e;function r(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const u=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!c(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?f(null,l):l),i=s)};if(u(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,d);const a=f(e,null);return a.l=t,r.length>0&&(a.o=r),a.i=o,a},f=(e,t)=>({u:0,h:e,t,p:null,o:null,l:null,i:null}),a={},d={forEach:(e,t)=>e.map(h).forEach(t),map:(e,t)=>e.map(h).map(t).map(y)},h=e=>({vattrs:e.l,vchildren:e.o,vkey:e.i,vname:e.m,vtag:e.h,vtext:e.t}),y=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),u(e.vtag,t,...e.vchildren||[])}const t=f(e.vtag,e.vtext);return t.l=e.vattrs,t.o=e.vchildren,t.i=e.vkey,t.m=e.vname,t},p=e=>Q(e).v,m=(e,t,n)=>{const l=p(e);return{emit:e=>v(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},v=(e,t,n)=>{const l=ie.ce(t,n);return e.dispatchEvent(l),l},$=new WeakMap,w=e=>"sc-"+e.$,b=(e,t,n,l,o,i)=>{if(n!==l){let r=Z(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,o=j(n),s=j(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const f=c(l);if((r||f&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(s,t):e.removeAttribute(t)):(!r||4&i||o)&&!f&&(l=!0===l?"":l,a?e.setAttributeNS(s,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):Z(oe,u)?u.slice(2):u[2]+t.slice(3),n&&ie.rel(e,t,n,!1),l&&ie.ael(e,t,l,!1)}},g=/\s/,j=e=>e?e.split(g):[],k=(e,t,n,l)=>{const o=11===t.p.nodeType&&t.p.host?t.p.host:t.p,s=e&&e.l||i,c=t.l||i;for(l in s)l in c||b(o,l,s[l],void 0,n,t.u);for(l in c)b(o,l,s[l],c[l],n,t.u)},S=(t,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.p=se.createTextNode(s.t);else{if(n||(n="svg"===s.h),i=s.p=se.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.h),n&&"foreignObject"===s.h&&(n=!1),k(null,s,n),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.o)for(r=0;r<s.o.length;++r)c=S(t,s,r),c&&i.appendChild(c);"svg"===s.h?n=!1:"foreignObject"===i.tagName&&(n=!0)}return i},O=(e,n,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=S(null,l,s),c&&(o[s].p=c,r.insertBefore(c,n)))},M=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.p;P(t),e&&e.remove()}}},x=(e,t)=>e.h===t.h&&e.i===t.i,C=(e,t)=>{const l=t.p=e.p,o=e.o,s=t.o,i=t.h,c=t.t;null===c?(n="svg"===i||"foreignObject"!==i&&n,k(e,t,n),null!==o&&null!==s?((e,t,n,l)=>{let o,s,i=0,c=0,r=0,u=0,f=t.length-1,a=t[0],d=t[f],h=l.length-1,y=l[0],p=l[h];for(;i<=f&&c<=h;)if(null==a)a=t[++i];else if(null==d)d=t[--f];else if(null==y)y=l[++c];else if(null==p)p=l[--h];else if(x(a,y))C(a,y),a=t[++i],y=l[++c];else if(x(d,p))C(d,p),d=t[--f],p=l[--h];else if(x(a,p))C(a,p),e.insertBefore(a.p,d.p.nextSibling),a=t[++i],p=l[--h];else if(x(d,y))C(d,y),e.insertBefore(d.p,a.p),d=t[--f],y=l[++c];else{for(r=-1,u=i;u<=f;++u)if(t[u]&&null!==t[u].i&&t[u].i===y.i){r=u;break}r>=0?(s=t[r],s.h!==y.h?o=S(t&&t[c],n,r):(C(s,y),t[r]=void 0,o=s.p),y=l[++c]):(o=S(t&&t[c],n,c),y=l[++c]),o&&a.p.parentNode.insertBefore(o,a.p)}i>f?O(e,null==l[h+1]?null:l[h+1].p,n,l,c,h):c>h&&M(t,i,f)})(l,o,t,s):null!==s?(null!==e.t&&(l.textContent=""),O(l,null,t,s,0,s.length-1)):null!==o&&M(o,0,o.length-1),n&&"svg"===i&&(n=!1)):e.t!==c&&(l.data=c)},P=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(P)},E=(e,t)=>{t&&!e.g&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.g=t)))},N=(e,t)=>{if(e.u|=16,!(4&e.u))return E(e,e.j),me((()=>T(e,t)));e.u|=512},T=(e,t)=>{const n=e.k;return t&&(e.u|=256,e.S&&(e.S.map((([e,t])=>q(n,e,t))),e.S=void 0)),A(void 0,(()=>L(e,n,t)))},A=(e,t)=>H(e)?e.then(t):t(),H=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,L=async(e,t,n)=>{var l;const o=e.v,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.v,l=t.u,o=((e,t)=>{var n;const l=w(t),o=le.get(l);if(e=11===e.nodeType?e:se,o)if("string"==typeof o){let t,s=$.get(e=e.head||e);if(s||$.set(e,s=new Set),!s.has(l)){{t=se.createElement("style"),t.innerHTML=o;const l=null!==(n=ie.M)&&void 0!==n?n:r(se);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);R(e,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],n=()=>U(e);0===t.length?n():(Promise.all(t).then(n),e.u|=4,t.length=0)}},R=(n,l)=>{try{l=l.render(),n.u&=-17,n.u|=2,((n,l)=>{const o=n.v,s=n.C||f(null,null),i=(e=>e&&e.h===a)(l)?l:u(null,null,l);t=o.tagName,i.h=null,i.u|=4,n.C=i,i.p=s.p=o.shadowRoot||o,e=o["s-sc"],C(s,i)})(n,l)}catch(e){ee(e,n.v)}return null},U=e=>{const t=e.v,n=e.j;64&e.u||(e.u|=64,F(t),e.P(t),n||W()),e.N(t),e.g&&(e.g(),e.g=void 0),512&e.u&&pe((()=>N(e,!1))),e.u&=-517},W=()=>{F(se.documentElement),ie.u|=2,pe((()=>v(oe,"appload",{detail:{namespace:"uofg-web-components"}})))},q=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){ee(e)}},F=e=>e.classList.add("hydrated"),V=(e,t,n)=>{if(t.T){e.watchers&&(t.A=e.watchers);const l=Object.entries(t.T),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>Q(this).H.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=Q(e),s=o.v,i=o.H.get(t),r=o.u,u=o.k;if(n=((e,t)=>null==e||c(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.T[t][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.H.set(t,n),u)){if(l.A&&128&r){const e=l.A[t];e&&e.map((e=>{try{u[e](n,i,t)}catch(e){ee(e,s)}}))}2==(18&r)&&N(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=Q(this);return n.L.then((()=>n.k[e](...t)))}})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){ie.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},_=e=>{q(e,"connectedCallback")},z=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=oe.customElements,i=se.head,c=i.querySelector("meta[charset]"),u=se.createElement("style"),f=[];let a,d=!0;Object.assign(ie,t),ie.R=new URL(t.resourcesUrl||"./",se.baseURI).href,t.syncQueue&&(ie.u|=4),e.map((e=>{e[1].map((t=>{const n={u:t[0],$:t[1],T:t[2],U:t[3]};n.T=t[2],n.U=t[3],n.A={};const i=n.$,c=class extends HTMLElement{constructor(e){super(e),Y(e=this,n),1&n.u&&e.attachShadow({mode:"open"})}connectedCallback(){a&&(clearTimeout(a),a=null),d?f.push(this):ie.jmp((()=>(e=>{if(0==(1&ie.u)){const t=Q(e),n=t.O,l=()=>{};if(1&t.u)B(e,t,n.U),_(t.k);else{t.u|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){E(t,t.j=n);break}}n.T&&Object.entries(n.T).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.u)){t.u|=32;{if((o=ne(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.A=o.watchers,V(o,n,2),o.isProxied=!0);const e=()=>{};t.u|=8;try{new o(t)}catch(e){ee(e)}t.u&=-9,t.u|=128,e(),_(t.k)}if(o.style){let e=o.style;const t=w(n);if(!le.has(t)){const l=()=>{};((e,t,n)=>{let l=le.get(e);re&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,le.set(e,l)})(t,e,!!(1&n.u)),l()}}}const s=t.j,i=()=>N(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){ie.jmp((()=>(()=>{if(0==(1&ie.u)){const e=Q(this);e.W&&(e.W.map((e=>e())),e.W=void 0)}})()))}componentOnReady(){return Q(this).q}};n.F=e[0],o.includes(i)||s.get(i)||(l.push(i),s.define(i,V(c,n,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(n=ie.M)&&void 0!==n?n:r(se);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}d=!1,f.length?f.map((e=>e.connectedCallback())):ie.jmp((()=>a=setTimeout(W,30)))},B=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=G(e,n),i=D(t,o),c=I(n);ie.ael(s,l,i,c),(t.W=t.W||[]).push((()=>ie.rel(s,l,i,c)))}))},D=(e,t)=>n=>{try{256&e.u?e.k[t](n):(e.S=e.S||[]).push([t,n])}catch(e){ee(e)}},G=(e,t)=>8&t?oe:e,I=e=>0!=(2&e),J=e=>ie.M=e,K=new WeakMap,Q=e=>K.get(e),X=(e,t)=>K.set(t.k=e,t),Y=(e,t)=>{const n={u:0,v:e,O:t,H:new Map};return n.L=new Promise((e=>n.N=e)),n.q=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],B(e,n,t.U),K.set(e,n)},Z=(e,t)=>t in e,ee=(e,t)=>(0,console.error)(e,t),te=new Map,ne=e=>{const t=e.$.replace(/-/g,"_"),n=e.F,l=te.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(te.set(n,e),e[t])),ee)
|
|
2
2
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},le=new Map,oe="undefined"!=typeof window?window:{},se=oe.document||{head:{}},ie={u:0,R:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},ce=e=>Promise.resolve(e),re=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ue=[],fe=[],ae=[],de=(e,t)=>n=>{e.push(n),o||(o=!0,t&&4&ie.u?pe(ye):ie.raf(ye))},he=(e,t)=>{let n=0,l=0;for(;n<e.length&&(l=performance.now())<t;)try{e[n++](l)}catch(e){ee(e)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},ye=()=>{l++,(e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ee(e)}e.length=0})(ue);{const e=2==(6&ie.u)?performance.now()+14*Math.ceil(.1*l):1/0;he(fe,e),he(ae,e),fe.length>0&&(ae.push(...fe),fe.length=0),(o=ue.length+fe.length+ae.length>0)?ie.raf(ye):l=0}},pe=e=>ce().then(e),me=de(fe,!0);export{a as H,z as b,m as c,p as g,u as h,ce as p,X as r,J as s}
|