@everymatrix/helper-tabs 1.56.0 → 1.56.2

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.
Files changed (26) hide show
  1. package/dist/cjs/helper-tab_2.cjs.entry.js +16 -37
  2. package/dist/cjs/helper-tabs.cjs.js +2 -2
  3. package/dist/cjs/{index-08bd9c7c.js → index-d010e014.js} +73 -208
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/helper-tab/helper-tab.js +7 -34
  7. package/dist/collection/components/helper-tabs/helper-tabs.js +8 -56
  8. package/dist/esm/helper-tab_2.entry.js +16 -37
  9. package/dist/esm/helper-tabs.js +3 -3
  10. package/dist/esm/{index-c5727b52.js → index-3174302b.js} +73 -208
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/helper-tabs/helper-tabs.esm.js +1 -1
  13. package/dist/helper-tabs/p-88d4a539.entry.js +1 -0
  14. package/dist/helper-tabs/p-a0103339.js +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.d.ts +2 -0
  16. 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
  17. package/dist/types/stencil-public-runtime.d.ts +0 -6
  18. package/package.json +1 -1
  19. package/dist/helper-tabs/p-c6fec16e.entry.js +0 -1
  20. package/dist/helper-tabs/p-d8d96e22.js +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.d.ts +0 -2
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.dev.d.ts +0 -2
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → 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: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, 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, modernPropertyDecls: 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: true };
2
+ const BUILD = /* helper-tabs */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, 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: 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: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
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/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
- const ref = hostRefs.set(hostElement, hostRef);
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
- (importedModule) => {
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,40 +322,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
327
322
  }
328
323
  if (!appliedStyles.has(scopeId2)) {
329
324
  {
330
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
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) {
334
329
  styleElm.setAttribute("nonce", nonce);
335
330
  }
336
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
337
- if (styleContainerNode.nodeName === "HEAD") {
338
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
339
- 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
- );
344
- } else if ("host" in styleContainerNode) {
345
- if (supportsConstructableStylesheets) {
346
- const stylesheet = new CSSStyleSheet();
347
- stylesheet.replaceSync(style);
348
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
349
- } else {
350
- const existingStyleContainer = styleContainerNode.querySelector("style");
351
- if (existingStyleContainer) {
352
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
353
- } else {
354
- styleContainerNode.prepend(styleElm);
355
- }
356
- }
357
- } else {
358
- styleContainerNode.append(styleElm);
359
- }
360
- }
361
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
362
- styleContainerNode.insertBefore(styleElm, null);
363
- }
331
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
364
332
  }
365
333
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
366
334
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -383,25 +351,23 @@ var attachStyles = (hostRef) => {
383
351
  const scopeId2 = addStyle(
384
352
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
385
353
  cmpMeta);
386
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
354
+ if (flags & 10 /* needsScopedEncapsulation */) {
387
355
  elm["s-sc"] = scopeId2;
388
356
  elm.classList.add(scopeId2 + "-h");
389
357
  }
390
358
  endAttachStyles();
391
359
  };
392
360
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
393
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
361
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
394
362
  if (oldValue !== newValue) {
395
363
  let isProp = isMemberInElement(elm, memberName);
396
364
  let ln = memberName.toLowerCase();
397
365
  if (memberName === "class") {
398
366
  const classList = elm.classList;
399
367
  const oldClasses = parseClassList(oldValue);
400
- let newClasses = parseClassList(newValue);
401
- {
402
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
403
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
404
- }
368
+ const newClasses = parseClassList(newValue);
369
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
370
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
405
371
  } else if (memberName === "key") ; else if (memberName === "ref") {
406
372
  if (newValue) {
407
373
  newValue(elm);
@@ -433,13 +399,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
433
399
  if (memberName === "list") {
434
400
  isProp = false;
435
401
  } else if (oldValue == null || elm[memberName] != n) {
436
- if (typeof elm.__lookupSetter__(memberName) === "function") {
437
- elm[memberName] = n;
438
- } else {
439
- elm.setAttribute(memberName, n);
440
- }
402
+ elm[memberName] = n;
441
403
  }
442
- } else if (elm[memberName] !== newValue) {
404
+ } else {
443
405
  elm[memberName] = newValue;
444
406
  }
445
407
  } catch (e) {
@@ -461,44 +423,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
461
423
  }
462
424
  };
463
425
  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
- };
426
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
473
427
  var CAPTURE_EVENT_SUFFIX = "Capture";
