@sellmate/design-system 0.0.6 → 0.0.7

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 (114) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/{index-eJV9DRUN.js → index-D3QUS1Eb.js} +647 -9
  3. package/dist/cjs/index-D3QUS1Eb.js.map +1 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/sd-button_4.cjs.entry.js +1 -1
  6. package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
  7. package/dist/cjs/sd-date-box_2.cjs.entry.js +1 -1
  8. package/dist/cjs/sd-date-picker.cjs.entry.js +1 -1
  9. package/dist/cjs/sd-date-range-picker.cjs.entry.js +1 -1
  10. package/dist/cjs/sd-pagination_2.cjs.entry.js +2 -2
  11. package/dist/cjs/sd-popover.cjs.entry.js +2 -2
  12. package/dist/cjs/sd-select-option.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-select.cjs.entry.js +1 -1
  14. package/dist/cjs/sd-table.cjs.entry.js +1 -1
  15. package/dist/cjs/sd-tag.cjs.entry.js +1 -1
  16. package/dist/cjs/sd-tooltip-portal.cjs.entry.js +1 -1
  17. package/dist/cjs/{tooltipArrow-nBURRjhe.js → tooltipArrow-DKQk16So.js} +3 -3
  18. package/dist/cjs/{tooltipArrow-nBURRjhe.js.map → tooltipArrow-DKQk16So.js.map} +1 -1
  19. package/dist/components/index.js +1 -1
  20. package/dist/components/{p-BMMcpjI2.js → p-BBcRxAHQ.js} +3 -3
  21. package/dist/components/{p-BMMcpjI2.js.map → p-BBcRxAHQ.js.map} +1 -1
  22. package/dist/components/{p-1fnLZFBF.js → p-BJe9kiv9.js} +4 -4
  23. package/dist/components/{p-1fnLZFBF.js.map → p-BJe9kiv9.js.map} +1 -1
  24. package/dist/components/{p-CMr_MjLT.js → p-BKNkY07K.js} +4 -4
  25. package/dist/components/{p-CMr_MjLT.js.map → p-BKNkY07K.js.map} +1 -1
  26. package/dist/components/{p-CCUdSU7s.js → p-CIPoof7_.js} +4 -4
  27. package/dist/components/{p-CCUdSU7s.js.map → p-CIPoof7_.js.map} +1 -1
  28. package/dist/components/{p-bMRGc2ya.js → p-CR_d0Wrj.js} +7 -7
  29. package/dist/components/{p-bMRGc2ya.js.map → p-CR_d0Wrj.js.map} +1 -1
  30. package/dist/components/{p-_COe-BX-.js → p-C_ZLFIzZ.js} +644 -9
  31. package/dist/components/p-C_ZLFIzZ.js.map +1 -0
  32. package/dist/components/{p-7h5r3_Oi.js → p-CcIaxZWu.js} +3 -3
  33. package/dist/components/{p-7h5r3_Oi.js.map → p-CcIaxZWu.js.map} +1 -1
  34. package/dist/components/{p-ZmqQTYnw.js → p-D7GkmGX3.js} +4 -4
  35. package/dist/components/{p-ZmqQTYnw.js.map → p-D7GkmGX3.js.map} +1 -1
  36. package/dist/components/{p-BTFW7ae2.js → p-DeANT-RC.js} +3 -3
  37. package/dist/components/{p-BTFW7ae2.js.map → p-DeANT-RC.js.map} +1 -1
  38. package/dist/components/{p-DDCjT-Wn.js → p-Dk7pK8T6.js} +3 -3
  39. package/dist/components/{p-DDCjT-Wn.js.map → p-Dk7pK8T6.js.map} +1 -1
  40. package/dist/components/{p-BFDQPvRY.js → p-DmNaQwtz.js} +5 -5
  41. package/dist/components/{p-BFDQPvRY.js.map → p-DmNaQwtz.js.map} +1 -1
  42. package/dist/components/{p-BTvDxJlL.js → p-DqOQpFv5.js} +3 -3
  43. package/dist/components/{p-BTvDxJlL.js.map → p-DqOQpFv5.js.map} +1 -1
  44. package/dist/components/sd-button.js +1 -1
  45. package/dist/components/sd-checkbox.js +1 -1
  46. package/dist/components/sd-date-box.js +1 -1
  47. package/dist/components/sd-date-picker.js +5 -5
  48. package/dist/components/sd-date-range-picker.js +5 -5
  49. package/dist/components/sd-guide.js +4 -4
  50. package/dist/components/sd-icon.js +1 -1
  51. package/dist/components/sd-input.js +1 -1
  52. package/dist/components/sd-pagination.js +1 -1
  53. package/dist/components/sd-popover.js +5 -5
  54. package/dist/components/sd-portal.js +1 -1
  55. package/dist/components/sd-select-option.js +1 -1
  56. package/dist/components/sd-select.js +6 -6
  57. package/dist/components/sd-table.js +7 -7
  58. package/dist/components/sd-tag.js +1 -1
  59. package/dist/components/sd-tooltip-portal.js +1 -1
  60. package/dist/components/sd-tooltip.js +1 -1
  61. package/dist/design-system/design-system.esm.js +1 -1
  62. package/dist/design-system/{p-48b56d5a.entry.js → p-0366ba33.entry.js} +2 -2
  63. package/dist/design-system/{p-7d7eed25.entry.js → p-0bdf567e.entry.js} +2 -2
  64. package/dist/design-system/{p-978b5165.entry.js → p-10264e8e.entry.js} +2 -2
  65. package/dist/design-system/{p-7353d0bb.entry.js → p-24f6b072.entry.js} +2 -2
  66. package/dist/design-system/{p-6d7ade66.entry.js → p-329d3532.entry.js} +2 -2
  67. package/dist/design-system/{p-5b9b8671.entry.js → p-764e14ea.entry.js} +2 -2
  68. package/dist/design-system/{p-0f158e53.entry.js → p-8844ec3b.entry.js} +2 -2
  69. package/dist/design-system/{p-4bc173bc.entry.js → p-94f7e066.entry.js} +2 -2
  70. package/dist/design-system/p-B9LQNxjd.js +2 -0
  71. package/dist/design-system/{p-Di8dUbCh.js.map → p-B9LQNxjd.js.map} +1 -1
  72. package/dist/design-system/p-DzM-iWij.js +3 -0
  73. package/dist/design-system/p-DzM-iWij.js.map +1 -0
  74. package/dist/design-system/{p-6f114a26.entry.js → p-a24a9772.entry.js} +2 -2
  75. package/dist/design-system/{p-a8ff23ce.entry.js → p-a9713309.entry.js} +2 -2
  76. package/dist/design-system/{p-21022434.entry.js → p-bc64ffa7.entry.js} +2 -2
  77. package/dist/design-system/{p-1959dd61.entry.js → p-df03331a.entry.js} +2 -2
  78. package/dist/esm/design-system.js +2 -2
  79. package/dist/esm/{index-KauK5hO3.js → index-DzM-iWij.js} +647 -9
  80. package/dist/esm/index-DzM-iWij.js.map +1 -0
  81. package/dist/esm/loader.js +2 -2
  82. package/dist/esm/sd-button_4.entry.js +1 -1
  83. package/dist/esm/sd-checkbox.entry.js +1 -1
  84. package/dist/esm/sd-date-box_2.entry.js +1 -1
  85. package/dist/esm/sd-date-picker.entry.js +1 -1
  86. package/dist/esm/sd-date-range-picker.entry.js +1 -1
  87. package/dist/esm/sd-pagination_2.entry.js +2 -2
  88. package/dist/esm/sd-popover.entry.js +2 -2
  89. package/dist/esm/sd-select-option.entry.js +1 -1
  90. package/dist/esm/sd-select.entry.js +1 -1
  91. package/dist/esm/sd-table.entry.js +1 -1
  92. package/dist/esm/sd-tag.entry.js +1 -1
  93. package/dist/esm/sd-tooltip-portal.entry.js +1 -1
  94. package/dist/esm/{tooltipArrow-BlfIbijp.js → tooltipArrow-Dybd-1up.js} +3 -3
  95. package/dist/esm/{tooltipArrow-BlfIbijp.js.map → tooltipArrow-Dybd-1up.js.map} +1 -1
  96. package/package.json +2 -2
  97. package/dist/cjs/index-eJV9DRUN.js.map +0 -1
  98. package/dist/components/p-_COe-BX-.js.map +0 -1
  99. package/dist/design-system/p-Di8dUbCh.js +0 -2
  100. package/dist/design-system/p-KauK5hO3.js +0 -3
  101. package/dist/design-system/p-KauK5hO3.js.map +0 -1
  102. package/dist/esm/index-KauK5hO3.js.map +0 -1
  103. /package/dist/design-system/{p-48b56d5a.entry.js.map → p-0366ba33.entry.js.map} +0 -0
  104. /package/dist/design-system/{p-7d7eed25.entry.js.map → p-0bdf567e.entry.js.map} +0 -0
  105. /package/dist/design-system/{p-978b5165.entry.js.map → p-10264e8e.entry.js.map} +0 -0
  106. /package/dist/design-system/{p-7353d0bb.entry.js.map → p-24f6b072.entry.js.map} +0 -0
  107. /package/dist/design-system/{p-6d7ade66.entry.js.map → p-329d3532.entry.js.map} +0 -0
  108. /package/dist/design-system/{p-5b9b8671.entry.js.map → p-764e14ea.entry.js.map} +0 -0
  109. /package/dist/design-system/{p-0f158e53.entry.js.map → p-8844ec3b.entry.js.map} +0 -0
  110. /package/dist/design-system/{p-4bc173bc.entry.js.map → p-94f7e066.entry.js.map} +0 -0
  111. /package/dist/design-system/{p-6f114a26.entry.js.map → p-a24a9772.entry.js.map} +0 -0
  112. /package/dist/design-system/{p-a8ff23ce.entry.js.map → p-a9713309.entry.js.map} +0 -0
  113. /package/dist/design-system/{p-21022434.entry.js.map → p-bc64ffa7.entry.js.map} +0 -0
  114. /package/dist/design-system/{p-1959dd61.entry.js.map → p-df03331a.entry.js.map} +0 -0
