@rededor/cura 2.0.0-alpha.10 → 2.0.0-alpha.12

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 (851) hide show
  1. package/dist/cjs/app-globals-e8cmvmo1.js +69 -0
  2. package/dist/cjs/cura-accordion_21.cjs.entry.js +267 -208
  3. package/dist/cjs/cura-alert.cjs.entry.js +7 -8
  4. package/dist/cjs/cura-badge-counter.cjs.entry.js +13 -10
  5. package/dist/cjs/cura-badge-dot.cjs.entry.js +4 -7
  6. package/dist/cjs/cura-badge-pill.cjs.entry.js +7 -8
  7. package/dist/cjs/cura-button-outline.cjs.entry.js +15 -10
  8. package/dist/cjs/cura-button-select.cjs.entry.js +10 -9
  9. package/dist/cjs/cura-button.definitions-B3SK8MaV.js +0 -3
  10. package/dist/cjs/cura-calendar.cjs.entry.js +12 -9
  11. package/dist/cjs/cura-checkbox.cjs.entry.js +18 -11
  12. package/dist/cjs/cura-display.cjs.entry.js +10 -9
  13. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +4 -7
  14. package/dist/cjs/cura-forms.definitions-DVLuO67c.js +0 -3
  15. package/dist/cjs/cura-icon.definitions-DT0wF67y.js +0 -3
  16. package/dist/cjs/cura-icons-view.cjs.entry.js +4 -7
  17. package/dist/cjs/cura-input-date.cjs.entry.js +7 -8
  18. package/dist/cjs/cura-loader-bar.cjs.entry.js +10 -9
  19. package/dist/cjs/cura-modal.cjs.entry.js +19 -12
  20. package/dist/cjs/cura-progress-bar_2.cjs.entry.js +6 -9
  21. package/dist/cjs/cura-radio.cjs.entry.js +15 -10
  22. package/dist/cjs/cura-stepper.cjs.entry.js +4 -7
  23. package/dist/cjs/cura-switch.cjs.entry.js +13 -10
  24. package/dist/cjs/cura-tabs-button.cjs.entry.js +7 -8
  25. package/dist/cjs/cura-tabs-transparent.cjs.entry.js +7 -8
  26. package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js +0 -3
  27. package/dist/cjs/cura-theme-module-Dg1d3VUN.js +237 -0
  28. package/dist/cjs/cura-toast.cjs.entry.js +10 -9
  29. package/dist/cjs/cura-tooltip.cjs.entry.js +4 -7
  30. package/dist/cjs/cura.cjs.js +8 -8
  31. package/dist/cjs/{index-BK9MSAiE.js → index-BLhmsPd0.js} +705 -579
  32. package/dist/cjs/index-EyP6Zlkd.js +0 -3
  33. package/dist/cjs/index.cjs.js +3 -4
  34. package/dist/cjs/loader.cjs.js +7 -7
  35. package/dist/cjs/static-DHz-FA_O.js +88 -0
  36. package/dist/cjs/theme-legacy-default-COE-hjD7.js +264 -0
  37. package/dist/collection/api/cura-api.js +0 -1
  38. package/dist/collection/api/cura-api.type.js +0 -1
  39. package/dist/collection/api/modules/cura-theme-breakpoints-module.js +0 -1
  40. package/dist/collection/api/modules/cura-theme-colors-module.js +0 -1
  41. package/dist/collection/api/modules/cura-theme-fonts-module.js +0 -1
  42. package/dist/collection/api/modules/cura-theme-module.js +0 -1
  43. package/dist/collection/api/modules/cura-theme-spacing-module.js +0 -1
  44. package/dist/collection/api/theme-presets/static.js +0 -1
  45. package/dist/collection/api/theme-presets/theme-default.js +0 -1
  46. package/dist/collection/api/theme-presets/theme-legacy-default.js +0 -1
  47. package/dist/collection/api/theme-presets/theme-maternity.js +0 -1
  48. package/dist/collection/api/theme-presets/theme-oncology.js +0 -1
  49. package/dist/collection/api/theme-presets/theme-perinatal-temporary.js +0 -1
  50. package/dist/collection/api/theme-presets/theme-presets.js +0 -1
  51. package/dist/collection/api/theme-presets/theme-richet.js +0 -1
  52. package/dist/collection/assets/icons/iconset-default-list.js +0 -1
  53. package/dist/collection/collection-manifest.json +3 -2
  54. package/dist/collection/components/accordion/cura-accordion/cura-accordion.css +0 -0
  55. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +9 -10
  56. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +0 -1
  57. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.css +0 -0
  58. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +9 -10
  59. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.css +0 -0
  60. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +5 -6
  61. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js +0 -1
  62. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.css +0 -0
  63. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +2 -3
  64. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.stories.js +0 -1
  65. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.css +0 -0
  66. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +3 -4
  67. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js +0 -1
  68. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.css +0 -0
  69. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +8 -9
  70. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js +0 -1
  71. package/dist/collection/components/buttons/cura-button/cura-button.css +0 -0
  72. package/dist/collection/components/buttons/cura-button/cura-button.js +24 -25
  73. package/dist/collection/components/buttons/cura-button/cura-button.stories.js +0 -1
  74. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.css +0 -0
  75. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +17 -18
  76. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +0 -1
  77. package/dist/collection/components/buttons/cura-button-select/cura-button-select.css +0 -0
  78. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +12 -13
  79. package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js +0 -1
  80. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.css +0 -0
  81. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +16 -17
  82. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +0 -1
  83. package/dist/collection/components/buttons/cura-button.definitions.js +0 -1
  84. package/dist/collection/components/cura-alert/cura-alert.css +0 -0
  85. package/dist/collection/components/cura-alert/cura-alert.js +7 -8
  86. package/dist/collection/components/cura-alert/cura-alert.stories.js +0 -1
  87. package/dist/collection/components/cura-avatar/cura-avatar.css +0 -0
  88. package/dist/collection/components/cura-avatar/cura-avatar.definitions.js +0 -1
  89. package/dist/collection/components/cura-avatar/cura-avatar.js +13 -14
  90. package/dist/collection/components/cura-avatar/cura-avatar.stories.js +0 -1
  91. package/dist/collection/components/cura-calendar/cura-calendar.css +0 -0
  92. package/dist/collection/components/cura-calendar/cura-calendar.js +21 -25
  93. package/dist/collection/components/cura-calendar/cura-calendar.stories.js +0 -1
  94. package/dist/collection/components/cura-card/cura-card.css +0 -0
  95. package/dist/collection/components/cura-card/cura-card.js +7 -8
  96. package/dist/collection/components/cura-card/cura-card.stories.js +0 -1
  97. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.css +0 -0
  98. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js +0 -1
  99. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.js +0 -1
  100. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.css +0 -0
  101. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js +0 -1
  102. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js +0 -1
  103. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.css +0 -0
  104. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +7 -8
  105. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js +0 -1
  106. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.css +0 -0
  107. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +13 -14
  108. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js +0 -1
  109. package/dist/collection/components/cura-icon/cura-icon.css +0 -0
  110. package/dist/collection/components/cura-icon/cura-icon.definitions.js +0 -1
  111. package/dist/collection/components/cura-icon/cura-icon.js +6 -7
  112. package/dist/collection/components/cura-icon/cura-icon.stories.js +0 -1
  113. package/dist/collection/components/cura-icons-view/cura-icons-view.css +0 -0
  114. package/dist/collection/components/cura-icons-view/cura-icons-view.js +0 -1
  115. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js +0 -1
  116. package/dist/collection/components/cura-modal/cura-modal.css +0 -0
  117. package/dist/collection/components/cura-modal/cura-modal.js +9 -10
  118. package/dist/collection/components/cura-modal/cura-modal.stories.js +0 -1
  119. package/dist/collection/components/cura-page-template/cura-page-template.css +0 -0
  120. package/dist/collection/components/cura-page-template/cura-page-template.js +1 -2
  121. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.css +0 -0
  122. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +8 -9
  123. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.css +0 -0
  124. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +6 -7
  125. package/dist/collection/components/cura-stepper/cura-stepper.css +0 -0
  126. package/dist/collection/components/cura-stepper/cura-stepper.js +8 -8
  127. package/dist/collection/components/cura-stepper/cura-stepper.stories.js +0 -1
  128. package/dist/collection/components/cura-stepper/stepper.type.js +0 -1
  129. package/dist/collection/components/cura-toast/cura-toast.css +0 -0
  130. package/dist/collection/components/cura-toast/cura-toast.js +9 -10
  131. package/dist/collection/components/cura-toast/cura-toast.stories.js +0 -1
  132. package/dist/collection/components/cura-tooltip/cura-tooltip.css +0 -0
  133. package/dist/collection/components/cura-tooltip/cura-tooltip.js +8 -9
  134. package/dist/collection/components/cura-tooltip/cura-tooltip.stories.js +0 -1
  135. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.css +0 -0
  136. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +19 -20
  137. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +0 -1
  138. package/dist/collection/components/forms/cura-forms.definitions.js +0 -1
  139. package/dist/collection/components/forms/cura-input-date/cura-input-date.css +0 -0
  140. package/dist/collection/components/forms/cura-input-date/cura-input-date.js +15 -16
  141. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +0 -1
  142. package/dist/collection/components/forms/cura-input-text/cura-input-text.css +0 -0
  143. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +29 -30
  144. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js +0 -1
  145. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js +0 -1
  146. package/dist/collection/components/forms/cura-label/cura-label.css +0 -0
  147. package/dist/collection/components/forms/cura-label/cura-label.js +8 -9
  148. package/dist/collection/components/forms/cura-label/cura-label.stories.js +0 -1
  149. package/dist/collection/components/forms/cura-radio/cura-radio.css +0 -0
  150. package/dist/collection/components/forms/cura-radio/cura-radio.js +15 -16
  151. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +0 -1
  152. package/dist/collection/components/forms/cura-select/cura-select.css +0 -0
  153. package/dist/collection/components/forms/cura-select/cura-select.js +13 -14
  154. package/dist/collection/components/forms/cura-select/cura-select.stories.js +0 -1
  155. package/dist/collection/components/forms/cura-select-options/cura-select-option.css +0 -0
  156. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +5 -6
  157. package/dist/collection/components/forms/cura-switch/cura-switch.css +0 -0
  158. package/dist/collection/components/forms/cura-switch/cura-switch.js +10 -11
  159. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +0 -1
  160. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.css +0 -0
  161. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +2 -3
  162. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js +0 -1
  163. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.css +0 -0
  164. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +2 -3
  165. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +0 -1
  166. package/dist/collection/components/tabs/cura-tabs/cura-tabs.css +0 -0
  167. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +9 -10
  168. package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js +0 -1
  169. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.css +0 -0
  170. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +9 -10
  171. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js +0 -1
  172. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.css +0 -0
  173. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +3 -4
  174. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js +0 -1
  175. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.css +0 -0
  176. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +9 -10
  177. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js +0 -1
  178. package/dist/collection/components/tabs/cura-tabs.definitions.js +0 -1
  179. package/dist/collection/components/text/cura-display/cura-display.css +0 -0
  180. package/dist/collection/components/text/cura-display/cura-display.js +7 -8
  181. package/dist/collection/components/text/cura-display/cura-display.stories.js +0 -1
  182. package/dist/collection/components/text/cura-heading/cura-heading.css +0 -0
  183. package/dist/collection/components/text/cura-heading/cura-heading.js +9 -10
  184. package/dist/collection/components/text/cura-heading/cura-heading.stories.js +0 -1
  185. package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +0 -0
  186. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +7 -8
  187. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +0 -1
  188. package/dist/collection/index.js +0 -1
  189. package/dist/collection/rededor-cura-start.js +0 -1
  190. package/dist/collection/utils/FixedElementScrollBehavior.js +0 -1
  191. package/dist/collection/utils/utils.js +0 -1
  192. package/dist/components/cura-accordion-item.d.ts +0 -0
  193. package/dist/components/cura-accordion-item.js +1 -102
  194. package/dist/components/cura-accordion.d.ts +0 -0
  195. package/dist/components/cura-accordion.js +1 -144
  196. package/dist/components/cura-alert.d.ts +0 -0
  197. package/dist/components/cura-alert.js +1 -110
  198. package/dist/components/cura-avatar.d.ts +0 -0
  199. package/dist/components/cura-avatar.js +1 -112
  200. package/dist/components/cura-badge-counter.d.ts +0 -0
  201. package/dist/components/cura-badge-counter.js +1 -9
  202. package/dist/components/cura-badge-distance.d.ts +0 -0
  203. package/dist/components/cura-badge-distance.js +1 -73
  204. package/dist/components/cura-badge-dot.d.ts +0 -0
  205. package/dist/components/cura-badge-dot.js +1 -73
  206. package/dist/components/cura-badge-pill.d.ts +0 -0
  207. package/dist/components/cura-badge-pill.js +1 -9
  208. package/dist/components/cura-button-outline.d.ts +0 -0
  209. package/dist/components/cura-button-outline.js +1 -206
  210. package/dist/components/cura-button-select.d.ts +0 -0
  211. package/dist/components/cura-button-select.js +1 -163
  212. package/dist/components/cura-button-transparent.d.ts +0 -0
  213. package/dist/components/cura-button-transparent.js +1 -9
  214. package/dist/components/cura-button.d.ts +0 -0
  215. package/dist/components/cura-button.js +1 -205
  216. package/dist/components/cura-calendar.d.ts +0 -0
  217. package/dist/components/cura-calendar.js +1 -9
  218. package/dist/components/cura-card.d.ts +0 -0
  219. package/dist/components/cura-card.js +1 -104
  220. package/dist/components/cura-checkbox.d.ts +0 -0
  221. package/dist/components/cura-checkbox.js +1 -286
  222. package/dist/components/cura-display.d.ts +0 -0
  223. package/dist/components/cura-display.js +1 -128
  224. package/dist/components/cura-dropdown-search-category.d.ts +0 -0
  225. package/dist/components/cura-dropdown-search-category.js +1 -49
  226. package/dist/components/cura-dropdown-search-not-found.d.ts +0 -0
  227. package/dist/components/cura-dropdown-search-not-found.js +1 -48
  228. package/dist/components/cura-dropdown-search-option.d.ts +0 -0
  229. package/dist/components/cura-dropdown-search-option.js +1 -93
  230. package/dist/components/cura-dropdown-search.d.ts +0 -0
  231. package/dist/components/cura-dropdown-search.js +1 -467
  232. package/dist/components/cura-heading.d.ts +0 -0
  233. package/dist/components/cura-heading.js +1 -9
  234. package/dist/components/cura-icon.d.ts +0 -0
  235. package/dist/components/cura-icon.js +1 -9
  236. package/dist/components/cura-icons-view.d.ts +0 -0
  237. package/dist/components/cura-icons-view.js +1 -67
  238. package/dist/components/cura-input-date.d.ts +0 -0
  239. package/dist/components/cura-input-date.js +1 -286
  240. package/dist/components/cura-input-text.d.ts +0 -0
  241. package/dist/components/cura-input-text.js +1 -9
  242. package/dist/components/cura-label.d.ts +0 -0
  243. package/dist/components/cura-label.js +1 -9
  244. package/dist/components/cura-loader-bar.d.ts +0 -0
  245. package/dist/components/cura-loader-bar.js +1 -9
  246. package/dist/components/cura-loader-circle.d.ts +0 -0
  247. package/dist/components/cura-loader-circle.js +1 -9
  248. package/dist/components/cura-modal.d.ts +0 -0
  249. package/dist/components/cura-modal.js +1 -181
  250. package/dist/components/cura-page-template.d.ts +0 -0
  251. package/dist/components/cura-page-template.js +1 -50
  252. package/dist/components/cura-paragraph.d.ts +0 -0
  253. package/dist/components/cura-paragraph.js +1 -9
  254. package/dist/components/cura-progress-bar.d.ts +0 -0
  255. package/dist/components/cura-progress-bar.js +1 -9
  256. package/dist/components/cura-radio.d.ts +0 -0
  257. package/dist/components/cura-radio.js +1 -249
  258. package/dist/components/cura-select-option.d.ts +0 -0
  259. package/dist/components/cura-select-option.js +1 -9
  260. package/dist/components/cura-select.d.ts +0 -0
  261. package/dist/components/cura-select.js +1 -9
  262. package/dist/components/cura-stepper-item.d.ts +0 -0
  263. package/dist/components/cura-stepper-item.js +1 -9
  264. package/dist/components/cura-stepper.d.ts +0 -0
  265. package/dist/components/cura-stepper.js +1 -205
  266. package/dist/components/cura-switch.d.ts +0 -0
  267. package/dist/components/cura-switch.js +1 -201
  268. package/dist/components/cura-tabs-button.d.ts +0 -0
  269. package/dist/components/cura-tabs-button.js +1 -148
  270. package/dist/components/cura-tabs-group.d.ts +0 -0
  271. package/dist/components/cura-tabs-group.js +1 -64
  272. package/dist/components/cura-tabs-transparent.d.ts +0 -0
  273. package/dist/components/cura-tabs-transparent.js +1 -141
  274. package/dist/components/cura-tabs.d.ts +0 -0
  275. package/dist/components/cura-tabs.js +1 -146
  276. package/dist/components/cura-toast.d.ts +0 -0
  277. package/dist/components/cura-toast.js +1 -162
  278. package/dist/components/cura-tooltip.d.ts +0 -0
  279. package/dist/components/cura-tooltip.js +1 -291
  280. package/dist/components/index.d.ts +2 -0
  281. package/dist/components/index.js +1 -115
  282. package/dist/components/p-B2RN7oe_.js +1 -0
  283. package/dist/components/p-B8xnU6YS.js +1 -0
  284. package/dist/components/p-BSI2FkNn.js +1 -11
  285. package/dist/components/p-BSdkRryc.js +1 -0
  286. package/dist/components/p-BYA8glxD.js +1 -0
  287. package/dist/components/p-Bf21UQXV.js +1 -0
  288. package/dist/components/p-C7so9xnO.js +1 -0
  289. package/dist/components/p-CCkEqDZb.js +1 -0
  290. package/dist/components/p-CG1lz5DR.js +1 -0
  291. package/dist/components/p-CHcd-uKK.js +1 -11
  292. package/dist/components/p-CpmZ68rD.js +1 -0
  293. package/dist/components/p-D6xuYQiO.js +1 -0
  294. package/dist/components/p-D7WNwjv-.js +1 -0
  295. package/dist/components/p-DBXUEjWh.js +1 -0
  296. package/dist/components/p-DXlGQp3a.js +1 -0
  297. package/dist/components/p-Dot54hbB.js +1 -19
  298. package/dist/components/p-DxJedO3K.js +1 -0
  299. package/dist/components/p-fR02COZb.js +1 -0
  300. package/dist/components/p-fn4zJrKE.js +1 -0
  301. package/dist/cura/cura.esm.js +1 -2
  302. package/dist/cura/index.esm.js +1 -2
  303. package/dist/cura/p-1dc9c478.entry.js +1 -0
  304. package/dist/cura/p-27ba7ef5.entry.js +1 -0
  305. package/dist/cura/p-2db704a6.entry.js +1 -0
  306. package/dist/cura/p-2e2e2b4d.entry.js +1 -0
  307. package/dist/cura/p-31373db7.entry.js +1 -0
  308. package/dist/cura/p-3a3202f0.entry.js +1 -0
  309. package/dist/cura/p-42e72d12.entry.js +1 -0
  310. package/dist/cura/p-5357f7bd.entry.js +1 -0
  311. package/dist/cura/p-54624944.entry.js +1 -0
  312. package/dist/cura/p-582f8b72.entry.js +1 -0
  313. package/dist/cura/p-7965fe63.entry.js +1 -0
  314. package/dist/cura/p-964stZ3D.js +1 -2
  315. package/dist/cura/p-9de85de6.entry.js +1 -0
  316. package/dist/cura/p-BM8Akv15.js +1 -0
  317. package/dist/cura/p-BSI2FkNn.js +1 -2
  318. package/dist/cura/p-BTIDzOyO.js +1 -0
  319. package/dist/cura/p-BxFVLGIR.js +2 -0
  320. package/dist/cura/p-CHcd-uKK.js +1 -2
  321. package/dist/cura/p-DQopj-k5.js +1 -0
  322. package/dist/cura/p-DfJS7YqS.js +1 -0
  323. package/dist/cura/p-Dot54hbB.js +1 -2
  324. package/dist/cura/p-b14ae206.entry.js +1 -0
  325. package/dist/cura/p-b7369d04.entry.js +1 -0
  326. package/dist/cura/p-bf99e8bf.entry.js +1 -0
  327. package/dist/cura/p-c18d7f16.entry.js +1 -0
  328. package/dist/cura/p-c247c93b.entry.js +1 -0
  329. package/dist/cura/p-cbe8c690.entry.js +1 -0
  330. package/dist/cura/p-d2f670f6.entry.js +1 -0
  331. package/dist/cura/p-d5c6d2b4.entry.js +1 -0
  332. package/dist/cura/p-ddf4d240.entry.js +1 -0
  333. package/dist/cura/p-f534123f.entry.js +1 -0
  334. package/dist/cura/p-f911a6c5.entry.js +1 -0
  335. package/dist/cura/p-sjLA93YY.js +1 -2
  336. package/dist/esm/app-globals-B7bpkHH3.js +67 -0
  337. package/dist/esm/cura-accordion_21.entry.js +266 -207
  338. package/dist/esm/cura-alert.entry.js +7 -8
  339. package/dist/esm/cura-badge-counter.entry.js +13 -10
  340. package/dist/esm/cura-badge-dot.entry.js +4 -7
  341. package/dist/esm/cura-badge-pill.entry.js +7 -8
  342. package/dist/esm/cura-button-outline.entry.js +15 -10
  343. package/dist/esm/cura-button-select.entry.js +10 -9
  344. package/dist/esm/cura-button.definitions-BSI2FkNn.js +0 -3
  345. package/dist/esm/cura-calendar.entry.js +12 -9
  346. package/dist/esm/cura-checkbox.entry.js +18 -11
  347. package/dist/esm/cura-display.entry.js +10 -9
  348. package/dist/esm/cura-dropdown-search-not-found.entry.js +4 -7
  349. package/dist/esm/cura-forms.definitions-Dot54hbB.js +0 -3
  350. package/dist/esm/cura-icon.definitions-sjLA93YY.js +0 -3
  351. package/dist/esm/cura-icons-view.entry.js +4 -7
  352. package/dist/esm/cura-input-date.entry.js +7 -8
  353. package/dist/esm/cura-loader-bar.entry.js +10 -9
  354. package/dist/esm/cura-modal.entry.js +19 -12
  355. package/dist/esm/cura-progress-bar_2.entry.js +6 -9
  356. package/dist/esm/cura-radio.entry.js +15 -10
  357. package/dist/esm/cura-stepper.entry.js +4 -7
  358. package/dist/esm/cura-switch.entry.js +13 -10
  359. package/dist/esm/cura-tabs-button.entry.js +7 -8
  360. package/dist/esm/cura-tabs-transparent.entry.js +7 -8
  361. package/dist/esm/cura-tabs.definitions-CHcd-uKK.js +0 -3
  362. package/dist/esm/{cura-theme-module-BPKQjAwN.js → cura-theme-module-BrK961-w.js} +3 -339
  363. package/dist/esm/cura-toast.entry.js +10 -9
  364. package/dist/esm/cura-tooltip.entry.js +4 -7
  365. package/dist/esm/cura.js +8 -8
  366. package/dist/esm/index-964stZ3D.js +0 -3
  367. package/dist/esm/{index-OdKytJIH.js → index-Ce1Pxw3V.js} +706 -579
  368. package/dist/esm/index.js +3 -4
  369. package/dist/esm/loader.js +7 -7
  370. package/dist/esm/static-DfJS7YqS.js +86 -0
  371. package/dist/esm/theme-legacy-default-BTIDzOyO.js +257 -0
  372. package/dist/index.cjs.js +0 -0
  373. package/dist/index.js +0 -0
  374. package/dist/loader/cdn.js +0 -0
  375. package/dist/loader/index.cjs.js +0 -0
  376. package/dist/loader/index.d.ts +0 -0
  377. package/dist/loader/index.es2017.js +0 -0
  378. package/dist/loader/index.js +0 -0
  379. package/dist/types/api/cura-api.d.ts +0 -0
  380. package/dist/types/api/cura-api.type.d.ts +0 -0
  381. package/dist/types/api/modules/cura-theme-breakpoints-module.d.ts +0 -0
  382. package/dist/types/api/modules/cura-theme-colors-module.d.ts +0 -0
  383. package/dist/types/api/modules/cura-theme-fonts-module.d.ts +0 -0
  384. package/dist/types/api/modules/cura-theme-module.d.ts +0 -0
  385. package/dist/types/api/modules/cura-theme-spacing-module.d.ts +0 -0
  386. package/dist/types/api/theme-presets/static.d.ts +0 -0
  387. package/dist/types/api/theme-presets/theme-default.d.ts +0 -0
  388. package/dist/types/api/theme-presets/theme-legacy-default.d.ts +0 -0
  389. package/dist/types/api/theme-presets/theme-maternity.d.ts +0 -0
  390. package/dist/types/api/theme-presets/theme-oncology.d.ts +0 -0
  391. package/dist/types/api/theme-presets/theme-perinatal-temporary.d.ts +0 -0
  392. package/dist/types/api/theme-presets/theme-presets.d.ts +0 -0
  393. package/dist/types/api/theme-presets/theme-richet.d.ts +0 -0
  394. package/dist/types/assets/icons/iconset-default-list.d.ts +0 -0
  395. package/dist/types/components/accordion/cura-accordion/cura-accordion.d.ts +0 -0
  396. package/dist/types/components/accordion/cura-accordion/cura-accordion.stories.d.ts +0 -0
  397. package/dist/types/components/accordion/cura-accordion-item/cura-accordion-item.d.ts +0 -0
  398. package/dist/types/components/badges/cura-badge-counter/cura-badge-counter.d.ts +0 -0
  399. package/dist/types/components/badges/cura-badge-counter/cura-badge-counter.stories.d.ts +0 -0
  400. package/dist/types/components/badges/cura-badge-distance/cura-badge-distance.d.ts +0 -0
  401. package/dist/types/components/badges/cura-badge-distance/cura-badge-distance.stories.d.ts +0 -0
  402. package/dist/types/components/badges/cura-badge-dot/cura-badge-dot.d.ts +0 -0
  403. package/dist/types/components/badges/cura-badge-dot/cura-badge-dot.stories.d.ts +0 -0
  404. package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.d.ts +0 -0
  405. package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.stories.d.ts +0 -0
  406. package/dist/types/components/buttons/cura-button/cura-button.d.ts +0 -0
  407. package/dist/types/components/buttons/cura-button/cura-button.stories.d.ts +0 -0
  408. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.d.ts +0 -0
  409. package/dist/types/components/buttons/cura-button-outline/cura-button-outline.stories.d.ts +0 -0
  410. package/dist/types/components/buttons/cura-button-select/cura-button-select.d.ts +0 -0
  411. package/dist/types/components/buttons/cura-button-select/cura-button-select.stories.d.ts +0 -0
  412. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.d.ts +0 -0
  413. package/dist/types/components/buttons/cura-button-transparent/cura-button-transparent.stories.d.ts +0 -0
  414. package/dist/types/components/buttons/cura-button.definitions.d.ts +0 -0
  415. package/dist/types/components/cura-alert/cura-alert.d.ts +0 -0
  416. package/dist/types/components/cura-alert/cura-alert.stories.d.ts +0 -0
  417. package/dist/types/components/cura-avatar/cura-avatar.d.ts +0 -0
  418. package/dist/types/components/cura-avatar/cura-avatar.definitions.d.ts +0 -0
  419. package/dist/types/components/cura-avatar/cura-avatar.stories.d.ts +0 -0
  420. package/dist/types/components/cura-calendar/cura-calendar.d.ts +0 -0
  421. package/dist/types/components/cura-calendar/cura-calendar.stories.d.ts +0 -0
  422. package/dist/types/components/cura-card/cura-card.d.ts +0 -0
  423. package/dist/types/components/cura-card/cura-card.stories.d.ts +0 -0
  424. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.d.ts +0 -0
  425. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.d.ts +0 -0
  426. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.d.ts +0 -0
  427. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.d.ts +0 -0
  428. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.d.ts +0 -0
  429. package/dist/types/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.d.ts +0 -0
  430. package/dist/types/components/cura-dropdown-search/cura-dropdown-search.d.ts +0 -0
  431. package/dist/types/components/cura-dropdown-search/cura-dropdown-search.stories.d.ts +0 -0
  432. package/dist/types/components/cura-icon/cura-icon.d.ts +0 -0
  433. package/dist/types/components/cura-icon/cura-icon.definitions.d.ts +0 -0
  434. package/dist/types/components/cura-icon/cura-icon.stories.d.ts +0 -0
  435. package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +0 -0
  436. package/dist/types/components/cura-icons-view/cura-icons-view.stories.d.ts +0 -0
  437. package/dist/types/components/cura-modal/cura-modal.d.ts +0 -0
  438. package/dist/types/components/cura-modal/cura-modal.stories.d.ts +0 -0
  439. package/dist/types/components/cura-page-template/cura-page-template.d.ts +0 -0
  440. package/dist/types/components/cura-stepper/cura-progress-bar/cura-progress-bar.d.ts +0 -0
  441. package/dist/types/components/cura-stepper/cura-stepper-item/cura-stepper-item.d.ts +0 -0
  442. package/dist/types/components/cura-stepper/cura-stepper.d.ts +0 -0
  443. package/dist/types/components/cura-stepper/cura-stepper.stories.d.ts +0 -0
  444. package/dist/types/components/cura-stepper/stepper.type.d.ts +0 -0
  445. package/dist/types/components/cura-toast/cura-toast.d.ts +0 -0
  446. package/dist/types/components/cura-toast/cura-toast.stories.d.ts +0 -0
  447. package/dist/types/components/cura-tooltip/cura-tooltip.d.ts +0 -0
  448. package/dist/types/components/cura-tooltip/cura-tooltip.stories.d.ts +0 -0
  449. package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +0 -0
  450. package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +0 -0
  451. package/dist/types/components/forms/cura-forms.definitions.d.ts +0 -0
  452. package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +0 -0
  453. package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +0 -0
  454. package/dist/types/components/forms/cura-input-text/cura-input-text.d.ts +0 -0
  455. package/dist/types/components/forms/cura-input-text/cura-input-text.stories.d.ts +0 -0
  456. package/dist/types/components/forms/cura-input-text/mask-presets/input-mask-presets.d.ts +0 -0
  457. package/dist/types/components/forms/cura-label/cura-label.d.ts +0 -0
  458. package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +0 -0
  459. package/dist/types/components/forms/cura-radio/cura-radio.d.ts +0 -0
  460. package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +0 -0
  461. package/dist/types/components/forms/cura-select/cura-select.d.ts +0 -0
  462. package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +0 -0
  463. package/dist/types/components/forms/cura-select-options/cura-select-option.d.ts +0 -0
  464. package/dist/types/components/forms/cura-switch/cura-switch.d.ts +0 -0
  465. package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +0 -0
  466. package/dist/types/components/loaders/cura-loader-bar/cura-loader-bar.d.ts +0 -0
  467. package/dist/types/components/loaders/cura-loader-bar/cura-loader-bar.stories.d.ts +0 -0
  468. package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.d.ts +0 -0
  469. package/dist/types/components/loaders/cura-loader-circle/cura-loader-circle.stories.d.ts +0 -0
  470. package/dist/types/components/tabs/cura-tabs/cura-tabs.d.ts +0 -0
  471. package/dist/types/components/tabs/cura-tabs/cura-tabs.stories.d.ts +0 -0
  472. package/dist/types/components/tabs/cura-tabs-button/cura-tabs-button.d.ts +0 -0
  473. package/dist/types/components/tabs/cura-tabs-button/cura-tabs-button.stories.d.ts +0 -0
  474. package/dist/types/components/tabs/cura-tabs-group/cura-tabs-group.d.ts +0 -0
  475. package/dist/types/components/tabs/cura-tabs-group/cura-tabs-group.stories.d.ts +0 -0
  476. package/dist/types/components/tabs/cura-tabs-transparent/cura-tabs-transparent.d.ts +0 -0
  477. package/dist/types/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.d.ts +0 -0
  478. package/dist/types/components/tabs/cura-tabs.definitions.d.ts +0 -0
  479. package/dist/types/components/text/cura-display/cura-display.d.ts +0 -0
  480. package/dist/types/components/text/cura-display/cura-display.stories.d.ts +0 -0
  481. package/dist/types/components/text/cura-heading/cura-heading.d.ts +0 -0
  482. package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +0 -0
  483. package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +0 -0
  484. package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +0 -0
  485. package/dist/types/components.d.ts +559 -85
  486. package/dist/types/index.d.ts +0 -0
  487. package/dist/types/rededor-cura-start.d.ts +0 -0
  488. package/dist/types/stencil-public-runtime.d.ts +169 -11
  489. package/dist/types/utils/FixedElementScrollBehavior.d.ts +0 -0
  490. package/dist/types/utils/utils.d.ts +0 -0
  491. package/package.json +4 -3
  492. package/dist/cjs/cura-accordion_21.cjs.entry.js.map +0 -1
  493. package/dist/cjs/cura-alert.cjs.entry.js.map +0 -1
  494. package/dist/cjs/cura-alert.entry.cjs.js.map +0 -1
  495. package/dist/cjs/cura-badge-counter.cjs.entry.js.map +0 -1
  496. package/dist/cjs/cura-badge-counter.entry.cjs.js.map +0 -1
  497. package/dist/cjs/cura-badge-dot.cjs.entry.js.map +0 -1
  498. package/dist/cjs/cura-badge-dot.entry.cjs.js.map +0 -1
  499. package/dist/cjs/cura-badge-pill.cjs.entry.js.map +0 -1
  500. package/dist/cjs/cura-badge-pill.entry.cjs.js.map +0 -1
  501. package/dist/cjs/cura-button-outline.cjs.entry.js.map +0 -1
  502. package/dist/cjs/cura-button-outline.entry.cjs.js.map +0 -1
  503. package/dist/cjs/cura-button-select.cjs.entry.js.map +0 -1
  504. package/dist/cjs/cura-button-select.entry.cjs.js.map +0 -1
  505. package/dist/cjs/cura-button.definitions-B3SK8MaV.js.map +0 -1
  506. package/dist/cjs/cura-calendar.cjs.entry.js.map +0 -1
  507. package/dist/cjs/cura-calendar.entry.cjs.js.map +0 -1
  508. package/dist/cjs/cura-checkbox.cjs.entry.js.map +0 -1
  509. package/dist/cjs/cura-checkbox.entry.cjs.js.map +0 -1
  510. package/dist/cjs/cura-display.cjs.entry.js.map +0 -1
  511. package/dist/cjs/cura-display.entry.cjs.js.map +0 -1
  512. package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +0 -1
  513. package/dist/cjs/cura-dropdown-search-not-found.entry.cjs.js.map +0 -1
  514. package/dist/cjs/cura-forms.definitions-DVLuO67c.js.map +0 -1
  515. package/dist/cjs/cura-icon.definitions-DT0wF67y.js.map +0 -1
  516. package/dist/cjs/cura-icons-view.cjs.entry.js.map +0 -1
  517. package/dist/cjs/cura-icons-view.entry.cjs.js.map +0 -1
  518. package/dist/cjs/cura-input-date.cjs.entry.js.map +0 -1
  519. package/dist/cjs/cura-input-date.entry.cjs.js.map +0 -1
  520. package/dist/cjs/cura-loader-bar.cjs.entry.js.map +0 -1
  521. package/dist/cjs/cura-loader-bar.entry.cjs.js.map +0 -1
  522. package/dist/cjs/cura-modal.cjs.entry.js.map +0 -1
  523. package/dist/cjs/cura-modal.entry.cjs.js.map +0 -1
  524. package/dist/cjs/cura-progress-bar.cura-stepper-item.entry.cjs.js.map +0 -1
  525. package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +0 -1
  526. package/dist/cjs/cura-radio.cjs.entry.js.map +0 -1
  527. package/dist/cjs/cura-radio.entry.cjs.js.map +0 -1
  528. package/dist/cjs/cura-stepper.cjs.entry.js.map +0 -1
  529. package/dist/cjs/cura-stepper.entry.cjs.js.map +0 -1
  530. package/dist/cjs/cura-switch.cjs.entry.js.map +0 -1
  531. package/dist/cjs/cura-switch.entry.cjs.js.map +0 -1
  532. package/dist/cjs/cura-tabs-button.cjs.entry.js.map +0 -1
  533. package/dist/cjs/cura-tabs-button.entry.cjs.js.map +0 -1
  534. package/dist/cjs/cura-tabs-transparent.cjs.entry.js.map +0 -1
  535. package/dist/cjs/cura-tabs-transparent.entry.cjs.js.map +0 -1
  536. package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js.map +0 -1
  537. package/dist/cjs/cura-theme-module-CJkmAxBA.js +0 -574
  538. package/dist/cjs/cura-theme-module-CJkmAxBA.js.map +0 -1
  539. package/dist/cjs/cura-toast.cjs.entry.js.map +0 -1
  540. package/dist/cjs/cura-toast.entry.cjs.js.map +0 -1
  541. package/dist/cjs/cura-tooltip.cjs.entry.js.map +0 -1
  542. package/dist/cjs/cura-tooltip.entry.cjs.js.map +0 -1
  543. package/dist/cjs/cura.cjs.js.map +0 -1
  544. package/dist/cjs/index-BK9MSAiE.js.map +0 -1
  545. package/dist/cjs/index-EyP6Zlkd.js.map +0 -1
  546. package/dist/cjs/index.cjs.js.map +0 -1
  547. package/dist/cjs/loader.cjs.js.map +0 -1
  548. package/dist/collection/api/cura-api.js.map +0 -1
  549. package/dist/collection/api/cura-api.type.js.map +0 -1
  550. package/dist/collection/api/modules/cura-theme-breakpoints-module.js.map +0 -1
  551. package/dist/collection/api/modules/cura-theme-colors-module.js.map +0 -1
  552. package/dist/collection/api/modules/cura-theme-fonts-module.js.map +0 -1
  553. package/dist/collection/api/modules/cura-theme-module.js.map +0 -1
  554. package/dist/collection/api/modules/cura-theme-spacing-module.js.map +0 -1
  555. package/dist/collection/api/theme-presets/static.js.map +0 -1
  556. package/dist/collection/api/theme-presets/theme-default.js.map +0 -1
  557. package/dist/collection/api/theme-presets/theme-legacy-default.js.map +0 -1
  558. package/dist/collection/api/theme-presets/theme-maternity.js.map +0 -1
  559. package/dist/collection/api/theme-presets/theme-oncology.js.map +0 -1
  560. package/dist/collection/api/theme-presets/theme-perinatal-temporary.js.map +0 -1
  561. package/dist/collection/api/theme-presets/theme-presets.js.map +0 -1
  562. package/dist/collection/api/theme-presets/theme-richet.js.map +0 -1
  563. package/dist/collection/assets/icons/iconset-default-list.js.map +0 -1
  564. package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +0 -1
  565. package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +0 -1
  566. package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +0 -1
  567. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +0 -1
  568. package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.stories.js.map +0 -1
  569. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js.map +0 -1
  570. package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.stories.js.map +0 -1
  571. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +0 -1
  572. package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.stories.js.map +0 -1
  573. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +0 -1
  574. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js.map +0 -1
  575. package/dist/collection/components/buttons/cura-button/cura-button.js.map +0 -1
  576. package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +0 -1
  577. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +0 -1
  578. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +0 -1
  579. package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +0 -1
  580. package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js.map +0 -1
  581. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +0 -1
  582. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +0 -1
  583. package/dist/collection/components/buttons/cura-button.definitions.js.map +0 -1
  584. package/dist/collection/components/cura-alert/cura-alert.js.map +0 -1
  585. package/dist/collection/components/cura-alert/cura-alert.stories.js.map +0 -1
  586. package/dist/collection/components/cura-avatar/cura-avatar.definitions.js.map +0 -1
  587. package/dist/collection/components/cura-avatar/cura-avatar.js.map +0 -1
  588. package/dist/collection/components/cura-avatar/cura-avatar.stories.js.map +0 -1
  589. package/dist/collection/components/cura-calendar/cura-calendar.js.map +0 -1
  590. package/dist/collection/components/cura-calendar/cura-calendar.stories.js.map +0 -1
  591. package/dist/collection/components/cura-card/cura-card.js.map +0 -1
  592. package/dist/collection/components/cura-card/cura-card.stories.js.map +0 -1
  593. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js.map +0 -1
  594. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.stories.js.map +0 -1
  595. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js.map +0 -1
  596. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.stories.js.map +0 -1
  597. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +0 -1
  598. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.stories.js.map +0 -1
  599. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +0 -1
  600. package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.stories.js.map +0 -1
  601. package/dist/collection/components/cura-icon/cura-icon.definitions.js.map +0 -1
  602. package/dist/collection/components/cura-icon/cura-icon.js.map +0 -1
  603. package/dist/collection/components/cura-icon/cura-icon.stories.js.map +0 -1
  604. package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +0 -1
  605. package/dist/collection/components/cura-icons-view/cura-icons-view.stories.js.map +0 -1
  606. package/dist/collection/components/cura-modal/cura-modal.js.map +0 -1
  607. package/dist/collection/components/cura-modal/cura-modal.stories.js.map +0 -1
  608. package/dist/collection/components/cura-page-template/cura-page-template.js.map +0 -1
  609. package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +0 -1
  610. package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +0 -1
  611. package/dist/collection/components/cura-stepper/cura-stepper.js.map +0 -1
  612. package/dist/collection/components/cura-stepper/cura-stepper.stories.js.map +0 -1
  613. package/dist/collection/components/cura-stepper/stepper.type.js.map +0 -1
  614. package/dist/collection/components/cura-toast/cura-toast.js.map +0 -1
  615. package/dist/collection/components/cura-toast/cura-toast.stories.js.map +0 -1
  616. package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +0 -1
  617. package/dist/collection/components/cura-tooltip/cura-tooltip.stories.js.map +0 -1
  618. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +0 -1
  619. package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +0 -1
  620. package/dist/collection/components/forms/cura-forms.definitions.js.map +0 -1
  621. package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +0 -1
  622. package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +0 -1
  623. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +0 -1
  624. package/dist/collection/components/forms/cura-input-text/cura-input-text.stories.js.map +0 -1
  625. package/dist/collection/components/forms/cura-input-text/mask-presets/input-mask-presets.js.map +0 -1
  626. package/dist/collection/components/forms/cura-label/cura-label.js.map +0 -1
  627. package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +0 -1
  628. package/dist/collection/components/forms/cura-radio/cura-radio.js.map +0 -1
  629. package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +0 -1
  630. package/dist/collection/components/forms/cura-select/cura-select.js.map +0 -1
  631. package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +0 -1
  632. package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +0 -1
  633. package/dist/collection/components/forms/cura-switch/cura-switch.js.map +0 -1
  634. package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +0 -1
  635. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +0 -1
  636. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js.map +0 -1
  637. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +0 -1
  638. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +0 -1
  639. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js.map +0 -1
  640. package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js.map +0 -1
  641. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js.map +0 -1
  642. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js.map +0 -1
  643. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js.map +0 -1
  644. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js.map +0 -1
  645. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js.map +0 -1
  646. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js.map +0 -1
  647. package/dist/collection/components/tabs/cura-tabs.definitions.js.map +0 -1
  648. package/dist/collection/components/text/cura-display/cura-display.js.map +0 -1
  649. package/dist/collection/components/text/cura-display/cura-display.stories.js.map +0 -1
  650. package/dist/collection/components/text/cura-heading/cura-heading.js.map +0 -1
  651. package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +0 -1
  652. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +0 -1
  653. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +0 -1
  654. package/dist/collection/index.js.map +0 -1
  655. package/dist/collection/rededor-cura-start.js.map +0 -1
  656. package/dist/collection/utils/FixedElementScrollBehavior.js.map +0 -1
  657. package/dist/collection/utils/utils.js.map +0 -1
  658. package/dist/components/cura-accordion-item.js.map +0 -1
  659. package/dist/components/cura-accordion.js.map +0 -1
  660. package/dist/components/cura-alert.js.map +0 -1
  661. package/dist/components/cura-avatar.js.map +0 -1
  662. package/dist/components/cura-badge-counter.js.map +0 -1
  663. package/dist/components/cura-badge-distance.js.map +0 -1
  664. package/dist/components/cura-badge-dot.js.map +0 -1
  665. package/dist/components/cura-badge-pill.js.map +0 -1
  666. package/dist/components/cura-button-outline.js.map +0 -1
  667. package/dist/components/cura-button-select.js.map +0 -1
  668. package/dist/components/cura-button-transparent.js.map +0 -1
  669. package/dist/components/cura-button.js.map +0 -1
  670. package/dist/components/cura-calendar.js.map +0 -1
  671. package/dist/components/cura-card.js.map +0 -1
  672. package/dist/components/cura-checkbox.js.map +0 -1
  673. package/dist/components/cura-display.js.map +0 -1
  674. package/dist/components/cura-dropdown-search-category.js.map +0 -1
  675. package/dist/components/cura-dropdown-search-not-found.js.map +0 -1
  676. package/dist/components/cura-dropdown-search-option.js.map +0 -1
  677. package/dist/components/cura-dropdown-search.js.map +0 -1
  678. package/dist/components/cura-heading.js.map +0 -1
  679. package/dist/components/cura-icon.js.map +0 -1
  680. package/dist/components/cura-icons-view.js.map +0 -1
  681. package/dist/components/cura-input-date.js.map +0 -1
  682. package/dist/components/cura-input-text.js.map +0 -1
  683. package/dist/components/cura-label.js.map +0 -1
  684. package/dist/components/cura-loader-bar.js.map +0 -1
  685. package/dist/components/cura-loader-circle.js.map +0 -1
  686. package/dist/components/cura-modal.js.map +0 -1
  687. package/dist/components/cura-page-template.js.map +0 -1
  688. package/dist/components/cura-paragraph.js.map +0 -1
  689. package/dist/components/cura-progress-bar.js.map +0 -1
  690. package/dist/components/cura-radio.js.map +0 -1
  691. package/dist/components/cura-select-option.js.map +0 -1
  692. package/dist/components/cura-select.js.map +0 -1
  693. package/dist/components/cura-stepper-item.js.map +0 -1
  694. package/dist/components/cura-stepper.js.map +0 -1
  695. package/dist/components/cura-switch.js.map +0 -1
  696. package/dist/components/cura-tabs-button.js.map +0 -1
  697. package/dist/components/cura-tabs-group.js.map +0 -1
  698. package/dist/components/cura-tabs-transparent.js.map +0 -1
  699. package/dist/components/cura-tabs.js.map +0 -1
  700. package/dist/components/cura-toast.js.map +0 -1
  701. package/dist/components/cura-tooltip.js.map +0 -1
  702. package/dist/components/index.js.map +0 -1
  703. package/dist/components/p-B5aO1chh.js +0 -85
  704. package/dist/components/p-B5aO1chh.js.map +0 -1
  705. package/dist/components/p-BHEafDKD.js +0 -127
  706. package/dist/components/p-BHEafDKD.js.map +0 -1
  707. package/dist/components/p-BRDqwZ4N.js +0 -187
  708. package/dist/components/p-BRDqwZ4N.js.map +0 -1
  709. package/dist/components/p-BSI2FkNn.js.map +0 -1
  710. package/dist/components/p-BrJsfk5q.js +0 -4140
  711. package/dist/components/p-BrJsfk5q.js.map +0 -1
  712. package/dist/components/p-C72aF-gL.js +0 -99
  713. package/dist/components/p-C72aF-gL.js.map +0 -1
  714. package/dist/components/p-CHcd-uKK.js.map +0 -1
  715. package/dist/components/p-CvdWbsfO.js +0 -2147
  716. package/dist/components/p-CvdWbsfO.js.map +0 -1
  717. package/dist/components/p-D1cPOZpG.js +0 -2617
  718. package/dist/components/p-D1cPOZpG.js.map +0 -1
  719. package/dist/components/p-DETZu2ie.js +0 -7032
  720. package/dist/components/p-DETZu2ie.js.map +0 -1
  721. package/dist/components/p-DI4g-ZH4.js +0 -101
  722. package/dist/components/p-DI4g-ZH4.js.map +0 -1
  723. package/dist/components/p-DR1RHrEX.js +0 -120
  724. package/dist/components/p-DR1RHrEX.js.map +0 -1
  725. package/dist/components/p-DaPc6Dxl.js +0 -125
  726. package/dist/components/p-DaPc6Dxl.js.map +0 -1
  727. package/dist/components/p-Dot54hbB.js.map +0 -1
  728. package/dist/components/p-Dqm2sAwv.js +0 -58
  729. package/dist/components/p-Dqm2sAwv.js.map +0 -1
  730. package/dist/components/p-Dt450DkQ.js +0 -86
  731. package/dist/components/p-Dt450DkQ.js.map +0 -1
  732. package/dist/components/p-FTSrgi0q.js +0 -51
  733. package/dist/components/p-FTSrgi0q.js.map +0 -1
  734. package/dist/components/p-KIQMkSRF.js +0 -64
  735. package/dist/components/p-KIQMkSRF.js.map +0 -1
  736. package/dist/components/p-cOEGtL9C.js +0 -131
  737. package/dist/components/p-cOEGtL9C.js.map +0 -1
  738. package/dist/cura/cura-alert.entry.esm.js.map +0 -1
  739. package/dist/cura/cura-badge-counter.entry.esm.js.map +0 -1
  740. package/dist/cura/cura-badge-dot.entry.esm.js.map +0 -1
  741. package/dist/cura/cura-badge-pill.entry.esm.js.map +0 -1
  742. package/dist/cura/cura-button-outline.entry.esm.js.map +0 -1
  743. package/dist/cura/cura-button-select.entry.esm.js.map +0 -1
  744. package/dist/cura/cura-calendar.entry.esm.js.map +0 -1
  745. package/dist/cura/cura-checkbox.entry.esm.js.map +0 -1
  746. package/dist/cura/cura-display.entry.esm.js.map +0 -1
  747. package/dist/cura/cura-dropdown-search-not-found.entry.esm.js.map +0 -1
  748. package/dist/cura/cura-icons-view.entry.esm.js.map +0 -1
  749. package/dist/cura/cura-input-date.entry.esm.js.map +0 -1
  750. package/dist/cura/cura-loader-bar.entry.esm.js.map +0 -1
  751. package/dist/cura/cura-modal.entry.esm.js.map +0 -1
  752. package/dist/cura/cura-progress-bar.cura-stepper-item.entry.esm.js.map +0 -1
  753. package/dist/cura/cura-radio.entry.esm.js.map +0 -1
  754. package/dist/cura/cura-stepper.entry.esm.js.map +0 -1
  755. package/dist/cura/cura-switch.entry.esm.js.map +0 -1
  756. package/dist/cura/cura-tabs-button.entry.esm.js.map +0 -1
  757. package/dist/cura/cura-tabs-transparent.entry.esm.js.map +0 -1
  758. package/dist/cura/cura-toast.entry.esm.js.map +0 -1
  759. package/dist/cura/cura-tooltip.entry.esm.js.map +0 -1
  760. package/dist/cura/cura.esm.js.map +0 -1
  761. package/dist/cura/index.esm.js.map +0 -1
  762. package/dist/cura/loader.esm.js.map +0 -1
  763. package/dist/cura/p-077019da.entry.js +0 -2
  764. package/dist/cura/p-077019da.entry.js.map +0 -1
  765. package/dist/cura/p-07783235.entry.js +0 -2
  766. package/dist/cura/p-07783235.entry.js.map +0 -1
  767. package/dist/cura/p-090e297c.entry.js +0 -2
  768. package/dist/cura/p-090e297c.entry.js.map +0 -1
  769. package/dist/cura/p-16c0b52c.entry.js +0 -2
  770. package/dist/cura/p-16c0b52c.entry.js.map +0 -1
  771. package/dist/cura/p-32015dcc.entry.js +0 -2
  772. package/dist/cura/p-32015dcc.entry.js.map +0 -1
  773. package/dist/cura/p-32f94709.entry.js +0 -2
  774. package/dist/cura/p-32f94709.entry.js.map +0 -1
  775. package/dist/cura/p-3d6040e2.entry.js +0 -2
  776. package/dist/cura/p-3d6040e2.entry.js.map +0 -1
  777. package/dist/cura/p-4ac578a6.entry.js +0 -2
  778. package/dist/cura/p-4ac578a6.entry.js.map +0 -1
  779. package/dist/cura/p-4bde448e.entry.js +0 -2
  780. package/dist/cura/p-4bde448e.entry.js.map +0 -1
  781. package/dist/cura/p-5ed7ce95.entry.js +0 -2
  782. package/dist/cura/p-5ed7ce95.entry.js.map +0 -1
  783. package/dist/cura/p-7586fd07.entry.js +0 -2
  784. package/dist/cura/p-7586fd07.entry.js.map +0 -1
  785. package/dist/cura/p-76603652.entry.js +0 -2
  786. package/dist/cura/p-76603652.entry.js.map +0 -1
  787. package/dist/cura/p-76cbb798.entry.js +0 -2
  788. package/dist/cura/p-76cbb798.entry.js.map +0 -1
  789. package/dist/cura/p-7fd143aa.entry.js +0 -2
  790. package/dist/cura/p-7fd143aa.entry.js.map +0 -1
  791. package/dist/cura/p-8c83f259.entry.js +0 -2
  792. package/dist/cura/p-8c83f259.entry.js.map +0 -1
  793. package/dist/cura/p-8d10a5a2.entry.js +0 -2
  794. package/dist/cura/p-8d10a5a2.entry.js.map +0 -1
  795. package/dist/cura/p-95cd7918.entry.js +0 -2
  796. package/dist/cura/p-95cd7918.entry.js.map +0 -1
  797. package/dist/cura/p-964stZ3D.js.map +0 -1
  798. package/dist/cura/p-9ef5444e.entry.js +0 -2
  799. package/dist/cura/p-9ef5444e.entry.js.map +0 -1
  800. package/dist/cura/p-BPKQjAwN.js +0 -2
  801. package/dist/cura/p-BPKQjAwN.js.map +0 -1
  802. package/dist/cura/p-BSI2FkNn.js.map +0 -1
  803. package/dist/cura/p-CHcd-uKK.js.map +0 -1
  804. package/dist/cura/p-Dot54hbB.js.map +0 -1
  805. package/dist/cura/p-PPMZr_VE.js +0 -3
  806. package/dist/cura/p-PPMZr_VE.js.map +0 -1
  807. package/dist/cura/p-bdfe9af2.entry.js +0 -2
  808. package/dist/cura/p-bdfe9af2.entry.js.map +0 -1
  809. package/dist/cura/p-c6f240f0.entry.js +0 -2
  810. package/dist/cura/p-c6f240f0.entry.js.map +0 -1
  811. package/dist/cura/p-ceb646df.entry.js +0 -2
  812. package/dist/cura/p-ceb646df.entry.js.map +0 -1
  813. package/dist/cura/p-d040f8b9.entry.js +0 -2
  814. package/dist/cura/p-d040f8b9.entry.js.map +0 -1
  815. package/dist/cura/p-f9af3a3b.entry.js +0 -2
  816. package/dist/cura/p-f9af3a3b.entry.js.map +0 -1
  817. package/dist/cura/p-sjLA93YY.js.map +0 -1
  818. package/dist/esm/cura-accordion_21.entry.js.map +0 -1
  819. package/dist/esm/cura-alert.entry.js.map +0 -1
  820. package/dist/esm/cura-badge-counter.entry.js.map +0 -1
  821. package/dist/esm/cura-badge-dot.entry.js.map +0 -1
  822. package/dist/esm/cura-badge-pill.entry.js.map +0 -1
  823. package/dist/esm/cura-button-outline.entry.js.map +0 -1
  824. package/dist/esm/cura-button-select.entry.js.map +0 -1
  825. package/dist/esm/cura-button.definitions-BSI2FkNn.js.map +0 -1
  826. package/dist/esm/cura-calendar.entry.js.map +0 -1
  827. package/dist/esm/cura-checkbox.entry.js.map +0 -1
  828. package/dist/esm/cura-display.entry.js.map +0 -1
  829. package/dist/esm/cura-dropdown-search-not-found.entry.js.map +0 -1
  830. package/dist/esm/cura-forms.definitions-Dot54hbB.js.map +0 -1
  831. package/dist/esm/cura-icon.definitions-sjLA93YY.js.map +0 -1
  832. package/dist/esm/cura-icons-view.entry.js.map +0 -1
  833. package/dist/esm/cura-input-date.entry.js.map +0 -1
  834. package/dist/esm/cura-loader-bar.entry.js.map +0 -1
  835. package/dist/esm/cura-modal.entry.js.map +0 -1
  836. package/dist/esm/cura-progress-bar.cura-stepper-item.entry.js.map +0 -1
  837. package/dist/esm/cura-progress-bar_2.entry.js.map +0 -1
  838. package/dist/esm/cura-radio.entry.js.map +0 -1
  839. package/dist/esm/cura-stepper.entry.js.map +0 -1
  840. package/dist/esm/cura-switch.entry.js.map +0 -1
  841. package/dist/esm/cura-tabs-button.entry.js.map +0 -1
  842. package/dist/esm/cura-tabs-transparent.entry.js.map +0 -1
  843. package/dist/esm/cura-tabs.definitions-CHcd-uKK.js.map +0 -1
  844. package/dist/esm/cura-theme-module-BPKQjAwN.js.map +0 -1
  845. package/dist/esm/cura-toast.entry.js.map +0 -1
  846. package/dist/esm/cura-tooltip.entry.js.map +0 -1
  847. package/dist/esm/cura.js.map +0 -1
  848. package/dist/esm/index-964stZ3D.js.map +0 -1
  849. package/dist/esm/index-OdKytJIH.js.map +0 -1
  850. package/dist/esm/index.js.map +0 -1
  851. package/dist/esm/loader.js.map +0 -1
