@everymatrix/general-tutorial-slider 1.56.0 → 1.56.3
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/general-tutorial-slider.cjs.entry.js +16 -50
- package/dist/cjs/general-tutorial-slider.cjs.js +2 -2
- package/dist/cjs/{index-bfd21506.js → index-7f840d12.js} +77 -214
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/general-tutorial-slider/general-tutorial-slider.js +15 -77
- package/dist/esm/general-tutorial-slider.entry.js +16 -50
- package/dist/esm/general-tutorial-slider.js +3 -3
- package/dist/esm/{index-b8731ee9.js → index-37276b41.js} +77 -214
- package/dist/esm/loader.js +2 -2
- package/dist/general-tutorial-slider/general-tutorial-slider.esm.js +1 -1
- package/dist/general-tutorial-slider/p-2ac9a6c7.entry.js +1 -0
- package/dist/general-tutorial-slider/p-df9e22a7.js +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/general-tutorial-slider/p-d3024419.entry.js +0 -1
- package/dist/general-tutorial-slider/p-e2d02089.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'general-tutorial-slider';
|
|
2
|
-
const BUILD = /* general-tutorial-slider */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false,
|
|
2
|
+
const BUILD = /* general-tutorial-slider */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
// src/utils/constants.ts
|
|
14
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
-
|
|
17
|
-
// src/client/client-host-ref.ts
|
|
18
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
19
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
20
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
21
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
23
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
24
16
|
const hostRef = {
|
|
25
17
|
$flags$: 0,
|
|
@@ -32,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
32
24
|
hostElement["s-p"] = [];
|
|
33
25
|
hostElement["s-rc"] = [];
|
|
34
26
|
}
|
|
35
|
-
|
|
36
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
37
28
|
};
|
|
38
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
39
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -70,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
70
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
71
62
|
/* webpackMode: "lazy" */
|
|
72
63
|
`./${bundleId}.entry.js${""}`
|
|
73
|
-
).then(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
cmpModules.set(bundleId, importedModule);
|
|
77
|
-
}
|
|
78
|
-
return importedModule[exportName];
|
|
79
|
-
},
|
|
80
|
-
(e) => {
|
|
81
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
82
67
|
}
|
|
83
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
84
70
|
};
|
|
85
71
|
|
|
86
72
|
// src/client/client-style.ts
|
|
87
73
|
var styles = /* @__PURE__ */ new Map();
|
|
88
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
89
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
90
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
91
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -143,6 +128,14 @@ var flush = () => {
|
|
|
143
128
|
};
|
|
144
129
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
145
130
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
+
|
|
132
|
+
// src/utils/constants.ts
|
|
133
|
+
var EMPTY_OBJ = {};
|
|
134
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
135
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
136
|
+
|
|
137
|
+
// src/utils/helpers.ts
|
|
138
|
+
var isDef = (v) => v != null;
|
|
146
139
|
var isComplexType = (o) => {
|
|
147
140
|
o = typeof o;
|
|
148
141
|
return o === "object" || o === "function";
|
|
@@ -321,40 +314,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
321
314
|
}
|
|
322
315
|
if (!appliedStyles.has(scopeId2)) {
|
|
323
316
|
{
|
|
324
|
-
styleElm =
|
|
317
|
+
styleElm = doc.createElement("style");
|
|
325
318
|
styleElm.innerHTML = style;
|
|
326
319
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
327
320
|
if (nonce != null) {
|
|
328
321
|
styleElm.setAttribute("nonce", nonce);
|
|
329
322
|
}
|
|
330
|
-
|
|
331
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
332
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
333
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
334
|
-
styleContainerNode.insertBefore(
|
|
335
|
-
styleElm,
|
|
336
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
337
|
-
);
|
|
338
|
-
} else if ("host" in styleContainerNode) {
|
|
339
|
-
if (supportsConstructableStylesheets) {
|
|
340
|
-
const stylesheet = new CSSStyleSheet();
|
|
341
|
-
stylesheet.replaceSync(style);
|
|
342
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
343
|
-
} else {
|
|
344
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
345
|
-
if (existingStyleContainer) {
|
|
346
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
347
|
-
} else {
|
|
348
|
-
styleContainerNode.prepend(styleElm);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
} else {
|
|
352
|
-
styleContainerNode.append(styleElm);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
356
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
357
|
-
}
|
|
323
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
358
324
|
}
|
|
359
325
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
360
326
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -377,25 +343,23 @@ var attachStyles = (hostRef) => {
|
|
|
377
343
|
const scopeId2 = addStyle(
|
|
378
344
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
379
345
|
cmpMeta);
|
|
380
|
-
if (
|
|
346
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
381
347
|
elm["s-sc"] = scopeId2;
|
|
382
348
|
elm.classList.add(scopeId2 + "-h");
|
|
383
349
|
}
|
|
384
350
|
endAttachStyles();
|
|
385
351
|
};
|
|
386
352
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
387
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
353
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
388
354
|
if (oldValue !== newValue) {
|
|
389
355
|
let isProp = isMemberInElement(elm, memberName);
|
|
390
356
|
let ln = memberName.toLowerCase();
|
|
391
357
|
if (memberName === "class") {
|
|
392
358
|
const classList = elm.classList;
|
|
393
359
|
const oldClasses = parseClassList(oldValue);
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
398
|
-
}
|
|
360
|
+
const newClasses = parseClassList(newValue);
|
|
361
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
362
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
399
363
|
} else if (memberName === "style") {
|
|
400
364
|
{
|
|
401
365
|
for (const prop in oldValue) {
|
|
@@ -448,13 +412,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
448
412
|
if (memberName === "list") {
|
|
449
413
|
isProp = false;
|
|
450
414
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
451
|
-
|
|
452
|
-
elm[memberName] = n;
|
|
453
|
-
} else {
|
|
454
|
-
elm.setAttribute(memberName, n);
|
|
455
|
-
}
|
|
415
|
+
elm[memberName] = n;
|
|
456
416
|
}
|
|
457
|
-
} else
|
|
417
|
+
} else {
|
|
458
418
|
elm[memberName] = newValue;
|
|
459
419
|
}
|
|
460
420
|
} catch (e) {
|
|
@@ -476,44 +436,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
476
436
|
}
|
|
477
437
|
};
|
|
478
438
|
var parseClassListRegex = /\s/;
|
|
479
|
-
var parseClassList = (value) =>
|
|
480
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
481
|
-
value = value.baseVal;
|
|
482
|
-
}
|
|
483
|
-
if (!value || typeof value !== "string") {
|
|
484
|
-
return [];
|
|
485
|
-
}
|
|
486
|
-
return value.split(parseClassListRegex);
|
|
487
|
-
};
|
|
439
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
488
440
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
489
441
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
490
442
|
|
|
491
443
|
// src/runtime/vdom/update-element.ts
|
|
492
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
444
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
493
445
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
494
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
495
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
446
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
447
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
496
448
|
{
|
|
497
449
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
498
450
|
if (!(memberName in newVnodeAttrs)) {
|
|
499
|
-
setAccessor(
|
|
500
|
-
elm,
|
|
501
|
-
memberName,
|
|
502
|
-
oldVnodeAttrs[memberName],
|
|
503
|
-
void 0,
|
|
504
|
-
isSvgMode2,
|
|
505
|
-
newVnode.$flags$);
|
|
451
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
506
452
|
}
|
|
507
453
|
}
|
|
508
454
|
}
|
|
509
455
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
510
|
-
setAccessor(
|
|
511
|
-
elm,
|
|
512
|
-
memberName,
|
|
513
|
-
oldVnodeAttrs[memberName],
|
|
514
|
-
newVnodeAttrs[memberName],
|
|
515
|
-
isSvgMode2,
|
|
516
|
-
newVnode.$flags$);
|
|
456
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
517
457
|
}
|
|
518
458
|
};
|
|
519
459
|
function sortedAttrNames(attrNames) {
|
|
@@ -525,10 +465,13 @@ function sortedAttrNames(attrNames) {
|
|
|
525
465
|
attrNames
|
|
526
466
|
);
|
|
527
467
|
}
|
|
468
|
+
|
|
469
|
+
// src/runtime/vdom/vdom-render.ts
|
|
470
|
+
var scopeId;
|
|
528
471
|
var hostTagName;
|
|
529
472
|
var useNativeShadowDom = false;
|
|
530
473
|
var isSvgMode = false;
|
|
531
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
474
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
532
475
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
533
476
|
let i2 = 0;
|
|
534
477
|
let elm;
|
|
@@ -549,6 +492,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
549
492
|
{
|
|
550
493
|
updateElement(null, newVNode2, isSvgMode);
|
|
551
494
|
}
|
|
495
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
496
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
497
|
+
}
|
|
552
498
|
if (newVNode2.$children$) {
|
|
553
499
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
554
500
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -660,9 +606,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
660
606
|
};
|
|
661
607
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
662
608
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
663
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
664
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
665
|
-
}
|
|
666
609
|
return true;
|
|
667
610
|
}
|
|
668
611
|
return false;
|
|
@@ -689,10 +632,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
689
632
|
elm.textContent = "";
|
|
690
633
|
}
|
|
691
634
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
692
|
-
} else if (
|
|
693
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
694
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
695
|
-
) {
|
|
635
|
+
} else if (oldChildren !== null) {
|
|
696
636
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
697
637
|
}
|
|
698
638
|
if (isSvgMode && tag === "svg") {
|
|
@@ -709,9 +649,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
709
649
|
}
|
|
710
650
|
};
|
|
711
651
|
var insertBefore = (parent, newNode, reference) => {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}
|
|
652
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
653
|
+
return inserted;
|
|
715
654
|
};
|
|
716
655
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
717
656
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -736,21 +675,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
736
675
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
737
676
|
hostRef.$vnode$ = rootVnode;
|
|
738
677
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
739
|
-
|
|
678
|
+
{
|
|
679
|
+
scopeId = hostElm["s-sc"];
|
|
680
|
+
}
|
|
681
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
740
682
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
741
683
|
};
|
|
742
684
|
|
|
743
685
|
// src/runtime/update-component.ts
|
|
744
686
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
745
687
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
746
|
-
|
|
747
|
-
new Promise(
|
|
748
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
749
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
750
|
-
r();
|
|
751
|
-
}
|
|
752
|
-
)
|
|
753
|
-
);
|
|
688
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
754
689
|
}
|
|
755
690
|
};
|
|
756
691
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -777,7 +712,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
777
712
|
let maybePromise;
|
|
778
713
|
if (isInitialLoad) {
|
|
779
714
|
{
|
|
780
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
715
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
781
716
|
}
|
|
782
717
|
}
|
|
783
718
|
endSchedule();
|
|
@@ -846,7 +781,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
846
781
|
const instance = hostRef.$lazyInstance$ ;
|
|
847
782
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
848
783
|
{
|
|
849
|
-
safeCall(instance, "componentDidRender"
|
|
784
|
+
safeCall(instance, "componentDidRender");
|
|
850
785
|
}
|
|
851
786
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
852
787
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -854,7 +789,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
854
789
|
addHydratedFlag(elm);
|
|
855
790
|
}
|
|
856
791
|
{
|
|
857
|
-
safeCall(instance, "componentDidLoad"
|
|
792
|
+
safeCall(instance, "componentDidLoad");
|
|
858
793
|
}
|
|
859
794
|
endPostUpdate();
|
|
860
795
|
{
|
|
@@ -865,7 +800,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
865
800
|
}
|
|
866
801
|
} else {
|
|
867
802
|
{
|
|
868
|
-
safeCall(instance, "componentDidUpdate"
|
|
803
|
+
safeCall(instance, "componentDidUpdate");
|
|
869
804
|
}
|
|
870
805
|
endPostUpdate();
|
|
871
806
|
}
|
|
@@ -881,14 +816,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
881
816
|
}
|
|
882
817
|
};
|
|
883
818
|
var appDidLoad = (who) => {
|
|
819
|
+
{
|
|
820
|
+
addHydratedFlag(doc.documentElement);
|
|
821
|
+
}
|
|
884
822
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
885
823
|
};
|
|
886
|
-
var safeCall = (instance, method, arg
|
|
824
|
+
var safeCall = (instance, method, arg) => {
|
|
887
825
|
if (instance && instance[method]) {
|
|
888
826
|
try {
|
|
889
827
|
return instance[method](arg);
|
|
890
828
|
} catch (e) {
|
|
891
|
-
consoleError(e
|
|
829
|
+
consoleError(e);
|
|
892
830
|
}
|
|
893
831
|
}
|
|
894
832
|
return void 0;
|
|
@@ -947,68 +885,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
947
885
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
948
886
|
members.map(([memberName, [memberFlags]]) => {
|
|
949
887
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
950
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
951
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
952
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
953
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
954
|
-
Object.defineProperty(prototype, memberName, {
|
|
955
|
-
get() {
|
|
956
|
-
{
|
|
957
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
958
|
-
return getValue(this, memberName);
|
|
959
|
-
}
|
|
960
|
-
const ref = getHostRef(this);
|
|
961
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
962
|
-
if (!instance) return;
|
|
963
|
-
return instance[memberName];
|
|
964
|
-
}
|
|
965
|
-
},
|
|
966
|
-
configurable: true,
|
|
967
|
-
enumerable: true
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
888
|
Object.defineProperty(prototype, memberName, {
|
|
889
|
+
get() {
|
|
890
|
+
return getValue(this, memberName);
|
|
891
|
+
},
|
|
971
892
|
set(newValue) {
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
977
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
978
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
979
|
-
}
|
|
980
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
981
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
982
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
983
|
-
return;
|
|
984
|
-
}
|
|
985
|
-
{
|
|
986
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
987
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
988
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
989
|
-
ref.$onReadyPromise$.then(() => {
|
|
990
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
991
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
992
|
-
}
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
return;
|
|
996
|
-
}
|
|
997
|
-
const setterSetVal = () => {
|
|
998
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
999
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1000
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1001
|
-
}
|
|
1002
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1003
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1004
|
-
};
|
|
1005
|
-
if (ref.$lazyInstance$) {
|
|
1006
|
-
setterSetVal();
|
|
1007
|
-
} else {
|
|
1008
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
893
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
894
|
+
},
|
|
895
|
+
configurable: true,
|
|
896
|
+
enumerable: true
|
|
1012
897
|
});
|
|
1013
898
|
}
|
|
1014
899
|
});
|
|
@@ -1018,11 +903,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1018
903
|
plt.jmp(() => {
|
|
1019
904
|
var _a2;
|
|
1020
905
|
const propName = attrNameToPropName.get(attrName);
|
|
1021
|
-
if (this.hasOwnProperty(propName)
|
|
906
|
+
if (this.hasOwnProperty(propName)) {
|
|
1022
907
|
newValue = this[propName];
|
|
1023
908
|
delete this[propName];
|
|
1024
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1025
|
-
this[propName] == newValue) {
|
|
909
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1026
910
|
return;
|
|
1027
911
|
} else if (propName == null) {
|
|
1028
912
|
const hostRef = getHostRef(this);
|
|
@@ -1038,11 +922,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1038
922
|
}
|
|
1039
923
|
return;
|
|
1040
924
|
}
|
|
1041
|
-
|
|
1042
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1043
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1044
|
-
this[propName] = newValue;
|
|
1045
|
-
}
|
|
925
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1046
926
|
});
|
|
1047
927
|
};
|
|
1048
928
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1071,7 +951,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1071
951
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1072
952
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1073
953
|
if (bundleId) {
|
|
1074
|
-
const CstrImport = loadModule(cmpMeta
|
|
954
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1075
955
|
if (CstrImport && "then" in CstrImport) {
|
|
1076
956
|
const endLoad = uniqueTime();
|
|
1077
957
|
Cstr = await CstrImport;
|
|
@@ -1096,7 +976,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1096
976
|
try {
|
|
1097
977
|
new Cstr(hostRef);
|
|
1098
978
|
} catch (e) {
|
|
1099
|
-
consoleError(e
|
|
979
|
+
consoleError(e);
|
|
1100
980
|
}
|
|
1101
981
|
{
|
|
1102
982
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1105,7 +985,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1105
985
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1106
986
|
}
|
|
1107
987
|
endNewInstance();
|
|
1108
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
988
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1109
989
|
} else {
|
|
1110
990
|
Cstr = elm.constructor;
|
|
1111
991
|
const cmpTag = elm.localName;
|
|
@@ -1132,9 +1012,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1132
1012
|
schedule();
|
|
1133
1013
|
}
|
|
1134
1014
|
};
|
|
1135
|
-
var fireConnectedCallback = (instance
|
|
1015
|
+
var fireConnectedCallback = (instance) => {
|
|
1136
1016
|
{
|
|
1137
|
-
safeCall(instance, "connectedCallback"
|
|
1017
|
+
safeCall(instance, "connectedCallback");
|
|
1138
1018
|
}
|
|
1139
1019
|
};
|
|
1140
1020
|
|
|
@@ -1169,34 +1049,28 @@ var connectedCallback = (elm) => {
|
|
|
1169
1049
|
}
|
|
1170
1050
|
} else {
|
|
1171
1051
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1172
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1052
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1173
1053
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1174
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1054
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1175
1055
|
}
|
|
1176
1056
|
}
|
|
1177
1057
|
endConnected();
|
|
1178
1058
|
}
|
|
1179
1059
|
};
|
|
1180
|
-
var disconnectInstance = (instance
|
|
1060
|
+
var disconnectInstance = (instance) => {
|
|
1181
1061
|
{
|
|
1182
|
-
safeCall(instance, "disconnectedCallback"
|
|
1062
|
+
safeCall(instance, "disconnectedCallback");
|
|
1183
1063
|
}
|
|
1184
1064
|
};
|
|
1185
1065
|
var disconnectedCallback = async (elm) => {
|
|
1186
1066
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1187
1067
|
const hostRef = getHostRef(elm);
|
|
1188
1068
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1189
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1069
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1190
1070
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1191
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1071
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1192
1072
|
}
|
|
1193
1073
|
}
|
|
1194
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1195
|
-
rootAppliedStyles.delete(elm);
|
|
1196
|
-
}
|
|
1197
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1198
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1199
|
-
}
|
|
1200
1074
|
};
|
|
1201
1075
|
|
|
1202
1076
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1277,17 +1151,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1277
1151
|
}
|
|
1278
1152
|
disconnectedCallback() {
|
|
1279
1153
|
plt.jmp(() => disconnectedCallback(this));
|
|
1280
|
-
plt.raf(() => {
|
|
1281
|
-
var _a3;
|
|
1282
|
-
const hostRef = getHostRef(this);
|
|
1283
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1284
|
-
if (i2 > -1) {
|
|
1285
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1286
|
-
}
|
|
1287
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1288
|
-
delete hostRef.$vnode$.$elm$;
|
|
1289
|
-
}
|
|
1290
|
-
});
|
|
1291
1154
|
}
|
|
1292
1155
|
componentOnReady() {
|
|
1293
1156
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-37276b41.js';
|
|
2
|
+
export { s as setNonce } from './index-37276b41.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as l}from"./p-
|
|
1
|
+
import{p as e,b as l}from"./p-df9e22a7.js";export{s as setNonce}from"./p-df9e22a7.js";import{g as t}from"./p-e1255160.js";(()=>{const l=import.meta.url,s={};return""!==l&&(s.resourcesUrl=new URL(".",l).href),e(s)})().then((async e=>(await t(),l([["p-2ac9a6c7",[[1,"general-tutorial-slider",{mbSource:[1,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],cmsEndpoint:[513,"cms-endpoint"],userRoles:[513,"user-roles"],cmsEnv:[513,"cms-env"],showSliderDots:[516,"show-slider-dots"],showSliderArrows:[516,"show-slider-arrows"],showSliderArrowsMobile:[516,"show-slider-arrows-mobile"],enableAutoScroll:[516,"enable-auto-scroll"],intervalPeriod:[514,"interval-period"],scrollItems:[520,"scroll-items"],itemsPerPage:[514,"items-per-page"],hasErrors:[32],isLoading:[32],activeIndex:[32],tutorialElementWidth:[32]},null,{cmsEndpoint:["watchEndpoint"],language:["watchEndpoint"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,g as n}from"./p-df9e22a7.js";const e={en:{error:"Error",noResults:"Loading, please wait ..."},hu:{error:"Error",noResults:"Loading, please wait ..."},ro:{error:"Eroare",noResults:"Loading, please wait ..."},fr:{error:"Error",noResults:"Loading, please wait ..."},ar:{error:"خطأ",noResults:"Loading, please wait ..."},hr:{error:"Greška",noResults:"Učitavanje, molimo pričekajte ..."},"es-mx":{error:"Error",noResults:"Cargando, espere por favor…"},"pt-br":{error:"Erro",noResults:"Carregando, espere por favor…"}};function o(t,i){if(t){const n=document.createElement("style");n.innerHTML=i,t.appendChild(n)}}function s(t,i){const n=new URL(i);fetch(n.href).then((t=>t.text())).then((i=>{const n=document.createElement("style");n.innerHTML=i,t&&t.appendChild(n)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}const r=class{constructor(i){var n;t(this,i),this.userAgent=window.navigator.userAgent,this.isMobile=!!((n=this.userAgent).toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.allElementsWidth=0,this.xDown=null,this.yDown=null,this.resizeHandler=()=>{this.recalculateItemsPerPage()},this.orientationChangeHandler=()=>{setTimeout((()=>{this.recalculateItemsPerPage()}),10)},this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.language="en",this.cmsEndpoint=void 0,this.userRoles="everyone",this.cmsEnv="stage",this.showSliderDots=!0,this.showSliderArrows=!0,this.showSliderArrowsMobile=!1,this.enableAutoScroll=!1,this.intervalPeriod=5e3,this.scrollItems=1,this.itemsPerPage=1,this.hasErrors=!1,this.isLoading=!0,this.activeIndex=0,this.tutorialElementWidth=0}watchEndpoint(t,i){t&&t!=i&&this.cmsEndpoint&&this.getGeneralTutorialSlider().then((t=>{this.tutorialData=t}))}handleClientStylingChange(t,i){t!=i&&o(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(t,i){t!=i&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){window.screen.orientation.addEventListener("change",this.orientationChangeHandler)}componentWillLoad(){if(this.cmsEndpoint&&this.language)return this.getGeneralTutorialSlider().then((t=>{this.tutorialData=t}))}componentDidLoad(){window.addEventListener("resize",this.resizeHandler),this.stylingContainer&&(null!=window.emMessageBus?function(t,i){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(i,(i=>{n.innerHTML=i,t&&t.appendChild(n)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&o(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.el.addEventListener("touchstart",this.handleTouchStart.bind(this),{passive:!0}),this.el.addEventListener("touchmove",this.handleTouchMove.bind(this),{passive:!0}),this.recalculateItemsPerPage()}componentDidUpdate(){this.recalculateItemsPerPage()}disconnectedCallback(){this.el.removeEventListener("touchstart",this.handleTouchStart),this.el.removeEventListener("touchmove",this.handleTouchMove),window.screen.orientation.removeEventListener("change",this.orientationChangeHandler),window.removeEventListener("resize",this.resizeHandler),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}getGeneralTutorialSlider(){let t=new URL(`${this.cmsEndpoint}/${this.language}/slider-onboarding`);return t.searchParams.append("env",this.cmsEnv),t.searchParams.append("userRoles",this.userRoles),t.searchParams.append("device",(()=>{const t=(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})();if(t)return"PC"===t?"dk":"iPad"===t||"iPhone"===t?"ios":"mtWeb"})()),new Promise(((i,n)=>{this.isLoading=!0,fetch(t.href).then((t=>t.json())).then((t=>{i(t)})).catch((t=>{console.error(t),this.hasErrors=!0,n(t)})).finally((()=>{this.isLoading=!1}))}))}move(t){this.setActive(this.activeIndex+t)}recalculateItemsPerPage(){this.tutorialsElement&&(this.tutorialElementWidth=this.tutorialsElement.clientWidth,this.allElementsWidth=(this.tutorialData.length-1)*this.tutorialElementWidth)}goTo(t){let i=this.activeIndex-t;if(i>0)for(let t=0;t<i;t++)this.move(-1);else for(let t=0;t>i;t--)this.move(1)}handleTouchStart(t){const i=this.getTouches(t)[0];this.xDown=i.clientX,this.yDown=i.clientY}getTouches(t){return t.touches||t.originalEvent.touches}handleTouchMove(t){if(!this.xDown||!this.yDown)return;let i=this.xDown-t.touches[0].clientX,n=this.yDown-t.touches[0].clientY;Math.abs(i)>Math.abs(n)&&this.move(i>0?1:-1),this.xDown=null,this.yDown=null}setActive(t){const i=this.tutorialData.length;this.activeIndex=t>=0?t>=i-1?i-1:t:0}renderDots(){const t=[];for(let n=0;n<this.tutorialData.length/this.itemsPerPage;n++)t.push(i("li",{class:n==this.activeIndex?"active":"default",onClick:()=>{this.goTo(n),this.setActive(n)}}));return t}render(){const t={transform:`translate(${this.allElementsWidth/(this.tutorialData.length-1)*this.activeIndex*-1}px, 0px)`},n={width:this.tutorialElementWidth/this.itemsPerPage+"px"};return this.hasErrors?i("div",{class:"GeneralTutorialSliderError"},i("div",{class:"TitleError"},e[void 0!==(o=this.language)&&o in e?o:"en"].error)):this.isLoading?void 0:i("div",{ref:t=>this.stylingContainer=t},i("div",{class:"TutorialWrapper"},i("div",{class:"TutorialContent",ref:t=>this.slider=t},(this.showSliderArrows&&!this.isMobile||this.showSliderArrowsMobile&&this.isMobile)&&i("div",{class:0===this.activeIndex?"SliderNavButton DisabledArrow":"SliderNavButton",onClick:()=>this.move(-1)},i("svg",{fill:"none",stroke:"var(--emw--color-secondary, #FD2839)",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"}))),i("main",null,i("div",{style:t,ref:t=>this.tutorialsElement=t,class:"TutorialItems"},this.tutorialData.map((t=>{var e,o,s,r,l,a,d,h,c,u,p,v,m,g,w,f,x,y;return i("div",{class:"TutorialItem",style:n},i("div",{class:"ItemTitle",innerHTML:null==t?void 0:t.title}),(null===(e=null==t?void 0:t.media)||void 0===e?void 0:e.images)?i("div",{class:"ItemImage"},i("img",this.isMobile?{src:null===(l=null===(r=null===(s=null===(o=null==t?void 0:t.media)||void 0===o?void 0:o.images[0])||void 0===s?void 0:s.sources)||void 0===r?void 0:r.find((t=>"mobile"===t.media)))||void 0===l?void 0:l.src,alt:null==t?void 0:t.slug}:{src:null===(c=null===(h=null===(d=null===(a=null==t?void 0:t.media)||void 0===a?void 0:a.images[0])||void 0===d?void 0:d.sources)||void 0===h?void 0:h.find((t=>"desktop"===t.media)))||void 0===c?void 0:c.src,alt:null==t?void 0:t.slug})):(null===(u=null==t?void 0:t.media)||void 0===u?void 0:u.video)?i("div",{class:"ItemImage"},i("video",{controls:!0,loop:!0,autoplay:!0},i("source",this.isMobile?{src:null===(g=null===(m=null===(v=null===(p=null==t?void 0:t.media)||void 0===p?void 0:p.video[0])||void 0===v?void 0:v.sources)||void 0===m?void 0:m.find((t=>"mobile"===t.media)))||void 0===g?void 0:g.src,type:"video/mp4"}:{src:null===(y=null===(x=null===(f=null===(w=null==t?void 0:t.media)||void 0===w?void 0:w.video[0])||void 0===f?void 0:f.sources)||void 0===x?void 0:x.find((t=>"desktop"===t.media)))||void 0===y?void 0:y.src,type:"video/mp4"}))):null,i("div",{class:"ItemDescription",innerHTML:null==t?void 0:t.content}))})))),(this.showSliderArrows&&!this.isMobile||this.showSliderArrowsMobile&&this.isMobile)&&i("div",{class:this.activeIndex===this.tutorialData.length-1?" SliderNavButton DisabledArrow disabled":"SliderNavButton",onClick:()=>this.move(1)},i("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"}))),i("div",null)),this.showSliderDots&&i("div",{class:"DotsWrapper"},i("ul",{class:"Dots"},this.renderDots()))));var o}get el(){return n(this)}static get watchers(){return{cmsEndpoint:["watchEndpoint"],language:["watchEndpoint"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};r.style=":host {\n display: block;\n}\n\n.GeneralTutorialSliderError {\n display: flex;\n justify-content: center;\n flex-direction: column;\n}\n.GeneralTutorialSliderError.TitleError {\n color: red;\n}\n\nmain {\n width: 100%;\n overflow: hidden;\n}\n\n.TutorialWrapper {\n width: 100%;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n flex-direction: column;\n overflow: auto;\n}\n\n.TutorialContent {\n display: flex;\n justify-content: center;\n flex-direction: row;\n}\n\n.TutorialItems {\n display: flex;\n transition: transform 0.4s ease-in-out;\n transform: translateX(0px);\n}\n\n.TutorialItem {\n flex: 0 0 auto;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n color: #000;\n background-color: #f5f5f5;\n border-radius: 5px;\n user-select: none;\n}\n.TutorialItem .ItemTitle {\n padding: 25px 15px;\n font-size: 18px;\n font-weight: 600;\n color: var(--emw--color-secondary, #FD2839);\n}\n.TutorialItem .ItemImage {\n overflow: hidden;\n}\n.TutorialItem .ItemImage img, .TutorialItem .ItemImage video {\n height: auto;\n width: 450px;\n}\n.TutorialItem .ItemDescription {\n font-size: 14px;\n padding: 25px 15px;\n font-weight: 400;\n color: #000;\n}\n\n.SliderNavButton {\n border: 0px;\n width: 25px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.SliderNavButton svg {\n width: 20px;\n stroke: var(--emw--color-secondary, #FD2839);\n}\n\n.DisabledArrow svg {\n opacity: 0.2;\n stroke: var(--emw--color-secondary, #FD2839);\n pointer-events: none;\n}\n\n.DotsWrapper {\n width: 100%;\n margin: 0 auto;\n margin-top: 20px;\n height: 30px;\n}\n.DotsWrapper ul.Dots {\n display: flex;\n justify-content: center;\n padding: 0;\n}\n.DotsWrapper ul.Dots li {\n height: 10px;\n width: 10px;\n background: #ccc;\n border-radius: 50%;\n margin-left: 3px;\n margin-right: 3px;\n list-style: none;\n cursor: pointer;\n}\n.DotsWrapper ul.Dots li:hover {\n background: #bbb;\n}\n.DotsWrapper ul.Dots li.active {\n border: solid 1px var(--emw--color-secondary, #FD2839);\n background: var(--emw--color-secondary, #FD2839);\n}\n.DotsWrapper ul.Dots li.default {\n border: solid 1px var(--emw--color-secondary, #FD2839);\n background-color: #FFF;\n}\n\n@container (max-width: 475px) {\n @media screen and (orientation: landscape) {\n .TutorialItem {\n width: 100%;\n }\n }\n main {\n height: 90cqh;\n }\n .TutorialItems {\n height: inherit;\n }\n .TutorialItem {\n min-width: 100%;\n max-height: 800px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n color: #000;\n background-color: #f5f5f5;\n border-radius: 5px;\n user-select: none;\n }\n .TutorialItem .ItemTitle {\n padding: 25px 15px;\n font-size: 18px;\n font-weight: 600;\n color: var(--emw--color-secondary, #FD2839);\n }\n .TutorialItem .ItemImage {\n min-height: 200px;\n }\n .TutorialItem .ItemImage img, .TutorialItem .ItemImage video {\n height: auto;\n width: 100%;\n }\n .TutorialItem .ItemDescription {\n font-size: 14px;\n padding: 25px 15px;\n font-weight: 400;\n color: #000;\n }\n}";export{r as general_tutorial_slider}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,r=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="undefined"!=typeof window?window:{},u=a.document||{head:{}},f={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,m=[],w=[],y=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&f.o?b($):f.raf($))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){r(t)}t.length=0},$=()=>{v(m),v(w),(d=m.length>0)&&f.raf($)},b=t=>h().then(t),g=y(w,!0),S={},j=t=>"object"==(t=typeof t)||"function"===t;function O(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>C,map:()=>E,ok:()=>k,unwrap:()=>P,unwrapErr:()=>R});var k=t=>({isOk:!0,isErr:!1,value:t}),C=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>k(t))):k(n)}if(t.isErr)return C(t.value);throw"should never get here"}var M,x,P=t=>{if(t.isOk)return t.value;throw t.value},R=t=>{if(t.isErr)return t.value;throw t.value},D=(t,e,...n)=>{let o=null,l=!1,r=!1;const s=[],i=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?i(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!j(o))&&(o+=""),l&&r?s[s.length-1].i+=o:s.push(l?L(null,o):o),r=l)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const c=L(t,null);return c.u=e,s.length>0&&(c.h=s),c},L=(t,e)=>({o:0,p:t,i:e,m:null,h:null,u:null}),T={},U=t=>n(t).$hostElement$,A=new WeakMap,F=t=>"sc-"+t.v,N=(t,e,n,o,r,s)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=H(n),r=H(o);e.remove(...l.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((i||l&&null!==o)&&!r)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||r)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(a,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(q);e=e.replace(G,""),n&&f.rel(t,e,n,l),o&&f.ael(t,e,o,l)}}},W=/\s/,H=t=>t?t.split(W):[],q="Capture",G=RegExp(q+"$"),V=(t,e,n)=>{const o=11===e.m.nodeType&&e.m.host?e.m.host:e.m,l=t&&t.u||S,r=e.u||S;for(const t of _(Object.keys(l)))t in r||N(o,t,l[t],void 0,n,e.o);for(const t of _(Object.keys(r)))N(o,t,l[t],r[t],n,e.o)};function _(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var z=!1,B=(t,e,n)=>{const o=e.h[n];let l,r,s=0;if(null!==o.i)l=o.m=u.createTextNode(o.i);else{if(z||(z="svg"===o.p),l=o.m=u.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.p),z&&"foreignObject"===o.p&&(z=!1),V(null,o,z),null!=M&&l["s-si"]!==M&&l.classList.add(l["s-si"]=M),o.h)for(s=0;s<o.h.length;++s)r=B(t,o,s),r&&l.appendChild(r);"svg"===o.p?z=!1:"foreignObject"===l.tagName&&(z=!0)}return l["s-hn"]=x,l},I=(t,e,n,o,l,r)=>{let s,i=t;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);l<=r;++l)o[l]&&(s=B(null,n,l),s&&(o[l].m=s,Y(i,s,e)))},J=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.m;X(e),t&&t.remove()}}},K=(t,e)=>t.p===e.p,Q=(t,e,n=!1)=>{const o=e.m=t.m,l=t.h,r=e.h,s=e.p,i=e.i;null===i?(V(t,e,z="svg"===s||"foreignObject"!==s&&z),null!==l&&null!==r?((t,e,n,o,l=!1)=>{let r,s=0,i=0,c=e.length-1,a=e[0],u=e[c],f=o.length-1,h=o[0],p=o[f];for(;s<=c&&i<=f;)null==a?a=e[++s]:null==u?u=e[--c]:null==h?h=o[++i]:null==p?p=o[--f]:K(a,h)?(Q(a,h,l),a=e[++s],h=o[++i]):K(u,p)?(Q(u,p,l),u=e[--c],p=o[--f]):K(a,p)?(Q(a,p,l),Y(t,a.m,u.m.nextSibling),a=e[++s],p=o[--f]):K(u,h)?(Q(u,h,l),Y(t,u.m,a.m),u=e[--c],h=o[++i]):(r=B(e&&e[i],n,i),h=o[++i],r&&Y(a.m.parentNode,r,a.m));s>c?I(t,null==o[f+1]?null:o[f+1].m,n,o,i,f):i>f&&J(e,s,c)})(o,l,e,r,n):null!==r?(null!==t.i&&(o.textContent=""),I(o,null,e,r,0,r.length-1)):null!==l&&J(l,0,l.length-1),z&&"svg"===s&&(z=!1)):t.i!==i&&(o.data=i)},X=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(X)},Y=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Z=(t,e)=>{e&&!t.$&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.$=e)))},tt=(t,e)=>{if(t.o|=16,!(4&t.o))return Z(t,t.S),g((()=>et(t,e)));t.o|=512},et=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(o=ct(n,"componentWillLoad")),nt(o,(()=>lt(t,n,e)))},nt=(t,e)=>ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var o;const l=t.$hostElement$,r=l["s-rc"];n&&(t=>{const e=t.j,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=F(e),l=i.get(o);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let r,s=A.get(t=t.head||t);if(s||A.set(t,s=new Set),!s.has(o)){{r=u.createElement("style"),r.innerHTML=l;const e=null!=(n=f.O)?n:O(u);null!=e&&r.setAttribute("nonce",e),t.insertBefore(r,t.querySelector("link"))}4&e.o&&(r.innerHTML+=c),s&&s.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);rt(t,e,l,n),r&&(r.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>st(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},rt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.j,r=t.k||L(null,null),s=(t=>t&&t.p===T)(e)?e:D(null,null,e);if(x=o.tagName,l.C&&(s.u=s.u||{},l.C.map((([t,e])=>s.u[e]=o[t]))),n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.p=null,s.o|=4,t.k=s,s.m=r.m=o.shadowRoot||o,M=o["s-sc"],Q(r,s,n)})(t,e,o)}catch(e){r(e,t.$hostElement$)}return null},st=t=>{const e=t.$hostElement$,n=t.t,o=t.S;ct(n,"componentDidRender"),64&t.o?ct(n,"componentDidUpdate"):(t.o|=64,at(e),ct(n,"componentDidLoad"),t.M(e),o||it()),t.$&&(t.$(),t.$=void 0),512&t.o&&b((()=>tt(t,!1))),t.o&=-517},it=()=>{at(u.documentElement),b((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"general-tutorial-slider"}});return t.dispatchEvent(e),e})(a)))},ct=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){r(t)}},at=t=>t.classList.add("hydrated"),ut=(t,e,o)=>{var l,s;const i=t.prototype;if(e.P||e.R||t.watchers){t.watchers&&!e.R&&(e.R=t.watchers);const c=Object.entries(null!=(l=e.P)?l:{});if(c.map((([t,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(i,t,{get(){return((t,e)=>n(this).D.get(e))(0,t)},set(o){((t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.$hostElement$,c=s.D.get(e),a=s.o,u=s.t;if(o=((t,e)=>null==t||j(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(o,l.P[e][0]),(!(8&a)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(s.D.set(e,o),u)){if(l.R&&128&a){const t=l.R[e];t&&t.map((t=>{try{u[t](o,c,e)}catch(t){r(t,i)}}))}2==(18&a)&&tt(s,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,r){f.jmp((()=>{var s;const c=o.get(t);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&r!==l){const n=o.t,i=null==(s=e.R)?void 0:s[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,r,l,t)}))}return}}this[c]=(null!==r||"boolean"!=typeof this[c])&&r}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.R)?s:{}),...c.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const r=n[1]||t;return o.set(r,t),512&n[0]&&(null==(l=e.C)||l.push([t,r])),r}))]))}}return t},ft=t=>{ct(t,"connectedCallback")},ht=t=>{ct(t,"disconnectedCallback")},pt=(t,o={})=>{var l;const h=[],d=o.exclude||[],m=a.customElements,w=u.head,y=w.querySelector("meta[charset]"),v=u.createElement("style"),$=[];let b,g=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],v:o[1],P:o[2],L:o[3]};4&c.o&&(S=!0),c.P=o[2],c.C=[],c.R=null!=(l=o[4])?l:{};const a=c.v,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,j:n,D:new Map};o.T=new Promise((t=>o.M=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.j,l=()=>{};if(1&e.o)(null==e?void 0:e.t)?ft(e.t):(null==e?void 0:e.T)&&e.T.then((()=>ft(e.t)));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(e,e.S=n);break}}o.P&&Object.entries(o.P).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.U){const t=(t=>{const e=t.v.replace(/-/g,"_"),n=t.U;if(!n)return;const o=s.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(s.set(n,t),t[e])),r)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.v}#${e.A}" was not found`);o.isProxied||(n.R=o.watchers,ut(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){r(t)}e.o&=-9,e.o|=128,l(),ft(e.t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=F(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.S,c=()=>tt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.o)){const t=n(this);(null==t?void 0:t.t)?ht(t.t):(null==t?void 0:t.T)&&t.T.then((()=>ht(t.t)))}})()))}componentOnReady(){return n(this).T}};c.U=t[0],d.includes(a)||m.get(a)||(h.push(a),m.define(a,ut(u,c,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(l=f.O)?l:O(u);null!=t&&v.setAttribute("nonce",t),w.insertBefore(v,y?y.nextSibling:w.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):f.jmp((()=>b=setTimeout(it,30)))},dt=t=>f.O=t;export{pt as b,U as g,D as h,h as p,o as r,dt as s}
|