@everymatrix/general-about-us 1.56.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/cjs/general-about-us.cjs.entry.js +11 -24
  2. package/dist/cjs/general-about-us.cjs.js +2 -2
  3. package/dist/cjs/{index-e275fea3.js → index-8d5dc10c.js} +69 -204
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/general-about-us/general-about-us.js +10 -37
  7. package/dist/esm/general-about-us.entry.js +11 -24
  8. package/dist/esm/general-about-us.js +3 -3
  9. package/dist/esm/{index-5f2a97a2.js → index-894e6ee1.js} +69 -204
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/general-about-us/general-about-us.esm.js +1 -1
  12. package/dist/general-about-us/p-64274deb.js +2 -0
  13. package/dist/general-about-us/p-d99428a7.entry.js +1 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/general-about-us/p-73146ff7.entry.js +0 -1
  19. package/dist/general-about-us/p-c303f99c.js +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-about-us/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-about-us/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-about-us/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-about-us/.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-e275fea3.js');
5
+ const index = require('./index-8d5dc10c.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const TRANSLATIONS = {
@@ -158,29 +158,6 @@ const GeneralAboutUsStyle0 = generalAboutUsCss;
158
158
  const GeneralAboutUs = class {
159
159
  constructor(hostRef) {
160
160
  index.registerInstance(this, hostRef);
161
- /**
162
- * Language of the widget
163
- */
164
- this.language = 'en';
165
- /**
166
- * User roles
167
- */
168
- this.userRoles = 'everyone';
169
- /**
170
- * CMS Endpoint stage
171
- */
172
- this.cmsEnv = 'stage';
173
- /**
174
- * Client custom styling via inline style
175
- */
176
- this.clientStyling = '';
177
- /**
178
- * Client custom styling via url
179
- */
180
- this.clientStylingUrl = '';
181
- this.hasErrors = false;
182
- this.isLoading = true;
183
- this.device = '';
184
161
  this.handleClick = (url, target, location, isExternal) => {
185
162
  window.postMessage({ type: 'NavigateTo', path: url, target: target, locations: location, externalLink: isExternal || false }, window.location.href);
186
163
  // @ts-ignore Analytics event
@@ -221,6 +198,16 @@ const GeneralAboutUs = class {
221
198
  }
222
199
  return index.h("div", { class: "Title" }, index.h("span", { class: "FirstWord" }, firstWord, " "), index.h("span", null, restOfTitle));
223
200
  };
201
+ this.cmsEndpoint = undefined;
202
+ this.language = 'en';
203
+ this.userRoles = 'everyone';
204
+ this.cmsEnv = 'stage';
205
+ this.mbSource = undefined;
206
+ this.clientStyling = '';
207
+ this.clientStylingUrl = '';
208
+ this.hasErrors = false;
209
+ this.isLoading = true;
210
+ this.device = '';
224
211
  }
225
212
  watchEndpoint(newValue, oldValue) {
226
213
  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-e275fea3.js');
5
+ const index = require('./index-8d5dc10c.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.19.2 | 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-about-us.cjs.js', document.baseURI).href));
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'general-about-us';
24
- const BUILD = /* general-about-us */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* general-about-us */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: 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.19.2 | 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/client/client-host-ref.ts
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -161,6 +150,12 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
+
154
+ // src/utils/constants.ts
155
+ var EMPTY_OBJ = {};
156
+
157
+ // src/utils/helpers.ts
158
+ var isDef = (v) => v != null;
164
159
  var isComplexType = (o) => {
165
160
  o = typeof o;
166
161
  return o === "object" || o === "function";
@@ -332,40 +327,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
332
327
  }
333
328
  if (!appliedStyles.has(scopeId2)) {
334
329
  {
335
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
330
+ styleElm = doc.createElement("style");
336
331
  styleElm.innerHTML = style;
337
332
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
338
333
  if (nonce != null) {
339
334
  styleElm.setAttribute("nonce", nonce);
340
335
  }
341
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
342
- if (styleContainerNode.nodeName === "HEAD") {
343
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
344
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
345
- styleContainerNode.insertBefore(
346
- styleElm,
347
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
348
- );
349
- } else if ("host" in styleContainerNode) {
350
- if (supportsConstructableStylesheets) {
351
- const stylesheet = new CSSStyleSheet();
352
- stylesheet.replaceSync(style);
353
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
354
- } else {
355
- const existingStyleContainer = styleContainerNode.querySelector("style");
356
- if (existingStyleContainer) {
357
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
358
- } else {
359
- styleContainerNode.prepend(styleElm);
360
- }
361
- }
362
- } else {
363
- styleContainerNode.append(styleElm);
364
- }
365
- }
366
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
367
- styleContainerNode.insertBefore(styleElm, null);
368
- }
336
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
369
337
  }
370
338
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
371
339
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -388,25 +356,23 @@ var attachStyles = (hostRef) => {
388
356
  const scopeId2 = addStyle(
389
357
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
390
358
  cmpMeta);
391
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
359
+ if (flags & 10 /* needsScopedEncapsulation */) {
392
360
  elm["s-sc"] = scopeId2;
393
361
  elm.classList.add(scopeId2 + "-h");
394
362
  }
395
363
  endAttachStyles();
396
364
  };
397
365
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
398
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
366
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
399
367
  if (oldValue !== newValue) {
400
368
  let isProp = isMemberInElement(elm, memberName);
401
369
  let ln = memberName.toLowerCase();
402
370
  if (memberName === "class") {
403
371
  const classList = elm.classList;
404
372
  const oldClasses = parseClassList(oldValue);
405
- let newClasses = parseClassList(newValue);
406
- {
407
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
408
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
409
- }
373
+ const newClasses = parseClassList(newValue);
374
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
375
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
410
376
  } else if (memberName === "style") {
411
377
  {
412
378
  for (const prop in oldValue) {
@@ -459,13 +425,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
459
425
  if (memberName === "list") {
460
426
  isProp = false;
461
427
  } else if (oldValue == null || elm[memberName] != n) {
462
- if (typeof elm.__lookupSetter__(memberName) === "function") {
463
- elm[memberName] = n;
464
- } else {
465
- elm.setAttribute(memberName, n);
466
- }
428
+ elm[memberName] = n;
467
429
  }
468
- } else if (elm[memberName] !== newValue) {
430
+ } else {
469
431
  elm[memberName] = newValue;
470
432
  }
471
433
  } catch (e) {
@@ -487,44 +449,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
487
449
  }
488
450
  };
489
451
  var parseClassListRegex = /\s/;
490
- var parseClassList = (value) => {
491
- if (typeof value === "object" && value && "baseVal" in value) {
492
- value = value.baseVal;
493
- }
494
- if (!value || typeof value !== "string") {
495
- return [];
496
- }
497
- return value.split(parseClassListRegex);
498
- };
452
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
499
453
  var CAPTURE_EVENT_SUFFIX = "Capture";
500
454
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
501
455
 
502
456
  // src/runtime/vdom/update-element.ts
503
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
457
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
504
458
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
505
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
506
- const newVnodeAttrs = newVnode.$attrs$ || {};
459
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
460
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
507
461
  {
508
462
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
509
463
  if (!(memberName in newVnodeAttrs)) {
510
- setAccessor(
511
- elm,
512
- memberName,
513
- oldVnodeAttrs[memberName],
514
- void 0,
515
- isSvgMode2,
516
- newVnode.$flags$);
464
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
517
465
  }
518
466
  }
519
467
  }
520
468
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
521
- setAccessor(
522
- elm,
523
- memberName,
524
- oldVnodeAttrs[memberName],
525
- newVnodeAttrs[memberName],
526
- isSvgMode2,
527
- newVnode.$flags$);
469
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
528
470
  }
529
471
  };
530
472
  function sortedAttrNames(attrNames) {
@@ -536,10 +478,13 @@ function sortedAttrNames(attrNames) {
536
478
  attrNames
537
479
  );
538
480
  }
481
+
482
+ // src/runtime/vdom/vdom-render.ts
483
+ var scopeId;
539
484
  var hostTagName;
540
485
  var useNativeShadowDom = false;
541
486
  var isSvgMode = false;
542
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
487
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
543
488
  const newVNode2 = newParentVNode.$children$[childIndex];
544
489
  let i2 = 0;
545
490
  let elm;
@@ -553,6 +498,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
553
498
  {
554
499
  updateElement(null, newVNode2, isSvgMode);
555
500
  }
501
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
502
+ elm.classList.add(elm["s-si"] = scopeId);
503
+ }
556
504
  if (newVNode2.$children$) {
557
505
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
558
506
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -657,9 +605,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
657
605
  };
658
606
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
659
607
  if (leftVNode.$tag$ === rightVNode.$tag$) {
660
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
661
- leftVNode.$key$ = rightVNode.$key$;
662
- }
663
608
  return true;
664
609
  }
665
610
  return false;
@@ -682,10 +627,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
682
627
  elm.textContent = "";
683
628
  }
684
629
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
685
- } else if (
686
- // don't do this on initial render as it can cause non-hydrated content to be removed
687
- !isInitialRender && BUILD.updatable && oldChildren !== null
688
- ) {
630
+ } else if (oldChildren !== null) {
689
631
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
690
632
  }
691
633
  } else if (oldVNode.$text$ !== text) {
@@ -699,9 +641,8 @@ var nullifyVNodeRefs = (vNode) => {
699
641
  }
700
642
  };
701
643
  var insertBefore = (parent, newNode, reference) => {
702
- {
703
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
704
- }
644
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
645
+ return inserted;
705
646
  };
706
647
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
707
648
  const hostElm = hostRef.$hostElement$;
@@ -726,21 +667,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
726
667
  rootVnode.$flags$ |= 4 /* isHost */;
727
668
  hostRef.$vnode$ = rootVnode;
728
669
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
729
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
670
+ {
671
+ scopeId = hostElm["s-sc"];
672
+ }
673
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
730
674
  patch(oldVNode, rootVnode, isInitialLoad);
731
675
  };
732
676
 
733
677
  // src/runtime/update-component.ts
734
678
  var attachToAncestor = (hostRef, ancestorComponent) => {
735
679
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
736
- const index = ancestorComponent["s-p"].push(
737
- new Promise(
738
- (r) => hostRef.$onRenderResolve$ = () => {
739
- ancestorComponent["s-p"].splice(index - 1, 1);
740
- r();
741
- }
742
- )
743
- );
680
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
744
681
  }
745
682
  };
746
683
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -767,7 +704,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
767
704
  let maybePromise;
768
705
  if (isInitialLoad) {
769
706
  {
770
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
707
+ maybePromise = safeCall(instance, "componentWillLoad");
771
708
  }
772
709
  }
773
710
  endSchedule();
@@ -841,7 +778,7 @@ var postUpdateComponent = (hostRef) => {
841
778
  addHydratedFlag(elm);
842
779
  }
843
780
  {
844
- safeCall(instance, "componentDidLoad", void 0, elm);
781
+ safeCall(instance, "componentDidLoad");
845
782
  }
846
783
  endPostUpdate();
847
784
  {
@@ -865,14 +802,17 @@ var postUpdateComponent = (hostRef) => {
865
802
  }
866
803
  };
867
804
  var appDidLoad = (who) => {
805
+ {
806
+ addHydratedFlag(doc.documentElement);
807
+ }
868
808
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
869
809
  };
870
- var safeCall = (instance, method, arg, elm) => {
810
+ var safeCall = (instance, method, arg) => {
871
811
  if (instance && instance[method]) {
872
812
  try {
873
813
  return instance[method](arg);
874
814
  } catch (e) {
875
- consoleError(e, elm);
815
+ consoleError(e);
876
816
  }
877
817
  }
878
818
  return void 0;
@@ -931,68 +871,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
931
871
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
932
872
  members.map(([memberName, [memberFlags]]) => {
933
873
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
934
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
935
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
936
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
937
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
938
- Object.defineProperty(prototype, memberName, {
939
- get() {
940
- {
941
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
942
- return getValue(this, memberName);
943
- }
944
- const ref = getHostRef(this);
945
- const instance = ref ? ref.$lazyInstance$ : prototype;
946
- if (!instance) return;
947
- return instance[memberName];
948
- }
949
- },
950
- configurable: true,
951
- enumerable: true
952
- });
953
- }
954
874
  Object.defineProperty(prototype, memberName, {
875
+ get() {
876
+ return getValue(this, memberName);
877
+ },
955
878
  set(newValue) {
956
- const ref = getHostRef(this);
957
- if (origSetter) {
958
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
959
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
960
- newValue = ref.$instanceValues$.get(memberName);
961
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
962
- ref.$instanceValues$.set(memberName, currentValue);
963
- }
964
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
965
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
966
- setValue(this, memberName, newValue, cmpMeta);
967
- return;
968
- }
969
- {
970
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
971
- setValue(this, memberName, newValue, cmpMeta);
972
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
973
- ref.$onReadyPromise$.then(() => {
974
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
975
- ref.$lazyInstance$[memberName] = newValue;
976
- }
977
- });
978
- }
979
- return;
980
- }
981
- const setterSetVal = () => {
982
- const currentValue = ref.$lazyInstance$[memberName];
983
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
984
- ref.$instanceValues$.set(memberName, currentValue);
985
- }
986
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
987
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
988
- };
989
- if (ref.$lazyInstance$) {
990
- setterSetVal();
991
- } else {
992
- ref.$onReadyPromise$.then(() => setterSetVal());
993
- }
994
- }
995
- }
879
+ setValue(this, memberName, newValue, cmpMeta);
880
+ },
881
+ configurable: true,
882
+ enumerable: true
996
883
  });
997
884
  }
998
885
  });
@@ -1002,11 +889,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1002
889
  plt.jmp(() => {
1003
890
  var _a2;
1004
891
  const propName = attrNameToPropName.get(attrName);
1005
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
892
+ if (this.hasOwnProperty(propName)) {
1006
893
  newValue = this[propName];
1007
894
  delete this[propName];
1008
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1009
- this[propName] == newValue) {
895
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1010
896
  return;
1011
897
  } else if (propName == null) {
1012
898
  const hostRef = getHostRef(this);
@@ -1022,11 +908,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1022
908
  }
1023
909
  return;
1024
910
  }
1025
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1026
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1027
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1028
- this[propName] = newValue;
1029
- }
911
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1030
912
  });
1031
913
  };
1032
914
  Cstr.observedAttributes = Array.from(
@@ -1055,7 +937,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1055
937
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1056
938
  const bundleId = cmpMeta.$lazyBundleId$;
1057
939
  if (bundleId) {
1058
- const CstrImport = loadModule(cmpMeta, hostRef);
940
+ const CstrImport = loadModule(cmpMeta);
1059
941
  if (CstrImport && "then" in CstrImport) {
1060
942
  const endLoad = uniqueTime();
1061
943
  Cstr = await CstrImport;
@@ -1080,7 +962,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1080
962
  try {
1081
963
  new Cstr(hostRef);
1082
964
  } catch (e) {
1083
- consoleError(e, elm);
965
+ consoleError(e);
1084
966
  }
1085
967
  {
1086
968
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1115,7 +997,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1115
997
  schedule();
1116
998
  }
1117
999
  };
1118
- var fireConnectedCallback = (instance, elm) => {
1000
+ var fireConnectedCallback = (instance) => {
1119
1001
  };
1120
1002
 
1121
1003
  // src/runtime/connected-callback.ts
@@ -1155,26 +1037,20 @@ var connectedCallback = (elm) => {
1155
1037
  endConnected();
1156
1038
  }
1157
1039
  };
1158
- var disconnectInstance = (instance, elm) => {
1040
+ var disconnectInstance = (instance) => {
1159
1041
  {
1160
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1042
+ safeCall(instance, "disconnectedCallback");
1161
1043
  }
1162
1044
  };
1163
1045
  var disconnectedCallback = async (elm) => {
1164
1046
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1165
1047
  const hostRef = getHostRef(elm);
1166
1048
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1167
- disconnectInstance(hostRef.$lazyInstance$, elm);
1049
+ disconnectInstance(hostRef.$lazyInstance$);
1168
1050
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1169
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1051
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1170
1052
  }
1171
1053
  }
1172
- if (rootAppliedStyles.has(elm)) {
1173
- rootAppliedStyles.delete(elm);
1174
- }
1175
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1176
- rootAppliedStyles.delete(elm.shadowRoot);
1177
- }
1178
1054
  };
1179
1055
 
1180
1056
  // src/runtime/bootstrap-lazy.ts
@@ -1255,17 +1131,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1255
1131
  }
1256
1132
  disconnectedCallback() {
1257
1133
  plt.jmp(() => disconnectedCallback(this));
1258
- plt.raf(() => {
1259
- var _a3;
1260
- const hostRef = getHostRef(this);
1261
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1262
- if (i2 > -1) {
1263
- deferredConnectedCallbacks.splice(i2, 1);
1264
- }
1265
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1266
- delete hostRef.$vnode$.$elm$;
1267
- }
1268
- });
1269
1134
  }
1270
1135
  componentOnReady() {
1271
1136
  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-e275fea3.js');
5
+ const index = require('./index-8d5dc10c.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []