@everymatrix/helper-tabs 1.54.11 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/helper-tab_2.cjs.entry.js +29 -52
- package/dist/cjs/helper-tabs.cjs.js +2 -2
- package/dist/cjs/{index-11d06848.js → index-d8f4ee8c.js} +70 -171
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/helper-tab/helper-tab.js +12 -38
- package/dist/collection/components/helper-tabs/helper-tabs.js +16 -63
- package/dist/esm/helper-tab_2.entry.js +29 -52
- package/dist/esm/helper-tabs.js +3 -3
- package/dist/esm/{index-a23eff9f.js → index-55376e55.js} +70 -171
- package/dist/esm/loader.js +2 -2
- package/dist/helper-tabs/helper-tabs.esm.js +1 -1
- package/dist/helper-tabs/p-47fcd693.js +2 -0
- package/dist/helper-tabs/p-7f43459b.entry.js +1 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/helper-tabs/p-c9bad8e6.js +0 -2
- package/dist/helper-tabs/p-e7d78538.entry.js +0 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'helper-tabs';
|
|
2
|
-
const BUILD = /* helper-tabs */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, 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 = /* helper-tabs */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, 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: true, 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: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.22.3 | 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/client/client-host-ref.ts
|
|
14
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
15
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
16
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
17
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
19
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
16
|
const hostRef = {
|
|
21
17
|
$flags$: 0,
|
|
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
24
|
hostElement["s-p"] = [];
|
|
29
25
|
hostElement["s-rc"] = [];
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
33
28
|
};
|
|
34
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
35
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
66
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
67
62
|
/* webpackMode: "lazy" */
|
|
68
63
|
`./${bundleId}.entry.js${""}`
|
|
69
|
-
).then(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
cmpModules.set(bundleId, importedModule);
|
|
73
|
-
}
|
|
74
|
-
return importedModule[exportName];
|
|
75
|
-
},
|
|
76
|
-
(e) => {
|
|
77
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
78
67
|
}
|
|
79
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
80
70
|
};
|
|
81
71
|
|
|
82
72
|
// src/client/client-style.ts
|
|
83
73
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -139,6 +128,12 @@ var flush = () => {
|
|
|
139
128
|
};
|
|
140
129
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
141
130
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
+
|
|
132
|
+
// src/utils/constants.ts
|
|
133
|
+
var EMPTY_OBJ = {};
|
|
134
|
+
|
|
135
|
+
// src/utils/helpers.ts
|
|
136
|
+
var isDef = (v) => v != null;
|
|
142
137
|
var isComplexType = (o) => {
|
|
143
138
|
o = typeof o;
|
|
144
139
|
return o === "object" || o === "function";
|
|
@@ -327,7 +322,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
327
322
|
}
|
|
328
323
|
if (!appliedStyles.has(scopeId2)) {
|
|
329
324
|
{
|
|
330
|
-
styleElm =
|
|
325
|
+
styleElm = doc.createElement("style");
|
|
331
326
|
styleElm.innerHTML = style;
|
|
332
327
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
333
328
|
if (nonce != null) {
|
|
@@ -337,10 +332,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
337
332
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
338
333
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
339
334
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
340
|
-
styleContainerNode.insertBefore(
|
|
341
|
-
styleElm,
|
|
342
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
343
|
-
);
|
|
335
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
344
336
|
} else if ("host" in styleContainerNode) {
|
|
345
337
|
if (supportsConstructableStylesheets) {
|
|
346
338
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -358,7 +350,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
358
350
|
styleContainerNode.append(styleElm);
|
|
359
351
|
}
|
|
360
352
|
}
|
|
361
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
353
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
362
354
|
styleContainerNode.insertBefore(styleElm, null);
|
|
363
355
|
}
|
|
364
356
|
}
|
|
@@ -383,25 +375,23 @@ var attachStyles = (hostRef) => {
|
|
|
383
375
|
const scopeId2 = addStyle(
|
|
384
376
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
385
377
|
cmpMeta);
|
|
386
|
-
if (
|
|
378
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
387
379
|
elm["s-sc"] = scopeId2;
|
|
388
380
|
elm.classList.add(scopeId2 + "-h");
|
|
389
381
|
}
|
|
390
382
|
endAttachStyles();
|
|
391
383
|
};
|
|
392
384
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
393
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
385
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
394
386
|
if (oldValue !== newValue) {
|
|
395
387
|
let isProp = isMemberInElement(elm, memberName);
|
|
396
388
|
let ln = memberName.toLowerCase();
|
|
397
389
|
if (memberName === "class") {
|
|
398
390
|
const classList = elm.classList;
|
|
399
391
|
const oldClasses = parseClassList(oldValue);
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
404
|
-
}
|
|
392
|
+
const newClasses = parseClassList(newValue);
|
|
393
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
394
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
405
395
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
406
396
|
if (newValue) {
|
|
407
397
|
newValue(elm);
|
|
@@ -439,7 +429,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
439
429
|
elm.setAttribute(memberName, n);
|
|
440
430
|
}
|
|
441
431
|
}
|
|
442
|
-
} else
|
|
432
|
+
} else {
|
|
443
433
|
elm[memberName] = newValue;
|
|
444
434
|
}
|
|
445
435
|
} catch (e) {
|
|
@@ -461,44 +451,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
461
451
|
}
|
|
462
452
|
};
|
|
463
453
|
var parseClassListRegex = /\s/;
|
|
464
|
-
var parseClassList = (value) =>
|
|
465
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
466
|
-
value = value.baseVal;
|
|
467
|
-
}
|
|
468
|
-
if (!value || typeof value !== "string") {
|
|
469
|
-
return [];
|
|
470
|
-
}
|
|
471
|
-
return value.split(parseClassListRegex);
|
|
472
|
-
};
|
|
454
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
473
455
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
474
456
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
475
457
|
|
|
476
458
|
// src/runtime/vdom/update-element.ts
|
|
477
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
459
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
478
460
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
479
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
480
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
461
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
462
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
481
463
|
{
|
|
482
464
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
483
465
|
if (!(memberName in newVnodeAttrs)) {
|
|
484
|
-
setAccessor(
|
|
485
|
-
elm,
|
|
486
|
-
memberName,
|
|
487
|
-
oldVnodeAttrs[memberName],
|
|
488
|
-
void 0,
|
|
489
|
-
isSvgMode2,
|
|
490
|
-
newVnode.$flags$);
|
|
466
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
491
467
|
}
|
|
492
468
|
}
|
|
493
469
|
}
|
|
494
470
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
495
|
-
setAccessor(
|
|
496
|
-
elm,
|
|
497
|
-
memberName,
|
|
498
|
-
oldVnodeAttrs[memberName],
|
|
499
|
-
newVnodeAttrs[memberName],
|
|
500
|
-
isSvgMode2,
|
|
501
|
-
newVnode.$flags$);
|
|
471
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
502
472
|
}
|
|
503
473
|
};
|
|
504
474
|
function sortedAttrNames(attrNames) {
|
|
@@ -510,10 +480,13 @@ function sortedAttrNames(attrNames) {
|
|
|
510
480
|
attrNames
|
|
511
481
|
);
|
|
512
482
|
}
|
|
483
|
+
|
|
484
|
+
// src/runtime/vdom/vdom-render.ts
|
|
485
|
+
var scopeId;
|
|
513
486
|
var hostTagName;
|
|
514
487
|
var useNativeShadowDom = false;
|
|
515
488
|
var isSvgMode = false;
|
|
516
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
489
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
517
490
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
518
491
|
let i2 = 0;
|
|
519
492
|
let elm;
|
|
@@ -527,6 +500,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
527
500
|
{
|
|
528
501
|
updateElement(null, newVNode2, isSvgMode);
|
|
529
502
|
}
|
|
503
|
+
const rootNode = elm.getRootNode();
|
|
504
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
505
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
506
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
507
|
+
}
|
|
530
508
|
if (newVNode2.$children$) {
|
|
531
509
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
532
510
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -656,9 +634,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
656
634
|
if (!isInitialRender) {
|
|
657
635
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
658
636
|
}
|
|
659
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
660
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
661
|
-
}
|
|
662
637
|
return true;
|
|
663
638
|
}
|
|
664
639
|
return false;
|
|
@@ -698,9 +673,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
698
673
|
}
|
|
699
674
|
};
|
|
700
675
|
var insertBefore = (parent, newNode, reference) => {
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}
|
|
676
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
677
|
+
return inserted;
|
|
704
678
|
};
|
|
705
679
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
706
680
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -725,21 +699,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
725
699
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
726
700
|
hostRef.$vnode$ = rootVnode;
|
|
727
701
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
728
|
-
|
|
702
|
+
{
|
|
703
|
+
scopeId = hostElm["s-sc"];
|
|
704
|
+
}
|
|
705
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
729
706
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
730
707
|
};
|
|
731
708
|
|
|
732
709
|
// src/runtime/update-component.ts
|
|
733
710
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
734
711
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
735
|
-
|
|
736
|
-
new Promise(
|
|
737
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
738
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
739
|
-
r();
|
|
740
|
-
}
|
|
741
|
-
)
|
|
742
|
-
);
|
|
712
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
743
713
|
}
|
|
744
714
|
};
|
|
745
715
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -766,7 +736,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
766
736
|
let maybePromise;
|
|
767
737
|
if (isInitialLoad) {
|
|
768
738
|
{
|
|
769
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
739
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
770
740
|
}
|
|
771
741
|
}
|
|
772
742
|
endSchedule();
|
|
@@ -835,7 +805,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
835
805
|
const instance = hostRef.$lazyInstance$ ;
|
|
836
806
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
837
807
|
{
|
|
838
|
-
safeCall(instance, "componentDidRender"
|
|
808
|
+
safeCall(instance, "componentDidRender");
|
|
839
809
|
}
|
|
840
810
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
841
811
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -864,14 +834,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
864
834
|
}
|
|
865
835
|
};
|
|
866
836
|
var appDidLoad = (who) => {
|
|
837
|
+
{
|
|
838
|
+
addHydratedFlag(doc.documentElement);
|
|
839
|
+
}
|
|
867
840
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
868
841
|
};
|
|
869
|
-
var safeCall = (instance, method, arg
|
|
842
|
+
var safeCall = (instance, method, arg) => {
|
|
870
843
|
if (instance && instance[method]) {
|
|
871
844
|
try {
|
|
872
845
|
return instance[method](arg);
|
|
873
846
|
} catch (e) {
|
|
874
|
-
consoleError(e
|
|
847
|
+
consoleError(e);
|
|
875
848
|
}
|
|
876
849
|
}
|
|
877
850
|
return void 0;
|
|
@@ -914,68 +887,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
914
887
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
915
888
|
members.map(([memberName, [memberFlags]]) => {
|
|
916
889
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
917
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
918
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
919
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
920
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
921
|
-
Object.defineProperty(prototype, memberName, {
|
|
922
|
-
get() {
|
|
923
|
-
{
|
|
924
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
925
|
-
return getValue(this, memberName);
|
|
926
|
-
}
|
|
927
|
-
const ref = getHostRef(this);
|
|
928
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
929
|
-
if (!instance) return;
|
|
930
|
-
return instance[memberName];
|
|
931
|
-
}
|
|
932
|
-
},
|
|
933
|
-
configurable: true,
|
|
934
|
-
enumerable: true
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
890
|
Object.defineProperty(prototype, memberName, {
|
|
891
|
+
get() {
|
|
892
|
+
return getValue(this, memberName);
|
|
893
|
+
},
|
|
938
894
|
set(newValue) {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
944
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
945
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
946
|
-
}
|
|
947
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
948
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
949
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
950
|
-
return;
|
|
951
|
-
}
|
|
952
|
-
{
|
|
953
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
954
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
955
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
956
|
-
ref.$onReadyPromise$.then(() => {
|
|
957
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
958
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
959
|
-
}
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
return;
|
|
963
|
-
}
|
|
964
|
-
const setterSetVal = () => {
|
|
965
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
966
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
967
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
968
|
-
}
|
|
969
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
970
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
971
|
-
};
|
|
972
|
-
if (ref.$lazyInstance$) {
|
|
973
|
-
setterSetVal();
|
|
974
|
-
} else {
|
|
975
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
}
|
|
895
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
896
|
+
},
|
|
897
|
+
configurable: true,
|
|
898
|
+
enumerable: true
|
|
979
899
|
});
|
|
980
900
|
}
|
|
981
901
|
});
|
|
@@ -985,7 +905,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
985
905
|
plt.jmp(() => {
|
|
986
906
|
var _a2;
|
|
987
907
|
const propName = attrNameToPropName.get(attrName);
|
|
988
|
-
if (this.hasOwnProperty(propName)
|
|
908
|
+
if (this.hasOwnProperty(propName)) {
|
|
989
909
|
newValue = this[propName];
|
|
990
910
|
delete this[propName];
|
|
991
911
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1005,11 +925,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1005
925
|
}
|
|
1006
926
|
return;
|
|
1007
927
|
}
|
|
1008
|
-
|
|
1009
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1010
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1011
|
-
this[propName] = newValue;
|
|
1012
|
-
}
|
|
928
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1013
929
|
});
|
|
1014
930
|
};
|
|
1015
931
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1038,7 +954,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1038
954
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1039
955
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1040
956
|
if (bundleId) {
|
|
1041
|
-
const CstrImport = loadModule(cmpMeta
|
|
957
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1042
958
|
if (CstrImport && "then" in CstrImport) {
|
|
1043
959
|
const endLoad = uniqueTime();
|
|
1044
960
|
Cstr = await CstrImport;
|
|
@@ -1060,13 +976,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1060
976
|
try {
|
|
1061
977
|
new Cstr(hostRef);
|
|
1062
978
|
} catch (e) {
|
|
1063
|
-
consoleError(e
|
|
979
|
+
consoleError(e);
|
|
1064
980
|
}
|
|
1065
981
|
{
|
|
1066
982
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1067
983
|
}
|
|
1068
984
|
endNewInstance();
|
|
1069
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
985
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1070
986
|
} else {
|
|
1071
987
|
Cstr = elm.constructor;
|
|
1072
988
|
const cmpTag = elm.localName;
|
|
@@ -1093,9 +1009,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1093
1009
|
schedule();
|
|
1094
1010
|
}
|
|
1095
1011
|
};
|
|
1096
|
-
var fireConnectedCallback = (instance
|
|
1012
|
+
var fireConnectedCallback = (instance) => {
|
|
1097
1013
|
{
|
|
1098
|
-
safeCall(instance, "connectedCallback"
|
|
1014
|
+
safeCall(instance, "connectedCallback");
|
|
1099
1015
|
}
|
|
1100
1016
|
};
|
|
1101
1017
|
|
|
@@ -1130,15 +1046,15 @@ var connectedCallback = (elm) => {
|
|
|
1130
1046
|
}
|
|
1131
1047
|
} else {
|
|
1132
1048
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1133
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1049
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1134
1050
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1135
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1051
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1136
1052
|
}
|
|
1137
1053
|
}
|
|
1138
1054
|
endConnected();
|
|
1139
1055
|
}
|
|
1140
1056
|
};
|
|
1141
|
-
var disconnectInstance = (instance
|
|
1057
|
+
var disconnectInstance = (instance) => {
|
|
1142
1058
|
};
|
|
1143
1059
|
var disconnectedCallback = async (elm) => {
|
|
1144
1060
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1147,12 +1063,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1147
1063
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1148
1064
|
}
|
|
1149
1065
|
}
|
|
1150
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1151
|
-
rootAppliedStyles.delete(elm);
|
|
1152
|
-
}
|
|
1153
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1154
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1155
|
-
}
|
|
1156
1066
|
};
|
|
1157
1067
|
|
|
1158
1068
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1229,17 +1139,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1229
1139
|
}
|
|
1230
1140
|
disconnectedCallback() {
|
|
1231
1141
|
plt.jmp(() => disconnectedCallback(this));
|
|
1232
|
-
plt.raf(() => {
|
|
1233
|
-
var _a3;
|
|
1234
|
-
const hostRef = getHostRef(this);
|
|
1235
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1236
|
-
if (i2 > -1) {
|
|
1237
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1238
|
-
}
|
|
1239
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1240
|
-
delete hostRef.$vnode$.$elm$;
|
|
1241
|
-
}
|
|
1242
|
-
});
|
|
1243
1142
|
}
|
|
1244
1143
|
componentOnReady() {
|
|
1245
1144
|
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-55376e55.js';
|
|
2
|
+
export { s as setNonce } from './index-55376e55.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 n,b as
|
|
1
|
+
import{p as n,b as l}from"./p-47fcd693.js";export{s as setNonce}from"./p-47fcd693.js";import{g as e}from"./p-e1255160.js";(()=>{const l=import.meta.url,e={};return""!==l&&(e.resourcesUrl=new URL(".",l).href),n(e)})().then((async n=>(await e(),l([["p-7f43459b",[[1,"helper-tabs",{disabled:[516],label:[513],selected:[516],cmsEndpoint:[513,"cms-endpoint"],selectedIndex:[1538,"selected-index"],tabs:[16],clientStyling:[513,"client-styling"],clientStylingurl:[513,"client-stylingurl"],clientStylingUrlContent:[513,"client-styling-url-content"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"],limitStylingAppends:[32]}],[1,"helper-tab",{selectedIndex:[514,"selected-index"],cmsEndpoint:[513,"cms-endpoint"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"],tabContent:[32],limitStylingAppends:[32]}]]]],n))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",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)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?v(b):f.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{w(m),w(y),(d=m.length>0)&&f.raf(b)},v=e=>h().then(e),S=$(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>C,ok:()=>E,unwrap:()=>x,unwrapErr:()=>P});var E=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?R(null,l):l),r=s)};if(c(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(" "))}}const u=R(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},R=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),D={},H=e=>n(e).$hostElement$,T=new WeakMap,F=e=>"sc-"+e.v,L=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=U(n),s=U(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(W);t=t.replace(q,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},N=/\s/,U=e=>e?e.split(N):[],W="Capture",q=RegExp(W+"$"),G=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of V(Object.keys(o)))e in s||L(l,e,o[e],void 0,n,t.l);for(const e of V(Object.keys(s)))L(l,e,o[e],s[e],n,t.l)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),G(null,l,_),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=z(e,l,r),s&&o.appendChild(s);return o["s-hn"]=M,o},B=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=z(null,n,o),r&&(l[o].$=r,X(i,r,t)))},I=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),K=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(G(e,t,_),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(J(h,m,o))K(h,m,o),h=t[++i],m=l[++c];else if(J(p,y,o))K(p,y,o),p=t[--f],y=l[--d];else if(J(h,y,o))K(h,y,o),X(e,h.$,p.$.nextSibling),h=t[++i],y=l[--d];else if(J(p,m,o))K(p,m,o),X(e,p.$,h.$),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=z(t&&t[c],n,u):(K(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=z(t&&t[c],n,c),m=l[++c]),s&&X(h.$.parentNode,s,h.$)}i>f?B(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&I(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),B(l,null,t,s,0,s.length-1)):!n&&null!==o&&I(o,0,o.length-1)):e.i!==r&&(l.data=r)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Z=(e,t)=>{if(e.l|=16,!(4&e.l))return Y(e,e.j),S((()=>ee(e,t)));e.l|=512},ee=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$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 l;return t&&(l=ie(n,"componentWillLoad")),te(l,(()=>le(e,n,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=F(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=T.get(e=e.head||e);if(r||T.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.O)?n:k(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);oe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},oe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||R(null,null),r=(e=>e&&e.m===D)(t)?t:A(null,null,t);if(M=l.tagName,o.M&&(r.u=r.u||{},o.M.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,K(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.j;ie(e.t,"componentDidRender"),64&e.l||(e.l|=64,ce(t),e.P(t),n||re()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>Z(e,!1))),e.l&=-517},re=()=>{ce(a.documentElement),v((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"helper-tabs"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,l)=>{var o,s;const r=e.prototype;if(t.A){const i=Object.entries(null!=(o=t.A)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).R.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.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 r=s.R.get(t),i=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.A[t][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.R.set(t,l),c&&2==(18&i)&&Z(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.D)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.D)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.M)||o.push([e,s])),s}))]))}}return e},ae=e=>{ie(e,"connectedCallback")},fe=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let v,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],v:l[1],A:l[2],H:l[3]};4&o.l&&(g=!0),o.A=l[2],o.M=[];const c=o.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,R:new Map};l.T=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)?ae(t.t):(null==t?void 0:t.T)&&t.T.then((()=>ae(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}l.A&&Object.entries(l.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.F){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.F;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.L}" was not found`);l.isProxied||(ue(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o(),ae(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=F(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>Z(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return n(this).T}};o.F=e[0],d.includes(c)||m.get(c)||(h.push(c),m.define(c,ue(u,o,1)))}))})),h.length>0&&(g&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(re,30)))},he=e=>f.O=e;export{fe as b,H as g,A as h,h as p,l as r,he as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,g as o}from"./p-47fcd693.js";const i="en",a=["en"],s={en:{howToPlay:"Each play includes one set of numbers from ${lowNumber} to ${highNumber} with a selectable number of ${maxinumAllowed} and a minimum selection of ${minimumAllowed}. The winnings are automatically credited to your account.",register:"Register or Login",butTickets:'Buy tickets. Select "Buy Tickets" to pick your numbers. Want us to automatically generate random numbers for you? Choose “quick pick”.',reviewPurchase:"Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!",odds:"What are my odds of winning?",winGame:"How can I find out if I’ve won a draw game?",claimPrize:"How do I claim my prize?"},ro:{howToPlay:"Each play includes one set of numbers from ${lowNumber} to ${highNumber} with a selectable number of ${maxinumAllowed} and a minimum selection of ${minimumAllowed}. The winnings are automatically credited to your account.",register:"Register or Login",butTickets:'Buy tickets. Select "Buy Tickets" to pick your numbers. Want us to automatically generate random numbers for you? Choose “quick pick”.',reviewPurchase:"Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!",odds:"What are my odds of winning?",winGame:"How can I find out if I’ve won a draw game?",claimPrize:"How do I claim my prize?"},fr:{howToPlay:"Each play includes one set of numbers from ${lowNumber} to ${highNumber} with a selectable number of ${maxinumAllowed} and a minimum selection of ${minimumAllowed}. The winnings are automatically credited to your account.",register:"Register or Login",butTickets:'Buy tickets. Select "Buy Tickets" to pick your numbers. Want us to automatically generate random numbers for you? Choose “quick pick”.',reviewPurchase:"Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!",odds:"What are my odds of winning?",winGame:"How can I find out if I’ve won a draw game?",claimPrize:"How do I claim my prize?"},ar:{howToPlay:"Each play includes one set of numbers from ${lowNumber} to ${highNumber} with a selectable number of ${maxinumAllowed} and a minimum selection of ${minimumAllowed}. The winnings are automatically credited to your account.",register:"Register or Login",butTickets:'Buy tickets. Select "Buy Tickets" to pick your numbers. Want us to automatically generate random numbers for you? Choose “quick pick”.',reviewPurchase:"Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!",odds:"What are my odds of winning?",winGame:"How can I find out if I’ve won a draw game?",claimPrize:"How do I claim my prize?"},hr:{howToPlay:"Each play includes one set of numbers from ${lowNumber} to ${highNumber} with a selectable number of ${maxinumAllowed} and a minimum selection of ${minimumAllowed}. The winnings are automatically credited to your account.",register:"Register or Login",butTickets:'Buy tickets. Select "Buy Tickets" to pick your numbers. Want us to automatically generate random numbers for you? Choose “quick pick”.',reviewPurchase:"Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!",odds:"What are my odds of winning?",winGame:"How can I find out if I’ve won a draw game?",claimPrize:"How do I claim my prize?"}},r=(e,t)=>{const o=t;return s[void 0!==o&&a.includes(o)?o:i][e]},n=class{constructor(t){e(this,t),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=document.createElement("style");setTimeout((()=>{e.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(e)}),1)},this.selectedIndex=0,this.cmsEndpoint=void 0,this.clientStyling="",this.clientStylingUrlContent="",this.lowNumber=void 0,this.highNumber=void 0,this.minimumAllowed=void 0,this.maxinumAllowed=void 0,this.language="en",this.translationUrl=void 0,this.tabContent="",this.limitStylingAppends=!1}componentWillLoad(){var e;this.translationUrl&&(e=JSON.parse(this.translationUrl),Object.keys(e).forEach((t=>{for(let o in e[t])s[t][o]=e[t][o]})))}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}getHowToPlay(){return this.lowNumber&&this.highNumber&&this.maxinumAllowed&&this.minimumAllowed?((e,t)=>{const o=t.lang;let r=s[void 0!==o&&a.includes(o)?o:i][e];return t?(Object.keys(t).forEach((e=>{r=r.replace(new RegExp("\\${"+e+"}","gm"),t[e])})),r):s[void 0!==o&&a.includes(o)?o:i][e]})("howToPlay",{lowNumber:this.lowNumber,highNumber:this.highNumber,maxinumAllowed:this.maxinumAllowed,minimumAllowed:this.minimumAllowed,lang:this.language}):""}render(){return this.tabContent=t("div",{key:"fc177f5bed7e46d51e953094b8cce0afa5f46a45",class:"TabContent",ref:e=>this.stylingContainer=e},this.getHowToPlay()),this.selectedIndex+1==2?this.tabContent=t("div",{key:"8de7f218079aedb48d3172a84139feaefbfd8a3e",class:"TabContent",ref:e=>this.stylingContainer=e},t("ol",{key:"dc8131b1dae16dfd9ac39919ce1f53664a7438df"},t("li",{key:"5c5e4a9213b5c645d5969b4ea7502b5ddfbcfd7e"},r("register",this.language)),t("li",{key:"c72cd7fe80fd665a4567808e90352e2c82622a0e"},r("butTickets",this.language)),t("li",{key:"b5340c61022856214cd6ff0a56013f2e3851ac10"},r("reviewPurchase",this.language)))):this.selectedIndex+1==3&&(this.tabContent=t("div",{key:"f7e86830283d2dea60cdc96ca1ee7f0589658a3c",class:"TabContent",ref:e=>this.stylingContainer=e},t("ul",{key:"c8d950bfd1cfc933260cbbf0f3d9ab7de7a564e1"},t("li",{key:"754ddb1278ab4004a6f0fc68dc8bda0750c04a19"},r("odds",this.language)),t("li",{key:"78e60f1e02bfd2e04b6f9535b74f3a16892a9c49"},r("winGame",this.language)),t("li",{key:"04a097cf10b0b9b6c16feafd46107e8a3874aa07"},r("claimPrize",this.language))))),this.tabContent}};n.style=":host{display:block}.TabContent{font-size:14px;color:var(--emw--button-text-color, #000);font-weight:normal}";const c=class{constructor(t){e(this,t),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=document.createElement("style");setTimeout((()=>{e.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(e)}),1)},this.disabled=!1,this.label=void 0,this.selected=!1,this.cmsEndpoint=void 0,this.selectedIndex=0,this.tabs=[{label:"How to Play"},{label:"About"},{label:"FAQs"}],this.clientStyling="",this.clientStylingurl="",this.clientStylingUrlContent="",this.lowNumber=void 0,this.highNumber=void 0,this.minimumAllowed=void 0,this.maxinumAllowed=void 0,this.language="en",this.translationUrl=void 0,this.limitStylingAppends=!1}connectedCallback(){}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return t("div",{key:"4c75878234d57bf5e9a82ee926252bce3ba90b0f",ref:e=>this.stylingContainer=e},t("div",{key:"95faa7cc214b9dd96a1daacf36f1d637a8624e90",class:"Tabs"},this.tabs.map(((e,o)=>t("button",{class:"TabButton"+(this.selectedIndex==o?" Active":""),onClick:()=>this.selectedIndex=o},e.label)))),t("div",{key:"787ecacb0c26b0712b9ebef99ff7be68d1eb4231"},t("helper-tab",{key:"df43a2347875f49446d2b85e63c257e527a6b3ab","low-number":this.lowNumber,"high-number":this.highNumber,"minimum-allowed":this.minimumAllowed,"maxinum-allowed":this.maxinumAllowed,selectedIndex:this.selectedIndex,"client-styling":this.clientStyling,language:this.language,"translation-url":this.translationUrl,"client-stylingurl":this.clientStylingurl,"client-styling-url-content":this.clientStylingUrlContent})))}get host(){return o(this)}};c.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.Tabs{display:flex;gap:10px;overflow-x:auto}.TabButton{cursor:pointer;width:auto;border-radius:var(--emw--button-border-radius, 4px);padding:8px 15px;margin:5px 0 10px;border:1px solid var(--emw--color-typography, #009993);background:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));color:var(--emw--button-text-color, #000);font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:var(--emw--color-gray-50, #F1F1F1)}.TabButton.Active{background:var(--emw--color-background, #009993);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}';export{n as helper_tab,c as helper_tabs}
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>{t.set(n.t=e,n)},o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",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)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],v=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?w(b):f.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(m),$(y),(p=m.length>0)&&f.raf(b)},w=e=>h().then(e),S=v(y,!0),g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>M,unwrapErr:()=>x});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!g(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?R(null,l):l),i=s)};if(c(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(" "))}}const u=R(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},R=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},N=(e,t)=>null==e||g(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e,T=e=>n(e).$hostElement$,D=new WeakMap,F=e=>"sc-"+e.$,H=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=U(n);let s=U(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=g(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(W);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},L=/\s/,U=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(L):[]),W="Capture",V=RegExp(W+"$"),q=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||{},s=t.u||{};for(const e of G(Object.keys(o)))e in s||H(l,e,o[e],void 0,n,t.l);for(const e of G(Object.keys(s)))H(l,e,o[e],s[e],n,t.l)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else if(o=l.v=a.createElement(l.m),q(null,l,_),l.h)for(i=0;i<l.h.length;++i)s=z(e,l,i),s&&o.appendChild(s);return o["s-hn"]=C,o},B=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=z(null,n,o),i&&(l[o].v=i,X(r,i,t)))},I=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),K=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,i=t.i;null===i?(q(e,t,_),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(J(h,m,o))K(h,m,o),h=t[++r],m=l[++c];else if(J(d,y,o))K(d,y,o),d=t[--f],y=l[--p];else if(J(h,y,o))K(h,y,o),X(e,h.v,d.v.nextSibling),h=t[++r],y=l[--p];else if(J(d,m,o))K(d,m,o),X(e,d.v,h.v),d=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=z(t&&t[c],n,u):(K(i,m,o),t[u]=void 0,s=i.v),m=l[++c]):(s=z(t&&t[c],n,c),m=l[++c]),s&&X(h.v.parentNode,s,h.v)}r>f?B(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&I(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),B(l,null,t,s,0,s.length-1)):!n&&null!==o&&I(o,0,o.length-1)):e.i!==i&&(l.data=i)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((l=>e.S=()=>{t["s-p"].splice(n-1,1),l()})))}},Z=(e,t)=>{if(e.l|=16,!(4&e.l))return Y(e,e.j),S((()=>ee(e,t)));e.l|=512},ee=(e,t)=>{const n=e.$hostElement$,l=e.t;if(!l)throw Error(`Can't render component <${n.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 t&&(o=re(l,"componentWillLoad",void 0,n)),te(o,(()=>le(e,l,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=F(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=D.get(e=e.head||e);if(i||D.set(e,i=new Set),!i.has(l)){{s=document.querySelector(`[sty-id="${l}"]`)||a.createElement("style"),s.innerHTML=o;const i=null!=(n=f.O)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&l&&2&l||128&l)&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);oe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},oe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||R(null,null),i=(e=>e&&e.m===A)(t)?t:P(null,null,t);if(C=l.tagName,o.M&&(i.u=i.u||{},o.M.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.m=null,i.l|=4,e.C=i,i.v=s.v=l.shadowRoot||l,K(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.j;re(e.t,"componentDidRender",void 0,t),64&e.l||(e.l|=64,ce(t),e.P(t),n||ie()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>Z(e,!1))),e.l&=-517},ie=()=>{w((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"helper-tabs"}});return e.dispatchEvent(t),t})(u)))},re=(e,t,n,l)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e,l)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.$}" 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.R.get(t),r=s.l,c=s.t;l=N(l,o.A[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.R.set(t,l),c&&2==(18&r)&&Z(s,!1))},ae=(e,t,l)=>{var o,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(o=t.A)?o:{});if(r.map((([e,[o]])=>{if(31&o||2&l&&32&o){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.A[e][0]|=2048),r&&(t.A[e][0]|=4096),(1&l||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.A[e][0]))return((e,t)=>n(this).R.get(t))(0,e);const l=n(this),o=l?l.t:i;if(!o)return;return o[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&o?this[e]:i.$hostElement$[e];return void 0===n&&i.R.get(e)?s=i.R.get(e):!i.R.get(e)&&n&&i.R.set(e,n),r.call(this,N(s,o)),void ue(this,e,s=32&o?this[e]:i.$hostElement$[e],t)}{if(!(1&l&&4096&t.A[e][0]))return ue(this,e,s,t),void(1&l&&!i.t&&i.N.then((()=>{4096&t.A[e][0]&&i.t[e]!==i.R.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.R.get(e)&&n&&i.R.set(e,n),i.t[e]=N(s,o),ue(this,e,i.t[e],t)};i.t?n():i.N.then((()=>n()))}}})}})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.T)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.T)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.M)||o.push([e,s])),s}))]))}}return e},fe=(e,t)=>{re(e,"connectedCallback",void 0,t)},he=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let w,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],$:l[1],A:l[2],D:l[3]};4&o.l&&(g=!0),o.A=l[2],o.M=[];const c=o.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,R:new Map};l.N=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)?fe(t.t,e):(null==t?void 0:t.N)&&t.N.then((()=>fe(t.t,e)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}l.A&&Object.entries(l.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.F){const o=((e,t)=>{const n=e.$.replace(/-/g,"_"),l=e.F;if(!l)return;const o=i.get(l);return o?o[n]:import(`./${l}.entry.js`).then((e=>(i.set(l,e),e[n])),(e=>{s(e,t.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(o&&"then"in o){const e=()=>{};l=await o,e()}else l=o;if(!l)throw Error(`Constructor for "${n.$}#${t.H}" was not found`);l.isProxied||(ae(l,n,2),l.isProxied=!0);const r=()=>{};t.l|=8;try{new l(t)}catch(t){s(t,e)}t.l&=-9,r(),fe(t.t,e)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=F(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>Z(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async e=>{if(!(1&f.l)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}))}D.has(e)&&D.delete(e),e.shadowRoot&&D.has(e.shadowRoot)&&D.delete(e.shadowRoot)})(this))),f.raf((()=>{var e;const t=n(this),l=b.findIndex((e=>e===this));l>-1&&b.splice(l,1),(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).N}};o.F=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ae(u,o,1)))}))})),h.length>0&&(g&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(o=f.O)?o:j(a);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,v?v.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ie,30)))},de=e=>f.O=e;export{he as b,T as g,P as h,h as p,l as r,de as s}
|