@lmvz-ds/components 0.14.1 → 0.16.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 (264) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +3 -0
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  3. package/dist/cjs/{assets-BnJmIx_h.js → assets-XY-cBmal.js} +5 -2
  4. package/dist/cjs/assets-XY-cBmal.js.map +1 -0
  5. package/dist/cjs/header-integration_7.cjs.entry.js +1024 -0
  6. package/dist/cjs/header-integration_7.cjs.entry.js.map +1 -0
  7. package/dist/cjs/{Effect-CpZhfb0D.js → icons-BOM23oli.js} +1010 -236
  8. package/dist/cjs/icons-BOM23oli.js.map +1 -0
  9. package/dist/cjs/{index-9ZJx0550.js → index-B1Puzu82.js} +11 -651
  10. package/dist/cjs/index-B1Puzu82.js.map +1 -0
  11. package/dist/cjs/{index-QRnWYctw.js → index-ww_DCXU7.js} +431 -426
  12. package/dist/cjs/index-ww_DCXU7.js.map +1 -0
  13. package/dist/cjs/index.cjs.js +13 -12
  14. package/dist/cjs/index.cjs.js.map +1 -0
  15. package/dist/cjs/lmvz-action.cjs.entry.js +5 -2
  16. package/dist/cjs/lmvz-action.cjs.entry.js.map +1 -0
  17. package/dist/cjs/lmvz-card.cjs.entry.js +7 -4
  18. package/dist/cjs/lmvz-card.cjs.entry.js.map +1 -0
  19. package/dist/cjs/lmvz-chip.cjs.entry.js +5 -2
  20. package/dist/cjs/lmvz-chip.cjs.entry.js.map +1 -0
  21. package/dist/cjs/lmvz-components.cjs.js +6 -3
  22. package/dist/cjs/lmvz-components.cjs.js.map +1 -0
  23. package/dist/cjs/loader.cjs.js +5 -2
  24. package/dist/cjs/loader.cjs.js.map +1 -0
  25. package/dist/collection/api/ds.constants.js +1 -0
  26. package/dist/collection/api/ds.constants.js.map +1 -0
  27. package/dist/collection/api/index.js +1 -0
  28. package/dist/collection/api/index.js.map +1 -0
  29. package/dist/collection/collection-manifest.json +2 -1
  30. package/dist/collection/components/lmvz-action/lmvz-action.js +2 -1
  31. package/dist/collection/components/lmvz-action/lmvz-action.js.map +1 -0
  32. package/dist/collection/components/lmvz-button/lmvz-button.css +4 -0
  33. package/dist/collection/components/lmvz-button/lmvz-button.js +3 -2
  34. package/dist/collection/components/lmvz-button/lmvz-button.js.map +1 -0
  35. package/dist/collection/components/lmvz-card/lmvz-card.css +4 -0
  36. package/dist/collection/components/lmvz-card/lmvz-card.js +4 -3
  37. package/dist/collection/components/lmvz-card/lmvz-card.js.map +1 -0
  38. package/dist/collection/components/lmvz-chip/lmvz-chip.js +3 -2
  39. package/dist/collection/components/lmvz-chip/lmvz-chip.js.map +1 -0
  40. package/dist/collection/components/lmvz-header/lmvz-header.js +17 -10
  41. package/dist/collection/components/lmvz-header/lmvz-header.js.map +1 -0
  42. package/dist/collection/components/lmvz-icon/icons.js +1 -0
  43. package/dist/collection/components/lmvz-icon/icons.js.map +1 -0
  44. package/dist/collection/components/lmvz-icon/lmvz-icon.js +8 -7
  45. package/dist/collection/components/lmvz-icon/lmvz-icon.js.map +1 -0
  46. package/dist/collection/components/lmvz-icon/public.js +1 -0
  47. package/dist/collection/components/lmvz-icon/public.js.map +1 -0
  48. package/dist/collection/components/lmvz-icon/test/icons.unit.js +1 -0
  49. package/dist/collection/components/lmvz-icon/test/icons.unit.js.map +1 -0
  50. package/dist/collection/components/lmvz-input/lmvz-input.js +35 -28
  51. package/dist/collection/components/lmvz-input/lmvz-input.js.map +1 -0
  52. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +5 -2
  53. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js.map +1 -0
  54. package/dist/collection/components/lmvz-select/lmvz-select.css +197 -0
  55. package/dist/collection/components/lmvz-select/lmvz-select.js +224 -0
  56. package/dist/collection/components/lmvz-select/lmvz-select.js.map +1 -0
  57. package/dist/collection/index.js +1 -0
  58. package/dist/collection/index.js.map +1 -0
  59. package/dist/collection/integration/header-integration.js +5 -4
  60. package/dist/collection/integration/header-integration.js.map +1 -0
  61. package/dist/collection/utils/aria/aria-validation-controller.js +1 -0
  62. package/dist/collection/utils/aria/aria-validation-controller.js.map +1 -0
  63. package/dist/collection/utils/aria/element-activation-controller.js +1 -0
  64. package/dist/collection/utils/aria/element-activation-controller.js.map +1 -0
  65. package/dist/collection/utils/aria/list-keyboard-controller.js +7 -4
  66. package/dist/collection/utils/aria/list-keyboard-controller.js.map +1 -0
  67. package/dist/collection/utils/assets.js +1 -0
  68. package/dist/collection/utils/assets.js.map +1 -0
  69. package/dist/collection/utils/component.js +7 -4
  70. package/dist/collection/utils/component.js.map +1 -0
  71. package/dist/collection/utils/effect.js +1 -0
  72. package/dist/collection/utils/effect.js.map +1 -0
  73. package/dist/collection/utils/environment.js +1 -0
  74. package/dist/collection/utils/environment.js.map +1 -0
  75. package/dist/collection/utils/http.js +1 -0
  76. package/dist/collection/utils/http.js.map +1 -0
  77. package/dist/collection/utils/http.unit.js +1 -0
  78. package/dist/collection/utils/http.unit.js.map +1 -0
  79. package/dist/collection/utils/public.js +1 -0
  80. package/dist/collection/utils/public.js.map +1 -0
  81. package/dist/collection/utils/reactive-controller-host.js +1 -0
  82. package/dist/collection/utils/reactive-controller-host.js.map +1 -0
  83. package/dist/collection/utils/validation/svg.js +1 -0
  84. package/dist/collection/utils/validation/svg.js.map +1 -0
  85. package/dist/components/header-integration.d.ts +11 -0
  86. package/dist/components/header-integration.js +2 -0
  87. package/dist/components/header-integration.js.map +1 -0
  88. package/dist/components/index.d.ts +4 -0
  89. package/dist/components/index.js +2 -1
  90. package/dist/components/index.js.map +1 -0
  91. package/dist/components/lmvz-action.js +2 -1
  92. package/dist/components/lmvz-action.js.map +1 -0
  93. package/dist/components/lmvz-button.js +2 -1
  94. package/dist/components/lmvz-button.js.map +1 -0
  95. package/dist/components/lmvz-card.js +2 -1
  96. package/dist/components/lmvz-card.js.map +1 -0
  97. package/dist/components/lmvz-chip.js +2 -1
  98. package/dist/components/lmvz-chip.js.map +1 -0
  99. package/dist/components/lmvz-header.js +2 -1
  100. package/dist/components/lmvz-header.js.map +1 -0
  101. package/dist/components/lmvz-icon.js +2 -1
  102. package/dist/components/lmvz-icon.js.map +1 -0
  103. package/dist/components/lmvz-input.js +2 -1
  104. package/dist/components/lmvz-input.js.map +1 -0
  105. package/dist/components/lmvz-menuitem.js +2 -1
  106. package/dist/components/lmvz-menuitem.js.map +1 -0
  107. package/dist/components/lmvz-select.d.ts +11 -0
  108. package/dist/components/lmvz-select.js +2 -0
  109. package/dist/components/lmvz-select.js.map +1 -0
  110. package/dist/components/p-B2g3aN-E.js +2 -0
  111. package/dist/components/p-B2g3aN-E.js.map +1 -0
  112. package/dist/components/p-BXdOuZTp.js +2 -0
  113. package/dist/components/p-BXdOuZTp.js.map +1 -0
  114. package/dist/components/p-BfTCfPZ1.js +3 -2
  115. package/dist/components/p-BfTCfPZ1.js.map +1 -0
  116. package/dist/components/p-BpCjj39Z.js +2 -0
  117. package/dist/components/p-BpCjj39Z.js.map +1 -0
  118. package/dist/components/p-BsHYIl56.js +2 -0
  119. package/dist/components/p-BsHYIl56.js.map +1 -0
  120. package/dist/components/p-C5rqq3bf.js +2 -0
  121. package/dist/components/p-C5rqq3bf.js.map +1 -0
  122. package/dist/components/p-CI0tffvo.js +2 -0
  123. package/dist/components/p-CI0tffvo.js.map +1 -0
  124. package/dist/components/p-CN0JX9-m.js +2 -1
  125. package/dist/components/p-CN0JX9-m.js.map +1 -0
  126. package/dist/components/p-ClmDNIy4.js +2 -0
  127. package/dist/components/p-ClmDNIy4.js.map +1 -0
  128. package/dist/components/p-DQEkWkMh.js +2 -0
  129. package/dist/components/p-DQEkWkMh.js.map +1 -0
  130. package/dist/components/p-X5fEFT9T.js +2 -0
  131. package/dist/components/p-X5fEFT9T.js.map +1 -0
  132. package/dist/components/p-vIq2biqy.js +13 -0
  133. package/dist/components/p-vIq2biqy.js.map +1 -0
  134. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  135. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  136. package/dist/esm/{assets-CvV1KMMV.js → assets-BD98wsl7.js} +4 -1
  137. package/dist/esm/assets-BD98wsl7.js.map +1 -0
  138. package/dist/esm/header-integration_7.entry.js +1016 -0
  139. package/dist/esm/header-integration_7.entry.js.map +1 -0
  140. package/dist/esm/{Effect-DyamyJqO.js → icons-D1lxdRXP.js} +975 -174
  141. package/dist/esm/icons-D1lxdRXP.js.map +1 -0
  142. package/dist/esm/{index-CekEw3_K.js → index-DoNkkDv1.js} +6 -1
  143. package/dist/esm/index-DoNkkDv1.js.map +1 -0
  144. package/dist/esm/{index-smGPjoDX.js → index-WeqgWisK.js} +11 -651
  145. package/dist/esm/index-WeqgWisK.js.map +1 -0
  146. package/dist/esm/index.js +7 -5
  147. package/dist/esm/index.js.map +1 -0
  148. package/dist/esm/lmvz-action.entry.js +5 -2
  149. package/dist/esm/lmvz-action.entry.js.map +1 -0
  150. package/dist/esm/lmvz-card.entry.js +7 -4
  151. package/dist/esm/lmvz-card.entry.js.map +1 -0
  152. package/dist/esm/lmvz-chip.entry.js +5 -2
  153. package/dist/esm/lmvz-chip.entry.js.map +1 -0
  154. package/dist/esm/lmvz-components.js +7 -4
  155. package/dist/esm/lmvz-components.js.map +1 -0
  156. package/dist/esm/loader.js +6 -3
  157. package/dist/esm/loader.js.map +1 -0
  158. package/dist/ext-libs.d.ts +1 -0
  159. package/dist/lmvz-components/index.esm.js +2 -1
  160. package/dist/lmvz-components/index.esm.js.map +1 -0
  161. package/dist/lmvz-components/lmvz-components.esm.js +2 -1
  162. package/dist/lmvz-components/lmvz-components.esm.js.map +1 -0
  163. package/dist/lmvz-components/p-33485219.entry.js +2 -0
  164. package/dist/lmvz-components/p-33485219.entry.js.map +1 -0
  165. package/dist/lmvz-components/p-76032c32.entry.js +2 -0
  166. package/dist/lmvz-components/p-76032c32.entry.js.map +1 -0
  167. package/dist/lmvz-components/p-7aeec9a8.entry.js +7 -0
  168. package/dist/lmvz-components/p-7aeec9a8.entry.js.map +1 -0
  169. package/dist/lmvz-components/p-84e0a9dd.entry.js +2 -0
  170. package/dist/lmvz-components/p-84e0a9dd.entry.js.map +1 -0
  171. package/dist/lmvz-components/p-CkJb8WVZ.js +2 -0
  172. package/dist/lmvz-components/p-CkJb8WVZ.js.map +1 -0
  173. package/dist/lmvz-components/p-DQuL1Twl.js +2 -1
  174. package/dist/lmvz-components/p-DQuL1Twl.js.map +1 -0
  175. package/dist/lmvz-components/p-WeqgWisK.js +3 -0
  176. package/dist/lmvz-components/p-WeqgWisK.js.map +1 -0
  177. package/dist/lmvz-components/p-Z9X0_ik0.js +2 -0
  178. package/dist/lmvz-components/p-Z9X0_ik0.js.map +1 -0
  179. package/dist/lmvz-components/p-eP0oxQ44.js +13 -0
  180. package/dist/lmvz-components/p-eP0oxQ44.js.map +1 -0
  181. package/dist/manifest.json +392 -68
  182. package/dist/stencil.config.base.js +45 -0
  183. package/dist/stencil.config.base.js.map +1 -0
  184. package/dist/stencil.config.dev.js +22 -0
  185. package/dist/stencil.config.dev.js.map +1 -0
  186. package/dist/stencil.config.integration.js +27 -0
  187. package/dist/stencil.config.integration.js.map +1 -0
  188. package/dist/stencil.config.js +16 -0
  189. package/dist/stencil.config.js.map +1 -0
  190. package/dist/stencil.config.prod.js +30 -0
  191. package/dist/stencil.config.prod.js.map +1 -0
  192. package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.base.d.ts +2 -0
  193. package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.d.ts +2 -0
  194. package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.dev.d.ts +2 -0
  195. package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.integration.d.ts +2 -0
  196. package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.prod.d.ts +2 -0
  197. package/dist/types/components/lmvz-action/lmvz-action.d.ts +1 -1
  198. package/dist/types/components/lmvz-button/lmvz-button.d.ts +2 -2
  199. package/dist/types/components/lmvz-card/lmvz-card.d.ts +1 -1
  200. package/dist/types/components/lmvz-header/lmvz-header.d.ts +4 -4
  201. package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +4 -4
  202. package/dist/types/components/lmvz-input/lmvz-input.d.ts +4 -4
  203. package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +3 -3
  204. package/dist/types/components/lmvz-select/lmvz-select.d.ts +24 -0
  205. package/dist/types/components.d.ts +173 -3
  206. package/dist/types/index.d.ts +1 -1
  207. package/dist/types/integration/header-integration.d.ts +5 -0
  208. package/dist/types/utils/aria/aria-validation-controller.d.ts +1 -1
  209. package/dist/types/utils/aria/element-activation-controller.d.ts +1 -1
  210. package/dist/types/utils/component.d.ts +2 -2
  211. package/dist/types/utils/http.d.ts +3 -3
  212. package/dist/types/utils/validation/svg.d.ts +1 -1
  213. package/hydrate/index.js +998 -436
  214. package/hydrate/index.mjs +998 -436
  215. package/package.json +37 -73
  216. package/readme.md +2 -2
  217. package/dist/cjs/aria-loader-BBKbBZLq.js +0 -76
  218. package/dist/cjs/component-CRc6eHcV.js +0 -138
  219. package/dist/cjs/element-activation-controller-DC_6T0Rt.js +0 -31
  220. package/dist/cjs/icons-Brr4vqiE.js +0 -653
  221. package/dist/cjs/index-Bp6Dd2i1.js +0 -94
  222. package/dist/cjs/lmvz-button.cjs.entry.js +0 -73
  223. package/dist/cjs/lmvz-header.cjs.entry.js +0 -142
  224. package/dist/cjs/lmvz-icon.cjs.entry.js +0 -87
  225. package/dist/cjs/lmvz-input.cjs.entry.js +0 -177
  226. package/dist/cjs/lmvz-menuitem.cjs.entry.js +0 -34
  227. package/dist/cjs/reactive-controller-host-DWpVosFu.js +0 -189
  228. package/dist/collection/utils/typing.js +0 -1
  229. package/dist/components/p-B3JVFwO1.js +0 -1
  230. package/dist/components/p-BaPwpeMs.js +0 -1
  231. package/dist/components/p-CSRpdnrt.js +0 -1
  232. package/dist/components/p-DK2hpvEW.js +0 -12
  233. package/dist/components/p-DcMNH3fv.js +0 -1
  234. package/dist/components/p-DugBvwmd.js +0 -1
  235. package/dist/esm/aria-loader-DB71Xewa.js +0 -69
  236. package/dist/esm/component-B3JVFwO1.js +0 -132
  237. package/dist/esm/element-activation-controller-CN0JX9-m.js +0 -29
  238. package/dist/esm/icons-C69Um2xB.js +0 -649
  239. package/dist/esm/index-BfTCfPZ1.js +0 -92
  240. package/dist/esm/lmvz-button.entry.js +0 -71
  241. package/dist/esm/lmvz-header.entry.js +0 -140
  242. package/dist/esm/lmvz-icon.entry.js +0 -85
  243. package/dist/esm/lmvz-input.entry.js +0 -175
  244. package/dist/esm/lmvz-menuitem.entry.js +0 -32
  245. package/dist/esm/reactive-controller-host-1nFoJEdT.js +0 -186
  246. package/dist/lmvz-components/p-0e5aa1a3.entry.js +0 -1
  247. package/dist/lmvz-components/p-18c18de4.entry.js +0 -1
  248. package/dist/lmvz-components/p-5775a56c.entry.js +0 -1
  249. package/dist/lmvz-components/p-814ee542.entry.js +0 -1
  250. package/dist/lmvz-components/p-9faac8f3.entry.js +0 -1
  251. package/dist/lmvz-components/p-B3JVFwO1.js +0 -1
  252. package/dist/lmvz-components/p-B3j8zrhV.js +0 -1
  253. package/dist/lmvz-components/p-BEoSvNlI.js +0 -1
  254. package/dist/lmvz-components/p-BTpia82J.js +0 -1
  255. package/dist/lmvz-components/p-BfTCfPZ1.js +0 -6
  256. package/dist/lmvz-components/p-CN0JX9-m.js +0 -1
  257. package/dist/lmvz-components/p-D7GrtdQF.js +0 -1
  258. package/dist/lmvz-components/p-DyamyJqO.js +0 -1
  259. package/dist/lmvz-components/p-c61f7daa.entry.js +0 -1
  260. package/dist/lmvz-components/p-c6bae21b.entry.js +0 -1
  261. package/dist/lmvz-components/p-cM67HC0Z.js +0 -12
  262. package/dist/lmvz-components/p-d4b68381.entry.js +0 -1
  263. package/dist/lmvz-components/p-smGPjoDX.js +0 -2
  264. package/dist/types/utils/typing.d.ts +0 -3
