@everymatrix/general-tutorial-slider 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/cjs/general-tutorial-slider.cjs.entry.js +133 -44
  2. package/dist/cjs/general-tutorial-slider.cjs.js +3 -3
  3. package/dist/cjs/{index-e91cd3ca.js → index-bfd21506.js} +180 -77
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/general-tutorial-slider/general-tutorial-slider.js +124 -43
  7. package/dist/esm/general-tutorial-slider.entry.js +133 -44
  8. package/dist/esm/general-tutorial-slider.js +4 -4
  9. package/dist/esm/{index-8f6f886a.js → index-b8731ee9.js} +180 -77
  10. package/dist/esm/loader.js +3 -3
  11. package/dist/general-tutorial-slider/general-tutorial-slider.esm.js +1 -1
  12. package/dist/general-tutorial-slider/p-d3024419.entry.js +1 -0
  13. package/dist/general-tutorial-slider/p-e2d02089.js +2 -0
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/components/general-tutorial-slider/general-tutorial-slider.d.ts +7 -3
  17. package/dist/types/components.d.ts +8 -0
  18. package/package.json +1 -1
  19. package/dist/general-tutorial-slider/p-61e877f0.entry.js +0 -1
  20. package/dist/general-tutorial-slider/p-f4302c55.js +0 -2
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.d.ts +0 -2
  22. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.dev.d.ts +0 -2
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,19 +21,27 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'general-tutorial-slider';
24
- const BUILD = /* general-tutorial-slider */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* general-tutorial-slider */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/utils/constants.ts
36
+ var SVG_NS = "http://www.w3.org/2000/svg";
37
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
38
+
39
+ // src/client/client-host-ref.ts
34
40
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
41
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
42
+ var registerInstance = (lazyInstance, hostRef) => {
43
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
+ };
37
45
  var registerHost = (hostElement, cmpMeta) => {
38
46
  const hostRef = {
39
47
  $flags$: 0,
@@ -46,7 +54,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
54
  hostElement["s-p"] = [];
47
55
  hostElement["s-rc"] = [];
48
56
  }
49
- return hostRefs.set(hostElement, hostRef);
57
+ const ref = hostRefs.set(hostElement, hostRef);
58
+ return ref;
50
59
  };
51
60
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
61
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +92,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
92
  /* webpackExclude: /\.system\.entry\.js$/ */
84
93
  /* webpackMode: "lazy" */
85
94
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
95
+ )); }).then(
96
+ (importedModule) => {
97
+ {
98
+ cmpModules.set(bundleId, importedModule);
99
+ }
100
+ return importedModule[exportName];
101
+ },
102
+ (e) => {
103
+ consoleError(e, hostRef.$hostElement$);
89
104
  }
90
- return importedModule[exportName];
91
- }, consoleError);
105
+ );
92
106
  };
93
107
 
94
108
  // src/client/client-style.ts
95
109
  var styles = /* @__PURE__ */ new Map();
110
+ var HYDRATED_STYLE_ID = "sty-id";
96
111
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
112
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
113
  var win = typeof window !== "undefined" ? window : {};
@@ -150,14 +165,6 @@ var flush = () => {
150
165
  };
151
166
  var nextTick = (cb) => promiseResolve().then(cb);
152
167
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
-
154
- // src/utils/constants.ts
155
- var EMPTY_OBJ = {};
156
- var SVG_NS = "http://www.w3.org/2000/svg";
157
- var HTML_NS = "http://www.w3.org/1999/xhtml";
158
-
159
- // src/utils/helpers.ts
160
- var isDef = (v) => v != null;
161
168
  var isComplexType = (o) => {
162
169
  o = typeof o;
163
170
  return o === "object" || o === "function";
@@ -336,7 +343,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
336
343
  }
