@everymatrix/helper-tabs 1.52.6 → 1.53.10

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.
@@ -1,17 +1,21 @@
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: false, 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 };
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: false, 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, 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: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.1 | 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
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
66
  /* webpackExclude: /\.system\.entry\.js$/ */
62
67
  /* webpackMode: "lazy" */
63
68
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
69
+ ).then(
70
+ (importedModule) => {
71
+ {
72
+ cmpModules.set(bundleId, importedModule);
73
+ }
74
+ return importedModule[exportName];
75
+ },
76
+ (e) => {
77
+ consoleError(e, hostRef.$hostElement$);
67
78
  }
68
- return importedModule[exportName];
69
- }, consoleError);
79
+ );
70
80
  };
71
81
 
72
82
  // src/client/client-style.ts
73
83
  var styles = /* @__PURE__ */ new Map();
84
+ var HYDRATED_STYLE_ID = "sty-id";
74
85
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
86
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
87
  var win = typeof window !== "undefined" ? window : {};
@@ -128,12 +139,6 @@ var flush = () => {
128
139
  };
129
140
  var nextTick = (cb) => promiseResolve().then(cb);
130
141
  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;
137
142
  var isComplexType = (o) => {
138
143
  o = typeof o;
139
144
  return o === "object" || o === "function";
@@ -322,7 +327,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
322
327
  }
323
328
  if (!appliedStyles.has(scopeId2)) {
324
329
  {
325
- styleElm = doc.createElement("style");
330
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
326
331
  styleElm.innerHTML = style;
327
332
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
328
333
  if (nonce != null) {
@@ -332,7 +337,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
332
337
  if (styleContainerNode.nodeName === "HEAD") {
333
338
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
334
339
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
335
- styleContainerNode.insertBefore(styleElm, referenceNode2);
340
+ styleContainerNode.insertBefore(
341
+ styleElm,
342
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
343
+ );
336
344
  } else if ("host" in styleContainerNode) {
337
345
  if (supportsConstructableStylesheets) {
338
346
  const stylesheet = new CSSStyleSheet();
@@ -382,16 +390,18 @@ var attachStyles = (hostRef) => {
382
390
  endAttachStyles();
383
391
  };
384
392
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
385
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
393
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
386
394
  if (oldValue !== newValue) {
387
395
  let isProp = isMemberInElement(elm, memberName);
388
396
  let ln = memberName.toLowerCase();
389
397
  if (memberName === "class") {
390
398
  const classList = elm.classList;
391
399
  const oldClasses = parseClassList(oldValue);
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)));
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
+ }
395
405
  } else if (memberName === "key") ; else if (memberName === "ref") {
396
406
  if (newValue) {
397
407
  newValue(elm);
@@ -429,7 +439,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
429
439
  elm.setAttribute(memberName, n);
430
440
  }
431
441
  }
432
- } else {
442
+ } else if (elm[memberName] !== newValue) {
433
443
  elm[memberName] = newValue;
434
444
  }
435
445
  } catch (e) {
@@ -451,24 +461,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
451
461
  }
452
462
  };
453
463
  var parseClassListRegex = /\s/;
454
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
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
+ };
455
473
  var CAPTURE_EVENT_SUFFIX = "Capture";
456
474
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
457
475
 
458
476
  // src/runtime/vdom/update-element.ts
459
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
477
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
460
478
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
461
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
462
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
479
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
480
+ const newVnodeAttrs = newVnode.$attrs$ || {};
463
481
  {
464
482
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
465
483
  if (!(memberName in newVnodeAttrs)) {
466
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
484
+ setAccessor(
485
+ elm,
486
+ memberName,
487
+ oldVnodeAttrs[memberName],
488
+ void 0,
489
+ isSvgMode2,
490
+ newVnode.$flags$);
467
491
  }
468
492
  }
469
493
  }
470
494
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
471
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
495
+ setAccessor(
496
+ elm,
497
+ memberName,
498
+ oldVnodeAttrs[memberName],
499
+ newVnodeAttrs[memberName],
500
+ isSvgMode2,
501
+ newVnode.$flags$);
472
502
  }
473
503
  };
474
504
  function sortedAttrNames(attrNames) {
@@ -480,13 +510,10 @@ function sortedAttrNames(attrNames) {
480
510
  attrNames
481
511
  );
482
512
  }
483
-
484
- // src/runtime/vdom/vdom-render.ts
485
- var scopeId;
486
513
  var hostTagName;
487
514
  var useNativeShadowDom = false;
488
515
  var isSvgMode = false;