@@ -4,35 +4,11 @@ const NAMESPACE = 'lmvz-components';
4
4
  const BUILD = /* lmvz-components */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.43.2 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
 
10
10
  var Build = {
11
11
  isDev: false};
12
- var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
13
- PrimitiveType2["Undefined"] = "undefined";
14
- PrimitiveType2["Null"] = "null";
15
- PrimitiveType2["String"] = "string";
16
- PrimitiveType2["Number"] = "number";
17
- PrimitiveType2["SpecialNumber"] = "number";
18
- PrimitiveType2["Boolean"] = "boolean";
19
- PrimitiveType2["BigInt"] = "bigint";
20
- return PrimitiveType2;
21
- })(PrimitiveType || {});
22
- var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
23
- NonPrimitiveType2["Array"] = "array";
24
- NonPrimitiveType2["Date"] = "date";
25
- NonPrimitiveType2["Map"] = "map";
26
- NonPrimitiveType2["Object"] = "object";
27
- NonPrimitiveType2["RegularExpression"] = "regexp";
28
- NonPrimitiveType2["Set"] = "set";
29
- NonPrimitiveType2["Channel"] = "channel";
30
- NonPrimitiveType2["Symbol"] = "symbol";
31
- return NonPrimitiveType2;
32
- })(NonPrimitiveType || {});
33
- var TYPE_CONSTANT = "type";
34
- var VALUE_CONSTANT = "value";
35
- var SERIALIZED_PREFIX = "serialized:";
36
12
 