474
428
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
475
429
 
476
430
  // src/runtime/vdom/update-element.ts
477
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
431
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
478
432
  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$ || {};
433
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
434
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
481
435
  {
482
436
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
483
437
  if (!(memberName in newVnodeAttrs)) {
484
- setAccessor(
485
- elm,
486
- memberName,
487
- oldVnodeAttrs[memberName],
488
- void 0,
489
- isSvgMode2,
490
- newVnode.$flags$);
438
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
491
439
  }
492
440
  }
493
441
  }
494
442
  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$);
443
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
502
444
  }
503
445
  };
504
446
  function sortedAttrNames(attrNames) {
@@ -510,10 +452,13 @@ function sortedAttrNames(attrNames) {
510
452
  attrNames
511
453
  );
512
454
  }
455
+
456
+ // src/runtime/vdom/vdom-render.ts
457
+ var scopeId;
513
458
  var hostTagName;
514
459
  var useNativeShadowDom = false;
515
460
  var isSvgMode = false;
516
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
461
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
517
462
  const newVNode2 = newParentVNode.$children$[childIndex];
518
463
  let i2 = 0;
519
464
  let elm;
@@ -527,6 +472,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
527
472
  {
528
473
  updateElement(null, newVNode2, isSvgMode);
529
474
  }
475
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
476
+ elm.classList.add(elm["s-si"] = scopeId);
477
+ }
530
478
  if (newVNode2.$children$) {
531
479
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
532
480
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -656,9 +604,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
656
604
  if (!isInitialRender) {
657
605
  return leftVNode.$key$ === rightVNode.$key$;
658
606
  }
659
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
660
- leftVNode.$key$ = rightVNode.$key$;
661
- }
662
607
  return true;
663
608
  }
664
609
  return false;
@@ -681,10 +626,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
681
626
  elm.textContent = "";
682
627
  }
683
628
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
684
- } else if (
685
- // don't do this on initial render as it can cause non-hydrated content to be removed
686
- !isInitialRender && BUILD.updatable && oldChildren !== null
687
- ) {
629
+ } else if (oldChildren !== null) {
688
630
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
689
631
  }
690
632
  } else if (oldVNode.$text$ !== text) {
@@ -698,9 +640,8 @@ var nullifyVNodeRefs = (vNode) => {
698
640
  }
699
641
  };
700
642
  var insertBefore = (parent, newNode, reference) => {
701
- {
702
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
703
- }
643
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
644
+ return inserted;
704
645
  };
705
646
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
706
647
  const hostElm = hostRef.$hostElement$;
@@ -725,21 +666,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
725
666
  rootVnode.$flags$ |= 4 /* isHost */;
726
667
  hostRef.$vnode$ = rootVnode;
727
668
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
728
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
669
+ {
670
+ scopeId = hostElm["s-sc"];
671
+ }
672
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
729
673
  patch(oldVNode, rootVnode, isInitialLoad);
730
674
  };
731
675
 
732
676
  // src/runtime/update-component.ts
733
677
  var attachToAncestor = (hostRef, ancestorComponent) => {
734
678
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
735
- const index = ancestorComponent["s-p"].push(
736
- new Promise(
737
- (r) => hostRef.$onRenderResolve$ = () => {
738
- ancestorComponent["s-p"].splice(index - 1, 1);
739
- r();
740
- }
741
- )
742
- );
679
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
743
680
  }
744
681
  };
745
682
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -766,7 +703,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
766
703
  let maybePromise;
767
704
  if (isInitialLoad) {
768
705
  {
769
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
706
+ maybePromise = safeCall(instance, "componentWillLoad");
770
707
  }
771
708
  }
772
709
  endSchedule();
@@ -840,7 +777,7 @@ var postUpdateComponent = (hostRef) => {
840
777
  addHydratedFlag(elm);
841
778
  }
842
779
  {
843
- safeCall(instance, "componentDidLoad", void 0, elm);
780
+ safeCall(instance, "componentDidLoad");
844
781
  }
845
782
  endPostUpdate();
846
783
  {
@@ -864,14 +801,17 @@ var postUpdateComponent = (hostRef) => {
864
801
  }
865
802
  };
866
803
  var appDidLoad = (who) => {
804
+ {
805
+ addHydratedFlag(doc.documentElement);
806
+ }
867
807
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
868
808
  };
869
- var safeCall = (instance, method, arg, elm) => {
809
+ var safeCall = (instance, method, arg) => {
870
810
  if (instance && instance[method]) {
871
811
  try {
872
812
  return instance[method](arg);
873
813
  } catch (e) {
874
- consoleError(e, elm);
814
+ consoleError(e);
875
815
  }
876
816
  }
877
817
  return void 0;
@@ -930,68 +870,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
930
870
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
931
871
  members.map(([memberName, [memberFlags]]) => {
932
872
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
933
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
934
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
935
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
936
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
937
- Object.defineProperty(prototype, memberName, {
938
- get() {
939
- {
940
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
941
- return getValue(this, memberName);
942
- }
943
- const ref = getHostRef(this);
944
- const instance = ref ? ref.$lazyInstance$ : prototype;
945
- if (!instance) return;
946
- return instance[memberName];
947
- }
948
- },
949
- configurable: true,
950
- enumerable: true
951
- });
952
- }
953
873
  Object.defineProperty(prototype, memberName, {
874
+ get() {
875
+ return getValue(this, memberName);
876
+ },
954
877
  set(newValue) {
955
- const ref = getHostRef(this);
956
- if (origSetter) {
957
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
958
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
959
- newValue = ref.$instanceValues$.get(memberName);
960
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
961
- ref.$instanceValues$.set(memberName, currentValue);
962
- }
963
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
964
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
965
- setValue(this, memberName, newValue, cmpMeta);
966
- return;
967
- }
968
- {
969
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
970
- setValue(this, memberName, newValue, cmpMeta);
971
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
972
- ref.$onReadyPromise$.then(() => {
973
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
974
- ref.$lazyInstance$[memberName] = newValue;
975
- }
976
- });
977
- }
978
- return;
979
- }
980
- const setterSetVal = () => {
981
- const currentValue = ref.$lazyInstance$[memberName];
982
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
983
- ref.$instanceValues$.set(memberName, currentValue);
984
- }
985
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
986
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
987
- };
988
- if (ref.$lazyInstance$) {
989
- setterSetVal();
990
- } else {
991
- ref.$onReadyPromise$.then(() => setterSetVal());
992
- }
993
- }
994
- }
878
+ setValue(this, memberName, newValue, cmpMeta);
879
+ },
880
+ configurable: true,
881
+ enumerable: true
995
882
  });
996
883
  }
997
884
  });
@@ -1001,11 +888,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1001
888
  plt.jmp(() => {
1002
889
  var _a2;
1003
890
  const propName = attrNameToPropName.get(attrName);
1004
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
891
+ if (this.hasOwnProperty(propName)) {
1005
892
  newValue = this[propName];
1006
893
  delete this[propName];
1007
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1008
- this[propName] == newValue) {
894
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1009
895
  return;
1010
896
  } else if (propName == null) {
1011
897
  const hostRef = getHostRef(this);
@@ -1021,11 +907,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1021
907
  }
1022
908
  return;
1023
909
  }
1024
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1025
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1026
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1027
- this[propName] = newValue;
1028
- }
910
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1029
911
  });
1030
912
  };
1031
913
  Cstr.observedAttributes = Array.from(
@@ -1054,7 +936,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1054
936
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1055
937
  const bundleId = cmpMeta.$lazyBundleId$;
1056
938
  if (bundleId) {
1057
- const CstrImport = loadModule(cmpMeta, hostRef);
939
+ const CstrImport = loadModule(cmpMeta);
1058
940
  if (CstrImport && "then" in CstrImport) {
1059
941
  const endLoad = uniqueTime();
1060
942
  Cstr = await CstrImport;
@@ -1079,7 +961,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1079
961
  try {
1080
962
  new Cstr(hostRef);
1081
963
  } catch (e) {
1082
- consoleError(e, elm);
964
+ consoleError(e);
1083
965
  }
1084
966
  {
1085
967
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1088,7 +970,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1088
970
  hostRef.$flags$ |= 128 /* isWatchReady */;
1089
971
  }
1090
972
  endNewInstance();
1091
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
973
+ fireConnectedCallback(hostRef.$lazyInstance$);
1092
974
  } else {
1093
975
  Cstr = elm.constructor;
1094
976
  const cmpTag = elm.localName;
@@ -1115,9 +997,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1115
997
  schedule();
1116
998
  }
1117
999
  };
1118
- var fireConnectedCallback = (instance, elm) => {
1000
+ var fireConnectedCallback = (instance) => {
1119
1001
  {
1120
- safeCall(instance, "connectedCallback", void 0, elm);
1002
+ safeCall(instance, "connectedCallback");
1121
1003
  }
1122
1004
  };
1123
1005
 
@@ -1152,34 +1034,28 @@ var connectedCallback = (elm) => {
1152
1034
  }
1153
1035
  } else {
1154
1036
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1155
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1037
+ fireConnectedCallback(hostRef.$lazyInstance$);
1156
1038
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1157
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1039
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1158
1040
  }
1159
1041
  }