@@ -1,80 +1,12 @@
1
- import { C as CuraThemeModule } from './cura-theme-module-BPKQjAwN.js';
1
+ import './theme-legacy-default-BTIDzOyO.js';
2
2
 
3
3
  const NAMESPACE = 'cura';
4
- const BUILD = /* cura */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
5
-
6
- class CuraAPI {
7
- constructor(config) {
8
- this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;
9
- const themeModule = new CuraThemeModule();
10
- this.theme = {
11
- load: function (themeTag) { themeModule.load(themeTag); },
12
- setCustom: function (customThemeDefinitions) { themeModule.setCustom(customThemeDefinitions); },
13
- colors: {
14
- getColor: function (colorWithDepth, opacity) { return themeModule.colors.getColor(colorWithDepth, opacity); },
15
- },
16
- fonts: {
17
- getFamily: function (type) { return themeModule.fonts.getFamily(type); },
18
- getWeights: function () { return themeModule.fonts.getWeights(); },
19
- getSize: function () { return themeModule.fonts.getSize(); },
20
- getColor: function () { return themeModule.fonts.getColor(); }
21
- },
22
- spacing: {
23
- getSpacing: function () { return themeModule.spacing.getSpacing(); },
24
- },
25
- breakpoints: {
26
- get: function (size, position) { return themeModule.breakpoints.get(size, position); }
27
- }
28
- };
29
- this._addGlobalClasses();
30
- if (config && config.customTheme) {
31
- this.theme.setCustom(config.customTheme);
32
- }
33
- else {
34
- const theme = config && config.theme ? config.theme : 'default';
35
- this.theme.load(theme);
36
- }
37
- }
38
- _addGlobalClasses() {
39
- const styleId = "cura_global_classes";
40
- let styleElement = document.head.querySelector(`#${styleId}`);
41
- if (!styleElement) {
42
- styleElement = document.createElement("style");
43
- styleElement.id = styleId;
44
- styleElement.textContent = `
45
- .cura-body-scroll-lock {
46
- overflow: hidden;
47
- position: fixed;
48
- left: 0;
49
- right: 0;
50
- top: 0;
51
- }
52
- `;
53
- document.head.appendChild(styleElement);
54
- }
55
- }
56
- }
57
-
58
- function appGlobalScript () {
59
- const config = window.CuraInit;
60
- window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
61
- const api = window.CuraAPI;
62
- window.dispatchEvent(new CustomEvent("CuraAPIReady", { detail: { api } }));
63
- if (config && typeof config.onReady === 'function')
64
- config.onReady(api);
65
- }
66
-
67
- const globalScripts = appGlobalScript;
68
- const globalStyles = null;
4
+ const BUILD = /* cura */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
69
5
 