37
13
  // src/utils/get-prop-descriptor.ts
38
14
  function getPropertyDescriptor(obj, memberName, getOnly) {
@@ -150,16 +126,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
150
126
 
151
127
  // src/client/client-style.ts
152
128
  var styles = /* @__PURE__ */ new Map();
153
-
154
- // src/runtime/runtime-constants.ts
155
- var CONTENT_REF_ID = "r";
156
- var ORG_LOCATION_ID = "o";
157
- var SLOT_NODE_ID = "s";
158
- var TEXT_NODE_ID = "t";
159
- var COMMENT_NODE_ID = "c";
160
- var HYDRATE_ID = "s-id";
161
- var HYDRATED_STYLE_ID = "sty-id";
162
- var HYDRATE_CHILD_ID = "c-id";
163
129
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
164
130
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
165
131
  var XLINK_NS = "http://www.w3.org/1999/xlink";
@@ -326,34 +292,6 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
326
292
  }
327
293
  return slotName === "";
328
294
  };
329
- var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
330
- if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
331
- return;
332
- }
333
- const slottedNodeLocation = document.createTextNode("");
334
- slottedNodeLocation["s-nr"] = newChild;
335
- if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
336
- const parent = slotNode["s-cr"].parentNode;
337
- const appendMethod = internalCall(parent, "appendChild");
338
- if (typeof position !== "undefined") {
339
- slottedNodeLocation["s-oo"] = position;
340
- const childNodes = internalCall(parent, "childNodes");
341
- const slotRelocateNodes = [slottedNodeLocation];
342
- childNodes.forEach((n) => {
343
- if (n["s-nr"]) slotRelocateNodes.push(n);
344
- });
345
- slotRelocateNodes.sort((a, b) => {
346
- if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
347
- else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
348
- return 0;
349
- });
350
- slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
351
- } else {
352
- appendMethod.call(parent, slottedNodeLocation);
353
- }
354
- newChild["s-ol"] = slottedNodeLocation;
355
- newChild["s-sh"] = slotNode["s-hn"];
356
- };
357
295
  var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
