@everymatrix/general-tutorial-slider 1.54.12 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/cjs/general-tutorial-slider.cjs.entry.js +19 -54
  2. package/dist/cjs/general-tutorial-slider.cjs.js +2 -2
  3. package/dist/cjs/{index-bfd21506.js → index-e91cd3ca.js} +77 -180
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/general-tutorial-slider/general-tutorial-slider.js +18 -79
  7. package/dist/esm/general-tutorial-slider.entry.js +19 -54
  8. package/dist/esm/general-tutorial-slider.js +3 -3
  9. package/dist/esm/{index-b8731ee9.js → index-8f6f886a.js} +77 -180
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/general-tutorial-slider/general-tutorial-slider.esm.js +1 -1
  12. package/dist/general-tutorial-slider/p-61e877f0.entry.js +1 -0
  13. package/dist/general-tutorial-slider/p-f4302c55.js +2 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.d.ts +2 -0
  15. 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 +2 -0
  16. package/package.json +1 -1
  17. package/dist/general-tutorial-slider/p-a5407119.entry.js +0 -1
  18. package/dist/general-tutorial-slider/p-e2d02089.js +0 -2
  19. 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 +0 -2
  20. 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 +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-bfd21506.js');
5
+ const index = require('./index-e91cd3ca.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const TRANSLATIONS = {
@@ -90,59 +90,6 @@ 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;
146
93
  this.userAgent = window.navigator.userAgent;
147
94
  this.isMobile = isMobile(this.userAgent);
148
95
  this.allElementsWidth = 0;
@@ -174,6 +121,24 @@ const GeneralTutorialSlider = class {
174
121
  console.log('error ', err);
175
122
  });
176
123
  };
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;
177
142
  }
178
143
  watchEndpoint(newValue, oldValue) {
179
144
  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-bfd21506.js');
5
+ const index = require('./index-e91cd3ca.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.22.3 | 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,27 +21,19 @@ 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, 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 };
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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.22.3 | 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
40
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
41
35
  var getHostRef = (ref) => hostRefs.get(ref);
42
- var registerInstance = (lazyInstance, hostRef) => {
43
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
45
37
  var registerHost = (hostElement, cmpMeta) => {
46
38
  const hostRef = {
47
39
  $flags$: 0,
@@ -54,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
54
46
  hostElement["s-p"] = [];
55
47
  hostElement["s-rc"] = [];
56
48
  }
57
- const ref = hostRefs.set(hostElement, hostRef);
58
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
59
50
  };
60
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
61
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -92,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
92
83
  /* webpackExclude: /\.system\.entry\.js$/ */
93
84
  /* webpackMode: "lazy" */
94
85
  `./${bundleId}.entry.js${""}`
95
- )); }).then(
96
- (importedModule) => {
97
- {
98
- cmpModules.set(bundleId, importedModule);
99
- }
100
- return importedModule[exportName];
101
- },
102
- (e) => {
103
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
104
89
  }
105
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
106
92
  };
107
93
 
108
94
  // src/client/client-style.ts
109
95
  var styles = /* @__PURE__ */ new Map();
110
- var HYDRATED_STYLE_ID = "sty-id";
111
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
112
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
113
98
  var win = typeof window !== "undefined" ? window : {};
@@ -165,6 +150,14 @@ var flush = () => {
165
150
  };
166
151
  var nextTick = (cb) => promiseResolve().then(cb);
167
152
  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;
168
161
  var isComplexType = (o) => {
169
162
  o = typeof o;
170
163
  return o === "object" || o === "function";
@@ -343,7 +336,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
343
336
  }
344
337
  if (!appliedStyles.has(scopeId2)) {
345
338
  {
346
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
339
+ styleElm = doc.createElement("style");
347
340
  styleElm.innerHTML = style;
348
341
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
349
342
  if (nonce != null) {
@@ -353,10 +346,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
353
346
  if (styleContainerNode.nodeName === "HEAD") {
354
347
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
355
348
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
356
- styleContainerNode.insertBefore(
357
- styleElm,
358
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
359
- );
349
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
360
350
  } else if ("host" in styleContainerNode) {
361
351
  if (supportsConstructableStylesheets) {
362
352
  const stylesheet = new CSSStyleSheet();
@@ -374,7 +364,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
374
364
  styleContainerNode.append(styleElm);
375
365
  }
376
366
  }
377
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
367
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
378
368
  styleContainerNode.insertBefore(styleElm, null);
379
369
  }
380
370
  }
@@ -399,25 +389,23 @@ var attachStyles = (hostRef) => {
399
389
  const scopeId2 = addStyle(
400
390
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
401
391
  cmpMeta);
402
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
392
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
403
393
  elm["s-sc"] = scopeId2;
404
394
  elm.classList.add(scopeId2 + "-h");
405
395
  }
406
396
  endAttachStyles();
407
397
  };
408
398
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
409
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
399
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
410
400
  if (oldValue !== newValue) {
411
401
  let isProp = isMemberInElement(elm, memberName);
412
402
  let ln = memberName.toLowerCase();
413
403
  if (memberName === "class") {
414
404
  const classList = elm.classList;
415
405
  const oldClasses = parseClassList(oldValue);
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
- }
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)));
421
409
  } else if (memberName === "style") {
422
410
  {
423
411
  for (const prop in oldValue) {
@@ -476,7 +464,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
476
464
  elm.setAttribute(memberName, n);
477
465
  }
478
466
  }
479
- } else if (elm[memberName] !== newValue) {
467
+ } else {
480
468
  elm[memberName] = newValue;
481
469
  }
482
470
  } catch (e) {
@@ -498,44 +486,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
498
486
  }
499
487
  };
500
488
  var parseClassListRegex = /\s/;
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
- };
489
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
510
490
  var CAPTURE_EVENT_SUFFIX = "Capture";
511
491
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
512
492
 
513
493
  // src/runtime/vdom/update-element.ts
514
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
494
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
515
495
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
516
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
517
- const newVnodeAttrs = newVnode.$attrs$ || {};
496
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
497
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
518
498
  {
519
499
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
520
500
  if (!(memberName in newVnodeAttrs)) {
521
- setAccessor(
522
- elm,
523
- memberName,
524
- oldVnodeAttrs[memberName],
525
- void 0,
526
- isSvgMode2,
527
- newVnode.$flags$);
501
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
528
502
  }
529
503
  }
530
504
  }
531
505
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
532
- setAccessor(
533
- elm,
534
- memberName,
535
- oldVnodeAttrs[memberName],
536
- newVnodeAttrs[memberName],
537
- isSvgMode2,
538
- newVnode.$flags$);
506
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
539
507
  }
540
508
  };
541
509
  function sortedAttrNames(attrNames) {
@@ -547,10 +515,13 @@ function sortedAttrNames(attrNames) {
547
515
  attrNames
548
516
  );
549
517
  }
518
+
519
+ // src/runtime/vdom/vdom-render.ts
520
+ var scopeId;
550
521
  var hostTagName;
551
522
  var useNativeShadowDom = false;
552
523
  var isSvgMode = false;
553
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
524
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
554
525
  const newVNode2 = newParentVNode.$children$[childIndex];
555
526
  let i2 = 0;
556
527
  let elm;
@@ -571,6 +542,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
571
542
  {
572
543
  updateElement(null, newVNode2, isSvgMode);
573
544
  }
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
+ }
574
550
  if (newVNode2.$children$) {
575
551
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
576
552
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -682,9 +658,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
682
658
  };
683
659
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
684
660
  if (leftVNode.$tag$ === rightVNode.$tag$) {
685
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
686
- leftVNode.$key$ = rightVNode.$key$;
687
- }
688
661
  return true;
689
662
  }
690
663
  return false;
@@ -731,9 +704,8 @@ var nullifyVNodeRefs = (vNode) => {
731
704
  }
732
705
  };
733
706
  var insertBefore = (parent, newNode, reference) => {
734
- {
735
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
736
- }
707
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
708
+ return inserted;
737
709
  };
738
710
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
739
711
  const hostElm = hostRef.$hostElement$;
@@ -758,21 +730,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
758
730
  rootVnode.$flags$ |= 4 /* isHost */;
759
731
  hostRef.$vnode$ = rootVnode;
760
732
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
761
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
733
+ {
734
+ scopeId = hostElm["s-sc"];
735
+ }
736
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
762
737
  patch(oldVNode, rootVnode, isInitialLoad);
763
738
  };
764
739
 
765
740
  // src/runtime/update-component.ts
766
741
  var attachToAncestor = (hostRef, ancestorComponent) => {
767
742
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
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
- );
743
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
776
744
  }
777
745
  };
778
746
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -799,7 +767,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
799
767
  let maybePromise;
800
768
  if (isInitialLoad) {
801
769
  {
802
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
770
+ maybePromise = safeCall(instance, "componentWillLoad");
803
771
  }
804
772
  }
805
773
  endSchedule();
@@ -868,7 +836,7 @@ var postUpdateComponent = (hostRef) => {
868
836
  const instance = hostRef.$lazyInstance$ ;
869
837
  const ancestorComponent = hostRef.$ancestorComponent$;
870
838
  {
871
- safeCall(instance, "componentDidRender", void 0, elm);
839
+ safeCall(instance, "componentDidRender");
872
840
  }
873
841
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
874
842
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -876,7 +844,7 @@ var postUpdateComponent = (hostRef) => {
876
844
  addHydratedFlag(elm);
877
845
  }
878
846
  {
879
- safeCall(instance, "componentDidLoad", void 0, elm);
847
+ safeCall(instance, "componentDidLoad");
880
848
  }
881
849
  endPostUpdate();
882
850
  {
@@ -887,7 +855,7 @@ var postUpdateComponent = (hostRef) => {
887
855
  }
888
856
  } else {
889
857
  {
890
- safeCall(instance, "componentDidUpdate", void 0, elm);
858
+ safeCall(instance, "componentDidUpdate");
891
859
  }
892
860
  endPostUpdate();
893
861
  }
@@ -903,14 +871,17 @@ var postUpdateComponent = (hostRef) => {
903
871
  }
904
872
  };
905
873
  var appDidLoad = (who) => {
874
+ {
875
+ addHydratedFlag(doc.documentElement);
876
+ }
906
877
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
907
878
  };
908
- var safeCall = (instance, method, arg, elm) => {
879
+ var safeCall = (instance, method, arg) => {
909
880
  if (instance && instance[method]) {
910
881
  try {
911
882
  return instance[method](arg);
912
883
  } catch (e) {
913
- consoleError(e, elm);
884
+ consoleError(e);
914
885
  }
915
886
  }
916
887
  return void 0;
@@ -969,68 +940,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
969
940
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
970
941
  members.map(([memberName, [memberFlags]]) => {
971
942
  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
- }
992
943
  Object.defineProperty(prototype, memberName, {
944
+ get() {
945
+ return getValue(this, memberName);
946
+ },
993
947
  set(newValue) {
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
- }
948
+ setValue(this, memberName, newValue, cmpMeta);
949
+ },
950
+ configurable: true,
951
+ enumerable: true
1034
952
  });
1035
953
  }
1036
954
  });
@@ -1040,7 +958,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1040
958
  plt.jmp(() => {
1041
959
  var _a2;
1042
960
  const propName = attrNameToPropName.get(attrName);
1043
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
961
+ if (this.hasOwnProperty(propName)) {
1044
962
  newValue = this[propName];
1045
963
  delete this[propName];
1046
964
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1060,11 +978,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1060
978
  }
1061
979
  return;
1062
980
  }
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
- }
981
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1068
982
  });
1069
983
  };
1070
984
  Cstr.observedAttributes = Array.from(
@@ -1093,7 +1007,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1093
1007
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1094
1008
  const bundleId = cmpMeta.$lazyBundleId$;
1095
1009
  if (bundleId) {
1096
- const CstrImport = loadModule(cmpMeta, hostRef);
1010
+ const CstrImport = loadModule(cmpMeta);
1097
1011
  if (CstrImport && "then" in CstrImport) {
1098
1012
  const endLoad = uniqueTime();
1099
1013
  Cstr = await CstrImport;
@@ -1118,7 +1032,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1118
1032
  try {
1119
1033
  new Cstr(hostRef);
1120
1034
  } catch (e) {
1121
- consoleError(e, elm);
1035
+ consoleError(e);
1122
1036
  }
1123
1037
  {
1124
1038
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1127,7 +1041,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1127
1041
  hostRef.$flags$ |= 128 /* isWatchReady */;
1128
1042
  }
1129
1043
  endNewInstance();
1130
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1044
+ fireConnectedCallback(hostRef.$lazyInstance$);
1131
1045
  } else {
1132
1046
  Cstr = elm.constructor;
1133
1047
  const cmpTag = elm.localName;
@@ -1154,9 +1068,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1154
1068
  schedule();
1155
1069
  }
1156
1070
  };
1157
- var fireConnectedCallback = (instance, elm) => {
1071
+ var fireConnectedCallback = (instance) => {
1158
1072
  {
1159
- safeCall(instance, "connectedCallback", void 0, elm);
1073
+ safeCall(instance, "connectedCallback");
1160
1074
  }
1161
1075
  };
1162
1076
 
@@ -1191,34 +1105,28 @@ var connectedCallback = (elm) => {
1191
1105
  }
1192
1106
  } else {
1193
1107
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1194
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1108
+ fireConnectedCallback(hostRef.$lazyInstance$);
1195
1109
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1196
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1110
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1197
1111
  }
1198
1112
  }
1199
1113
  endConnected();
1200
1114
  }
1201
1115
  };
1202
- var disconnectInstance = (instance, elm) => {
1116
+ var disconnectInstance = (instance) => {
1203
1117
  {
1204
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1118
+ safeCall(instance, "disconnectedCallback");
1205
1119
  }
1206
1120
  };
1207
1121
  var disconnectedCallback = async (elm) => {
1208
1122
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1209
1123
  const hostRef = getHostRef(elm);
1210
1124
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1211
- disconnectInstance(hostRef.$lazyInstance$, elm);
1125
+ disconnectInstance(hostRef.$lazyInstance$);
1212
1126
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1213
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1127
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1214
1128
  }
1215
1129
  }
1216
- if (rootAppliedStyles.has(elm)) {
1217
- rootAppliedStyles.delete(elm);
1218
- }
1219
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1220
- rootAppliedStyles.delete(elm.shadowRoot);
1221
- }
1222
1130
  };
1223
1131
 
1224
1132
  // src/runtime/bootstrap-lazy.ts
@@ -1299,17 +1207,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1299
1207
  }
1300
1208
  disconnectedCallback() {
1301
1209
  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
- });
1313
1210
  }
1314
1211
  componentOnReady() {
1315
1212
  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-bfd21506.js');
5
+ const index = require('./index-e91cd3ca.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.26.0",
7
+ "version": "4.22.3",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],