@@ -15,6 +15,30 @@ var __export = (target, all) => {
15
15
  // src/utils/constants.ts
16
16
  var SVG_NS = "http://www.w3.org/2000/svg";
17
17
  var HTML_NS = "http://www.w3.org/1999/xhtml";
18
+ var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
19
+ PrimitiveType2["Undefined"] = "undefined";
20
+ PrimitiveType2["Null"] = "null";
21
+ PrimitiveType2["String"] = "string";
22
+ PrimitiveType2["Number"] = "number";
23
+ PrimitiveType2["SpecialNumber"] = "number";
24
+ PrimitiveType2["Boolean"] = "boolean";
25
+ PrimitiveType2["BigInt"] = "bigint";
26
+ return PrimitiveType2;
27
+ })(PrimitiveType || {});
28
+ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
29
+ NonPrimitiveType2["Array"] = "array";
30
+ NonPrimitiveType2["Date"] = "date";
31
+ NonPrimitiveType2["Map"] = "map";
32
+ NonPrimitiveType2["Object"] = "object";
33
+ NonPrimitiveType2["RegularExpression"] = "regexp";
34
+ NonPrimitiveType2["Set"] = "set";
35
+ NonPrimitiveType2["Channel"] = "channel";
36
+ NonPrimitiveType2["Symbol"] = "symbol";
37
+ return NonPrimitiveType2;
38
+ })(NonPrimitiveType || {});
39
+ var TYPE_CONSTANT = "type";
40
+ var VALUE_CONSTANT = "value";
41
+ var SERIALIZED_PREFIX = "serialized:";
18
42
 