1160
1042
  endConnected();
1161
1043
  }
1162
1044
  };
1163
- var disconnectInstance = (instance, elm) => {
1045
+ var disconnectInstance = (instance) => {
1164
1046
  {
1165
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1047
+ safeCall(instance, "disconnectedCallback");
1166
1048
  }
1167
1049
  };
1168
1050
  var disconnectedCallback = async (elm) => {
1169
1051
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1170
1052
  const hostRef = getHostRef(elm);
1171
1053
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1172
- disconnectInstance(hostRef.$lazyInstance$, elm);
1054
+ disconnectInstance(hostRef.$lazyInstance$);
1173
1055
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1174
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1056
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1175
1057
  }
1176
1058
  }
1177
- if (rootAppliedStyles.has(elm)) {
1178
- rootAppliedStyles.delete(elm);
1179
- }
1180
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1181
- rootAppliedStyles.delete(elm.shadowRoot);
1182
- }
1183
1059
  };
1184
1060
 
1185
1061
  // src/runtime/bootstrap-lazy.ts
@@ -1260,17 +1136,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1260
1136
  }
1261
1137
  disconnectedCallback() {
1262
1138
  plt.jmp(() => disconnectedCallback(this));
1263
- plt.raf(() => {
1264
- var _a3;
1265
- const hostRef = getHostRef(this);
1266
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1267
- if (i2 > -1) {
1268
- deferredConnectedCallbacks.splice(i2, 1);
1269
- }
1270
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1271
- delete hostRef.$vnode$.$elm$;
1272
- }
1273
- });
1274
1139
  }