358
296
  function patchSlotNode(node) {
359
297
  if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
@@ -457,10 +395,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
457
395
  if (!appliedStyles) {
458
396
  rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
459
397
  }
460
- const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
461
- if (existingStyleElm) {
462
- existingStyleElm.textContent = style;
463
- } else if (!appliedStyles.has(scopeId2)) {
398
+ if (!appliedStyles.has(scopeId2)) {
464
399
  styleElm = win.document.createElement("style");
465
400
  styleElm.textContent = style;
466
401
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
@@ -529,12 +464,6 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
529
464
  styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
530
465
  }
531
466
  appliedStyles.add(scopeId2);
532
- if ("host" in styleContainerNode) {
533
- const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
534
- if (ssrStyleElm) {
535
- writeTask(() => ssrStyleElm.remove());
536
- }
537
- }
538
467
  }
539
468
  }
540
469
  }
@@ -555,17 +484,6 @@ var attachStyles = (hostRef) => {
555
484
  endAttachStyles();
556
485
  };
557
486
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
558
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
559
- var hydrateScopedToShadow = () => {
560
- if (!win.document) {
561
- return;
562
- }
563
- const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
564
- let i2 = 0;
565
- for (; i2 < styles2.length; i2++) {
566
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
567
- }
568
- };
569
487
 
