@everymatrix/general-tutorial-slider 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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e91cd3ca.js');
5
+ const index = require('./index-24edb761.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const TRANSLATIONS = {
@@ -90,6 +90,59 @@ const GeneralTutorialSliderStyle0 = generalTutorialSliderCss;
90
90
  const GeneralTutorialSlider = class {
91
91
  constructor(hostRef) {
92
92
  index.registerInstance(this, hostRef);
93
+ /**
94
+ * Client custom styling via inline style
95
+ */
96
+ this.clientStyling = '';
97
+ /**
98
+ * Client custom styling via url
99
+ */
100
+ this.clientStylingUrl = '';
101
+ /**
102
+ * Language of the widget
103
+ */
104
+ this.language = 'en';
105
+ /**
106
+ * User roles
107
+ */
108
+ this.userRoles = 'everyone';
109
+ /**
110
+ * CMS Endpoint stage
111
+ */
112
+ this.cmsEnv = 'stage';
113
+ /**
114
+ * Show slider dots
115
+ */
116
+ this.showSliderDots = true;
117
+ /**
118
+ * Show slider navigate arrows
119
+ */
120
+ this.showSliderArrows = true;
121
+ /**
122
+ * Show slider navigate arrows on mobile
123
+ */
124
+ this.showSliderArrowsMobile = false;
125
+ /**
126
+ * Auto-scroll will only function if it is set to true, and otherwise it will be ignored.
127
+ */
128
+ this.enableAutoScroll = false;
129
+ /**
130
+ * Set interval period for slider
131
+ */
132
+ this.intervalPeriod = 5000;
133
+ /**
134
+ * Set the number of slides you wish to display.
135
+ */
136
+ this.scrollItems = 1;
137
+ /**
138
+ * Set the number of slides you wish to display.
139
+ */
140
+ this.itemsPerPage = 1;
141
+ this.hasErrors = false;
142
+ this.limitStylingAppends = false;
143
+ this.isLoading = true;
144
+ this.activeIndex = 0;
145
+ this.tutorialElementWidth = 0;
93
146
  this.userAgent = window.navigator.userAgent;
94
147
  this.isMobile = isMobile(this.userAgent);
95
148
  this.allElementsWidth = 0;
@@ -121,24 +174,6 @@ const GeneralTutorialSlider = class {
121
174
  console.log('error ', err);
122
175
  });
123
176
  };
124
- this.clientStyling = '';
125
- this.clientStylingUrl = '';
126
- this.language = 'en';
127
- this.cmsEndpoint = undefined;
128
- this.userRoles = 'everyone';
129
- this.cmsEnv = 'stage';
130
- this.showSliderDots = true;
131
- this.showSliderArrows = true;
132
- this.showSliderArrowsMobile = false;
133
- this.enableAutoScroll = false;
134
- this.intervalPeriod = 5000;
135
- this.scrollItems = 1;
136
- this.itemsPerPage = 1;
137
- this.hasErrors = false;
138
- this.limitStylingAppends = false;
139
- this.isLoading = true;
140
- this.activeIndex = 0;
141
- this.tutorialElementWidth = 0;
142
177
  }
143
178
  watchEndpoint(newValue, oldValue) {
144
179
  if (newValue && newValue != oldValue && this.cmsEndpoint) {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e91cd3ca.js');
5
+ const index = require('./index-24edb761.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('general-tutorial-slider.cjs.js', document.baseURI).href));
@@ -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.25.1 | 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();
@@ -396,16 +406,18 @@ var attachStyles = (hostRef) => {
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,9 +758,6 @@ 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
761
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
737
762
  patch(oldVNode, rootVnode, isInitialLoad);
738
763
  };
@@ -740,7 +765,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
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
  }
@@ -876,12 +908,12 @@ var appDidLoad = (who) => {
876
908
  }
877
909
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
878
910
  };
879
- var safeCall = (instance, method, arg) => {
911
+ var safeCall = (instance, method, arg, elm) => {
880
912
  if (instance && instance[method]) {
881
913
  try {
882
914
  return instance[method](arg);
883
915
  } catch (e) {
884
- consoleError(e);
916
+ consoleError(e, elm);
885
917
  }
886
918
  }
887
919
  return void 0;
@@ -940,15 +972,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
940
972
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
941
973
  members.map(([memberName, [memberFlags]]) => {
942
974
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
975
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
976
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
977
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
978
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
979
+ Object.defineProperty(prototype, memberName, {
980
+ get() {
981
+ {
982
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
983
+ return getValue(this, memberName);
984
+ }
985
+ const ref = getHostRef(this);
986
+ const instance = ref ? ref.$lazyInstance$ : prototype;
987
+ if (!instance) return;
988
+ return instance[memberName];
989
+ }
990
+ },
991
+ configurable: true,
992
+ enumerable: true
993
+ });
994
+ }
943
995
  Object.defineProperty(prototype, memberName, {
944
- get() {
945
- return getValue(this, memberName);
946
- },
947
996
  set(newValue) {
948
- setValue(this, memberName, newValue, cmpMeta);
949
- },
950
- configurable: true,
951
- enumerable: true
997
+ const ref = getHostRef(this);
998
+ if (origSetter) {
999
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1000
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1001
+ newValue = ref.$instanceValues$.get(memberName);
1002
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1003
+ ref.$instanceValues$.set(memberName, currentValue);
1004
+ }
1005
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1006
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1007
+ setValue(this, memberName, newValue, cmpMeta);
1008
+ return;
1009
+ }
1010
+ {
1011
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1012
+ setValue(this, memberName, newValue, cmpMeta);
1013
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1014
+ ref.$onReadyPromise$.then(() => {
1015
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1016
+ ref.$lazyInstance$[memberName] = newValue;
1017
+ }
1018
+ });
1019
+ }
1020
+ return;
1021
+ }
1022
+ const setterSetVal = () => {
1023
+ const currentValue = ref.$lazyInstance$[memberName];
1024
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1025
+ ref.$instanceValues$.set(memberName, currentValue);
1026
+ }
1027
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1028
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1029
+ };
1030
+ if (ref.$lazyInstance$) {
1031
+ setterSetVal();
1032
+ } else {
1033
+ ref.$onReadyPromise$.then(() => setterSetVal());
1034
+ }
1035
+ }
1036
+ }
952
1037
  });
953
1038
  }
954
1039
  });
@@ -958,7 +1043,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
958
1043
  plt.jmp(() => {
959
1044
  var _a2;
960
1045
  const propName = attrNameToPropName.get(attrName);
961
- if (this.hasOwnProperty(propName)) {
1046
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
962
1047
  newValue = this[propName];
963
1048
  delete this[propName];
964
1049
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -978,7 +1063,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
978
1063
  }
979
1064
  return;
980
1065
  }
981
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1066
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1067
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1068
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1069
+ this[propName] = newValue;
1070
+ }
982
1071
  });
983
1072
  };
984
1073
  Cstr.observedAttributes = Array.from(
@@ -1005,9 +1094,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1005
1094
  let Cstr;
1006
1095
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1007
1096
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1008
- const bundleId = cmpMeta.$lazyBundleId$;
1009
- if (bundleId) {
1010
- const CstrImport = loadModule(cmpMeta);
1097
+ {
1098
+ const CstrImport = loadModule(cmpMeta, hostRef);
1011
1099
  if (CstrImport && "then" in CstrImport) {
1012
1100
  const endLoad = uniqueTime();
1013
1101
  Cstr = await CstrImport;
@@ -1032,7 +1120,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1032
1120
  try {
1033
1121
  new Cstr(hostRef);
1034
1122
  } catch (e) {
1035
- consoleError(e);
1123
+ consoleError(e, elm);
1036
1124
  }
1037
1125
  {
1038
1126
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1041,11 +1129,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1041
1129
  hostRef.$flags$ |= 128 /* isWatchReady */;
1042
1130
  }
1043
1131
  endNewInstance();
1044
- fireConnectedCallback(hostRef.$lazyInstance$);
1045
- } else {
1046
- Cstr = elm.constructor;
1047
- const cmpTag = elm.localName;
1048
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1132
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1049
1133
  }
1050
1134
  if (Cstr && Cstr.style) {
1051
1135
  let style;
@@ -1068,9 +1152,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1068
1152
  schedule();
1069
1153
  }
1070
1154
  };
1071
- var fireConnectedCallback = (instance) => {
1155
+ var fireConnectedCallback = (instance, elm) => {
1072
1156
  {
1073
- safeCall(instance, "connectedCallback");
1157
+ safeCall(instance, "connectedCallback", void 0, elm);
1074
1158
  }
1075
1159
  };
1076
1160
 
@@ -1105,28 +1189,34 @@ var connectedCallback = (elm) => {
1105
1189
  }
1106
1190
  } else {
1107
1191
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1108
- fireConnectedCallback(hostRef.$lazyInstance$);
1192
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1109
1193
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1110
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1194
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1111
1195
  }
1112
1196
  }
1113
1197
  endConnected();
1114
1198
  }
1115
1199
  };
1116
- var disconnectInstance = (instance) => {
1200
+ var disconnectInstance = (instance, elm) => {
1117
1201
  {
1118
- safeCall(instance, "disconnectedCallback");
1202
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1119
1203
  }
1120
1204
  };
1121
1205
  var disconnectedCallback = async (elm) => {
1122
1206
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1123
1207
  const hostRef = getHostRef(elm);
1124
1208
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1125
- disconnectInstance(hostRef.$lazyInstance$);
1209
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1126
1210
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1127
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1211
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1128
1212
  }
1129
1213
  }
1214
+ if (rootAppliedStyles.has(elm)) {
1215
+ rootAppliedStyles.delete(elm);
1216
+ }
1217
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1218
+ rootAppliedStyles.delete(elm.shadowRoot);
1219
+ }
1130
1220
  };
1131
1221
 
1132
1222
  // src/runtime/bootstrap-lazy.ts
@@ -1207,6 +1297,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1207
1297
  }
1208
1298
  disconnectedCallback() {
1209
1299
  plt.jmp(() => disconnectedCallback(this));
1300
+ plt.raf(() => {
1301
+ var _a3;
1302
+ const hostRef = getHostRef(this);
1303
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1304
+ delete hostRef.$vnode$.$elm$;
1305
+ }
1306
+ });
1210
1307
  }
1211
1308
  componentOnReady() {
1212
1309
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e91cd3ca.js');
5
+ const index = require('./index-24edb761.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],