70
6
  /*
71
- Stencil Client Platform v4.35.1 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
72
8
  */
73
- var __defProp = Object.defineProperty;
74
- var __export = (target, all) => {
75
- for (var name in all)
76
- __defProp(target, name, { get: all[name], enumerable: true });
77
- };
9
+
78
10
 
79
11
  // src/utils/constants.ts
80
12
  var SVG_NS = "http://www.w3.org/2000/svg";
@@ -104,6 +36,47 @@ var TYPE_CONSTANT = "type";
104
36
  var VALUE_CONSTANT = "value";
105
37
  var SERIALIZED_PREFIX = "serialized:";
106
38
 
39
+ // src/utils/get-prop-descriptor.ts
40
+ function getPropertyDescriptor(obj, memberName, getOnly) {
41
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
42
+ while (obj && obj !== stopAt) {
43
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
44
+ if (desc && (!getOnly || desc.get)) return desc;
45
+ obj = Object.getPrototypeOf(obj);
46
+ }
47
+ return void 0;
48
+ }
49
+
50
+ // src/utils/es2022-rewire-class-members.ts
51
+ var reWireGetterSetter = (instance, hostRef) => {
52
+ var _a;
53
+ const cmpMeta = hostRef.$cmpMeta$;
54
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
55
+ members.map(([memberName, [memberFlags]]) => {
56
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
57
+ const ogValue = instance[memberName];
58
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
59
+ if (ogDescriptor) {
60
+ Object.defineProperty(instance, memberName, {
61
+ get() {
62
+ return ogDescriptor.get.call(this);
63
+ },
64
+ set(newValue) {
65
+ ogDescriptor.set.call(this, newValue);
66
+ },
67
+ configurable: true,
68
+ enumerable: true
69
+ });
70
+ }
71
+ if (hostRef.$instanceValues$.has(memberName)) {
72
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
73
+ } else if (ogValue !== void 0) {
74
+ instance[memberName] = ogValue;
75
+ }
76
+ }
77
+ });
78
+ };
79
+
107
80
  // src/client/client-host-ref.ts