337
344
  if (!appliedStyles.has(scopeId2)) {
338
345
  {
339
- styleElm = doc.createElement("style");
346
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
340
347
  styleElm.innerHTML = style;
341
348
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
342
349
  if (nonce != null) {
@@ -346,7 +353,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
346
353
  if (styleContainerNode.nodeName === "HEAD") {
347
354
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
348
355
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
349
- styleContainerNode.insertBefore(styleElm, referenceNode2);
356
+ styleContainerNode.insertBefore(
357
+ styleElm,
358
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
359
+ );
350
360
  } else if ("host" in styleContainerNode) {
351
361
  if (supportsConstructableStylesheets) {
352
362
  const stylesheet = new CSSStyleSheet();
@@ -364,7 +374,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
364
374
  styleContainerNode.append(styleElm);
365
375
  }
366
376
  }
367
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
377
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
368
378
  styleContainerNode.insertBefore(styleElm, null);
369
379
  }
370
380
  }
@@ -389,23 +399,25 @@ var attachStyles = (hostRef) => {
389
399
  const scopeId2 = addStyle(
390
400
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
391
401
  cmpMeta);
392
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
402
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
393
403
  elm["s-sc"] = scopeId2;
394
404
  elm.classList.add(scopeId2 + "-h");
395
405
  }
396
406
  endAttachStyles();
397
407
  };
398
408
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
399
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
409
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
400
410
  if (oldValue !== newValue) {
401
411
  let isProp = isMemberInElement(elm, memberName);
402
412
  let ln = memberName.toLowerCase();
403
413
  if (memberName === "class") {
404
414
  const classList = elm.classList;
405
415
  const oldClasses = parseClassList(oldValue);
406
- const newClasses = parseClassList(newValue);
407
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
408
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
416
+ let newClasses = parseClassList(newValue);
417
+ {
418
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
419
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
420
+ }
409
421
  } else if (memberName === "style") {
410
422
  {
411
423
  for (const prop in oldValue) {
@@ -464,7 +476,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
464
476
  elm.setAttribute(memberName, n);
465
477
  }
466
478
  }
467
- } else {
479
+ } else if (elm[memberName] !== newValue) {
468
480
  elm[memberName] = newValue;
469
481
  }
470
482
  } catch (e) {
@@ -486,24 +498,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
486
498
  }
487
499
  };
488
500
  var parseClassListRegex = /\s/;
489
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
501
+ var parseClassList = (value) => {
502
+ if (typeof value === "object" && value && "baseVal" in value) {
503
+ value = value.baseVal;
504
+ }
505
+ if (!value || typeof value !== "string") {
506
+ return [];
507
+ }
508
+ return value.split(parseClassListRegex);
509
+ };
490
510
  var CAPTURE_EVENT_SUFFIX = "Capture";
491
511
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
492
512
 
493
513
  // src/runtime/vdom/update-element.ts
494
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
514
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
495
515
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
496
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
497
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
516
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
517
+ const newVnodeAttrs = newVnode.$attrs$ || {};
498
518
  {
499
519
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
500
520
  if (!(memberName in newVnodeAttrs)) {
501
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
521
+ setAccessor(
522
+ elm,
523
+ memberName,
524
+ oldVnodeAttrs[memberName],
525
+ void 0,
526
+ isSvgMode2,
527
+ newVnode.$flags$);
502
528
  }
503
529
  }
504
530
  }
505
531
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
506
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
532
+ setAccessor(
533
+ elm,
534
+ memberName,
535
+ oldVnodeAttrs[memberName],
536
+ newVnodeAttrs[memberName],
537
+ isSvgMode2,
538
+ newVnode.$flags$);
507
539
  }
508
540
  };
509
541
  function sortedAttrNames(attrNames) {
@@ -515,13 +547,10 @@ function sortedAttrNames(attrNames) {
515
547
  attrNames
516
548
  );
517
549
  }
518
-
519
- // src/runtime/vdom/vdom-render.ts
520
- var scopeId;
521
550
  var hostTagName;
522
551
  var useNativeShadowDom = false;