570
488
  // src/utils/helpers.ts
571
489
  var isDef = (v) => v != null && v !== void 0;
@@ -654,529 +572,8 @@ var newVNode = (tag, text) => {
654
572
  var Host = {};
655
573
  var isHost = (node) => node && node.$tag$ === Host;
656
574
 
657
- // src/runtime/client-hydrate.ts
658
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
659
- var _a, _b, _c, _d;
660
- const endHydrate = createTime("hydrateClient", tagName);
661
- const shadowRoot = hostElm.shadowRoot;
662
- const childRenderNodes = [];
663
- const slotNodes = [];
664
- const slottedNodes = [];
665
- const shadowRootNodes = shadowRoot ? [] : null;
666
- const vnode = newVNode(tagName, null);
667
- vnode.$elm$ = hostElm;
668
- let scopeId2;
669
- {
670
- const cmpMeta = hostRef.$cmpMeta$;
671
- if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
672
- scopeId2 = hostElm["s-sc"];
673
- hostElm.classList.add(scopeId2 + "-h");
674
- } else if (hostElm["s-sc"]) {
675
- delete hostElm["s-sc"];
676
- }
677
- }
678
- if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
679
- initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
680
- }
681
- hostElm[HYDRATE_ID] = hostId;
682
- hostElm.removeAttribute(HYDRATE_ID);
683
- hostRef.$vnode$ = clientHydrate(
684
- vnode,
685
- childRenderNodes,
686
- slotNodes,
687
- shadowRootNodes,
688
- hostElm,
689
- hostElm,
690
- hostId,
691
- slottedNodes
692
- );
693
- let crIndex = 0;
694
- const crLength = childRenderNodes.length;
695
- let childRenderNode;
696
- for (crIndex; crIndex < crLength; crIndex++) {
697
- childRenderNode = childRenderNodes[crIndex];
698
- const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
699
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
700
- const node = childRenderNode.$elm$;
701
- if (!shadowRoot) {
702
- node["s-hn"] = transformTag(tagName).toUpperCase();
703
- if (childRenderNode.$tag$ === "slot") {
704
- node["s-cr"] = hostElm["s-cr"];
705
- }
706
- } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
707
- const cmpMeta = getHostRef(childRenderNode.$elm$);
708
- if (cmpMeta) {
709
- const scopeId3 = getScopeId(
710
- cmpMeta.$cmpMeta$);
711
- const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
712
- if (styleSheet) {
713
- shadowRootNodes.unshift(styleSheet.cloneNode(true));
714
- }
715
- }
716
- }
717
- if (childRenderNode.$tag$ === "slot") {
718
- childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
719
- if (childRenderNode.$children$) {
720
- childRenderNode.$flags$ |= 2 /* isSlotFallback */;
721
- if (!childRenderNode.$elm$.childNodes.length) {
722
- childRenderNode.$children$.forEach((c) => {
723
- childRenderNode.$elm$.appendChild(c.$elm$);
724
- });
725
- }
726
- } else {
727
- childRenderNode.$flags$ |= 1 /* isSlotReference */;
728
- }
729
- }
730
- if (orgLocationNode && orgLocationNode.isConnected) {
731
- if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
732
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
733
- }
734
- orgLocationNode.parentNode.removeChild(orgLocationNode);
735
- if (!shadowRoot) {
736
- node["s-oo"] = parseInt(childRenderNode.$nodeId$);
737
- }
738
- }
739
- if (orgLocationNode && !orgLocationNode["s-id"]) {
740
- plt.$orgLocNodes$.delete(orgLocationId);
741
- }
742
- }
743
- const hosts = [];
744
- const snLen = slottedNodes.length;
745
- let snIndex = 0;
746
- let slotGroup;
747
- let snGroupIdx;
748
- let snGroupLen;
749
- let slottedItem;
750
- let currentPos = 0;
751
- for (snIndex; snIndex < snLen; snIndex++) {
752
- slotGroup = slottedNodes[snIndex];
753
- if (!slotGroup || !slotGroup.length) continue;
754
- snGroupLen = slotGroup.length;
755
- snGroupIdx = 0;
756
- for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
757
- slottedItem = slotGroup[snGroupIdx];
758
- if (!hosts[slottedItem.hostId]) {
759
- hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
760
- }
761
- if (!hosts[slottedItem.hostId]) continue;
762
- const hostEle = hosts[slottedItem.hostId];
763
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
764
- hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
765
- }
766
- if (!hostEle.shadowRoot || !shadowRoot) {
767
- if (!slottedItem.slot["s-cr"]) {
768
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
769
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
770
- slottedItem.slot["s-cr"] = hostEle;
771
- } else {
772
- slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
773
- }
774
- }
775
- addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
776
- if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
777
- slottedItem.node.removeAttribute("slot");
778
- }
779
- }
780
- currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
781
- }
782
- }
783
- if (scopeId2 && slotNodes.length) {
784
- slotNodes.forEach((slot) => {
785
- slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
786
- });
787
- }
788
- if (shadowRoot && !shadowRoot.childNodes.length) {
789
- let rnIdex = 0;
790
- const rnLen = shadowRootNodes.length;
791
- if (rnLen) {
792
- for (rnIdex; rnIdex < rnLen; rnIdex++) {
793
- const node = shadowRootNodes[rnIdex];
794
- if (node) {
795
- shadowRoot.appendChild(node);
796
- }
797
- }
798
- Array.from(hostElm.childNodes).forEach((node) => {
799
- if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
800
- if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
801
- node.removeAttribute("hidden");
802
- } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
803
- node.parentNode.removeChild(node);
804
- }
805
- }
806
- });
807
- }
808
- }
809
- hostRef.$hostElement$ = hostElm;
810
- endHydrate();
811
- };
812
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
813
- let childNodeType;
814
- let childIdSplt;
815
- let childVNode;
816
- let i2;
817
- const scopeId2 = hostElm["s-sc"];
818
- if (node.nodeType === 1 /* ElementNode */) {
819
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
820
- if (childNodeType) {
821
- childIdSplt = childNodeType.split(".");
822
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
823
- childVNode = createSimpleVNode({
824
- $flags$: 0,
825
- $hostId$: childIdSplt[0],
826
- $nodeId$: childIdSplt[1],
827
- $depth$: childIdSplt[2],
828
- $index$: childIdSplt[3],
829
- $tag$: node.tagName.toLowerCase(),
830
- $elm$: node,
831
- // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
832
- // won't try to reconcile them. Classes set on the node will be blown away.
833
- $attrs$: { class: node.className || "" }
834
- });
835
- childRenderNodes.push(childVNode);
836
- node.removeAttribute(HYDRATE_CHILD_ID);
837
- if (!parentVNode.$children$) {
838
- parentVNode.$children$ = [];
839
- }
840
- if (scopeId2 && childIdSplt[0] === hostId) {
841
- node["s-si"] = scopeId2;
842
- childVNode.$attrs$.class += " " + scopeId2;
843
- }
844
- const slotName = childVNode.$elm$.getAttribute("s-sn");
845
- if (typeof slotName === "string") {
846
- if (childVNode.$tag$ === "slot-fb") {
847
- addSlot(
848
- slotName,
849
- childIdSplt[2],
850
- childVNode,
851
- node,
852
- parentVNode,
853
- childRenderNodes,
854
- slotNodes,
855
- shadowRootNodes,
856
- slottedNodes
857
- );
858
- if (scopeId2) {
859
- node.classList.add(scopeId2);
860
- }
861
- }
862
- childVNode.$elm$["s-sn"] = slotName;
863
- childVNode.$elm$.removeAttribute("s-sn");
864
- }
865
- if (childVNode.$index$ !== void 0) {
866
- parentVNode.$children$[childVNode.$index$] = childVNode;
867
- }
868
- parentVNode = childVNode;
869
- if (shadowRootNodes && childVNode.$depth$ === "0") {
870
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
871
- }
872
- }
873
- }
874
- if (node.shadowRoot) {
875
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
876
- clientHydrate(
877
- parentVNode,
878
- childRenderNodes,
879
- slotNodes,
880
- shadowRootNodes,
881
- hostElm,
882
- node.shadowRoot.childNodes[i2],
883
- hostId,
884
- slottedNodes
885
- );
886
- }
887
- }
888
- const nonShadowNodes = node.__childNodes || node.childNodes;
889
- for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
890
- clientHydrate(
891
- parentVNode,
892
- childRenderNodes,
893
- slotNodes,
894
- shadowRootNodes,
895
- hostElm,
896
- nonShadowNodes[i2],
897
- hostId,
898
- slottedNodes
899
- );
900
- }
901
- } else if (node.nodeType === 8 /* CommentNode */) {
902
- childIdSplt = node.nodeValue.split(".");
903
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
904
- childNodeType = childIdSplt[0];
905
- childVNode = createSimpleVNode({
906
- $hostId$: childIdSplt[1],
907
- $nodeId$: childIdSplt[2],
908
- $depth$: childIdSplt[3],
909
- $index$: childIdSplt[4] || "0",
910
- $elm$: node,
911
- $attrs$: null,
912
- $children$: null,
913
- $key$: null,
914
- $name$: null,
915
- $tag$: null,
916
- $text$: null
917
- });
918
- if (childNodeType === TEXT_NODE_ID) {
919
- childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
920
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
921
- childVNode.$text$ = childVNode.$elm$.textContent;
922
- childRenderNodes.push(childVNode);
923
- node.remove();
924
- if (hostId === childVNode.$hostId$) {
925
- if (!parentVNode.$children$) {
926
- parentVNode.$children$ = [];
927
- }
928
- parentVNode.$children$[childVNode.$index$] = childVNode;
929
- }
930
- if (shadowRootNodes && childVNode.$depth$ === "0") {
931
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
932
- }
933
- }
934
- } else if (childNodeType === COMMENT_NODE_ID) {
935
- childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
936
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
937
- childRenderNodes.push(childVNode);
938
- node.remove();
939
- }
940
- } else if (childVNode.$hostId$ === hostId) {
941
- if (childNodeType === SLOT_NODE_ID) {
942
- const slotName = node["s-sn"] = childIdSplt[5] || "";
943
- addSlot(
944
- slotName,
945
- childIdSplt[2],
946
- childVNode,
947
- node,
948
- parentVNode,
949
- childRenderNodes,
950
- slotNodes,
951
- shadowRootNodes,
952
- slottedNodes
953
- );
954
- } else if (childNodeType === CONTENT_REF_ID) {
955
- if (shadowRootNodes) {
956
- node.remove();
957
- } else {
958
- hostElm["s-cr"] = node;
959
- node["s-cn"] = true;
960
- }
961
- }
962
- }
963
- }
964
- } else if (parentVNode && parentVNode.$tag$ === "style") {
965
- const vnode = newVNode(null, node.textContent);
966
- vnode.$elm$ = node;
967
- vnode.$index$ = "0";
968
- parentVNode.$children$ = [vnode];
969
- }
970
- return parentVNode;
971
- };
972
- var initializeDocumentHydrate = (node, orgLocNodes) => {
973
- if (node.nodeType === 1 /* ElementNode */) {
974
- const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
975
- if (componentId) {
976
- orgLocNodes.set(componentId, node);
977
- }
978
- let i2 = 0;
979
- if (node.shadowRoot) {
980
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
981
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
982
- }
983
- }
984
- const nonShadowNodes = node.__childNodes || node.childNodes;
985
- for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
986
- initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
987
- }
988
- } else if (node.nodeType === 8 /* CommentNode */) {
989
- const childIdSplt = node.nodeValue.split(".");
990
- if (childIdSplt[0] === ORG_LOCATION_ID) {
991
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
992
- node.nodeValue = "";
993
- node["s-en"] = childIdSplt[3];
994
- }
995
- }
996
- };
997
- var createSimpleVNode = (vnode) => {
998
- const defaultVNode = {
999
- $flags$: 0,
1000
- $hostId$: null,
1001
- $nodeId$: null,
1002
- $depth$: null,
1003
- $index$: "0",
1004
- $elm$: null,
1005
- $attrs$: null,
1006
- $children$: null,
1007
- $key$: null,
1008
- $name$: null,
1009
- $tag$: null,
1010
- $text$: null
1011
- };
1012
- return { ...defaultVNode, ...vnode };
1013
- };
1014
- function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1015
- node["s-sr"] = true;
1016
- childVNode.$name$ = slotName || null;
1017
- childVNode.$tag$ = "slot";
1018
- const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1019
- if (shadowRootNodes && win.document) {
1020
- const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1021
- if (childVNode.$name$) {
1022
- childVNode.$elm$.setAttribute("name", slotName);
1023
- }
1024
- if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1025
- internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
1026
- } else {
1027
- internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
1028
- }
1029
- addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1030
- node.remove();
1031
- if (childVNode.$depth$ === "0") {
1032
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1033
- }
1034
- } else {
1035
- const slot = childVNode.$elm$;
1036
- const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1037
- addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1038
- patchSlotNode(node);
1039
- if (shouldMove) {
1040
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1041
- }
1042
- }
1043
- childRenderNodes.push(childVNode);
1044
- slotNodes.push(childVNode);
1045
- if (!parentVNode.$children$) {
1046
- parentVNode.$children$ = [];
1047
- }
1048
- parentVNode.$children$[childVNode.$index$] = childVNode;
1049
- }
1050
- var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1051
- var _a, _b;
1052
- let slottedNode = slotNode.nextSibling;
1053
- slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1054
- if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1055
- do {
1056
- 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 */))) {
1057
- slottedNode["s-sn"] = slotName;
1058
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1059
- }
1060
- slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1061
- } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
1062
- };
1063
- var findCorrespondingNode = (node, type) => {
1064
- let sibling = node;
1065
- do {
1066
- sibling = sibling.nextSibling;
1067
- } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1068
- return sibling;
1069
- };
1070
-
1071
- // src/utils/remote-value.ts
1072
- var RemoteValue = class _RemoteValue {
1073
- /**
1074
- * Deserializes a LocalValue serialized object back to its original JavaScript representation
1075
- *
1076
- * @param serialized The serialized LocalValue object
1077
- * @returns The original JavaScript value/object
1078
- */
1079
- static fromLocalValue(serialized) {
1080
- const type = serialized[TYPE_CONSTANT];
1081
- const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
1082
- switch (type) {
1083
- case "string" /* String */:
1084
- return value;
1085
- case "boolean" /* Boolean */:
1086
- return value;
1087
- case "bigint" /* BigInt */:
1088
- return BigInt(value);
1089
- case "undefined" /* Undefined */:
1090
- return void 0;
1091
- case "null" /* Null */:
1092
- return null;
1093
- case "number" /* Number */:
1094
- if (value === "NaN") return NaN;
1095
- if (value === "-0") return -0;
1096
- if (value === "Infinity") return Infinity;
1097
- if (value === "-Infinity") return -Infinity;
1098
- return value;
1099
- case "array" /* Array */:
1100
- return value.map((item) => _RemoteValue.fromLocalValue(item));
1101
- case "date" /* Date */:
1102
- return new Date(value);
1103
- case "map" /* Map */:
1104
- const map = /* @__PURE__ */ new Map();
1105
- for (const [key, val] of value) {
1106
- const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1107
- const deserializedValue = _RemoteValue.fromLocalValue(val);
1108
- map.set(deserializedKey, deserializedValue);
1109
- }
1110
- return map;
1111
- case "object" /* Object */:
1112
- const obj = {};
1113
- for (const [key, val] of value) {
1114
- obj[key] = _RemoteValue.fromLocalValue(val);
1115
- }
1116
- return obj;
1117
- case "regexp" /* RegularExpression */:
1118
- const { pattern, flags } = value;
1119
- return new RegExp(pattern, flags);
1120
- case "set" /* Set */:
1121
- const set = /* @__PURE__ */ new Set();
1122
- for (const item of value) {
1123
- set.add(_RemoteValue.fromLocalValue(item));
1124
- }
1125
- return set;
1126
- case "symbol" /* Symbol */:
1127
- return Symbol(value);
1128
- default:
1129
- throw new Error(`Unsupported type: ${type}`);
1130
- }
1131
- }
1132
- /**
1133
- * Utility method to deserialize multiple LocalValues at once
1134
- *
1135
- * @param serializedValues Array of serialized LocalValue objects
1136
- * @returns Array of deserialized JavaScript values
1137
- */
1138
- static fromLocalValueArray(serializedValues) {
1139
- return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
1140
- }
1141
- /**
1142
- * Verifies if the given object matches the structure of a serialized LocalValue
1143
- *
1144
- * @param obj Object to verify
1145
- * @returns boolean indicating if the object has LocalValue structure
1146
- */
1147
- static isLocalValueObject(obj) {
1148
- if (typeof obj !== "object" || obj === null) {
1149
- return false;
1150
- }
1151
- if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
1152
- return false;
1153
- }
1154
- const type = obj[TYPE_CONSTANT];
1155
- const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
1156
- if (!hasTypeProperty) {
1157
- return false;
1158
- }
1159
- if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
1160
- return obj.hasOwnProperty(VALUE_CONSTANT);
1161
- }
1162
- return true;
1163
- }
1164
- };
1165
-
1166
- // src/utils/serialize.ts
1167
- function deserializeProperty(value) {
1168
- if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1169
- return value;
1170
- }
1171
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
1172
- }
1173
-
1174
575
  // src/runtime/parse-property-value.ts
1175
576
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1176
- if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1177
- propValue = deserializeProperty(propValue);
1178
- return propValue;
1179
- }
1180
577
  if (propValue != null && !isComplexType(propValue)) {
1181
578
  if (propType & 4 /* Boolean */) {
1182
579
  if (isFormAssociated && typeof propValue === "string") {
@@ -1229,15 +626,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1229
626
  const classList = elm.classList;
1230
627
  const oldClasses = parseClassList(oldValue);
1231
628
  let newClasses = parseClassList(newValue);
1232
- if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1233
- const scopeId2 = elm["s-sc"] || elm["s-si"];
1234
- newClasses.push(scopeId2);
1235
- oldClasses.forEach((c) => {
1236
- if (c.startsWith(scopeId2)) newClasses.push(c);
1237
- });
1238
- newClasses = [...new Set(newClasses)].filter((c) => c);
1239
- classList.add(...newClasses);
1240
- } else {
629
+ {
1241
630
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1242
631
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1243
632
  }
@@ -1387,9 +776,7 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1387
776
  oldVnodeAttrs[memberName],
1388
777
  void 0,
1389
778
  isSvgMode2,
1390
- newVnode.$flags$,
1391
- isInitialRender
1392
- );
779
+ newVnode.$flags$);
1393
780
  }
1394
781
  }
1395
782
  }
@@ -1400,9 +787,7 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1400
787
  oldVnodeAttrs[memberName],
1401
788
  newVnodeAttrs[memberName],
1402
789
  isSvgMode2,
1403
- newVnode.$flags$,
1404
- isInitialRender
1405
- );
790
+ newVnode.$flags$);
1406
791
  }
1407
792
  };
1408
793
  function sortedAttrNames(attrNames) {
@@ -1707,7 +1092,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1707
1092
  relocateToHostRoot(newVNode2.$elm$.parentElement);
1708
1093
  }
1709
1094
  }
1710
- updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
1095
+ updateElement(oldVNode, newVNode2, isSvgMode);
1711
1096
  }
1712
1097
  if (oldChildren !== null && newChildren !== null) {
1713
1098
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -1721,9 +1106,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1721
1106
  !isInitialRender && BUILD.updatable && oldChildren !== null
1722
1107
  ) {
1723
1108
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
1724
- } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
1725
- newVNode2.$children$ = oldChildren;
1726
- }
1109
+ } else ;
1727
1110
  } else if ((defaultHolder = elm["s-cr"])) {
1728
1111
  defaultHolder.parentNode.textContent = text;
1729
1112
  } else if (oldVNode.$text$ !== text) {
@@ -2127,13 +1510,7 @@ var postUpdateComponent = (hostRef) => {
2127
1510
  }
2128
1511
  };
2129
1512
  var appDidLoad = (who) => {
2130
- var _a;
2131
1513
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2132
- {
2133
- if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
2134
- plt.$orgLocNodes$.clear();
2135
- }
2136
- }
2137
1514
  };
2138
1515
  var safeCall = (instance, method, arg, elm) => {
2139
1516
  if (instance && instance[method]) {
@@ -2498,21 +1875,7 @@ var connectedCallback = (elm) => {
2498
1875
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2499
1876
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2500
1877
  hostRef.$flags$ |= 1 /* hasConnected */;
2501
- let hostId;
2502
1878
  {
2503
- hostId = elm.getAttribute(HYDRATE_ID);
2504
- if (hostId) {
2505
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2506
- const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2507
- elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2508
- } else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2509
- const scopeId2 = getScopeId(cmpMeta);
2510
- elm["s-sc"] = scopeId2;
2511
- }
2512
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2513
- }
2514
- }
2515
- if (!hostId) {
2516
1879
  if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2517
1880
  cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2518
1881
  setContentReference(elm);
@@ -2521,7 +1884,7 @@ var connectedCallback = (elm) => {
2521
1884
  {
2522
1885
  let ancestorComponent = elm;
2523
1886
  while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2524
- if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
1887
+ if (ancestorComponent["s-p"]) {
2525
1888
  attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2526
1889
  break;
2527
1890
  }
@@ -2600,12 +1963,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2600
1963
  let isBootstrapping = true;
2601
1964
  Object.assign(plt, options);
2602
1965
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
2603
- {
2604
- plt.$flags$ |= 2 /* appLoaded */;
2605
- }
2606
- {
2607
- hydrateScopedToShadow();
2608
- }
2609
1966
  let hasSlotRelocation = false;
2610
1967
  lazyBundles.map((lazyBundle) => {
2611
1968
  lazyBundle[1].map((compactMeta) => {
@@ -2750,3 +2107,6 @@ exports.h = h;
2750
2107
  exports.promiseResolve = promiseResolve;
2751
2108
  exports.registerInstance = registerInstance;
2752
2109
  exports.setNonce = setNonce;
2110
+ //# sourceMappingURL=index-B1Puzu82.js.map
2111
+
2112
+ //# sourceMappingURL=index-B1Puzu82.js.map