108
81
  var getHostRef = (ref) => {
109
82
  if (ref.__stencil__getHostRef) {
@@ -112,15 +85,20 @@ var getHostRef = (ref) => {
112
85
  return void 0;
113
86
  };
114
87
  var registerInstance = (lazyInstance, hostRef) => {
88
+ if (!hostRef) return;
115
89
  lazyInstance.__stencil__getHostRef = () => hostRef;
116
90
  hostRef.$lazyInstance$ = lazyInstance;
91
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
92
+ reWireGetterSetter(lazyInstance, hostRef);
93
+ }
117
94
  };
118
95
  var registerHost = (hostElement, cmpMeta) => {
119
96
  const hostRef = {
120
97
  $flags$: 0,
121
98
  $hostElement$: hostElement,
122
99
  $cmpMeta$: cmpMeta,
123
- $instanceValues$: /* @__PURE__ */ new Map()
100
+ $instanceValues$: /* @__PURE__ */ new Map(),
101
+ $serializerValues$: /* @__PURE__ */ new Map()
124
102
  };
125
103
  {
126
104
  hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
@@ -130,6 +108,9 @@ var registerHost = (hostElement, cmpMeta) => {
130
108
  hostElement["s-p"] = [];
131
109
  hostElement["s-rc"] = [];
132
110
  }
111
+ {
112
+ hostRef.$fetchedCbList$ = [];
113
+ }
133
114
  const ref = hostRef;
134
115
  hostElement.__stencil__getHostRef = () => ref;
135
116
  return ref;
@@ -220,12 +201,16 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
220
201
  var promiseResolve = (v) => Promise.resolve(v);
221
202
  var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
222
203
  try {
204
+ if (!win.document.adoptedStyleSheets) {
205
+ return false;
206
+ }
223
207
  new CSSStyleSheet();
224
208
  return typeof new CSSStyleSheet().replaceSync === "function";
225
209
  } catch (e) {
226
210
  }
227
211
  return false;
228
212
  })() ;
213
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
229
214
  var queuePending = false;
230
215
  var queueDomReads = [];
231
216
  var queueDomWrites = [];
@@ -261,180 +246,26 @@ var flush = () => {
261
246
  };
262
247
  var nextTick = (cb) => promiseResolve().then(cb);
263
248
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
264
- var isComplexType = (o) => {
265
- o = typeof o;
266
- return o === "object" || o === "function";
267
- };
268
249
 
269
- // src/utils/query-nonce-meta-tag-content.ts
270
- function queryNonceMetaTagContent(doc) {
271
- var _a, _b, _c;
272
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
250
+ // src/utils/style.ts
251
+ function createStyleSheetIfNeededAndSupported(styles2) {
252
+ return void 0;
273
253
  }
274
254
 
275
- // src/utils/regular-expression.ts
276
- var escapeRegExpSpecialCharacters = (text) => {
277
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
278
- };
279
-
280
- // src/utils/remote-value.ts
281
- var RemoteValue = class _RemoteValue {
282
- /**
283
- * Deserializes a LocalValue serialized object back to its original JavaScript representation
284
- *
285
- * @param serialized The serialized LocalValue object
286
- * @returns The original JavaScript value/object
287
- */
288
- static fromLocalValue(serialized) {
289
- const type = serialized[TYPE_CONSTANT];
290
- const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
291
- switch (type) {
292
- case "string" /* String */:
293
- return value;
294
- case "boolean" /* Boolean */:
295
- return value;
296
- case "bigint" /* BigInt */:
297
- return BigInt(value);
298
- case "undefined" /* Undefined */:
299
- return void 0;
300
- case "null" /* Null */:
301
- return null;
302
- case "number" /* Number */:
303
- if (value === "NaN") return NaN;
304
- if (value === "-0") return -0;
305
- if (value === "Infinity") return Infinity;
306
- if (value === "-Infinity") return -Infinity;
307
- return value;
308
- case "array" /* Array */:
309
- return value.map((item) => _RemoteValue.fromLocalValue(item));
310
- case "date" /* Date */:
311
- return new Date(value);
312
- case "map" /* Map */:
313
- const map2 = /* @__PURE__ */ new Map();
314
- for (const [key, val] of value) {
315
- const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
316
- const deserializedValue = _RemoteValue.fromLocalValue(val);
317
- map2.set(deserializedKey, deserializedValue);
318
- }
319
- return map2;
320
- case "object" /* Object */:
321
- const obj = {};
322
- for (const [key, val] of value) {
323
- obj[key] = _RemoteValue.fromLocalValue(val);
324
- }
325
- return obj;
326
- case "regexp" /* RegularExpression */:
327
- const { pattern, flags } = value;
328
- return new RegExp(pattern, flags);
329
- case "set" /* Set */:
330
- const set = /* @__PURE__ */ new Set();
331
- for (const item of value) {
332
- set.add(_RemoteValue.fromLocalValue(item));
333
- }
334
- return set;
335
- case "symbol" /* Symbol */:
336
- return Symbol(value);
337
- default:
338
- throw new Error(`Unsupported type: ${type}`);
339
- }
340
- }
341
- /**
342
- * Utility method to deserialize multiple LocalValues at once
343
- *
344
- * @param serializedValues Array of serialized LocalValue objects
345
- * @returns Array of deserialized JavaScript values
346
- */
347
- static fromLocalValueArray(serializedValues) {
348
- return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
349
- }
350
- /**
351
- * Verifies if the given object matches the structure of a serialized LocalValue
352
- *
353
- * @param obj Object to verify
354
- * @returns boolean indicating if the object has LocalValue structure
355
- */
356
- static isLocalValueObject(obj) {
357
- if (typeof obj !== "object" || obj === null) {
358
- return false;
359
- }
360
- if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
361
- return false;
362
- }
363
- const type = obj[TYPE_CONSTANT];
364
- const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
365
- if (!hasTypeProperty) {
366
- return false;
367
- }
368
- if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
369
- return obj.hasOwnProperty(VALUE_CONSTANT);
370
- }
371
- return true;
372
- }
373
- };
374
-
375
- // src/utils/result.ts
376
- var result_exports = {};
377
- __export(result_exports, {
378
- err: () => err,
379
- map: () => map,
380
- ok: () => ok,
381
- unwrap: () => unwrap,
382
- unwrapErr: () => unwrapErr
383
- });
384
- var ok = (value) => ({
385
- isOk: true,
386
- isErr: false,
387
- value
388
- });
389
- var err = (value) => ({
390
- isOk: false,
391
- isErr: true,
392
- value
393
- });
394
- function map(result, fn) {
395
- if (result.isOk) {
396
- const val = fn(result.value);
397
- if (val instanceof Promise) {
398
- return val.then((newVal) => ok(newVal));
255
+ // src/utils/shadow-root.ts
256
+ var globalStyleSheet;
257
+ function createShadowRoot(cmpMeta) {
258
+ var _a;
259
+ const opts = { mode: "open" };
260
+ const shadowRoot = this.attachShadow(opts);
261
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
262
+ if (globalStyleSheet) {
263
+ if (supportsMutableAdoptedStyleSheets) {
264
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
399
265
  } else {
400
- return ok(val);
266
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
401
267
  }
402
268
  }
403
- if (result.isErr) {
404
- const value = result.value;
405
- return err(value);
406
- }
407
- throw "should never get here";
408
- }
409
- var unwrap = (result) => {
410
- if (result.isOk) {
411
- return result.value;
412
- } else {
413
- throw result.value;
414
- }
415
- };
416
- var unwrapErr = (result) => {
417
- if (result.isErr) {
418
- return result.value;
419
- } else {
420
- throw result.value;
421
- }
422
- };
423
-
424
- // src/utils/serialize.ts
425
- function deserializeProperty(value) {
426
- if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
427
- return value;
428
- }
429
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
430
- }
431
- function createShadowRoot(cmpMeta) {
432
- const shadowRoot = this.attachShadow({ mode: "open" });
433
- if (supportsConstructableStylesheets) {
434
- const sheet = new CSSStyleSheet();
435
- sheet.replaceSync(globalStyles);
436
- shadowRoot.adoptedStyleSheets.push(sheet);
437
- }
438
269
  }
439
270
  var getSlottedChildNodes = (childNodes) => {
440
271
  const result = [];
@@ -526,7 +357,164 @@ var uniqueTime = (key, measureText) => {
526
357
  };
527
358
  }
528
359
  };
360
+
361
+ // src/utils/query-nonce-meta-tag-content.ts
362
+ function queryNonceMetaTagContent(doc) {
363
+ var _a, _b, _c;
364
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
365
+ }
366
+
367
+ // src/runtime/styles.ts
368
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
369
+ var registerStyle = (scopeId2, cssText, allowCS) => {
370
+ let style = styles.get(scopeId2);
371
+ if (supportsConstructableStylesheets && allowCS) {
372
+ style = style || new CSSStyleSheet();
373
+ if (typeof style === "string") {
374
+ style = cssText;
375
+ } else {
376
+ style.replaceSync(cssText);
377
+ }
378
+ } else {
379
+ style = cssText;
380
+ }
381
+ styles.set(scopeId2, style);
382
+ };
383
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
384
+ var _a, _b, _c;
385
+ const scopeId2 = getScopeId(cmpMeta);
386
+ const style = styles.get(scopeId2);
387
+ if (!win.document) {
388
+ return scopeId2;
389
+ }
390
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
391
+ if (style) {
392
+ if (typeof style === "string") {
393
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
394
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
395
+ let styleElm;
396
+ if (!appliedStyles) {
397
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
398
+ }
399
+ const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
400
+ if (existingStyleElm) {
401
+ existingStyleElm.textContent = style;
402
+ } else if (!appliedStyles.has(scopeId2)) {
403
+ styleElm = win.document.createElement("style");
404
+ styleElm.textContent = style;
405
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
406
+ if (nonce != null) {
407
+ styleElm.setAttribute("nonce", nonce);
408
+ }
409
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
410
+ if (styleContainerNode.nodeName === "HEAD") {
411
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
412
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
413
+ styleContainerNode.insertBefore(
414
+ styleElm,
415
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
416
+ );
417
+ } else if ("host" in styleContainerNode) {
418
+ if (supportsConstructableStylesheets) {
419
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
420
+ const stylesheet = new currentWindow.CSSStyleSheet();
421
+ stylesheet.replaceSync(style);
422
+ if (supportsMutableAdoptedStyleSheets) {
423
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
424
+ } else {
425
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
426
+ }
427
+ } else {
428
+ const existingStyleContainer = styleContainerNode.querySelector("style");
429
+ if (existingStyleContainer && true) {
430
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
431
+ } else {
432
+ styleContainerNode.prepend(styleElm);
433
+ }
434
+ }
435
+ } else {
436
+ styleContainerNode.append(styleElm);
437
+ }
438
+ }
439
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
440
+ styleContainerNode.insertBefore(styleElm, null);
441
+ }
442
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
443
+ styleElm.textContent += SLOT_FB_CSS;
444
+ }
445
+ if (appliedStyles) {
446
+ appliedStyles.add(scopeId2);
447
+ }
448
+ }
449
+ } else {
450
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
451
+ if (!appliedStyles) {
452
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
453
+ }
454
+ if (!appliedStyles.has(scopeId2)) {
455
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
456
+ let stylesheet;
457
+ if (style.constructor === currentWindow.CSSStyleSheet) {
458
+ stylesheet = style;
459
+ } else {
460
+ stylesheet = new currentWindow.CSSStyleSheet();
461
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
462
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
463
+ }
464
+ }
465
+ if (supportsMutableAdoptedStyleSheets) {
466
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
467
+ } else {
468
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
469
+ }
470
+ appliedStyles.add(scopeId2);
471
+ if ("host" in styleContainerNode) {
472
+ const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
473
+ if (ssrStyleElm) {
474
+ writeTask(() => ssrStyleElm.remove());
475
+ }
476
+ }
477
+ }
478
+ }
479
+ }
480
+ return scopeId2;
481
+ };
482
+ var attachStyles = (hostRef) => {
483
+ const cmpMeta = hostRef.$cmpMeta$;
484
+ const elm = hostRef.$hostElement$;
485
+ const flags = cmpMeta.$flags$;
486
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
487
+ const scopeId2 = addStyle(
488
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
489
+ cmpMeta);
490
+ if (flags & 10 /* needsScopedEncapsulation */) {
491
+ elm["s-sc"] = scopeId2;
492
+ elm.classList.add(scopeId2 + "-h");
493
+ }
494
+ endAttachStyles();
495
+ };
496
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
497
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
498
+ var hydrateScopedToShadow = () => {
499
+ if (!win.document) {
500
+ return;
501
+ }
502
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
503
+ let i2 = 0;
504
+ for (; i2 < styles2.length; i2++) {
505
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
506
+ }
507
+ };
508
+ var isComplexType = (o) => {
509
+ o = typeof o;
510
+ return o === "object" || o === "function";
511
+ };
512
+
513
+ // src/runtime/vdom/h.ts
529
514
  var h = (nodeName, vnodeData, ...children) => {
515
+ if (typeof nodeName === "string") {
516
+ nodeName = transformTag(nodeName);
517
+ }
530
518
  let child = null;
531
519
  let key = null;
532
520
  let simple = false;
@@ -576,7 +564,8 @@ var newVNode = (tag, text) => {
576
564
  const vnode = {
577
565
  $flags$: 0,
578
566
  $tag$: tag,
579
- $text$: text,
567
+ // Normalize undefined to null to prevent rendering "undefined" as text
568
+ $text$: text != null ? text : null,
580
569
  $elm$: null,
581
570
  $children$: null
582
571
  };
@@ -593,7 +582,7 @@ var isHost = (node) => node && node.$tag$ === Host;
593
582
 
594
583
  // src/runtime/client-hydrate.ts
595
584
  var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
596
- var _a;
585
+ var _a, _b, _c, _d;
597
586
  const endHydrate = createTime("hydrateClient", tagName);
598
587
  const shadowRoot = hostElm.shadowRoot;
599
588
  const childRenderNodes = [];
@@ -602,23 +591,6 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
602
591
  const shadowRootNodes = shadowRoot ? [] : null;
603
592
  const vnode = newVNode(tagName, null);
604
593
  vnode.$elm$ = hostElm;
605
- const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
606
- members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
607
- var _a2, _b;
608
- if (!(memberFlags & 31 /* Prop */)) {
609
- return;
610
- }
611
- const attributeName = metaAttributeName || memberName;
612
- const attrVal = hostElm.getAttribute(attributeName);
613
- if (attrVal !== null) {
614
- const attrPropVal = parsePropertyValue(
615
- attrVal,
616
- memberFlags,
617
- !!(((_a2 = hostRef.$cmpMeta$) == null ? void 0 : _a2.$flags$) & 64 /* formAssociated */)
618
- );
619
- (_b = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b.set(memberName, attrPropVal);
620
- }
621
- });
622
594
  if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
623
595
  initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
624
596
  }