523
552
  var isSvgMode = false;
524
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
553
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
525
554
  const newVNode2 = newParentVNode.$children$[childIndex];
526
555
  let i2 = 0;
527
556
  let elm;
@@ -542,11 +571,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
542
571
  {
543
572
  updateElement(null, newVNode2, isSvgMode);
544
573
  }
545
- const rootNode = elm.getRootNode();
546
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
547
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
548
- elm.classList.add(elm["s-si"] = scopeId);
549
- }
550
574
  if (newVNode2.$children$) {
551
575
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
552
576
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -658,6 +682,9 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
658
682
  };
659
683
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
660
684
  if (leftVNode.$tag$ === rightVNode.$tag$) {
685
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
686
+ leftVNode.$key$ = rightVNode.$key$;
687
+ }
661
688
  return true;
662
689
  }
663
690
  return false;
@@ -704,8 +731,9 @@ var nullifyVNodeRefs = (vNode) => {
704
731
  }
705
732
  };
706
733
  var insertBefore = (parent, newNode, reference) => {
707
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
708
- return inserted;
734
+ {
735
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
736
+ }
709
737
  };
710
738
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
711
739
  const hostElm = hostRef.$hostElement$;
@@ -730,17 +758,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
730
758
  rootVnode.$flags$ |= 4 /* isHost */;
731
759
  hostRef.$vnode$ = rootVnode;
732
760
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
733
- {
734
- scopeId = hostElm["s-sc"];
735
- }
736
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
761
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
737
762
  patch(oldVNode, rootVnode, isInitialLoad);
738
763
  };
739
764
 
740
765
  // src/runtime/update-component.ts
741
766
  var attachToAncestor = (hostRef, ancestorComponent) => {
742
767
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
743
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
768
+ const index = ancestorComponent["s-p"].push(
769
+ new Promise(
770
+ (r) => hostRef.$onRenderResolve$ = () => {
771
+ ancestorComponent["s-p"].splice(index - 1, 1);
772
+ r();
773
+ }
774
+ )
775
+ );
744
776
  }
745
777
  };
746
778
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -767,7 +799,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
767
799
  let maybePromise;
768
800
  if (isInitialLoad) {
769
801
  {
770
- maybePromise = safeCall(instance, "componentWillLoad");
802
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
771
803
  }
772
804
  }
773
805
  endSchedule();
@@ -836,7 +868,7 @@ var postUpdateComponent = (hostRef) => {
836
868
  const instance = hostRef.$lazyInstance$ ;
837
869
  const ancestorComponent = hostRef.$ancestorComponent$;
838
870
  {
839
- safeCall(instance, "componentDidRender");
871
+ safeCall(instance, "componentDidRender", void 0, elm);
840
872
  }
841
873
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
842
874
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -844,7 +876,7 @@ var postUpdateComponent = (hostRef) => {
844
876
  addHydratedFlag(elm);
845
877
  }
846
878
  {
847
- safeCall(instance, "componentDidLoad");
879
+ safeCall(instance, "componentDidLoad", void 0, elm);
848
880
  }
849
881
  endPostUpdate();
850
882
  {
@@ -855,7 +887,7 @@ var postUpdateComponent = (hostRef) => {
855
887
  }
856
888
  } else {
857
889
  {
858
- safeCall(instance, "componentDidUpdate");
890
+ safeCall(instance, "componentDidUpdate", void 0, elm);
859
891
  }
860
892
  endPostUpdate();
861
893
  }
@@ -871,17 +903,14 @@ var postUpdateComponent = (hostRef) => {
871
903
  }
872
904
  };
873
905
  var appDidLoad = (who) => {
874
- {
875
- addHydratedFlag(doc.documentElement);
876
- }
877
906
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
878
907
  };
879
- var safeCall = (instance, method, arg) => {
908
+ var safeCall = (instance, method, arg, elm) => {
880
909
  if (instance && instance[method]) {
881
910
  try {
882
911
  return instance[method](arg);
883
912
  } catch (e) {
884
- consoleError(e);
913
+ consoleError(e, elm);
885
914
  }
886
915
  }
887
916
  return void 0;
@@ -940,15 +969,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
940
969
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
941
970
  members.map(([memberName, [memberFlags]]) => {
942
971
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
972
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
973
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
974
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
975
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
976
+ Object.defineProperty(prototype, memberName, {
977
+ get() {
978
+ {
979
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
980
+ return getValue(this, memberName);
981
+ }
982
+ const ref = getHostRef(this);
983
+ const instance = ref ? ref.$lazyInstance$ : prototype;
984
+ if (!instance) return;
985
+ return instance[memberName];
986
+ }
987
+ },
988
+ configurable: true,
989
+ enumerable: true
990
+ });
991
+ }
943
992
  Object.defineProperty(prototype, memberName, {
944
- get() {
945
- return getValue(this, memberName);
946
- },
947
993
  set(newValue) {
948
- setValue(this, memberName, newValue, cmpMeta);
949
- },
950
- configurable: true,
951
- enumerable: true
994
+ const ref = getHostRef(this);
995
+ if (origSetter) {
996
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
997
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
998
+ newValue = ref.$instanceValues$.get(memberName);
999
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1000
+ ref.$instanceValues$.set(memberName, currentValue);
1001
+ }
1002
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1003
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1004
+ setValue(this, memberName, newValue, cmpMeta);
1005
+ return;
1006
+ }
1007
+ {
1008
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1009
+ setValue(this, memberName, newValue, cmpMeta);
1010
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1011
+ ref.$onReadyPromise$.then(() => {
1012
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1013
+ ref.$lazyInstance$[memberName] = newValue;
1014
+ }
1015
+ });
1016
+ }
1017
+ return;
1018
+ }
1019
+ const setterSetVal = () => {
1020
+ const currentValue = ref.$lazyInstance$[memberName];
1021
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1022
+ ref.$instanceValues$.set(memberName, currentValue);
1023
+ }
1024
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1025
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1026
+ };
1027
+ if (ref.$lazyInstance$) {
1028
+ setterSetVal();
1029
+ } else {
1030
+ ref.$onReadyPromise$.then(() => setterSetVal());
1031
+ }
1032
+ }
1033
+ }
952
1034
  });
953
1035
  }
954
1036
  });
@@ -958,7 +1040,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
958
1040
  plt.jmp(() => {
959
1041
  var _a2;
960
1042
  const propName = attrNameToPropName.get(attrName);
961
- if (this.hasOwnProperty(propName)) {
1043
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
962
1044
  newValue = this[propName];
963
1045
  delete this[propName];
964
1046
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -978,7 +1060,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
978
1060
  }
979
1061
  return;
980
1062
  }
981
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1063
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1064
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1065
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1066
+ this[propName] = newValue;
1067
+ }
982
1068
  });
983
1069
  };
984
1070
  Cstr.observedAttributes = Array.from(
@@ -1007,7 +1093,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1007
1093
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1008
1094
  const bundleId = cmpMeta.$lazyBundleId$;
1009
1095
  if (bundleId) {
1010
- const CstrImport = loadModule(cmpMeta);
1096
+ const CstrImport = loadModule(cmpMeta, hostRef);
1011
1097
  if (CstrImport && "then" in CstrImport) {
1012
1098
  const endLoad = uniqueTime();
1013
1099
  Cstr = await CstrImport;
@@ -1032,7 +1118,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1032
1118
  try {
1033
1119
  new Cstr(hostRef);
1034
1120
  } catch (e) {
1035
- consoleError(e);
1121
+ consoleError(e, elm);
1036
1122
  }
1037
1123
  {
1038
1124
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1041,7 +1127,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1041
1127
  hostRef.$flags$ |= 128 /* isWatchReady */;
1042
1128
  }
1043
1129
  endNewInstance();
1044
- fireConnectedCallback(hostRef.$lazyInstance$);
1130
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1045
1131
  } else {
1046
1132
  Cstr = elm.constructor;
1047
1133
  const cmpTag = elm.localName;
@@ -1068,9 +1154,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1068
1154
  schedule();
1069
1155
  }
1070
1156
  };
1071
- var fireConnectedCallback = (instance) => {
1157
+ var fireConnectedCallback = (instance, elm) => {
1072
1158
  {
1073
- safeCall(instance, "connectedCallback");
1159
+ safeCall(instance, "connectedCallback", void 0, elm);
1074
1160
  }
1075
1161
  };
1076
1162
 
@@ -1105,28 +1191,34 @@ var connectedCallback = (elm) => {
1105
1191
  }
1106
1192
  } else {
1107
1193
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1108
- fireConnectedCallback(hostRef.$lazyInstance$);
1194
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1109
1195
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1110
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1196
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1111
1197
  }
1112
1198
  }
1113
1199
  endConnected();
1114
1200
  }
1115
1201
  };
1116
- var disconnectInstance = (instance) => {
1202
+ var disconnectInstance = (instance, elm) => {
1117
1203
  {
1118
- safeCall(instance, "disconnectedCallback");
1204
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1119
1205
  }
1120
1206
  };
1121
1207
  var disconnectedCallback = async (elm) => {
1122
1208
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1123
1209
  const hostRef = getHostRef(elm);
1124
1210
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1125
- disconnectInstance(hostRef.$lazyInstance$);
1211
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1126
1212
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1127
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1213
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1128
1214
  }
1129
1215
  }
1216
+ if (rootAppliedStyles.has(elm)) {
1217
+ rootAppliedStyles.delete(elm);
1218
+ }
1219
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1220
+ rootAppliedStyles.delete(elm.shadowRoot);
1221
+ }
1130
1222
  };
1131
1223
 
1132
1224
  // src/runtime/bootstrap-lazy.ts
@@ -1207,6 +1299,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1207
1299
  }
1208
1300
  disconnectedCallback() {
1209
1301
  plt.jmp(() => disconnectedCallback(this));
1302
+ plt.raf(() => {
1303
+ var _a3;
1304
+ const hostRef = getHostRef(this);
1305
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1306
+ if (i2 > -1) {
1307
+ deferredConnectedCallbacks.splice(i2, 1);
1308
+ }
1309
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1310
+ delete hostRef.$vnode$.$elm$;
1311
+ }
1312
+ });
1210
1313
  }
1211
1314
  componentOnReady() {
1212
1315
  return getHostRef(this).$onReadyPromise$;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e91cd3ca.js');
5
+ const index = require('./index-bfd21506.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["general-tutorial-slider.cjs",[[1,"general-tutorial-slider",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"cmsEndpoint":[513,"cms-endpoint"],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"showSliderArrowsMobile":[516,"show-slider-arrows-mobile"],"enableAutoScroll":[516,"enable-auto-scroll"],"intervalPeriod":[514,"interval-period"],"scrollItems":[520,"scroll-items"],"itemsPerPage":[514,"items-per-page"],"hasErrors":[32],"limitStylingAppends":[32],"isLoading":[32],"activeIndex":[32],"tutorialElementWidth":[32]},null,{"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"]}]]]], options);
11
+ return index.bootstrapLazy([["general-tutorial-slider.cjs",[[1,"general-tutorial-slider",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"cmsEndpoint":[513,"cms-endpoint"],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"showSliderArrowsMobile":[516,"show-slider-arrows-mobile"],"enableAutoScroll":[516,"enable-auto-scroll"],"intervalPeriod":[514,"interval-period"],"scrollItems":[520,"scroll-items"],"itemsPerPage":[514,"items-per-page"],"hasErrors":[32],"isLoading":[32],"activeIndex":[32],"tutorialElementWidth":[32]},null,{"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.26.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],