19
43
  // src/utils/es2022-rewire-class-members.ts
20
44
  var reWireGetterSetter = (instance, hostRef) => {
@@ -82,6 +106,16 @@ var consoleError = (e, el) => (0, console.error)(e, el);
82
106
 
83
107
  // src/client/client-style.ts
84
108
  var styles = /* @__PURE__ */ new Map();
109
+
110
+ // src/runtime/runtime-constants.ts
111
+ var CONTENT_REF_ID = "r";
112
+ var ORG_LOCATION_ID = "o";
113
+ var SLOT_NODE_ID = "s";
114
+ var TEXT_NODE_ID = "t";
115
+ var COMMENT_NODE_ID = "c";
116
+ var HYDRATE_ID = "s-id";
117
+ var HYDRATED_STYLE_ID = "sty-id";
118
+ var HYDRATE_CHILD_ID = "c-id";
85
119
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
86
120
  var XLINK_NS = "http://www.w3.org/1999/xlink";
87
121
  var win = typeof window !== "undefined" ? window : {};
@@ -184,6 +218,101 @@ var escapeRegExpSpecialCharacters = (text) => {
184
218
  return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
185
219
  };
186
220
 
221
+ // src/utils/remote-value.ts
222
+ var RemoteValue = class _RemoteValue {
223
+ /**
224
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
225
+ *
226
+ * @param serialized The serialized LocalValue object
227
+ * @returns The original JavaScript value/object
228
+ */
229
+ static fromLocalValue(serialized) {
230
+ const type = serialized[TYPE_CONSTANT];
231
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
232
+ switch (type) {
233
+ case "string" /* String */:
234
+ return value;
235
+ case "boolean" /* Boolean */:
236
+ return value;
237
+ case "bigint" /* BigInt */:
238
+ return BigInt(value);
239
+ case "undefined" /* Undefined */:
240
+ return void 0;
241
+ case "null" /* Null */:
242
+ return null;
243
+ case "number" /* Number */:
244
+ if (value === "NaN") return NaN;
245
+ if (value === "-0") return -0;
246
+ if (value === "Infinity") return Infinity;
247
+ if (value === "-Infinity") return -Infinity;
248
+ return value;
249
+ case "array" /* Array */:
250
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
251
+ case "date" /* Date */:
252
+ return new Date(value);
253
+ case "map" /* Map */:
254
+ const map2 = /* @__PURE__ */ new Map();
255
+ for (const [key, val] of value) {
256
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
257
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
258
+ map2.set(deserializedKey, deserializedValue);
259
+ }
260
+ return map2;
261
+ case "object" /* Object */:
262
+ const obj = {};
263
+ for (const [key, val] of value) {
264
+ obj[key] = _RemoteValue.fromLocalValue(val);
265
+ }
266
+ return obj;
267
+ case "regexp" /* RegularExpression */:
268
+ const { pattern, flags } = value;
269
+ return new RegExp(pattern, flags);
270
+ case "set" /* Set */:
271
+ const set = /* @__PURE__ */ new Set();
272
+ for (const item of value) {
273
+ set.add(_RemoteValue.fromLocalValue(item));
274
+ }
275
+ return set;
276
+ case "symbol" /* Symbol */:
277
+ return Symbol(value);
278
+ default:
279
+ throw new Error(`Unsupported type: ${type}`);
280
+ }
281
+ }
282
+ /**
283
+ * Utility method to deserialize multiple LocalValues at once
284
+ *
285
+ * @param serializedValues Array of serialized LocalValue objects
286
+ * @returns Array of deserialized JavaScript values
287
+ */
288
+ static fromLocalValueArray(serializedValues) {
289
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
290
+ }
291
+ /**
292
+ * Verifies if the given object matches the structure of a serialized LocalValue
293
+ *
294
+ * @param obj Object to verify
295
+ * @returns boolean indicating if the object has LocalValue structure
296
+ */
297
+ static isLocalValueObject(obj) {
298
+ if (typeof obj !== "object" || obj === null) {
299
+ return false;
300
+ }
301
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
302
+ return false;
303
+ }
304
+ const type = obj[TYPE_CONSTANT];
305
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
306
+ if (!hasTypeProperty) {
307
+ return false;
308
+ }
309
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
310
+ return obj.hasOwnProperty(VALUE_CONSTANT);
311
+ }
312
+ return true;
313
+ }
314
+ };
315
+
187
316
  // src/utils/result.ts
188
317
  var result_exports = {};
189
318
  __export(result_exports, {
@@ -233,6 +362,14 @@ var unwrapErr = (result) => {
233
362
  }
234
363
  };
235
364
 
365
+ // src/utils/serialize.ts
366
+ function deserializeProperty(value) {
367
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
368
+ return value;
369
+ }
370
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
371
+ }
372
+
236
373
  // src/utils/style.ts
237
374
  function createStyleSheetIfNeededAndSupported(styles2) {
238
375
  if (!supportsConstructableStylesheets) return void 0;
@@ -323,6 +460,34 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
323
460
  }
324
461
  return slotName === "";
325
462
  };
463
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
464
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
465
+ return;
466
+ }
467
+ const slottedNodeLocation = document.createTextNode("");
468
+ slottedNodeLocation["s-nr"] = newChild;
469
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
470
+ const parent = slotNode["s-cr"].parentNode;
471
+ const appendMethod = internalCall(parent, "appendChild");
472
+ if (typeof position !== "undefined") {
473
+ slottedNodeLocation["s-oo"] = position;
474
+ const childNodes = internalCall(parent, "childNodes");
475
+ const slotRelocateNodes = [slottedNodeLocation];
476
+ childNodes.forEach((n) => {
477
+ if (n["s-nr"]) slotRelocateNodes.push(n);
478
+ });
479
+ slotRelocateNodes.sort((a, b) => {
480
+ if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
481
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
482
+ return 0;
483
+ });
484
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
485
+ } else {
486
+ appendMethod.call(parent, slottedNodeLocation);
487
+ }
488
+ newChild["s-ol"] = slottedNodeLocation;
489
+ newChild["s-sh"] = slotNode["s-hn"];
490
+ };
326
491
  var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
327
492
  function patchSlotNode(node) {
328
493
  if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
@@ -400,7 +565,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
400
565
  rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
401
566
  }
402
567
  if (!appliedStyles.has(scopeId2)) {
403
- {
568
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
569
+ styleElm.innerHTML = style;
570
+ } else {
404
571
  styleElm = win.document.createElement("style");
405
572
  styleElm.innerHTML = style;
406
573
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
@@ -472,6 +639,17 @@ var attachStyles = (hostRef) => {
472
639
  endAttachStyles();
473
640
  };
474
641
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
642
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
643
+ var hydrateScopedToShadow = () => {
644
+ if (!win.document) {
645
+ return;
646
+ }
647
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
648
+ let i2 = 0;
649
+ for (; i2 < styles2.length; i2++) {
650
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
651
+ }
652
+ };
475
653
  var h = (nodeName, vnodeData, ...children) => {
476
654
  let child = null;
477
655
  let key = null;
@@ -583,6 +761,422 @@ var convertToPrivate = (node) => {
583
761
  vnode.$name$ = node.vname;
584
762
  return vnode;
585
763
  };
764
+
765
+ // src/runtime/client-hydrate.ts
766
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
767
+ var _a, _b;
768
+ const endHydrate = createTime("hydrateClient", tagName);
769
+ const shadowRoot = hostElm.shadowRoot;
770
+ const childRenderNodes = [];
771
+ const slotNodes = [];
772
+ const slottedNodes = [];
773
+ const shadowRootNodes = shadowRoot ? [] : null;
774
+ const vnode = newVNode(tagName, null);
775
+ vnode.$elm$ = hostElm;
776
+ let scopeId2;
777
+ {
778
+ const cmpMeta = hostRef.$cmpMeta$;
779
+ if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
780
+ scopeId2 = hostElm["s-sc"];
781
+ hostElm.classList.add(scopeId2 + "-h");
782
+ } else if (hostElm["s-sc"]) {
783
+ delete hostElm["s-sc"];
784
+ }
785
+ }
786
+ if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
787
+ initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
788
+ }
789
+ hostElm[HYDRATE_ID] = hostId;
790
+ hostElm.removeAttribute(HYDRATE_ID);
791
+ hostRef.$vnode$ = clientHydrate(
792
+ vnode,
793
+ childRenderNodes,
794
+ slotNodes,
795
+ shadowRootNodes,
796
+ hostElm,
797
+ hostElm,
798
+ hostId,
799
+ slottedNodes
800
+ );
801
+ let crIndex = 0;
802
+ const crLength = childRenderNodes.length;
803
+ let childRenderNode;
804
+ for (crIndex; crIndex < crLength; crIndex++) {
805
+ childRenderNode = childRenderNodes[crIndex];
806
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
807
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
808
+ const node = childRenderNode.$elm$;
809
+ if (!shadowRoot) {
810
+ node["s-hn"] = tagName.toUpperCase();
811
+ if (childRenderNode.$tag$ === "slot") {
812
+ node["s-cr"] = hostElm["s-cr"];
813
+ }
814
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
815
+ const cmpMeta = getHostRef(childRenderNode.$elm$);
816
+ if (cmpMeta) {
817
+ const scopeId3 = getScopeId(
818
+ cmpMeta.$cmpMeta$);
819
+ const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
820
+ if (styleSheet) {
821
+ hostElm.shadowRoot.append(styleSheet.cloneNode(true));
822
+ }
823
+ }
824
+ }
825
+ if (childRenderNode.$tag$ === "slot") {
826
+ childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
827
+ if (childRenderNode.$children$) {
828
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
829
+ if (!childRenderNode.$elm$.childNodes.length) {
830
+ childRenderNode.$children$.forEach((c) => {
831
+ childRenderNode.$elm$.appendChild(c.$elm$);
832
+ });
833
+ }
834
+ } else {
835
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
836
+ }
837
+ }
838
+ if (orgLocationNode && orgLocationNode.isConnected) {
839
+ if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
840
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
841
+ }
842
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
843
+ if (!shadowRoot) {
844
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
845
+ }
846
+ }
847
+ if (orgLocationNode && !orgLocationNode["s-id"]) {
848
+ plt.$orgLocNodes$.delete(orgLocationId);
849
+ }
850
+ }
851
+ const hosts = [];
852
+ const snLen = slottedNodes.length;
853
+ let snIndex = 0;
854
+ let slotGroup;
855
+ let snGroupIdx;
856
+ let snGroupLen;
857
+ let slottedItem;
858
+ for (snIndex; snIndex < snLen; snIndex++) {
859
+ slotGroup = slottedNodes[snIndex];
860
+ if (!slotGroup || !slotGroup.length) continue;
861
+ snGroupLen = slotGroup.length;
862
+ snGroupIdx = 0;
863
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
864
+ slottedItem = slotGroup[snGroupIdx];
865
+ if (!hosts[slottedItem.hostId]) {
866
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
867
+ }
868
+ if (!hosts[slottedItem.hostId]) continue;
869
+ const hostEle = hosts[slottedItem.hostId];
870
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
871
+ hostEle.appendChild(slottedItem.node);
872
+ }
873
+ if (!hostEle.shadowRoot || !shadowRoot) {
874
+ if (!slottedItem.slot["s-cr"]) {
875
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
876
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
877
+ slottedItem.slot["s-cr"] = hostEle;
878
+ } else {
879
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
880
+ }
881
+ }
882
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
883
+ if (((_b = slottedItem.node.parentElement) == null ? void 0 : _b.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
884
+ slottedItem.node.removeAttribute("slot");
885
+ }
886
+ }
887
+ }
888
+ }
889
+ if (scopeId2 && slotNodes.length) {
890
+ slotNodes.forEach((slot) => {
891
+ slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
892
+ });
893
+ }
894
+ if (shadowRoot) {
895
+ let rnIdex = 0;
896
+ const rnLen = shadowRootNodes.length;
897
+ if (rnLen) {
898
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
899
+ const node = shadowRootNodes[rnIdex];
900
+ if (node) {
901
+ shadowRoot.appendChild(node);
902
+ }
903
+ }
904
+ Array.from(hostElm.childNodes).forEach((node) => {
905
+ if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
906
+ if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
907
+ node.removeAttribute("hidden");
908
+ } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
909
+ node.parentNode.removeChild(node);
910
+ }
911
+ }
912
+ });
913
+ }
914
+ }
915
+ hostRef.$hostElement$ = hostElm;
916
+ endHydrate();
917
+ };
918
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
919
+ let childNodeType;
920
+ let childIdSplt;
921
+ let childVNode;
922
+ let i2;
923
+ const scopeId2 = hostElm["s-sc"];
924
+ if (node.nodeType === 1 /* ElementNode */) {
925
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
926
+ if (childNodeType) {
927
+ childIdSplt = childNodeType.split(".");
928
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
929
+ childVNode = createSimpleVNode({
930
+ $flags$: 0,
931
+ $hostId$: childIdSplt[0],
932
+ $nodeId$: childIdSplt[1],
933
+ $depth$: childIdSplt[2],
934
+ $index$: childIdSplt[3],
935
+ $tag$: node.tagName.toLowerCase(),
936
+ $elm$: node,
937
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
938
+ // won't try to reconcile them. Classes set on the node will be blown away.
939
+ $attrs$: { class: node.className || "" }
940
+ });
941
+ childRenderNodes.push(childVNode);
942
+ node.removeAttribute(HYDRATE_CHILD_ID);
943
+ if (!parentVNode.$children$) {
944
+ parentVNode.$children$ = [];
945
+ }
946
+ if (scopeId2 && childIdSplt[0] === hostId) {
947
+ node["s-si"] = scopeId2;
948
+ childVNode.$attrs$.class += " " + scopeId2;
949
+ }
950
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
951
+ if (typeof slotName === "string") {
952
+ if (childVNode.$tag$ === "slot-fb") {
953
+ addSlot(
954
+ slotName,
955
+ childIdSplt[2],
956
+ childVNode,
957
+ node,
958
+ parentVNode,
959
+ childRenderNodes,
960
+ slotNodes,
961
+ shadowRootNodes,
962
+ slottedNodes
963
+ );
964
+ if (scopeId2) {
965
+ node.classList.add(scopeId2);
966
+ }
967
+ }
968
+ childVNode.$elm$["s-sn"] = slotName;
969
+ childVNode.$elm$.removeAttribute("s-sn");
970
+ }
971
+ if (childVNode.$index$ !== void 0) {
972
+ parentVNode.$children$[childVNode.$index$] = childVNode;
973
+ }
974
+ parentVNode = childVNode;
975
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
976
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
977
+ }
978
+ }
979
+ }
980
+ if (node.shadowRoot) {
981
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
982
+ clientHydrate(
983
+ parentVNode,
984
+ childRenderNodes,
985
+ slotNodes,
986
+ shadowRootNodes,
987
+ hostElm,
988
+ node.shadowRoot.childNodes[i2],
989
+ hostId,
990
+ slottedNodes
991
+ );
992
+ }
993
+ }
994
+ const nonShadowNodes = node.__childNodes || node.childNodes;
995
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
996
+ clientHydrate(
997
+ parentVNode,
998
+ childRenderNodes,
999
+ slotNodes,
1000
+ shadowRootNodes,
1001
+ hostElm,
1002
+ nonShadowNodes[i2],
1003
+ hostId,
1004
+ slottedNodes
1005
+ );
1006
+ }
1007
+ } else if (node.nodeType === 8 /* CommentNode */) {
1008
+ childIdSplt = node.nodeValue.split(".");
1009
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1010
+ childNodeType = childIdSplt[0];
1011
+ childVNode = createSimpleVNode({
1012
+ $hostId$: childIdSplt[1],
1013
+ $nodeId$: childIdSplt[2],
1014
+ $depth$: childIdSplt[3],
1015
+ $index$: childIdSplt[4] || "0",
1016
+ $elm$: node,
1017
+ $attrs$: null,
1018
+ $children$: null,
1019
+ $key$: null,
1020
+ $name$: null,
1021
+ $tag$: null,
1022
+ $text$: null
1023
+ });
1024
+ if (childNodeType === TEXT_NODE_ID) {
1025
+ childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
1026
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1027
+ childVNode.$text$ = childVNode.$elm$.textContent;
1028
+ childRenderNodes.push(childVNode);
1029
+ node.remove();
1030
+ if (hostId === childVNode.$hostId$) {
1031
+ if (!parentVNode.$children$) {
1032
+ parentVNode.$children$ = [];
1033
+ }
1034
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1035
+ }
1036
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1037
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1038
+ }
1039
+ }
1040
+ } else if (childNodeType === COMMENT_NODE_ID) {
1041
+ childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
1042
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1043
+ childRenderNodes.push(childVNode);
1044
+ node.remove();
1045
+ }
1046
+ } else if (childVNode.$hostId$ === hostId) {
1047
+ if (childNodeType === SLOT_NODE_ID) {
1048
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
1049
+ addSlot(
1050
+ slotName,
1051
+ childIdSplt[2],
1052
+ childVNode,
1053
+ node,
1054
+ parentVNode,
1055
+ childRenderNodes,
1056
+ slotNodes,
1057
+ shadowRootNodes,
1058
+ slottedNodes
1059
+ );
1060
+ } else if (childNodeType === CONTENT_REF_ID) {
1061
+ if (shadowRootNodes) {
1062
+ node.remove();
1063
+ } else {
1064
+ hostElm["s-cr"] = node;
1065
+ node["s-cn"] = true;
1066
+ }
1067
+ }
1068
+ }
1069
+ }
1070
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
1071
+ const vnode = newVNode(null, node.textContent);
1072
+ vnode.$elm$ = node;
1073
+ vnode.$index$ = "0";
1074
+ parentVNode.$children$ = [vnode];
1075
+ } else {
1076
+ if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
1077
+ node.remove();
1078
+ }
1079
+ }
1080
+ return parentVNode;
1081
+ };
1082
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
1083
+ if (node.nodeType === 1 /* ElementNode */) {
1084
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1085
+ if (componentId) {
1086
+ orgLocNodes.set(componentId, node);
1087
+ }
1088
+ let i2 = 0;
1089
+ if (node.shadowRoot) {
1090
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1091
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1092
+ }
1093
+ }
1094
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1095
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1096
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1097
+ }
1098
+ } else if (node.nodeType === 8 /* CommentNode */) {
1099
+ const childIdSplt = node.nodeValue.split(".");
1100
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
1101
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1102
+ node.nodeValue = "";
1103
+ node["s-en"] = childIdSplt[3];
1104
+ }
1105
+ }
1106
+ };
1107
+ var createSimpleVNode = (vnode) => {
1108
+ const defaultVNode = {
1109
+ $flags$: 0,
1110
+ $hostId$: null,
1111
+ $nodeId$: null,
1112
+ $depth$: null,
1113
+ $index$: "0",
1114
+ $elm$: null,
1115
+ $attrs$: null,
1116
+ $children$: null,
1117
+ $key$: null,
1118
+ $name$: null,
1119
+ $tag$: null,
1120
+ $text$: null
1121
+ };
1122
+ return { ...defaultVNode, ...vnode };
1123
+ };
1124
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1125
+ node["s-sr"] = true;
1126
+ childVNode.$name$ = slotName || null;
1127
+ childVNode.$tag$ = "slot";
1128
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1129
+ if (shadowRootNodes && win.document) {
1130
+ const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1131
+ if (childVNode.$name$) {
1132
+ childVNode.$elm$.setAttribute("name", slotName);
1133
+ }
1134
+ if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1135
+ internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
1136
+ } else {
1137
+ internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
1138
+ }
1139
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1140
+ node.remove();
1141
+ if (childVNode.$depth$ === "0") {
1142
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1143
+ }
1144
+ } else {
1145
+ const slot = childVNode.$elm$;
1146
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1147
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1148
+ patchSlotNode(node);
1149
+ if (shouldMove) {
1150
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1151
+ }
1152
+ }
1153
+ childRenderNodes.push(childVNode);
1154
+ slotNodes.push(childVNode);
1155
+ if (!parentVNode.$children$) {
1156
+ parentVNode.$children$ = [];
1157
+ }
1158
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1159
+ }
1160
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1161
+ var _a, _b;
1162
+ let slottedNode = slotNode.nextSibling;
1163
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1164
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1165
+ do {
1166
+ if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1167
+ slottedNode["s-sn"] = slotName;
1168
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1169
+ }
1170
+ slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1171
+ } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
1172
+ };
1173
+ var findCorrespondingNode = (node, type) => {
1174
+ let sibling = node;
1175
+ do {
1176
+ sibling = sibling.nextSibling;
1177
+ } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1178
+ return sibling;
1179
+ };
586
1180
  var createSupportsRuleRe = (selector) => {
587
1181
  const safeSelector2 = escapeRegExpSpecialCharacters(selector);
588
1182
  return new RegExp(
@@ -596,6 +1190,10 @@ createSupportsRuleRe("::slotted");
596
1190
  createSupportsRuleRe(":host");
597
1191
  createSupportsRuleRe(":host-context");
598
1192
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1193
+ if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1194
+ propValue = deserializeProperty(propValue);
1195
+ return propValue;
1196
+ }
599
1197
  if (propValue != null && !isComplexType(propValue)) {
600
1198
  if (propType & 4 /* Boolean */) {
601
1199
  {
@@ -645,7 +1243,15 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
645
1243
  const classList = elm.classList;
646
1244
  const oldClasses = parseClassList(oldValue);
647
1245
  let newClasses = parseClassList(newValue);
648
- {
1246
+ if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1247
+ const scopeId2 = elm["s-sc"] || elm["s-si"];
1248
+ newClasses.push(scopeId2);
1249
+ oldClasses.forEach((c) => {
1250
+ if (c.startsWith(scopeId2)) newClasses.push(c);
1251
+ });
1252
+ newClasses = [...new Set(newClasses)].filter((c) => c);
1253
+ classList.add(...newClasses);
1254
+ } else {
649
1255
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
650
1256
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
651
1257
  }
@@ -765,7 +1371,9 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
765
1371
  oldVnodeAttrs[memberName],
766
1372
  void 0,
767
1373
  isSvgMode2,
768
- newVnode.$flags$);
1374
+ newVnode.$flags$,
1375
+ isInitialRender
1376
+ );
769
1377
  }
770
1378
  }
771
1379
  }
@@ -776,7 +1384,9 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
776
1384
  oldVnodeAttrs[memberName],
777
1385
  newVnodeAttrs[memberName],
778
1386
  isSvgMode2,
779
- newVnode.$flags$);
1387
+ newVnode.$flags$,
1388
+ isInitialRender
1389
+ );
780
1390
  }
781
1391
  };
782
1392
  function sortedAttrNames(attrNames) {
@@ -1061,7 +1671,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1061
1671
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1062
1672
  }
1063
1673
  {
1064
- updateElement(oldVNode, newVNode2, isSvgMode);
1674
+ updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
1065
1675
  }
1066
1676
  if (oldChildren !== null && newChildren !== null) {
1067
1677
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -1075,7 +1685,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1075
1685
  !isInitialRender && BUILD.updatable && oldChildren !== null
1076
1686
  ) {
1077
1687
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
1078
- } else ;
1688
+ } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
1689
+ newVNode2.$children$ = oldChildren;
1690
+ }
1079
1691
  if (isSvgMode && tag === "svg") {
1080
1692
  isSvgMode = false;
1081
1693
  }
@@ -1416,7 +2028,13 @@ var postUpdateComponent = (hostRef) => {
1416
2028
  }
1417
2029
  };
1418
2030
  var appDidLoad = (who) => {
2031
+ var _a;
1419
2032
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2033
+ {
2034
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
2035
+ plt.$orgLocNodes$.clear();
2036
+ }
2037
+ }
1420
2038
  };
1421
2039
  var safeCall = (instance, method, arg, elm) => {
1422
2040
  if (instance && instance[method]) {
@@ -1636,7 +2254,21 @@ var connectedCallback = (elm) => {
1636
2254
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1637
2255
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1638
2256
  hostRef.$flags$ |= 1 /* hasConnected */;
2257
+ let hostId;
1639
2258
  {
2259
+ hostId = elm.getAttribute(HYDRATE_ID);
2260
+ if (hostId) {
2261
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2262
+ const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2263
+ elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2264
+ } else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2265
+ const scopeId2 = getScopeId(cmpMeta);
2266
+ elm["s-sc"] = scopeId2;
2267
+ }
2268
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2269
+ }
2270
+ }
2271
+ if (!hostId) {
1640
2272
  if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1641
2273
  cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
1642
2274
  setContentReference(elm);
@@ -1645,7 +2277,7 @@ var connectedCallback = (elm) => {
1645
2277
  {
1646
2278
  let ancestorComponent = elm;
1647
2279
  while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1648
- if (ancestorComponent["s-p"]) {
2280
+ if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
1649
2281
  attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1650
2282
  break;
1651
2283
  }
@@ -1718,6 +2350,9 @@ var proxyCustomElement = (Cstr, compactMeta) => {
1718
2350
  {
1719
2351
  cmpMeta.$attrsToReflect$ = [];
1720
2352
  }
2353
+ {
2354
+ hydrateScopedToShadow();
2355
+ }
1721
2356
  const originalConnectedCallback = Cstr.prototype.connectedCallback;
1722
2357
  const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
1723
2358
  Object.assign(Cstr.prototype, {
@@ -1816,6 +2451,6 @@ function render(vnode, container) {
1816
2451
  }
1817
2452
 
1818
2453
  export { Fragment as F, H, setNonce as a, setPlatformOptions as b, createEvent as c, Host as d, getAssetPath as g, h, proxyCustomElement as p, render as r, setAssetPath as s };
1819
- //# sourceMappingURL=p-_COe-BX-.js.map
2454
+ //# sourceMappingURL=p-C_ZLFIzZ.js.map
1820
2455
 
1821
- //# sourceMappingURL=p-_COe-BX-.js.map
2456
+ //# sourceMappingURL=p-C_ZLFIzZ.js.map