@@ -643,10 +615,20 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
643
615
  const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
644
616
  const node = childRenderNode.$elm$;
645
617
  if (!shadowRoot) {
646
- node["s-hn"] = tagName.toUpperCase();
618
+ node["s-hn"] = transformTag(tagName).toUpperCase();
647
619
  if (childRenderNode.$tag$ === "slot") {
648
620
  node["s-cr"] = hostElm["s-cr"];
649
621
  }
622
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
623
+ const cmpMeta = getHostRef(childRenderNode.$elm$);
624
+ if (cmpMeta) {
625
+ const scopeId3 = getScopeId(
626
+ cmpMeta.$cmpMeta$);
627
+ const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
628
+ if (styleSheet) {
629
+ shadowRootNodes.unshift(styleSheet.cloneNode(true));
630
+ }
631
+ }
650
632
  }
651
633
  if (childRenderNode.$tag$ === "slot") {
652
634
  childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
@@ -662,7 +644,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
662
644
  }
663
645
  }
664
646
  if (orgLocationNode && orgLocationNode.isConnected) {
665
- if (shadowRoot && orgLocationNode["s-en"] === "") {
647
+ if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
666
648
  orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
667
649
  }
668
650
  orgLocationNode.parentNode.removeChild(orgLocationNode);
@@ -670,7 +652,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
670
652
  node["s-oo"] = parseInt(childRenderNode.$nodeId$);
671
653
  }