489
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
516
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
490
517
  const newVNode2 = newParentVNode.$children$[childIndex];
491
518
  let i2 = 0;
492
519
  let elm;
@@ -500,11 +527,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
500
527
  {
501
528
  updateElement(null, newVNode2, isSvgMode);
502
529
  }
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
- }
508
530
  if (newVNode2.$children$) {
509
531
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
510
532
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -634,6 +656,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
634
656
  if (!isInitialRender) {
635
657
  return leftVNode.$key$ === rightVNode.$key$;
636
658
  }
659
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
660
+ leftVNode.$key$ = rightVNode.$key$;
661
+ }
637
662
  return true;
638
663
  }
639
664
  return false;
@@ -673,8 +698,9 @@ var nullifyVNodeRefs = (vNode) => {
673
698
  }
674
699
  };
675
700
  var insertBefore = (parent, newNode, reference) => {
676
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
677
- return inserted;
701
+ {
702
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
703
+ }
678
704
  };
679
705
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
680
706
  const hostElm = hostRef.$hostElement$;
@@ -699,9 +725,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
699
725
  rootVnode.$flags$ |= 4 /* isHost */;
700
726
  hostRef.$vnode$ = rootVnode;
701
727
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
702
- {
703
- scopeId = hostElm["s-sc"];
704
- }
705
728
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
706
729
  patch(oldVNode, rootVnode, isInitialLoad);
707
730
  };
@@ -709,7 +732,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
709
732
  // src/runtime/update-component.ts
710
733
  var attachToAncestor = (hostRef, ancestorComponent) => {
711
734
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
712
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
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
+ );
713
743
  }
714
744
  };
715
745
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -800,7 +830,7 @@ var postUpdateComponent = (hostRef) => {
800
830
  const instance = hostRef.$lazyInstance$ ;
801
831
  const ancestorComponent = hostRef.$ancestorComponent$;
802
832
  {
803
- safeCall(instance, "componentDidRender");
833
+ safeCall(instance, "componentDidRender", void 0, elm);
804
834
  }
805
835
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
806
836
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -834,12 +864,12 @@ var appDidLoad = (who) => {
834
864
  }
835
865
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
836
866
  };
837
- var safeCall = (instance, method, arg) => {
867
+ var safeCall = (instance, method, arg, elm) => {
838
868
  if (instance && instance[method]) {
839
869
  try {
840
870
  return instance[method](arg);
841
871
  } catch (e) {
842
- consoleError(e);
872
+ consoleError(e, elm);
843
873
  }
844
874
  }
845
875
  return void 0;
@@ -882,15 +912,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
882
912
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
883
913
  members.map(([memberName, [memberFlags]]) => {
884
914
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
915
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
916
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
917
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
918
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
919
+ Object.defineProperty(prototype, memberName, {
920
+ get() {
921
+ {
922
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
923
+ return getValue(this, memberName);
924
+ }
925
+ const ref = getHostRef(this);
926
+ const instance = ref ? ref.$lazyInstance$ : prototype;
927
+ if (!instance) return;
928
+ return instance[memberName];
929
+ }
930
+ },
931
+ configurable: true,
932
+ enumerable: true
933
+ });
934
+ }
885
935
  Object.defineProperty(prototype, memberName, {
886
- get() {
887
- return getValue(this, memberName);
888
- },
889
936
  set(newValue) {
890
- setValue(this, memberName, newValue, cmpMeta);
891
- },
892
- configurable: true,
893
- enumerable: true
937
+ const ref = getHostRef(this);
938
+ if (origSetter) {
939
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
940
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
941
+ newValue = ref.$instanceValues$.get(memberName);
942
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
943
+ ref.$instanceValues$.set(memberName, currentValue);
944
+ }
945
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
946
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
947
+ setValue(this, memberName, newValue, cmpMeta);
948
+ return;
949
+ }
950
+ {
951
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
952
+ setValue(this, memberName, newValue, cmpMeta);
953
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
954
+ ref.$onReadyPromise$.then(() => {
955
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
956
+ ref.$lazyInstance$[memberName] = newValue;
957
+ }
958
+ });
959
+ }
960
+ return;
961
+ }
962
+ const setterSetVal = () => {
963
+ const currentValue = ref.$lazyInstance$[memberName];
964
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
965
+ ref.$instanceValues$.set(memberName, currentValue);
966
+ }
967
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
968
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
969
+ };
970
+ if (ref.$lazyInstance$) {
971
+ setterSetVal();
972
+ } else {
973
+ ref.$onReadyPromise$.then(() => setterSetVal());
974
+ }
975
+ }
976
+ }
894
977
  });
895
978
  }
896
979
  });
@@ -900,7 +983,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
900
983
  plt.jmp(() => {
901
984
  var _a2;
902
985
  const propName = attrNameToPropName.get(attrName);
903
- if (this.hasOwnProperty(propName)) {
986
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
904
987
  newValue = this[propName];
905
988
  delete this[propName];
906
989
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -920,7 +1003,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
920
1003
  }
921
1004
  return;
922
1005
  }
923
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1006
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1007
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1008
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1009
+ this[propName] = newValue;
1010
+ }
924
1011
  });
925
1012
  };
926
1013
  Cstr.observedAttributes = Array.from(
@@ -947,9 +1034,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
947
1034
  let Cstr;
948
1035
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
949
1036
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
950
- const bundleId = cmpMeta.$lazyBundleId$;
951
- if (bundleId) {
952
- const CstrImport = loadModule(cmpMeta);
1037
+ {
1038
+ const CstrImport = loadModule(cmpMeta, hostRef);
953
1039
  if (CstrImport && "then" in CstrImport) {
954
1040
  const endLoad = uniqueTime();
955
1041
  Cstr = await CstrImport;
@@ -971,17 +1057,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
971
1057
  try {
972
1058
  new Cstr(hostRef);
973
1059
  } catch (e) {
974
- consoleError(e);
1060
+ consoleError(e, elm);
975
1061
  }
976
1062
  {
977
1063
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
978
1064
  }
979
1065
  endNewInstance();
980
- fireConnectedCallback(hostRef.$lazyInstance$);
981
- } else {
982
- Cstr = elm.constructor;
983
- const cmpTag = elm.localName;
984
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1066
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
985
1067
  }
986
1068
  if (Cstr && Cstr.style) {
987
1069
  let style;
@@ -1004,9 +1086,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1004
1086
  schedule();
1005
1087
  }
1006
1088
  };
1007
- var fireConnectedCallback = (instance) => {
1089
+ var fireConnectedCallback = (instance, elm) => {
1008
1090
  {
1009
- safeCall(instance, "connectedCallback");
1091
+ safeCall(instance, "connectedCallback", void 0, elm);
1010
1092
  }
1011
1093
  };
1012
1094
 
@@ -1041,15 +1123,15 @@ var connectedCallback = (elm) => {
1041
1123
  }
1042
1124
  } else {
1043
1125
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1044
- fireConnectedCallback(hostRef.$lazyInstance$);
1126
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1045
1127
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1046
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1128
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1047
1129
  }
1048
1130
  }
1049
1131
  endConnected();
1050
1132
  }
1051
1133
  };
1052
- var disconnectInstance = (instance) => {
1134
+ var disconnectInstance = (instance, elm) => {
1053
1135
  };
1054
1136
  var disconnectedCallback = async (elm) => {
1055
1137
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1058,6 +1140,12 @@ var disconnectedCallback = async (elm) => {
1058
1140
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1059
1141
  }
1060
1142
  }
1143
+ if (rootAppliedStyles.has(elm)) {
1144
+ rootAppliedStyles.delete(elm);
1145
+ }
1146
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1147
+ rootAppliedStyles.delete(elm.shadowRoot);
1148
+ }
1061
1149
  };
1062
1150
 
1063
1151
  // src/runtime/bootstrap-lazy.ts
@@ -1134,6 +1222,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1134
1222
  }
1135
1223
  disconnectedCallback() {
1136
1224
  plt.jmp(() => disconnectedCallback(this));
1225
+ plt.raf(() => {
1226
+ var _a3;
1227
+ const hostRef = getHostRef(this);
1228
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1229
+ delete hostRef.$vnode$.$elm$;
1230
+ }
1231
+ });
1137
1232
  }