1275
1140
  componentOnReady() {
1276
1141
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-c5727b52.js';
2
- export { s as setNonce } from './index-c5727b52.js';
1
+ import { b as bootstrapLazy } from './index-3174302b.js';
2
+ export { s as setNonce } from './index-3174302b.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 l,b as e}from"./p-d8d96e22.js";export{s as setNonce}from"./p-d8d96e22.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),l(n)})().then((async l=>(await n(),e([["p-c6fec16e",[[1,"helper-tabs",{disabled:[516],label:[513],selected:[516],cmsEndpoint:[513,"cms-endpoint"],selectedIndex:[1538,"selected-index"],tabs:[16],clientStyling:[513,"client-styling"],mbSource:[1,"mb-source"],clientStylingurl:[513,"client-stylingurl"],clientStylingUrl:[513,"client-styling-url"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}],[1,"helper-tab",{selectedIndex:[514,"selected-index"],cmsEndpoint:[513,"cms-endpoint"],mbSource:[1,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"],tabContent:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],l))));
1
+ import{p as l,b as n}from"./p-a0103339.js";export{s as setNonce}from"./p-a0103339.js";import{g as e}from"./p-e1255160.js";(()=>{const n=import.meta.url,e={};return""!==n&&(e.resourcesUrl=new URL(".",n).href),l(e)})().then((async l=>(await e(),n([["p-88d4a539",[[1,"helper-tabs",{disabled:[516],label:[513],selected:[516],cmsEndpoint:[513,"cms-endpoint"],selectedIndex:[1538,"selected-index"],tabs:[16],clientStyling:[513,"client-styling"],mbSource:[1,"mb-source"],clientStylingurl:[513,"client-stylingurl"],clientStylingUrl:[513,"client-styling-url"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}],[1,"helper-tab",{selectedIndex:[514,"selected-index"],cmsEndpoint:[513,"cms-endpoint"],mbSource:[1,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],lowNumber:[514,"low-number"],highNumber:[514,"high-number"],minimumAllowed:[514,"minimum-allowed"],maxinumAllowed:[514,"maxinum-allowed"],language:[513],translationUrl:[520,"translation-url"],tabContent:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],l))));
@@ -0,0 +1 @@
1
+ import{r as e,h as t,g as i}from"./p-a0103339.js";const o="en",a=["en"],n={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?"}},s=(e,t)=>{const i=t;return n[void 0!==i&&a.includes(i)?i:o][e]};function r(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function c(e,t){const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function l(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}const u=class{constructor(t){e(this,t),this.selectedIndex=0,this.cmsEndpoint=void 0,this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",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=""}handleClientStylingChange(e,t){e!=t&&r(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl)}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?l(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){var e;this.translationUrl&&(e=JSON.parse(this.translationUrl),Object.keys(e).forEach((t=>{for(let i in e[t])n[t][i]=e[t][i]})))}getHowToPlay(){return this.lowNumber&&this.highNumber&&this.maxinumAllowed&&this.minimumAllowed?((e,t)=>{const i=t.lang;let s=n[void 0!==i&&a.includes(i)?i:o][e];return t?(Object.keys(t).forEach((e=>{s=s.replace(new RegExp("\\${"+e+"}","gm"),t[e])})),s):n[void 0!==i&&a.includes(i)?i:o][e]})("howToPlay",{lowNumber:this.lowNumber,highNumber:this.highNumber,maxinumAllowed:this.maxinumAllowed,minimumAllowed:this.minimumAllowed,lang:this.language}):""}render(){return this.tabContent=t("div",{key:"92877a17361066f68fce6299cb8f65901f6abc60",class:"TabContent",ref:e=>this.stylingContainer=e},this.getHowToPlay()),this.selectedIndex+1==2?this.tabContent=t("div",{key:"9876b9250371034ef40dab0f5fc3fe1a5631a370",class:"TabContent",ref:e=>this.stylingContainer=e},t("ol",{key:"ef2097eb54aeb640f06871277d8cafd2f4455109"},t("li",{key:"e9a0237e1fdead445abcd9240174276ffef81a67"},s("register",this.language)),t("li",{key:"2bdfaffdc9f1a7ae021913cb0ba346132140dcfd"},s("butTickets",this.language)),t("li",{key:"bff38eaeabeaece83dc8ed1697e5b052802753f6"},s("reviewPurchase",this.language)))):this.selectedIndex+1==3&&(this.tabContent=t("div",{key:"49a7fb3435fb50b54572ec38d1e632e2eacf56fb",class:"TabContent",ref:e=>this.stylingContainer=e},t("ul",{key:"7f642625f35a1ed1eae7655144c0b8b1bfe25f55"},t("li",{key:"037a5913be57dd1e2dcde5a061e9c64e70365e8d"},s("odds",this.language)),t("li",{key:"8775a1b2e8eda285e2c248b8d7235f06ac593fc6"},s("winGame",this.language)),t("li",{key:"5297fc5e757c29a1349049f1fe294e926255d518"},s("claimPrize",this.language))))),this.tabContent}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};u.style=":host{display:block}.TabContent{font-size:14px;color:var(--emw--button-text-color, #000);font-weight:normal}";const h=class{constructor(t){e(this,t),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.mbSource=void 0,this.clientStylingurl="",this.clientStylingUrl="",this.lowNumber=void 0,this.highNumber=void 0,this.minimumAllowed=void 0,this.maxinumAllowed=void 0,this.language="en",this.translationUrl=void 0}connectedCallback(){}handleClientStylingChange(e,t){e!=t&&r(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl)}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?l(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return t("div",{key:"173c4774748482dc56fcffb4bac4e1666fa9170f",ref:e=>this.stylingContainer=e},t("div",{key:"680b65218e4b00f134b354f593c0c20fb5882dca",class:"Tabs"},this.tabs.map(((e,i)=>t("button",{class:"TabButton"+(this.selectedIndex==i?" Active":""),onClick:()=>this.selectedIndex=i},e.label)))),t("div",{key:"67aa26c92fb416c5d0934988fb071481f805685b"},t("helper-tab",{key:"63c8dfc253d4fc12b0310a2585a44b90807e1a9f","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.clientStylingUrl,"mb-source":this.mbSource})))}get host(){return i(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};h.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{u as helper_tab,h as helper_tabs}
@@ -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),g=$(y,!0),S={},k=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:()=>C,map:()=>E,ok:()=>O,unwrap:()=>P,unwrapErr:()=>L});var O=e=>({isOk:!0,isErr:!1,value:e}),C=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=>O(e))):O(n)}if(e.isErr)return C(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(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&&!k(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(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=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),A={},F=e=>n(e).$hostElement$,N=new WeakMap,U=e=>"sc-"+e.v,W=(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=H(n),s=H(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=k(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||(e[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(q);t=t.replace(G,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},D=/\s/,H=e=>e?e.split(D):[],q="Capture",G=RegExp(q+"$"),V=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of _(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of _(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function _(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,B=(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),V(null,l,z),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=B(e,l,r),s&&o.appendChild(s);return o["s-hn"]=x,o},I=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=B(null,n,o),r&&(l[o].$=r,Y(i,r,t)))},J=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;X(t),e&&e.remove()}}},K=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Q=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(V(e,t,z),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(K(h,m,o))Q(h,m,o),h=t[++i],m=l[++c];else if(K(p,y,o))Q(p,y,o),p=t[--f],y=l[--d];else if(K(h,y,o))Q(h,y,o),Y(e,h.$,p.$.nextSibling),h=t[++i],y=l[--d];else if(K(p,m,o))Q(p,m,o),Y(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=B(t&&t[c],n,u):(Q(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=B(t&&t[c],n,c),m=l[++c]),s&&Y(h.$.parentNode,s,h.$)}i>f?I(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&J(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),I(l,null,t,s,0,s.length-1)):null!==o&&J(o,0,o.length-1)):e.i!==r&&(l.data=r)},X=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(X)},Y=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Z=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ee=(e,t)=>{if(e.l|=16,!(4&e.l))return Z(e,e.k),g((()=>te(e,t)));e.l|=512},te=(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=ce(n,"componentWillLoad")),ne(l,(()=>oe(e,n,t)))},ne=(e,t)=>le(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),le=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.j,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.O)?n:j(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}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&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);se(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},se=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.j,s=e.C||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=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,M=l["s-sc"],Q(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.t,l=e.k;64&e.l||(e.l|=64,ue(t),ce(n,"componentDidLoad"),e.P(t),l||ie()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>ee(e,!1))),e.l&=-517},ie=()=>{ue(a.documentElement),v((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"helper-tabs"}});return e.dispatchEvent(t),t})(u)))},ce=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ue=e=>e.classList.add("hydrated"),ae=(e,t,l)=>{var o,r;const i=e.prototype;if(t.L||t.R||e.watchers){e.watchers&&!t.R&&(t.R=e.watchers);const c=Object.entries(null!=(o=t.L)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)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 i=r.$hostElement$,c=r.T.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.L[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.T.set(t,l),a)){if(o.R&&128&u){const e=o.R[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ee(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),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.R)?void 0:r[e];null==i||i.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!=(r=t.R)?r:{}),...c.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=>{ce(e,"connectedCallback")},he=e=>{ce(e,"disconnectedCallback")},pe=(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,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],L:l[2],A:l[3]};4&c.l&&(S=!0),c.L=l[2],c.M=[],c.R=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,j:n,T:new Map};l.F=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.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),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.j,o=()=>{};if(1&t.l)(null==t?void 0:t.t)?fe(t.t):(null==t?void 0:t.F)&&t.F.then((()=>fe(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(t,t.k=n);break}}l.L&&Object.entries(l.L).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.N){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.N;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.U}" was not found`);l.isProxied||(n.R=l.watchers,ae(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),fe(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=U(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.k,c=()=>ee(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)?he(e.t):(null==e?void 0:e.F)&&e.F.then((()=>he(e.t)))}})()))}componentOnReady(){return n(this).F}};c.N=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,ae(a,c,1)))}))})),h.length>0&&(S&&(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:j(a);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,$?$.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(ie,30)))},de=e=>f.O=e;export{pe as b,F as g,R as h,h as p,l as r,de as s}
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
1015
1015
  autoPlay?: boolean;
1016
1016
  autoplay?: boolean | string;
1017
1017
  controls?: boolean;
1018
- controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1019
- controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1020
1018
  crossOrigin?: string;
1021
1019
  crossorigin?: string;
1022
1020
  loop?: boolean;
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
1566
1564
  onSubmitCapture?: (event: Event) => void;
1567
1565
  onInvalid?: (event: Event) => void;
1568
1566
  onInvalidCapture?: (event: Event) => void;
1569
- onBeforeToggle?: (event: Event) => void;
1570
- onBeforeToggleCapture?: (event: Event) => void;
1571
- onToggle?: (event: Event) => void;
1572
- onToggleCapture?: (event: Event) => void;
1573
1567
  onLoad?: (event: Event) => void;
1574
1568
  onLoadCapture?: (event: Event) => void;
1575
1569
  onError?: (event: Event) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/helper-tabs",
3
- "version": "1.56.0",
3
+ "version": "1.56.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",