672
654
  }
673
- plt.$orgLocNodes$.delete(orgLocationId);
655
+ if (orgLocationNode && !orgLocationNode["s-id"]) {
656
+ plt.$orgLocNodes$.delete(orgLocationId);
657
+ }
674
658
  }
675
659
  const hosts = [];
676
660
  const snLen = slottedNodes.length;
@@ -679,6 +663,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
679
663
  let snGroupIdx;
680
664
  let snGroupLen;
681
665
  let slottedItem;
666
+ let currentPos = 0;
682
667
  for (snIndex; snIndex < snLen; snIndex++) {
683
668
  slotGroup = slottedNodes[snIndex];
684
669
  if (!slotGroup || !slotGroup.length) continue;
@@ -691,18 +676,24 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
691
676
  }
692
677
  if (!hosts[slottedItem.hostId]) continue;
693
678
  const hostEle = hosts[slottedItem.hostId];
679
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
680
+ hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
681
+ }
694
682
  if (!hostEle.shadowRoot || !shadowRoot) {
695
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
696
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
697
- slottedItem.slot["s-cr"] = hostEle;
698
- } else {
699
- slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
683
+ if (!slottedItem.slot["s-cr"]) {
684
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
685
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
686
+ slottedItem.slot["s-cr"] = hostEle;
687
+ } else {
688
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
689
+ }
690
+ }
691
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
692
+ if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
693
+ slottedItem.node.removeAttribute("slot");
700
694
  }
701
- addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
702
- }
703
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
704
- hostEle.appendChild(slottedItem.node);
705
695
  }
696
+ currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
706
697
  }
707
698
  }
708
699
  if (shadowRoot && !shadowRoot.childNodes.length) {
@@ -710,20 +701,22 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
710
701
  const rnLen = shadowRootNodes.length;
711
702
  if (rnLen) {
712
703
  for (rnIdex; rnIdex < rnLen; rnIdex++) {
713
- shadowRoot.appendChild(shadowRootNodes[rnIdex]);
704
+ const node = shadowRootNodes[rnIdex];
705
+ if (node) {
706
+ shadowRoot.appendChild(node);
707
+ }
714
708
  }
715
709
  Array.from(hostElm.childNodes).forEach((node) => {
716
710
  if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
717
711
  if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
718
712
  node.removeAttribute("hidden");
719
- } else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
713
+ } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
720
714
  node.parentNode.removeChild(node);
721
715
  }
722
716
  }
723
717
  });
724
718
  }
725
719
  }
726
- plt.$orgLocNodes$.delete(hostElm["s-id"]);
727
720
  hostRef.$hostElement$ = hostElm;
728
721
  endHydrate();
729
722
  };
@@ -873,10 +866,6 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
873
866
  vnode.$elm$ = node;
874
867
  vnode.$index$ = "0";
875
868
  parentVNode.$children$ = [vnode];
876
- } else {
877
- if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
878
- node.remove();
879
- }
880
869
  }
881
870
  return parentVNode;
882
871
  };
@@ -932,68 +921,158 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
932
921
  if (childVNode.$name$) {
933
922
  childVNode.$elm$.setAttribute("name", slotName);
934
923
  }
935
- if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
936
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
937
- } else {
938
- node.parentNode.insertBefore(slot, node);
924
+ if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
925
+ internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
926
+ } else {
927
+ internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
928
+ }
929
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
930
+ node.remove();
931
+ if (childVNode.$depth$ === "0") {
932
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
933
+ }
934
+ } else {
935
+ const slot = childVNode.$elm$;
936
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
937
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
938
+ patchSlotNode(node);
939
+ if (shouldMove) {
940
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
941
+ }
942
+ }
943
+ childRenderNodes.push(childVNode);
944
+ slotNodes.push(childVNode);
945
+ if (!parentVNode.$children$) {
946
+ parentVNode.$children$ = [];
947
+ }
948
+ parentVNode.$children$[childVNode.$index$] = childVNode;
949
+ }
950
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
951
+ var _a, _b;
952
+ let slottedNode = slotNode.nextSibling;
953
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
954
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
955
+ do {
956
+ 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 */))) {
957
+ slottedNode["s-sn"] = slotName;
958
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
959
+ }
960
+ slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
961
+ } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
962
+ };
963
+ var findCorrespondingNode = (node, type) => {
964
+ let sibling = node;
965
+ do {
966
+ sibling = sibling.nextSibling;
967
+ } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
968
+ return sibling;
969
+ };
970
+
971
+ // src/utils/remote-value.ts
972
+ var RemoteValue = class _RemoteValue {
973
+ /**
974
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
975
+ *
976
+ * @param serialized The serialized LocalValue object
977
+ * @returns The original JavaScript value/object
978
+ */
979
+ static fromLocalValue(serialized) {
980
+ const type = serialized[TYPE_CONSTANT];
981
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
982
+ switch (type) {
983
+ case "string" /* String */:
984
+ return value;
985
+ case "boolean" /* Boolean */:
986
+ return value;
987
+ case "bigint" /* BigInt */:
988
+ return BigInt(value);
989
+ case "undefined" /* Undefined */:
990
+ return void 0;
991
+ case "null" /* Null */:
992
+ return null;
993
+ case "number" /* Number */:
994
+ if (value === "NaN") return NaN;
995
+ if (value === "-0") return -0;
996
+ if (value === "Infinity") return Infinity;
997
+ if (value === "-Infinity") return -Infinity;
998
+ return value;
999
+ case "array" /* Array */:
1000
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
1001
+ case "date" /* Date */:
1002
+ return new Date(value);
1003
+ case "map" /* Map */:
1004
+ const map = /* @__PURE__ */ new Map();
1005
+ for (const [key, val] of value) {
1006
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1007
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
1008
+ map.set(deserializedKey, deserializedValue);
1009
+ }
1010
+ return map;
1011
+ case "object" /* Object */:
1012
+ const obj = {};
1013
+ for (const [key, val] of value) {
1014
+ obj[key] = _RemoteValue.fromLocalValue(val);
1015
+ }
1016
+ return obj;
1017
+ case "regexp" /* RegularExpression */:
1018
+ const { pattern, flags } = value;
1019
+ return new RegExp(pattern, flags);
1020
+ case "set" /* Set */:
1021
+ const set = /* @__PURE__ */ new Set();
1022
+ for (const item of value) {
1023
+ set.add(_RemoteValue.fromLocalValue(item));
1024
+ }
1025
+ return set;
1026
+ case "symbol" /* Symbol */:
1027
+ return Symbol(value);
1028
+ default:
1029
+ throw new Error(`Unsupported type: ${type}`);
1030
+ }
1031
+ }
1032
+ /**
1033
+ * Utility method to deserialize multiple LocalValues at once
1034
+ *
1035
+ * @param serializedValues Array of serialized LocalValue objects
1036
+ * @returns Array of deserialized JavaScript values
1037
+ */
1038
+ static fromLocalValueArray(serializedValues) {
1039
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
1040
+ }
1041
+ /**
1042
+ * Verifies if the given object matches the structure of a serialized LocalValue
1043
+ *
1044
+ * @param obj Object to verify
1045
+ * @returns boolean indicating if the object has LocalValue structure
1046
+ */
1047
+ static isLocalValueObject(obj) {
1048
+ if (typeof obj !== "object" || obj === null) {
1049
+ return false;
1050
+ }
1051
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
1052
+ return false;
939
1053
  }
940
- addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
941
- node.remove();
942
- if (childVNode.$depth$ === "0") {
943
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1054
+ const type = obj[TYPE_CONSTANT];
1055
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
1056
+ if (!hasTypeProperty) {
1057
+ return false;
944
1058
  }
945
- } else {
946
- const slot = childVNode.$elm$;
947
- const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
948
- addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
949
- patchSlotNode(node);
950
- if (shouldMove) {
951
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1059
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
1060
+ return obj.hasOwnProperty(VALUE_CONSTANT);
952
1061
  }
1062
+ return true;
953
1063
  }
954
- childRenderNodes.push(childVNode);
955
- slotNodes.push(childVNode);
956
- if (!parentVNode.$children$) {
957
- parentVNode.$children$ = [];
1064
+ };
1065
+
1066
+ // src/utils/serialize.ts
1067
+ function deserializeProperty(value) {
1068
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1069
+ return value;
958
1070
  }
959
- parentVNode.$children$[childVNode.$index$] = childVNode;
1071
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
960
1072
  }
961
- var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
962
- let slottedNode = slotNode.nextSibling;
963
- slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
964
- while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
965
- slottedNode["s-sn"] = slotName;
966
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
967
- slottedNode = slottedNode.nextSibling;
968
- }
969
- };
970
- var findCorrespondingNode = (node, type) => {
971
- let sibling = node;
972
- do {
973
- sibling = sibling.nextSibling;
974
- } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
975
- return sibling;
976
- };
977
- var createSupportsRuleRe = (selector) => {
978
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
979
- return new RegExp(
980
- // First capture group: match any context before the selector that's not inside @supports selector()
981
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
982
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
983
- "g"
984
- );
985
- };
986
- createSupportsRuleRe("::slotted");
987
- createSupportsRuleRe(":host");
988
- createSupportsRuleRe(":host-context");
1073
+
1074
+ // src/runtime/parse-property-value.ts
989
1075
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
990
- if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
991
- try {
992
- propValue = JSON.parse(propValue);
993
- return propValue;
994
- } catch (e) {
995
- }
996
- }
997
1076
  if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
998
1077
  propValue = deserializeProperty(propValue);
999
1078
  return propValue;
@@ -1016,7 +1095,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1016
1095
  }
1017
1096
  return propValue;
1018
1097
  };
1019
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1098
+ var getElement = (ref) => {
1099
+ var _a;
1100
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1101
+ };
1020
1102
 
1021
1103
  // src/runtime/event-emitter.ts
1022
1104
  var createEvent = (ref, name, flags) => {
@@ -1037,115 +1119,6 @@ var emitEvent = (elm, name, opts) => {
1037
1119
  elm.dispatchEvent(ev);
1038
1120
  return ev;
1039
1121
  };
1040
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1041
- var registerStyle = (scopeId2, cssText, allowCS) => {
1042
- let style = styles.get(scopeId2);
1043
- if (supportsConstructableStylesheets && allowCS) {
1044
- style = style || new CSSStyleSheet();
1045
- if (typeof style === "string") {
1046
- style = cssText;
1047
- } else {
1048
- style.replaceSync(cssText);
1049
- }
1050
- } else {
1051
- style = cssText;
1052
- }
1053
- styles.set(scopeId2, style);
1054
- };
1055
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
1056
- var _a;
1057
- const scopeId2 = getScopeId(cmpMeta);
1058
- const style = styles.get(scopeId2);
1059
- if (!win.document) {
1060
- return scopeId2;
1061
- }
1062
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1063
- if (style) {
1064
- if (typeof style === "string") {
1065
- styleContainerNode = styleContainerNode.head || styleContainerNode;
1066
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1067
- let styleElm;
1068
- if (!appliedStyles) {
1069
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1070
- }
1071
- if (!appliedStyles.has(scopeId2)) {
1072
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1073
- styleElm.innerHTML = style;
1074
- } else {
1075
- styleElm = win.document.createElement("style");
1076
- styleElm.innerHTML = style;
1077
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1078
- if (nonce != null) {
1079
- styleElm.setAttribute("nonce", nonce);
1080
- }
1081
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1082
- if (styleContainerNode.nodeName === "HEAD") {
1083
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1084
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1085
- styleContainerNode.insertBefore(
1086
- styleElm,
1087
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1088
- );
1089
- } else if ("host" in styleContainerNode) {
1090
- if (supportsConstructableStylesheets) {
1091
- const stylesheet = new CSSStyleSheet();
1092
- stylesheet.replaceSync(style);
1093
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1094
- } else {
1095
- const existingStyleContainer = styleContainerNode.querySelector("style");
1096
- if (existingStyleContainer) {
1097
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1098
- } else {
1099
- styleContainerNode.prepend(styleElm);
1100
- }
1101
- }
1102
- } else {
1103
- styleContainerNode.append(styleElm);
1104
- }
1105
- }
1106
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1107
- styleContainerNode.insertBefore(styleElm, null);
1108
- }
1109
- }
1110
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1111
- styleElm.innerHTML += SLOT_FB_CSS;
1112
- }
1113
- if (appliedStyles) {
1114
- appliedStyles.add(scopeId2);
1115
- }
1116
- }
1117
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1118
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1119
- }
1120
- }
1121
- return scopeId2;
1122
- };
1123
- var attachStyles = (hostRef) => {
1124
- const cmpMeta = hostRef.$cmpMeta$;
1125
- const elm = hostRef.$hostElement$;
1126
- const flags = cmpMeta.$flags$;
1127
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1128
- const scopeId2 = addStyle(
1129
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1130
- cmpMeta);
1131
- if (flags & 10 /* needsScopedEncapsulation */) {
1132
- elm["s-sc"] = scopeId2;
1133
- elm.classList.add(scopeId2 + "-h");
1134
- }
1135
- endAttachStyles();
1136
- };
1137
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1138
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1139
- var hydrateScopedToShadow = () => {
1140
- if (!win.document) {
1141
- return;
1142
- }
1143
- const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1144
- let i2 = 0;
1145
- for (; i2 < styles2.length; i2++) {
1146
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1147
- }
1148
- };
1149
1122
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1150
1123
  if (oldValue === newValue) {
1151
1124
  return;
@@ -1156,12 +1129,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1156
1129
  const classList = elm.classList;
1157
1130
  const oldClasses = parseClassList(oldValue);
1158
1131
  let newClasses = parseClassList(newValue);
1159
- if (elm["s-si"] && initialRender) {
1160
- newClasses.push(elm["s-si"]);
1132
+ if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1133
+ const scopeId2 = elm["s-sc"] || elm["s-si"];
1134
+ newClasses.push(scopeId2);
1161
1135
  oldClasses.forEach((c) => {
1162
- if (c.startsWith(elm["s-si"])) newClasses.push(c);
1136
+ if (c.startsWith(scopeId2)) newClasses.push(c);
1163
1137
  });
1164
- newClasses = [...new Set(newClasses)];
1138
+ newClasses = [...new Set(newClasses)].filter((c) => c);
1165
1139
  classList.add(...newClasses);
1166
1140
  } else {
1167
1141
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
@@ -1190,7 +1164,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1190
1164
  }
1191
1165
  } else if (memberName === "key") ; else if (memberName === "ref") {
1192
1166
  if (newValue) {
1193
- newValue(elm);
1167
+ queueRefAttachment(newValue, elm);
1194
1168
  }
1195
1169
  } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
1196
1170
  if (memberName[2] === "-") {
@@ -1210,6 +1184,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1210
1184
  plt.ael(elm, memberName, newValue, capture);
1211
1185
  }
1212
1186
  }
1187
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
1188
+ const propName = memberName.slice(5);
1189
+ let attrName;
1190
+ {
1191
+ const hostRef = getHostRef(elm);
1192
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
1193
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
1194
+ if (memberMeta && memberMeta[1]) {
1195
+ attrName = memberMeta[1];
1196
+ }
1197
+ }
1198
+ }
1199
+ if (!attrName) {
1200
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1201
+ }
1202
+ if (newValue == null || newValue === false) {
1203
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
1204
+ elm.removeAttribute(attrName);
1205
+ }
1206
+ } else {
1207
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
1208
+ }
1209
+ return;
1210
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
1211
+ const propName = memberName.slice(5);
1212
+ try {
1213
+ elm[propName] = newValue;
1214
+ } catch (e) {
1215
+ }
1216
+ return;
1213
1217
  } else {
1214
1218
  const isComplex = isComplexType(newValue);
1215
1219
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
@@ -1218,7 +1222,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1218
1222
  const n = newValue == null ? "" : newValue;
1219
1223
  if (memberName === "list") {
1220
1224
  isProp = false;
1221
- } else if (oldValue == null || elm[memberName] != n) {
1225
+ } else if (oldValue == null || elm[memberName] !== n) {
1222
1226
  if (typeof elm.__lookupSetter__(memberName) === "function") {
1223
1227
  elm[memberName] = n;
1224
1228
  } else {
@@ -1311,22 +1315,23 @@ function sortedAttrNames(attrNames) {
1311
1315
  );
1312
1316
  }
1313
1317
  var hostTagName;
1318
+ var useNativeShadowDom = false;
1314
1319
  var isSvgMode = false;
1320
+ var refCallbacksToRemove = [];
1321
+ var refCallbacksToAttach = [];
1315
1322
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1316
1323
  const newVNode2 = newParentVNode.$children$[childIndex];
1317
1324
  let i2 = 0;
1318
1325
  let elm;
1319
1326
  let childNode;
1320
- if (newVNode2.$text$ !== null) {
1327
+ if (newVNode2.$text$ != null) {
1321
1328
  elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1322
1329
  } else {
1323
1330
  if (!isSvgMode) {
1324
1331
  isSvgMode = newVNode2.$tag$ === "svg";
1325
1332
  }
1326
1333
  if (!win.document) {
1327
- throw new Error(
1328
- "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
1329
- );
1334
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
1330
1335
  }
1331
1336
  elm = newVNode2.$elm$ = win.document.createElementNS(
1332
1337
  isSvgMode ? SVG_NS : HTML_NS,
@@ -1339,10 +1344,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1339
1344
  updateElement(null, newVNode2, isSvgMode);
1340
1345
  }
1341
1346
  if (newVNode2.$children$) {
1347
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
1342
1348
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1343
1349
  childNode = createElm(oldParentVNode, newVNode2, i2);
1344
1350
  if (childNode) {
1345
- elm.appendChild(childNode);
1351
+ appendTarget.appendChild(childNode);
1346
1352
  }
1347
1353
  }
1348
1354
  }
@@ -1357,12 +1363,34 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1357
1363
  elm["s-hn"] = hostTagName;
1358
1364
  return elm;
1359
1365
  };
1366
+ var relocateToHostRoot = (parentElm) => {
1367
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1368
+ const host = parentElm.closest(hostTagName.toLowerCase());
1369
+ if (host != null) {
1370
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
1371
+ (ref) => ref["s-cr"]
1372
+ );
1373
+ const childNodeArray = Array.from(
1374
+ parentElm.__childNodes || parentElm.childNodes
1375
+ );
1376
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1377
+ if (childNode["s-sh"] != null) {
1378
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1379
+ childNode["s-sh"] = void 0;
1380
+ }
1381
+ }
1382
+ }
1383
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1384
+ };
1360
1385
  var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1361
1386
  let containerElm = parentElm;
1362
1387
  let childNode;
1363
1388
  if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1364
1389
  containerElm = containerElm.shadowRoot;
1365
1390
  }
1391
+ if (parentVNode.$tag$ === "template") {
1392
+ containerElm = containerElm.content;
1393
+ }
1366
1394
  for (; startIdx <= endIdx; ++startIdx) {
1367
1395
  if (vnodes[startIdx]) {
1368
1396
  childNode = createElm(null, parentVNode, startIdx);
@@ -1398,6 +1426,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1398
1426
  let newEndVnode = newCh[newEndIdx];
1399
1427
  let node;
1400
1428
  let elmToMove;
1429
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
1401
1430
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1402
1431
  if (oldStartVnode == null) {
1403
1432
  oldStartVnode = oldCh[++oldStartIdx];
@@ -1417,12 +1446,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1417
1446
  newEndVnode = newCh[--newEndIdx];
1418
1447
  } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1419
1448
  patch(oldStartVnode, newEndVnode, isInitialRender);
1420
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1449
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1421
1450
  oldStartVnode = oldCh[++oldStartIdx];
1422
1451
  newEndVnode = newCh[--newEndIdx];
1423
1452
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1424
1453
  patch(oldEndVnode, newStartVnode, isInitialRender);
1425
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1454
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1426
1455
  oldEndVnode = oldCh[--oldEndIdx];
1427
1456
  newStartVnode = newCh[++newStartIdx];
1428
1457
  } else {
@@ -1487,11 +1516,17 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1487
1516
  const newChildren = newVNode2.$children$;
1488
1517
  const tag = newVNode2.$tag$;
1489
1518
  const text = newVNode2.$text$;
1490
- if (text === null) {
1519
+ if (text == null) {
1491
1520
  {
1492
1521
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1493
1522
  }
1494
1523
  {
1524
+ if (tag === "slot" && !useNativeShadowDom) {
1525
+ if (oldVNode.$name$ !== newVNode2.$name$) {
1526
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1527
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
1528
+ }
1529
+ }
1495
1530
  updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
1496
1531
  }
1497
1532
  if (oldChildren !== null && newChildren !== null) {
@@ -1506,6 +1541,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1506
1541
  !isInitialRender && BUILD.updatable && oldChildren !== null
1507
1542
  ) {
1508
1543
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
1544
+ } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
1545
+ newVNode2.$children$ = oldChildren;
1509
1546
  }
1510
1547
  if (isSvgMode && tag === "svg") {
1511
1548
  isSvgMode = false;
@@ -1516,12 +1553,29 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1516
1553
  };
1517
1554
  var nullifyVNodeRefs = (vNode) => {
1518
1555
  {
1519
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1556
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1557
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1558
+ }
1520
1559
  vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1521
1560
  }
1522
1561
  };
1523
- var insertBefore = (parent, newNode, reference) => {
1562
+ var queueRefAttachment = (refCallback, elm) => {
1563
+ {
1564
+ refCallbacksToAttach.push(() => refCallback(elm));
1565
+ }
1566
+ };
1567
+ var flushQueuedRefCallbacks = () => {
1524
1568
  {
1569
+ refCallbacksToRemove.forEach((cb) => cb());
1570
+ refCallbacksToRemove.length = 0;
1571
+ refCallbacksToAttach.forEach((cb) => cb());
1572
+ refCallbacksToAttach.length = 0;
1573
+ }
1574
+ };
1575
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1576
+ if (parent.__insertBefore) {
1577
+ return parent.__insertBefore(newNode, reference);
1578
+ } else {
1525
1579
  return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1526
1580
  }
1527
1581
  };
@@ -1534,9 +1588,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1534
1588
  hostTagName = hostElm.tagName;
1535
1589
  if (cmpMeta.$attrsToReflect$) {
1536
1590
  rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1537
- cmpMeta.$attrsToReflect$.map(
1538
- ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
1539
- );
1591
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
1592
+ {
1593
+ rootVnode.$attrs$[attribute] = hostElm[propName];
1594
+ }
1595
+ });
1540
1596
  }
1541
1597
  if (isInitialLoad && rootVnode.$attrs$) {
1542
1598
  for (const key of Object.keys(rootVnode.$attrs$)) {
@@ -1549,7 +1605,9 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1549
1605
  rootVnode.$flags$ |= 4 /* isHost */;
1550
1606
  hostRef.$vnode$ = rootVnode;
1551
1607
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1608
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1552
1609
  patch(oldVNode, rootVnode, isInitialLoad);
1610
+ flushQueuedRefCallbacks();
1553
1611
  };
1554
1612
 
1555
1613
  // src/runtime/update-component.ts
@@ -1575,6 +1633,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
1575
1633
  }
1576
1634
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1577
1635
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1636
+ if (isInitialLoad) {
1637
+ queueMicrotask(() => {
1638
+ dispatch();
1639
+ });
1640
+ return;
1641
+ }
1578
1642
  return writeTask(dispatch) ;
1579
1643
  };
1580
1644
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -1589,10 +1653,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1589
1653
  let maybePromise;
1590
1654
  if (isInitialLoad) {
1591
1655
  {
1592
- hostRef.$flags$ |= 256 /* isListenReady */;
1593
- if (hostRef.$queuedListeners$) {
1594
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1595
- hostRef.$queuedListeners$ = void 0;
1656
+ {
1657
+ hostRef.$flags$ |= 256 /* isListenReady */;
1658
+ if (hostRef.$queuedListeners$) {
1659
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1660
+ hostRef.$queuedListeners$ = void 0;
1661
+ }
1662
+ }
1663
+ if (hostRef.$fetchedCbList$.length) {
1664
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
1596
1665
  }
1597
1666
  }
1598
1667
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
@@ -1603,8 +1672,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1603
1672
  endSchedule();
1604
1673
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1605
1674
  };
1606
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1607
- console.error(err2);
1675
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
1676
+ console.error(err);
1608
1677
  fn();
1609
1678
  }) : fn();
1610
1679
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
@@ -1632,7 +1701,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1632
1701
  if (childrenPromises.length === 0) {
1633
1702
  postUpdate();
1634
1703
  } else {
1635
- Promise.all(childrenPromises).then(postUpdate);
1704
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
1636
1705
  hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1637
1706
  childrenPromises.length = 0;
1638
1707
  }
@@ -1698,7 +1767,13 @@ var postUpdateComponent = (hostRef) => {
1698
1767
  }
1699
1768
  };
1700
1769
  var appDidLoad = (who) => {
1770
+ var _a;
1701
1771
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1772
+ {
1773
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
1774
+ plt.$orgLocNodes$.clear();
1775
+ }
1776
+ }
1702
1777
  };