1138
1233
  componentOnReady() {
1139
1234
  return getHostRef(this).$onReadyPromise$;
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-93aaed58.js';
2
- export { s as setNonce } from './index-93aaed58.js';
1
+ import { b as bootstrapLazy } from './index-308251f5.js';
2
+ export { s as setNonce } from './index-308251f5.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["helper-tab_2",[[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"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
8
+ return bootstrapLazy([["helper-tab_2",[[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"],"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],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-8be01f9b.js";export{s as setNonce}from"./p-8be01f9b.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((async t=>(await n(),e([["p-34cddd95",[[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"],limitStylingAppends:[32]}],[1,"helper-tab",{selectedIndex:[514,"selected-index"],cmsEndpoint:[513,"cms-endpoint"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],tabContent:[32],limitStylingAppends:[32]}]]]],t))));
1
+ import{p as e,b as n}from"./p-aac7c96a.js";export{s as setNonce}from"./p-aac7c96a.js";import{g as l}from"./p-e1255160.js";(()=>{const n=import.meta.url,l={};return""!==n&&(l.resourcesUrl=new URL(".",n).href),e(l)})().then((async e=>(await l(),n([["p-a87ee1cf",[[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"],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],tabContent:[32],limitStylingAppends:[32]}]]]],e))));
@@ -0,0 +1 @@
1
+ import{r as e,h as t,g as i}from"./p-aac7c96a.js";const s=["en"],o={en:{numbersFrom:"Each play includes one set of numbers from",to:"to",selectableNumber:"with a selectable number of",minimumSelection:"and a minimum selection of",winnings:"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:{numbersFrom:"Each play includes one set of numbers from",to:"to",selectableNumber:"with a selectable number of",minimumSelection:"and a minimum selection of",winnings:"The winnings are automatically credited to your account."},fr:{numbersFrom:"Each play includes one set of numbers from",to:"to",selectableNumber:"with a selectable number of",minimumSelection:"and a minimum selection of",winnings:"The winnings are automatically credited to your account."},ar:{numbersFrom:"Each play includes one set of numbers from",to:"to",selectableNumber:"with a selectable number of",minimumSelection:"and a minimum selection of",winnings:"The winnings are automatically credited to your account."},hr:{numbersFrom:"Each play includes one set of numbers from",to:"to",selectableNumber:"with a selectable number of",minimumSelection:"and a minimum selection of",winnings:"The winnings are automatically credited to your account."}},a=(e,t)=>{const i=t;return o[void 0!==i&&s.includes(i)?i:"en"][e]},n=class{constructor(t){e(this,t),this.selectedIndex=0,this.clientStyling="",this.clientStylingUrlContent="",this.language="en",this.tabContent="",this.limitStylingAppends=!1,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)}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return this.tabContent=t("div",{key:"8c2b3f0f34ccda482fd187218840f9a622698b1f",class:"TabContent",ref:e=>this.stylingContainer=e},a("numbersFrom",this.language)," ",this.lowNumber," ",a("to",this.language)," ",this.highNumber," ",a("selectableNumber",this.language)," ",this.maxinumAllowed," ",a("minimumSelection",this.language)," ",this.minimumAllowed,". ",a("winnings",this.language)),this.selectedIndex+1==2?this.tabContent=t("div",{key:"2950bb6ccdd98761099d12239881ab29da4b2213",class:"TabContent",ref:e=>this.stylingContainer=e},t("ol",{key:"0da821f45e855155003809cb4c84eaa8d25f1f2a"},t("li",{key:"15d4f064c62319c6611baa3693f4ef297309c786"},a("register",this.language)),t("li",{key:"4933c6970d4044aac746abb398f7c255b0484f6a"},a("butTickets",this.language)),t("li",{key:"ffe7cef3e53bd281173384756476acd2e0e8f148"},a("reviewPurchase",this.language)))):this.selectedIndex+1==3&&(this.tabContent=t("div",{key:"296c83d55150c67522cea9cb1fc10f3542c72452",class:"TabContent",ref:e=>this.stylingContainer=e},t("ul",{key:"3fc772a007d0f73e0692021a2f700bab5807bb85"},t("li",{key:"fd6e459a0536261d98e42e37a272f229d152dfb7"},a("odds",this.language)),t("li",{key:"ae7e5bceb217c9ceb1303145ae83f05fddd7dde6"},a("winGame",this.language)),t("li",{key:"a094c7ea0db72683fb134f010d22f02b61f25a4b"},a("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.disabled=!1,this.selected=!1,this.selectedIndex=0,this.tabs=[{label:"How to Play"},{label:"About"},{label:"FAQs"}],this.clientStyling="",this.clientStylingurl="",this.clientStylingUrlContent="",this.limitStylingAppends=!1,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)}}connectedCallback(){}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return t("div",{key:"cb91a99a4d5eb99ce625c276894f8b682159c12c",ref:e=>this.stylingContainer=e},t("div",{key:"c57ea36b3e25c605894b7ddf19e5e456f2fa252d",class:"Tabs"},this.tabs.map(((e,i)=>t("button",{class:"TabButton"+(this.selectedIndex==i?" Active":""),onClick:()=>this.selectedIndex=i},e.label)))),t("div",{key:"41fa20ee2cc713af685f902fc496a702464398d1"},t("helper-tab",{key:"fded6e290107cbc06909aee2e2c97e1c1dd76db3","low-number":this.lowNumber,"high-number":this.highNumber,"minimum-allowed":this.minimumAllowed,"maxinum-allowed":this.maxinumAllowed,selectedIndex:this.selectedIndex,"client-styling":this.clientStyling,"client-stylingurl":this.clientStylingurl,"client-styling-url-content":this.clientStylingUrlContent})))}get host(){return i(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}
@@ -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),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?A(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=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),R={},D=(e,t)=>null==e||g(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e,H=e=>n(e).$hostElement$,N=new WeakMap,T=e=>"sc-"+e.$,F=(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=L(n);let s=L(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(V);t=t.replace(W,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},U=/\s/,L=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(U):[]),V="Capture",W=RegExp(V+"$"),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||F(l,e,o[e],void 0,n,t.l);for(const e of G(Object.keys(s)))F(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.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`);return te(void 0,(()=>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=T(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=N.get(e=e.head||e);if(i||N.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&&"HEAD"!==e.nodeName&&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&&(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||A(null,null),i=(e=>e&&e.m===R)(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=()=>{ce(a.documentElement),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.A.get(t),r=s.l,c=s.t;l=D(l,o.R[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.A.set(t,l),c&&2==(18&r)&&Z(s,!1))},ae=(e,t,l)=>{var o,s;const i=e.prototype;if(t.R){const r=Object.entries(null!=(o=t.R)?o:{});if(r.map((([e,[o]])=>{if(31&o||2&l&&32&o){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.R[e][0]|=2048),r&&(t.R[e][0]|=4096),(1&l||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.R[e][0]))return((e,t)=>n(this).A.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.A.get(e)?s=i.A.get(e):!i.A.get(e)&&n&&i.A.set(e,n),r.call(this,D(s,o)),void ue(this,e,s=32&o?this[e]:i.$hostElement$[e],t)}{if(!(1&l&&4096&t.R[e][0]))return ue(this,e,s,t),void(1&l&&!i.t&&i.D.then((()=>{4096&t.R[e][0]&&i.t[e]!==i.A.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.A.get(e)&&n&&i.A.set(e,n),i.t[e]=D(s,o),ue(this,e,i.t[e],t)};i.t?n():i.D.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.H)?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.H)?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],R:l[2],N:l[3]};4&o.l&&(g=!0),o.R=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,A:new Map};l.D=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.D)&&t.D.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.R&&Object.entries(l.R).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)){t.l|=32;{const o=((e,t)=>{const n=e.$.replace(/-/g,"_"),l=e.T;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.F}" 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)}if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=T(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.D)&&t.D.then((()=>{}))}N.has(e)&&N.delete(e),e.shadowRoot&&N.has(e.shadowRoot)&&N.delete(e.shadowRoot)})(this))),f.raf((()=>{var e;const t=n(this);(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).D}};o.T=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,H as g,P as h,h as p,l as r,de as s}
@@ -15,10 +15,29 @@ export declare class HelperTab {
15
15
  * Client custom styling via url content
16
16
  */
17
17
  clientStylingUrlContent: string;
18
+ /**
19
+ * Minimum number displayed in the board
20
+ */
21
+ lowNumber: number;
22
+ /**
23
+ * Maximum number displayed in the board
24
+ */
25
+ highNumber: number;
26
+ /**
27
+ * Minimum number of numbers that can be selected
28
+ */
29
+ minimumAllowed: number;
30
+ /**
31
+ * Maximum number of numbers that can be selected
32
+ */
33
+ maxinumAllowed: number;
34
+ /**
35
+ * Language of the widget
36
+ */
37
+ language: string;
18
38
  tabContent: string;
19
39
  private limitStylingAppends;
20
40
  private stylingContainer;
21
- connectedCallback(): void;
22
41
  componentDidRender(): void;
23
42
  setClientStyling: () => void;
24
43
  setClientStylingURL: () => void;
@@ -35,6 +35,22 @@ export declare class HelperTabs {
35
35
  * Client custom styling via url content
36
36
  */
37
37
  clientStylingUrlContent: string;
38
+ /**
39
+ * Minimum number displayed in the board
40
+ */
41
+ lowNumber: number;
42
+ /**
43
+ * Maximum number displayed in the board
44
+ */
45
+ highNumber: number;
46
+ /**
47
+ * Minimum number of numbers that can be selected
48
+ */
49
+ minimumAllowed: number;
50
+ /**
51
+ * Maximum number of numbers that can be selected
52
+ */
53
+ maxinumAllowed: number;
38
54
  private limitStylingAppends;
39
55
  host: HTMLElement;
40
56
  private stylingContainer;