1703
1778
  var safeCall = (instance, method, arg, elm) => {
1704
1779
  if (instance && instance[method]) {
@@ -1719,6 +1794,9 @@ var addHydratedFlag = (elm) => {
1719
1794
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1720
1795
  var setValue = (ref, propName, newVal, cmpMeta) => {
1721
1796
  const hostRef = getHostRef(ref);
1797
+ if (!hostRef) {
1798
+ return;
1799
+ }
1722
1800
  if (!hostRef) {
1723
1801
  throw new Error(
1724
1802
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
@@ -1737,25 +1815,35 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1737
1815
  const didValueChange = newVal !== oldVal && !areBothNaN;
1738
1816
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1739
1817
  hostRef.$instanceValues$.set(propName, newVal);
1740
- if (instance) {
1741
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1742
- const watchMethods = cmpMeta.$watchers$[propName];
1743
- if (watchMethods) {
1744
- watchMethods.map((watchMethodName) => {
1745
- try {
1746
- instance[watchMethodName](newVal, oldVal, propName);
1747
- } catch (e) {
1748
- consoleError(e, elm);
1818
+ if (cmpMeta.$watchers$) {
1819
+ const watchMethods = cmpMeta.$watchers$[propName];
1820
+ if (watchMethods) {
1821
+ watchMethods.map((watcher) => {
1822
+ try {
1823
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1824
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1825
+ if (!instance) {
1826
+ hostRef.$fetchedCbList$.push(() => {
1827
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1828
+ });
1829
+ } else {
1830
+ instance[watchMethodName](newVal, oldVal, propName);
1831
+ }
1749
1832
  }
1750
- });
1751
- }
1752
- }
1753
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1754
- if (instance.componentShouldUpdate) {
1755
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1756
- return;
1833
+ } catch (e) {
1834
+ consoleError(e, elm);
1757
1835
  }
1836
+ });
1837
+ }
1838
+ }
1839
+ if (flags & 2 /* hasRendered */) {
1840
+ if (instance.componentShouldUpdate) {
1841
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
1842
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
1843
+ return;
1758
1844
  }
1845
+ }
1846
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
1759
1847
  scheduleUpdate(hostRef, false);
1760
1848
  }
1761
1849
  }
@@ -1770,10 +1858,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1770
1858
  FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
1771
1859
  Object.defineProperty(prototype, cbName, {
1772
1860
  value(...args) {
1861
+ var _a2;
1773
1862
  const hostRef = getHostRef(this);
1774
- const instance = hostRef.$lazyInstance$ ;
1863
+ const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
1775
1864
  if (!instance) {
1776
- hostRef.$onReadyPromise$.then((asyncInstance) => {
1865
+ (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
1777
1866
  const cb = asyncInstance[cbName];
1778
1867
  typeof cb === "function" && cb.call(asyncInstance, ...args);
1779
1868
  });
@@ -1785,14 +1874,22 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1785
1874
  });
1786
1875
  });
1787
1876
  }
1788
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1789
- if (Cstr.watchers && !cmpMeta.$watchers$) {
1790
- cmpMeta.$watchers$ = Cstr.watchers;
1877
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1878
+ {
1879
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1880
+ cmpMeta.$watchers$ = Cstr.watchers;
1881
+ }
1882
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1883
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1884
+ }
1885
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1886
+ cmpMeta.$serializers$ = Cstr.serializers;
1887
+ }
1791
1888
  }
1792
1889
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1793
1890
  members.map(([memberName, [memberFlags]]) => {
1794
1891
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1795
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1892
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
1796
1893
  if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1797
1894
  if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1798
1895
  if (flags & 1 /* isElementConstructor */ || !origGetter) {
@@ -1815,12 +1912,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1815
1912
  Object.defineProperty(prototype, memberName, {
1816
1913
  set(newValue) {
1817
1914
  const ref = getHostRef(this);
1915
+ if (!ref) {
1916
+ return;
1917
+ }
1818
1918
  if (origSetter) {
1819
1919
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1820
1920
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1821
1921
  newValue = ref.$instanceValues$.get(memberName);
1822
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1823
- ref.$instanceValues$.set(memberName, currentValue);
1824
1922
  }
1825
1923
  origSetter.apply(this, [
1826
1924
  parsePropertyValue(
@@ -1837,7 +1935,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1837
1935
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1838
1936
  setValue(this, memberName, newValue, cmpMeta);
1839
1937
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1840
- ref.$onReadyPromise$.then(() => {
1938
+ ref.$fetchedCbList$.push(() => {
1841
1939
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1842
1940
  ref.$lazyInstance$[memberName] = newValue;
1843
1941
  }
@@ -1860,7 +1958,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1860
1958
  if (ref.$lazyInstance$) {
1861
1959
  setterSetVal();
1862
1960
  } else {
1863
- ref.$onReadyPromise$.then(() => setterSetVal());
1961
+ ref.$fetchedCbList$.push(() => {
1962
+ setterSetVal();
1963
+ });
1864
1964
  }
1865
1965
  }
1866
1966
  }
@@ -1884,29 +1984,34 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1884
1984
  plt.jmp(() => {
1885
1985
  var _a2;
1886
1986
  const propName = attrNameToPropName.get(attrName);
1987
+ const hostRef = getHostRef(this);
1887
1988
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1888
1989
  newValue = this[propName];
1889
1990
  delete this[propName];
1890
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1991
+ }
1992
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1891
1993
  this[propName] == newValue) {
1892
1994
  return;
1893
1995
  } else if (propName == null) {
1894
- const hostRef = getHostRef(this);
1895
1996
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1896
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1997
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1897
1998
  const instance = hostRef.$lazyInstance$ ;
1898
1999
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1899
- entry == null ? void 0 : entry.forEach((callbackName) => {
1900
- if (instance[callbackName] != null) {
1901
- instance[callbackName].call(instance, newValue, oldValue, attrName);
2000
+ entry == null ? void 0 : entry.forEach((watcher) => {
2001
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2002
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
2003
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1902
2004
  }
1903
2005
  });
1904
2006
  }
1905
2007
  return;
1906
2008
  }
2009
+ const propFlags = members.find(([m]) => m === propName);
2010
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
2011
+ newValue = newValue === null || newValue === "false" ? false : true;
2012
+ }
1907
2013
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1908
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1909
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
2014
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1910
2015
  this[propName] = newValue;
1911
2016
  }
1912
2017
  });
@@ -1914,7 +2019,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1914
2019
  Cstr.observedAttributes = Array.from(
1915
2020
  /* @__PURE__ */ new Set([
1916
2021
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1917
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
2022
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1918
2023
  var _a2;
1919
2024
  const attrName = m[1] || propName;
1920
2025
  attrNameToPropName.set(attrName, propName);
@@ -1933,69 +2038,84 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1933
2038
  // src/runtime/initialize-component.ts
1934
2039
  var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1935
2040
  let Cstr;
1936
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1937
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1938
- const bundleId = cmpMeta.$lazyBundleId$;
1939
- if (bundleId) {
1940
- const CstrImport = loadModule(cmpMeta, hostRef);
1941
- if (CstrImport && "then" in CstrImport) {
1942
- const endLoad = uniqueTime();
1943
- Cstr = await CstrImport;
1944
- endLoad();
1945
- } else {
1946
- Cstr = CstrImport;
1947
- }
1948
- if (!Cstr) {
1949
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1950
- }
1951
- if (!Cstr.isProxied) {
2041
+ try {
2042
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2043
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2044
+ const bundleId = cmpMeta.$lazyBundleId$;
2045
+ if (bundleId) {
2046
+ const CstrImport = loadModule(cmpMeta, hostRef);
2047
+ if (CstrImport && "then" in CstrImport) {
2048
+ const endLoad = uniqueTime();
2049
+ Cstr = await CstrImport;
2050
+ endLoad();
2051
+ } else {
2052
+ Cstr = CstrImport;
2053
+ }
2054
+ if (!Cstr) {
2055
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2056
+ }
2057
+ if (!Cstr.isProxied) {
2058
+ {
2059
+ cmpMeta.$watchers$ = Cstr.watchers;
2060
+ cmpMeta.$serializers$ = Cstr.serializers;
2061
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2062
+ }
2063
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2064
+ Cstr.isProxied = true;
2065
+ }
2066
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1952
2067
  {
1953
- cmpMeta.$watchers$ = Cstr.watchers;
2068
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2069
+ }
2070
+ try {
2071
+ new Cstr(hostRef);
2072
+ } catch (e) {
2073
+ consoleError(e, elm);
2074
+ }
2075
+ {
2076
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2077
+ }
2078
+ {
2079
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2080
+ }
2081
+ endNewInstance();
2082
+ {
2083
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2084
+ }
2085
+ } else {
2086
+ Cstr = elm.constructor;
2087
+ const cmpTag = elm.localName;
2088
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2089
+ }
2090
+ if (Cstr && Cstr.style) {
2091
+ let style;
2092
+ if (typeof Cstr.style === "string") {
2093
+ style = Cstr.style;
2094
+ }
2095
+ const scopeId2 = getScopeId(cmpMeta);
2096
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
2097
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2098
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2099
+ endRegisterStyles();
1954
2100
  }
1955
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1956
- Cstr.isProxied = true;
1957
- }
1958
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1959
- {
1960
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1961
- }
1962
- try {
1963
- new Cstr(hostRef);
1964
- } catch (e) {
1965
- consoleError(e, elm);
1966
- }
1967
- {
1968
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
1969
- }
1970
- {
1971
- hostRef.$flags$ |= 128 /* isWatchReady */;
1972
2101
  }
1973
- endNewInstance();
1974
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
2102
+ }
2103
+ const ancestorComponent = hostRef.$ancestorComponent$;
2104
+ const schedule = () => scheduleUpdate(hostRef, true);
2105
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2106
+ ancestorComponent["s-rc"].push(schedule);
1975
2107
  } else {
1976
- Cstr = elm.constructor;
1977
- const cmpTag = elm.localName;
1978
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2108
+ schedule();
1979
2109
  }
1980
- if (Cstr && Cstr.style) {
1981
- let style;
1982
- if (typeof Cstr.style === "string") {
1983
- style = Cstr.style;
1984
- }
1985
- const scopeId2 = getScopeId(cmpMeta);
1986
- if (!styles.has(scopeId2)) {
1987
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1988
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1989
- endRegisterStyles();
1990
- }
2110
+ } catch (e) {
2111
+ consoleError(e, elm);
2112
+ if (hostRef.$onRenderResolve$) {
2113
+ hostRef.$onRenderResolve$();
2114
+ hostRef.$onRenderResolve$ = void 0;
2115
+ }
2116
+ if (hostRef.$onReadyResolve$) {
2117
+ hostRef.$onReadyResolve$(elm);
1991
2118
  }
1992
- }
1993
- const ancestorComponent = hostRef.$ancestorComponent$;
1994
- const schedule = () => scheduleUpdate(hostRef, true);
1995
- if (ancestorComponent && ancestorComponent["s-rc"]) {
1996
- ancestorComponent["s-rc"].push(schedule);
1997
- } else {
1998
- schedule();
1999
2119
  }
2000
2120
  };
2001
2121
  var fireConnectedCallback = (instance, elm) => {
@@ -2008,6 +2128,9 @@ var fireConnectedCallback = (instance, elm) => {
2008
2128
  var connectedCallback = (elm) => {
2009
2129
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2010
2130
  const hostRef = getHostRef(elm);
2131
+ if (!hostRef) {
2132
+ return;
2133
+ }
2011
2134
  const cmpMeta = hostRef.$cmpMeta$;
2012
2135
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2013
2136
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -2034,7 +2157,7 @@ var connectedCallback = (elm) => {
2034
2157
  }
2035
2158
  if (cmpMeta.$members$) {
2036
2159
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2037
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
2160
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
2038
2161
  const value = elm[memberName];
2039
2162
  delete elm[memberName];
2040
2163
  elm[memberName] = value;
@@ -2064,7 +2187,7 @@ var disconnectedCallback = async (elm) => {
2064
2187
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2065
2188
  const hostRef = getHostRef(elm);
2066
2189
  {
2067
- if (hostRef.$rmListeners$) {
2190
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
2068
2191
  hostRef.$rmListeners$.map((rmListener) => rmListener());
2069
2192
  hostRef.$rmListeners$ = void 0;
2070
2193
  }
@@ -2108,19 +2231,15 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2108
2231
  {
2109
2232
  hydrateScopedToShadow();
2110
2233
  }
2111
- let hasSlotRelocation = false;
2112
2234
  lazyBundles.map((lazyBundle) => {
2113
2235
  lazyBundle[1].map((compactMeta) => {
2114
- var _a2;
2236
+ var _a2, _b, _c;
2115
2237
  const cmpMeta = {
2116
2238
  $flags$: compactMeta[0],
2117
2239
  $tagName$: compactMeta[1],
2118
2240
  $members$: compactMeta[2],
2119
2241
  $listeners$: compactMeta[3]
2120
2242
  };
2121
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2122
- hasSlotRelocation = true;
2123
- }
2124
2243
  {
2125
2244
  cmpMeta.$members$ = compactMeta[2];
2126
2245
  }
@@ -2132,13 +2251,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2132
2251
  }
2133
2252
  {
2134
2253
  cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
2254
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
2255
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
2135
2256
  }
2136
- const tagName = cmpMeta.$tagName$;
2257
+ const tagName = transformTag(cmpMeta.$tagName$);
2137
2258
  const HostElement = class extends HTMLElement {
2259
+ ["s-p"];
2260
+ ["s-rc"];
2261
+ hasRegisteredEventListeners = false;
2138
2262
  // StencilLazyHost
2139
2263
  constructor(self) {
2140
2264
  super(self);
2141
- this.hasRegisteredEventListeners = false;
2142
2265
  self = this;
2143
2266
  registerHost(self, cmpMeta);
2144
2267
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
@@ -2157,6 +2280,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2157
2280
  }
2158
2281
  connectedCallback() {
2159
2282
  const hostRef = getHostRef(this);
2283
+ if (!hostRef) {
2284
+ return;
2285
+ }
2160
2286
  if (!this.hasRegisteredEventListeners) {
2161
2287
  this.hasRegisteredEventListeners = true;
2162
2288
  addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
@@ -2176,6 +2302,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2176
2302
  plt.raf(() => {
2177
2303
  var _a3;
2178
2304
  const hostRef = getHostRef(this);
2305
+ if (!hostRef) {
2306
+ return;
2307
+ }
2179
2308
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2180
2309
  if (i2 > -1) {
2181
2310
  deferredConnectedCallbacks.splice(i2, 1);
@@ -2186,7 +2315,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2186
2315
  });
2187
2316
  }
2188
2317
  componentOnReady() {
2189
- return getHostRef(this).$onReadyPromise$;
2318
+ var _a3;
2319
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2190
2320
  }
2191
2321
  };
2192
2322
  if (cmpMeta.$flags$ & 64 /* formAssociated */) {
@@ -2203,9 +2333,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2203
2333
  });
2204
2334
  });
2205
2335
  if (cmpTags.length > 0) {
2206
- if (hasSlotRelocation) {
2207
- dataStyles.textContent += SLOT_FB_CSS;
2208
- }
2209
2336
  {
2210
2337
  dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2211
2338
  }
@@ -2266,8 +2393,8 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2266
2393
 
2267
2394
  // src/runtime/nonce.ts
2268
2395
  var setNonce = (nonce) => plt.$nonce$ = nonce;
2396
+ function transformTag(tag) {
2397
+ return tag;
2398
+ }
2269
2399
 
2270
- export { Host as H, getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2271
- //# sourceMappingURL=index-OdKytJIH.js.map
2272
-
2273
- //# sourceMappingURL=index-OdKytJIH.js.map
2400
+ export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };