@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,82 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var curaThemeModule = require('./cura-theme-module-CJkmAxBA.js');
3
+ require('./theme-legacy-default-COE-hjD7.js');
4
4
 
5
5
  const NAMESPACE = 'cura';
6
- const BUILD = /* cura */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
7
-
8
- class CuraAPI {
9
- constructor(config) {
10
- this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;
11
- const themeModule = new curaThemeModule.CuraThemeModule();
12
- this.theme = {
13
- load: function (themeTag) { themeModule.load(themeTag); },
14
- setCustom: function (customThemeDefinitions) { themeModule.setCustom(customThemeDefinitions); },
15
- colors: {
16
- getColor: function (colorWithDepth, opacity) { return themeModule.colors.getColor(colorWithDepth, opacity); },
17
- },
18
- fonts: {
19
- getFamily: function (type) { return themeModule.fonts.getFamily(type); },
20
- getWeights: function () { return themeModule.fonts.getWeights(); },
21
- getSize: function () { return themeModule.fonts.getSize(); },
22
- getColor: function () { return themeModule.fonts.getColor(); }
23
- },
24
- spacing: {
25
- getSpacing: function () { return themeModule.spacing.getSpacing(); },
26
- },
27
- breakpoints: {
28
- get: function (size, position) { return themeModule.breakpoints.get(size, position); }
29
- }
30
- };
31
- this._addGlobalClasses();
32
- if (config && config.customTheme) {
33
- this.theme.setCustom(config.customTheme);
34
- }
35
- else {
36
- const theme = config && config.theme ? config.theme : 'default';
37
- this.theme.load(theme);
38
- }
39
- }
40
- _addGlobalClasses() {
41
- const styleId = "cura_global_classes";
42
- let styleElement = document.head.querySelector(`#${styleId}`);
43
- if (!styleElement) {
44
- styleElement = document.createElement("style");
45
- styleElement.id = styleId;
46
- styleElement.textContent = `
47
- .cura-body-scroll-lock {
48
- overflow: hidden;
49
- position: fixed;
50
- left: 0;
51
- right: 0;
52
- top: 0;
53
- }
54
- `;
55
- document.head.appendChild(styleElement);
56
- }
57
- }
58
- }
59
-
60
- function appGlobalScript () {
61
- const config = window.CuraInit;
62
- window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
63
- const api = window.CuraAPI;
64
- window.dispatchEvent(new CustomEvent("CuraAPIReady", { detail: { api } }));
65
- if (config && typeof config.onReady === 'function')
66
- config.onReady(api);
67
- }
68
-
69
- const globalScripts = appGlobalScript;
70
- const globalStyles = null;
6
+ const BUILD = /* cura */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
71
7
 
72
8
  /*
73
- Stencil Client Platform v4.35.1 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
74
10
  */
75
- var __defProp = Object.defineProperty;
76
- var __export = (target, all) => {
77
- for (var name in all)
78
- __defProp(target, name, { get: all[name], enumerable: true });
79
- };
11
+
80
12
 
81
13
  // src/utils/constants.ts
82
14
  var SVG_NS = "http://www.w3.org/2000/svg";
@@ -106,6 +38,47 @@ var TYPE_CONSTANT = "type";
106
38
  var VALUE_CONSTANT = "value";
107
39
  var SERIALIZED_PREFIX = "serialized:";
108
40
 
41
+ // src/utils/get-prop-descriptor.ts
42
+ function getPropertyDescriptor(obj, memberName, getOnly) {
43
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
44
+ while (obj && obj !== stopAt) {
45
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
46
+ if (desc && (!getOnly || desc.get)) return desc;
47
+ obj = Object.getPrototypeOf(obj);
48
+ }
49
+ return void 0;
50
+ }
51
+
52
+ // src/utils/es2022-rewire-class-members.ts
53
+ var reWireGetterSetter = (instance, hostRef) => {
54
+ var _a;
55
+ const cmpMeta = hostRef.$cmpMeta$;
56
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
57
+ members.map(([memberName, [memberFlags]]) => {
58
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
59
+ const ogValue = instance[memberName];
60
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
61
+ if (ogDescriptor) {
62
+ Object.defineProperty(instance, memberName, {
63
+ get() {
64
+ return ogDescriptor.get.call(this);
65
+ },
66
+ set(newValue) {
67
+ ogDescriptor.set.call(this, newValue);
68
+ },
69
+ configurable: true,
70
+ enumerable: true
71
+ });
72
+ }
73
+ if (hostRef.$instanceValues$.has(memberName)) {
74
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
75
+ } else if (ogValue !== void 0) {
76
+ instance[memberName] = ogValue;
77
+ }
78
+ }
79
+ });
80
+ };
81
+
109
82
  // src/client/client-host-ref.ts
110
83
  var getHostRef = (ref) => {
111
84
  if (ref.__stencil__getHostRef) {
@@ -114,15 +87,20 @@ var getHostRef = (ref) => {
114
87
  return void 0;
115
88
  };
116
89
  var registerInstance = (lazyInstance, hostRef) => {
90
+ if (!hostRef) return;
117
91
  lazyInstance.__stencil__getHostRef = () => hostRef;
118
92
  hostRef.$lazyInstance$ = lazyInstance;
93
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
94
+ reWireGetterSetter(lazyInstance, hostRef);
95
+ }
119
96
  };
120
97
  var registerHost = (hostElement, cmpMeta) => {
121
98
  const hostRef = {
122
99
  $flags$: 0,
123
100
  $hostElement$: hostElement,
124
101
  $cmpMeta$: cmpMeta,
125
- $instanceValues$: /* @__PURE__ */ new Map()
102
+ $instanceValues$: /* @__PURE__ */ new Map(),
103
+ $serializerValues$: /* @__PURE__ */ new Map()
126
104
  };
127
105
  {
128
106
  hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
@@ -132,6 +110,9 @@ var registerHost = (hostElement, cmpMeta) => {
132
110
  hostElement["s-p"] = [];
133
111
  hostElement["s-rc"] = [];
134
112
  }
113
+ {
114
+ hostRef.$fetchedCbList$ = [];
115
+ }
135
116
  const ref = hostRef;
136
117
  hostElement.__stencil__getHostRef = () => ref;
137
118
  return ref;
@@ -222,12 +203,16 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
222
203
  var promiseResolve = (v) => Promise.resolve(v);
223
204
  var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
224
205
  try {
206
+ if (!win.document.adoptedStyleSheets) {
207
+ return false;
208
+ }
225
209
  new CSSStyleSheet();
226
210
  return typeof new CSSStyleSheet().replaceSync === "function";
227
211
  } catch (e) {
228
212
  }
229
213
  return false;
230
214
  })() ;
215
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
231
216
  var queuePending = false;
232
217
  var queueDomReads = [];
233
218
  var queueDomWrites = [];
@@ -263,180 +248,26 @@ var flush = () => {
263
248
  };
264
249
  var nextTick = (cb) => promiseResolve().then(cb);
265
250
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
266
- var isComplexType = (o) => {
267
- o = typeof o;
268
- return o === "object" || o === "function";
269
- };
270
251
 
271
- // src/utils/query-nonce-meta-tag-content.ts
272
- function queryNonceMetaTagContent(doc) {
273
- var _a, _b, _c;
274
- 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;
252
+ // src/utils/style.ts
253
+ function createStyleSheetIfNeededAndSupported(styles2) {
254
+ return void 0;
275
255
  }
276
256
 
277
- // src/utils/regular-expression.ts
278
- var escapeRegExpSpecialCharacters = (text) => {
279
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
280
- };
281
-
282
- // src/utils/remote-value.ts
283
- var RemoteValue = class _RemoteValue {
284
- /**
285
- * Deserializes a LocalValue serialized object back to its original JavaScript representation
286
- *
287
- * @param serialized The serialized LocalValue object
288
- * @returns The original JavaScript value/object
289
- */
290
- static fromLocalValue(serialized) {
291
- const type = serialized[TYPE_CONSTANT];
292
- const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
293
- switch (type) {
294
- case "string" /* String */:
295
- return value;
296
- case "boolean" /* Boolean */:
297
- return value;
298
- case "bigint" /* BigInt */:
299
- return BigInt(value);
300
- case "undefined" /* Undefined */:
301
- return void 0;
302
- case "null" /* Null */:
303
- return null;
304
- case "number" /* Number */:
305
- if (value === "NaN") return NaN;
306
- if (value === "-0") return -0;
307
- if (value === "Infinity") return Infinity;
308
- if (value === "-Infinity") return -Infinity;
309
- return value;
310
- case "array" /* Array */:
311
- return value.map((item) => _RemoteValue.fromLocalValue(item));
312
- case "date" /* Date */:
313
- return new Date(value);
314
- case "map" /* Map */:
315
- const map2 = /* @__PURE__ */ new Map();
316
- for (const [key, val] of value) {
317
- const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
318
- const deserializedValue = _RemoteValue.fromLocalValue(val);
319
- map2.set(deserializedKey, deserializedValue);
320
- }
321
- return map2;
322
- case "object" /* Object */:
323
- const obj = {};
324
- for (const [key, val] of value) {
325
- obj[key] = _RemoteValue.fromLocalValue(val);
326
- }
327
- return obj;
328
- case "regexp" /* RegularExpression */:
329
- const { pattern, flags } = value;
330
- return new RegExp(pattern, flags);
331
- case "set" /* Set */:
332
- const set = /* @__PURE__ */ new Set();
333
- for (const item of value) {
334
- set.add(_RemoteValue.fromLocalValue(item));
335
- }
336
- return set;
337
- case "symbol" /* Symbol */:
338
- return Symbol(value);
339
- default:
340
- throw new Error(`Unsupported type: ${type}`);
341
- }
342
- }
343
- /**
344
- * Utility method to deserialize multiple LocalValues at once
345
- *
346
- * @param serializedValues Array of serialized LocalValue objects
347
- * @returns Array of deserialized JavaScript values
348
- */
349
- static fromLocalValueArray(serializedValues) {
350
- return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
351
- }
352
- /**
353
- * Verifies if the given object matches the structure of a serialized LocalValue
354
- *
355
- * @param obj Object to verify
356
- * @returns boolean indicating if the object has LocalValue structure
357
- */
358
- static isLocalValueObject(obj) {
359
- if (typeof obj !== "object" || obj === null) {
360
- return false;
361
- }
362
- if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
363
- return false;
364
- }
365
- const type = obj[TYPE_CONSTANT];
366
- const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
367
- if (!hasTypeProperty) {
368
- return false;
369
- }
370
- if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
371
- return obj.hasOwnProperty(VALUE_CONSTANT);
372
- }
373
- return true;
374
- }
375
- };
376
-
377
- // src/utils/result.ts
378
- var result_exports = {};
379
- __export(result_exports, {
380
- err: () => err,
381
- map: () => map,
382
- ok: () => ok,
383
- unwrap: () => unwrap,
384
- unwrapErr: () => unwrapErr
385
- });
386
- var ok = (value) => ({
387
- isOk: true,
388
- isErr: false,
389
- value
390
- });
391
- var err = (value) => ({
392
- isOk: false,
393
- isErr: true,
394
- value
395
- });
396
- function map(result, fn) {
397
- if (result.isOk) {
398
- const val = fn(result.value);
399
- if (val instanceof Promise) {
400
- return val.then((newVal) => ok(newVal));
257
+ // src/utils/shadow-root.ts
258
+ var globalStyleSheet;
259
+ function createShadowRoot(cmpMeta) {
260
+ var _a;
261
+ const opts = { mode: "open" };
262
+ const shadowRoot = this.attachShadow(opts);
263
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
264
+ if (globalStyleSheet) {
265
+ if (supportsMutableAdoptedStyleSheets) {
266
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
401
267
  } else {
402
- return ok(val);
268
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
403
269
  }
404
270
  }
405
- if (result.isErr) {
406
- const value = result.value;
407
- return err(value);
408
- }
409
- throw "should never get here";
410
- }
411
- var unwrap = (result) => {
412
- if (result.isOk) {
413
- return result.value;
414
- } else {
415
- throw result.value;
416
- }
417
- };
418
- var unwrapErr = (result) => {
419
- if (result.isErr) {
420
- return result.value;
421
- } else {
422
- throw result.value;
423
- }
424
- };
425
-
426
- // src/utils/serialize.ts
427
- function deserializeProperty(value) {
428
- if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
429
- return value;
430
- }
431
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
432
- }
433
- function createShadowRoot(cmpMeta) {
434
- const shadowRoot = this.attachShadow({ mode: "open" });
435
- if (supportsConstructableStylesheets) {
436
- const sheet = new CSSStyleSheet();
437
- sheet.replaceSync(globalStyles);
438
- shadowRoot.adoptedStyleSheets.push(sheet);
439
- }
440
271
  }
441
272
  var getSlottedChildNodes = (childNodes) => {
442
273
  const result = [];
@@ -528,7 +359,164 @@ var uniqueTime = (key, measureText) => {
528
359
  };
529
360
  }
530
361
  };
362
+
363
+ // src/utils/query-nonce-meta-tag-content.ts
364
+ function queryNonceMetaTagContent(doc) {
365
+ var _a, _b, _c;
366
+ 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;
367
+ }
368
+
369
+ // src/runtime/styles.ts
370
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
371
+ var registerStyle = (scopeId2, cssText, allowCS) => {
372
+ let style = styles.get(scopeId2);
373
+ if (supportsConstructableStylesheets && allowCS) {
374
+ style = style || new CSSStyleSheet();
375
+ if (typeof style === "string") {
376
+ style = cssText;
377
+ } else {
378
+ style.replaceSync(cssText);
379
+ }
380
+ } else {
381
+ style = cssText;
382
+ }
383
+ styles.set(scopeId2, style);
384
+ };
385
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
386
+ var _a, _b, _c;
387
+ const scopeId2 = getScopeId(cmpMeta);
388
+ const style = styles.get(scopeId2);
389
+ if (!win.document) {
390
+ return scopeId2;
391
+ }
392
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
393
+ if (style) {
394
+ if (typeof style === "string") {
395
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
396
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
397
+ let styleElm;
398
+ if (!appliedStyles) {
399
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
400
+ }
401
+ const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
402
+ if (existingStyleElm) {
403
+ existingStyleElm.textContent = style;
404
+ } else if (!appliedStyles.has(scopeId2)) {
405
+ styleElm = win.document.createElement("style");
406
+ styleElm.textContent = style;
407
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
408
+ if (nonce != null) {
409
+ styleElm.setAttribute("nonce", nonce);
410
+ }
411
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
412
+ if (styleContainerNode.nodeName === "HEAD") {
413
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
414
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
415
+ styleContainerNode.insertBefore(
416
+ styleElm,
417
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
418
+ );
419
+ } else if ("host" in styleContainerNode) {
420
+ if (supportsConstructableStylesheets) {
421
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
422
+ const stylesheet = new currentWindow.CSSStyleSheet();
423
+ stylesheet.replaceSync(style);
424
+ if (supportsMutableAdoptedStyleSheets) {
425
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
426
+ } else {
427
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
428
+ }
429
+ } else {
430
+ const existingStyleContainer = styleContainerNode.querySelector("style");
431
+ if (existingStyleContainer && true) {
432
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
433
+ } else {
434
+ styleContainerNode.prepend(styleElm);
435
+ }
436
+ }
437
+ } else {
438
+ styleContainerNode.append(styleElm);
439
+ }
440
+ }
441
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
442
+ styleContainerNode.insertBefore(styleElm, null);
443
+ }
444
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
445
+ styleElm.textContent += SLOT_FB_CSS;
446
+ }
447
+ if (appliedStyles) {
448
+ appliedStyles.add(scopeId2);
449
+ }
450
+ }
451
+ } else {
452
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
453
+ if (!appliedStyles) {
454
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
455
+ }
456
+ if (!appliedStyles.has(scopeId2)) {
457
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
458
+ let stylesheet;
459
+ if (style.constructor === currentWindow.CSSStyleSheet) {
460
+ stylesheet = style;
461
+ } else {
462
+ stylesheet = new currentWindow.CSSStyleSheet();
463
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
464
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
465
+ }
466
+ }
467
+ if (supportsMutableAdoptedStyleSheets) {
468
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
469
+ } else {
470
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
471
+ }
472
+ appliedStyles.add(scopeId2);
473
+ if ("host" in styleContainerNode) {
474
+ const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
475
+ if (ssrStyleElm) {
476
+ writeTask(() => ssrStyleElm.remove());
477
+ }
478
+ }
479
+ }
480
+ }
481
+ }
482
+ return scopeId2;
483
+ };
484
+ var attachStyles = (hostRef) => {
485
+ const cmpMeta = hostRef.$cmpMeta$;
486
+ const elm = hostRef.$hostElement$;
487
+ const flags = cmpMeta.$flags$;
488
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
489
+ const scopeId2 = addStyle(
490
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
491
+ cmpMeta);
492
+ if (flags & 10 /* needsScopedEncapsulation */) {
493
+ elm["s-sc"] = scopeId2;
494
+ elm.classList.add(scopeId2 + "-h");
495
+ }
496
+ endAttachStyles();
497
+ };
498
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
499
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
500
+ var hydrateScopedToShadow = () => {
501
+ if (!win.document) {
502
+ return;
503
+ }
504
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
505
+ let i2 = 0;
506
+ for (; i2 < styles2.length; i2++) {
507
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
508
+ }
509
+ };
510
+ var isComplexType = (o) => {
511
+ o = typeof o;
512
+ return o === "object" || o === "function";
513
+ };
514
+
515
+ // src/runtime/vdom/h.ts
531
516
  var h = (nodeName, vnodeData, ...children) => {
517
+ if (typeof nodeName === "string") {
518
+ nodeName = transformTag(nodeName);
519
+ }
532
520
  let child = null;
533
521
  let key = null;
534
522
  let simple = false;
@@ -578,7 +566,8 @@ var newVNode = (tag, text) => {
578
566
  const vnode = {
579
567
  $flags$: 0,
580
568
  $tag$: tag,
581
- $text$: text,
569
+ // Normalize undefined to null to prevent rendering "undefined" as text
570
+ $text$: text != null ? text : null,
582
571
  $elm$: null,
583
572
  $children$: null
584
573
  };
@@ -595,7 +584,7 @@ var isHost = (node) => node && node.$tag$ === Host;
595
584
 
596
585
  // src/runtime/client-hydrate.ts
597
586
  var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
598
- var _a;
587
+ var _a, _b, _c, _d;
599
588
  const endHydrate = createTime("hydrateClient", tagName);
600
589
  const shadowRoot = hostElm.shadowRoot;
601
590
  const childRenderNodes = [];
@@ -604,23 +593,6 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
604
593
  const shadowRootNodes = shadowRoot ? [] : null;
605
594
  const vnode = newVNode(tagName, null);
606
595
  vnode.$elm$ = hostElm;
607
- const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
608
- members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
609
- var _a2, _b;
610
- if (!(memberFlags & 31 /* Prop */)) {
611
- return;
612
- }
613
- const attributeName = metaAttributeName || memberName;
614
- const attrVal = hostElm.getAttribute(attributeName);
615
- if (attrVal !== null) {
616
- const attrPropVal = parsePropertyValue(
617
- attrVal,
618
- memberFlags,
619
- !!(((_a2 = hostRef.$cmpMeta$) == null ? void 0 : _a2.$flags$) & 64 /* formAssociated */)
620
- );
621
- (_b = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b.set(memberName, attrPropVal);
622
- }
623
- });
624
596
  if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
625
597
  initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
626
598
  }
@@ -645,10 +617,20 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
645
617
  const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
646
618
  const node = childRenderNode.$elm$;
647
619
  if (!shadowRoot) {
648
- node["s-hn"] = tagName.toUpperCase();
620
+ node["s-hn"] = transformTag(tagName).toUpperCase();
649
621
  if (childRenderNode.$tag$ === "slot") {
650
622
  node["s-cr"] = hostElm["s-cr"];
651
623
  }
624
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
625
+ const cmpMeta = getHostRef(childRenderNode.$elm$);
626
+ if (cmpMeta) {
627
+ const scopeId3 = getScopeId(
628
+ cmpMeta.$cmpMeta$);
629
+ const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
630
+ if (styleSheet) {
631
+ shadowRootNodes.unshift(styleSheet.cloneNode(true));
632
+ }
633
+ }
652
634
  }
653
635
  if (childRenderNode.$tag$ === "slot") {
654
636
  childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
@@ -664,7 +646,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
664
646
  }
665
647
  }
666
648
  if (orgLocationNode && orgLocationNode.isConnected) {
667
- if (shadowRoot && orgLocationNode["s-en"] === "") {
649
+ if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
668
650
  orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
669
651
  }
670
652
  orgLocationNode.parentNode.removeChild(orgLocationNode);
@@ -672,7 +654,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
672
654
  node["s-oo"] = parseInt(childRenderNode.$nodeId$);
673
655
  }
674
656
  }
675
- plt.$orgLocNodes$.delete(orgLocationId);
657
+ if (orgLocationNode && !orgLocationNode["s-id"]) {
658
+ plt.$orgLocNodes$.delete(orgLocationId);
659
+ }
676
660
  }
677
661
  const hosts = [];
678
662
  const snLen = slottedNodes.length;
@@ -681,6 +665,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
681
665
  let snGroupIdx;
682
666
  let snGroupLen;
683
667
  let slottedItem;
668
+ let currentPos = 0;
684
669
  for (snIndex; snIndex < snLen; snIndex++) {
685
670
  slotGroup = slottedNodes[snIndex];
686
671
  if (!slotGroup || !slotGroup.length) continue;
@@ -693,18 +678,24 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
693
678
  }
694
679
  if (!hosts[slottedItem.hostId]) continue;
695
680
  const hostEle = hosts[slottedItem.hostId];
681
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
682
+ hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
683
+ }
696
684
  if (!hostEle.shadowRoot || !shadowRoot) {
697
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
698
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
699
- slottedItem.slot["s-cr"] = hostEle;
700
- } else {
701
- slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
685
+ if (!slottedItem.slot["s-cr"]) {
686
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
687
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
688
+ slottedItem.slot["s-cr"] = hostEle;
689
+ } else {
690
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
691
+ }
692
+ }
693
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
694
+ if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
695
+ slottedItem.node.removeAttribute("slot");
702
696
  }
703
- addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
704
- }
705
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
706
- hostEle.appendChild(slottedItem.node);
707
697
  }
698
+ currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
708
699
  }
709
700
  }
710
701
  if (shadowRoot && !shadowRoot.childNodes.length) {
@@ -712,20 +703,22 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
712
703
  const rnLen = shadowRootNodes.length;
713
704
  if (rnLen) {
714
705
  for (rnIdex; rnIdex < rnLen; rnIdex++) {
715
- shadowRoot.appendChild(shadowRootNodes[rnIdex]);
706
+ const node = shadowRootNodes[rnIdex];
707
+ if (node) {
708
+ shadowRoot.appendChild(node);
709
+ }
716
710
  }
717
711
  Array.from(hostElm.childNodes).forEach((node) => {
718
712
  if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
719
713
  if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
720
714
  node.removeAttribute("hidden");
721
- } else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
715
+ } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
722
716
  node.parentNode.removeChild(node);
723
717
  }
724
718
  }
725
719
  });
726
720
  }
727
721
  }
728
- plt.$orgLocNodes$.delete(hostElm["s-id"]);
729
722
  hostRef.$hostElement$ = hostElm;
730
723
  endHydrate();
731
724
  };
@@ -875,10 +868,6 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
875
868
  vnode.$elm$ = node;
876
869
  vnode.$index$ = "0";
877
870
  parentVNode.$children$ = [vnode];
878
- } else {
879
- if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
880
- node.remove();
881
- }
882
871
  }
883
872
  return parentVNode;
884
873
  };
@@ -934,68 +923,158 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
934
923
  if (childVNode.$name$) {
935
924
  childVNode.$elm$.setAttribute("name", slotName);
936
925
  }
937
- if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
938
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
939
- } else {
940
- node.parentNode.insertBefore(slot, node);
926
+ if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
927
+ internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
928
+ } else {
929
+ internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
930
+ }
931
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
932
+ node.remove();
933
+ if (childVNode.$depth$ === "0") {
934
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
935
+ }
936
+ } else {
937
+ const slot = childVNode.$elm$;
938
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
939
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
940
+ patchSlotNode(node);
941
+ if (shouldMove) {
942
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
943
+ }
944
+ }
945
+ childRenderNodes.push(childVNode);
946
+ slotNodes.push(childVNode);
947
+ if (!parentVNode.$children$) {
948
+ parentVNode.$children$ = [];
949
+ }
950
+ parentVNode.$children$[childVNode.$index$] = childVNode;
951
+ }
952
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
953
+ var _a, _b;
954
+ let slottedNode = slotNode.nextSibling;
955
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
956
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
957
+ do {
958
+ 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 */))) {
959
+ slottedNode["s-sn"] = slotName;
960
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
961
+ }
962
+ slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
963
+ } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
964
+ };
965
+ var findCorrespondingNode = (node, type) => {
966
+ let sibling = node;
967
+ do {
968
+ sibling = sibling.nextSibling;
969
+ } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
970
+ return sibling;
971
+ };
972
+
973
+ // src/utils/remote-value.ts
974
+ var RemoteValue = class _RemoteValue {
975
+ /**
976
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
977
+ *
978
+ * @param serialized The serialized LocalValue object
979
+ * @returns The original JavaScript value/object
980
+ */
981
+ static fromLocalValue(serialized) {
982
+ const type = serialized[TYPE_CONSTANT];
983
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
984
+ switch (type) {
985
+ case "string" /* String */:
986
+ return value;
987
+ case "boolean" /* Boolean */:
988
+ return value;
989
+ case "bigint" /* BigInt */:
990
+ return BigInt(value);
991
+ case "undefined" /* Undefined */:
992
+ return void 0;
993
+ case "null" /* Null */:
994
+ return null;
995
+ case "number" /* Number */:
996
+ if (value === "NaN") return NaN;
997
+ if (value === "-0") return -0;
998
+ if (value === "Infinity") return Infinity;
999
+ if (value === "-Infinity") return -Infinity;
1000
+ return value;
1001
+ case "array" /* Array */:
1002
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
1003
+ case "date" /* Date */:
1004
+ return new Date(value);
1005
+ case "map" /* Map */:
1006
+ const map = /* @__PURE__ */ new Map();
1007
+ for (const [key, val] of value) {
1008
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1009
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
1010
+ map.set(deserializedKey, deserializedValue);
1011
+ }
1012
+ return map;
1013
+ case "object" /* Object */:
1014
+ const obj = {};
1015
+ for (const [key, val] of value) {
1016
+ obj[key] = _RemoteValue.fromLocalValue(val);
1017
+ }
1018
+ return obj;
1019
+ case "regexp" /* RegularExpression */:
1020
+ const { pattern, flags } = value;
1021
+ return new RegExp(pattern, flags);
1022
+ case "set" /* Set */:
1023
+ const set = /* @__PURE__ */ new Set();
1024
+ for (const item of value) {
1025
+ set.add(_RemoteValue.fromLocalValue(item));
1026
+ }
1027
+ return set;
1028
+ case "symbol" /* Symbol */:
1029
+ return Symbol(value);
1030
+ default:
1031
+ throw new Error(`Unsupported type: ${type}`);
1032
+ }
1033
+ }
1034
+ /**
1035
+ * Utility method to deserialize multiple LocalValues at once
1036
+ *
1037
+ * @param serializedValues Array of serialized LocalValue objects
1038
+ * @returns Array of deserialized JavaScript values
1039
+ */
1040
+ static fromLocalValueArray(serializedValues) {
1041
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
1042
+ }
1043
+ /**
1044
+ * Verifies if the given object matches the structure of a serialized LocalValue
1045
+ *
1046
+ * @param obj Object to verify
1047
+ * @returns boolean indicating if the object has LocalValue structure
1048
+ */
1049
+ static isLocalValueObject(obj) {
1050
+ if (typeof obj !== "object" || obj === null) {
1051
+ return false;
1052
+ }
1053
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
1054
+ return false;
941
1055
  }
942
- addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
943
- node.remove();
944
- if (childVNode.$depth$ === "0") {
945
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1056
+ const type = obj[TYPE_CONSTANT];
1057
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
1058
+ if (!hasTypeProperty) {
1059
+ return false;
946
1060
  }
947
- } else {
948
- const slot = childVNode.$elm$;
949
- const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
950
- addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
951
- patchSlotNode(node);
952
- if (shouldMove) {
953
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1061
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
1062
+ return obj.hasOwnProperty(VALUE_CONSTANT);
954
1063
  }
1064
+ return true;
955
1065
  }
956
- childRenderNodes.push(childVNode);
957
- slotNodes.push(childVNode);
958
- if (!parentVNode.$children$) {
959
- parentVNode.$children$ = [];
1066
+ };
1067
+
1068
+ // src/utils/serialize.ts
1069
+ function deserializeProperty(value) {
1070
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1071
+ return value;
960
1072
  }
961
- parentVNode.$children$[childVNode.$index$] = childVNode;
1073
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
962
1074
  }
963
- var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
964
- let slottedNode = slotNode.nextSibling;
965
- slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
966
- 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 */))) {
967
- slottedNode["s-sn"] = slotName;
968
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
969
- slottedNode = slottedNode.nextSibling;
970
- }
971
- };
972
- var findCorrespondingNode = (node, type) => {
973
- let sibling = node;
974
- do {
975
- sibling = sibling.nextSibling;
976
- } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
977
- return sibling;
978
- };
979
- var createSupportsRuleRe = (selector) => {
980
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
981
- return new RegExp(
982
- // First capture group: match any context before the selector that's not inside @supports selector()
983
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
984
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
985
- "g"
986
- );
987
- };
988
- createSupportsRuleRe("::slotted");
989
- createSupportsRuleRe(":host");
990
- createSupportsRuleRe(":host-context");
1075
+
1076
+ // src/runtime/parse-property-value.ts
991
1077
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
992
- if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
993
- try {
994
- propValue = JSON.parse(propValue);
995
- return propValue;
996
- } catch (e) {
997
- }
998
- }
999
1078
  if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1000
1079
  propValue = deserializeProperty(propValue);
1001
1080
  return propValue;
@@ -1018,7 +1097,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1018
1097
  }
1019
1098
  return propValue;
1020
1099
  };
1021
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1100
+ var getElement = (ref) => {
1101
+ var _a;
1102
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1103
+ };
1022
1104
 
1023
1105
  // src/runtime/event-emitter.ts
1024
1106
  var createEvent = (ref, name, flags) => {
@@ -1039,115 +1121,6 @@ var emitEvent = (elm, name, opts) => {
1039
1121
  elm.dispatchEvent(ev);
1040
1122
  return ev;
1041
1123
  };
1042
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1043
- var registerStyle = (scopeId2, cssText, allowCS) => {
1044
- let style = styles.get(scopeId2);
1045
- if (supportsConstructableStylesheets && allowCS) {
1046
- style = style || new CSSStyleSheet();
1047
- if (typeof style === "string") {
1048
- style = cssText;
1049
- } else {
1050
- style.replaceSync(cssText);
1051
- }
1052
- } else {
1053
- style = cssText;
1054
- }
1055
- styles.set(scopeId2, style);
1056
- };
1057
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
1058
- var _a;
1059
- const scopeId2 = getScopeId(cmpMeta);
1060
- const style = styles.get(scopeId2);
1061
- if (!win.document) {
1062
- return scopeId2;
1063
- }
1064
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1065
- if (style) {
1066
- if (typeof style === "string") {
1067
- styleContainerNode = styleContainerNode.head || styleContainerNode;
1068
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1069
- let styleElm;
1070
- if (!appliedStyles) {
1071
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1072
- }
1073
- if (!appliedStyles.has(scopeId2)) {
1074
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1075
- styleElm.innerHTML = style;
1076
- } else {
1077
- styleElm = win.document.createElement("style");
1078
- styleElm.innerHTML = style;
1079
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1080
- if (nonce != null) {
1081
- styleElm.setAttribute("nonce", nonce);
1082
- }
1083
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1084
- if (styleContainerNode.nodeName === "HEAD") {
1085
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1086
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1087
- styleContainerNode.insertBefore(
1088
- styleElm,
1089
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1090
- );
1091
- } else if ("host" in styleContainerNode) {
1092
- if (supportsConstructableStylesheets) {
1093
- const stylesheet = new CSSStyleSheet();
1094
- stylesheet.replaceSync(style);
1095
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1096
- } else {
1097
- const existingStyleContainer = styleContainerNode.querySelector("style");
1098
- if (existingStyleContainer) {
1099
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1100
- } else {
1101
- styleContainerNode.prepend(styleElm);
1102
- }
1103
- }
1104
- } else {
1105
- styleContainerNode.append(styleElm);
1106
- }
1107
- }
1108
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1109
- styleContainerNode.insertBefore(styleElm, null);
1110
- }
1111
- }
1112
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1113
- styleElm.innerHTML += SLOT_FB_CSS;
1114
- }
1115
- if (appliedStyles) {
1116
- appliedStyles.add(scopeId2);
1117
- }
1118
- }
1119
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1120
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1121
- }
1122
- }
1123
- return scopeId2;
1124
- };
1125
- var attachStyles = (hostRef) => {
1126
- const cmpMeta = hostRef.$cmpMeta$;
1127
- const elm = hostRef.$hostElement$;
1128
- const flags = cmpMeta.$flags$;
1129
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1130
- const scopeId2 = addStyle(
1131
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1132
- cmpMeta);
1133
- if (flags & 10 /* needsScopedEncapsulation */) {
1134
- elm["s-sc"] = scopeId2;
1135
- elm.classList.add(scopeId2 + "-h");
1136
- }
1137
- endAttachStyles();
1138
- };
1139
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1140
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1141
- var hydrateScopedToShadow = () => {
1142
- if (!win.document) {
1143
- return;
1144
- }
1145
- const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1146
- let i2 = 0;
1147
- for (; i2 < styles2.length; i2++) {
1148
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1149
- }
1150
- };
1151
1124
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1152
1125
  if (oldValue === newValue) {
1153
1126
  return;
@@ -1158,12 +1131,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1158
1131
  const classList = elm.classList;
1159
1132
  const oldClasses = parseClassList(oldValue);
1160
1133
  let newClasses = parseClassList(newValue);
1161
- if (elm["s-si"] && initialRender) {
1162
- newClasses.push(elm["s-si"]);
1134
+ if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1135
+ const scopeId2 = elm["s-sc"] || elm["s-si"];
1136
+ newClasses.push(scopeId2);
1163
1137
  oldClasses.forEach((c) => {
1164
- if (c.startsWith(elm["s-si"])) newClasses.push(c);
1138
+ if (c.startsWith(scopeId2)) newClasses.push(c);
1165
1139
  });
1166
- newClasses = [...new Set(newClasses)];
1140
+ newClasses = [...new Set(newClasses)].filter((c) => c);
1167
1141
  classList.add(...newClasses);
1168
1142
  } else {
1169
1143
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
@@ -1192,7 +1166,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1192
1166
  }
1193
1167
  } else if (memberName === "key") ; else if (memberName === "ref") {
1194
1168
  if (newValue) {
1195
- newValue(elm);
1169
+ queueRefAttachment(newValue, elm);
1196
1170
  }
1197
1171
  } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
1198
1172
  if (memberName[2] === "-") {
@@ -1212,6 +1186,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1212
1186
  plt.ael(elm, memberName, newValue, capture);
1213
1187
  }
1214
1188
  }
1189
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
1190
+ const propName = memberName.slice(5);
1191
+ let attrName;
1192
+ {
1193
+ const hostRef = getHostRef(elm);
1194
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
1195
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
1196
+ if (memberMeta && memberMeta[1]) {
1197
+ attrName = memberMeta[1];
1198
+ }
1199
+ }
1200
+ }
1201
+ if (!attrName) {
1202
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1203
+ }
1204
+ if (newValue == null || newValue === false) {
1205
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
1206
+ elm.removeAttribute(attrName);
1207
+ }
1208
+ } else {
1209
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
1210
+ }
1211
+ return;
1212
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
1213
+ const propName = memberName.slice(5);
1214
+ try {
1215
+ elm[propName] = newValue;
1216
+ } catch (e) {
1217
+ }
1218
+ return;
1215
1219
  } else {
1216
1220
  const isComplex = isComplexType(newValue);
1217
1221
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
@@ -1220,7 +1224,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1220
1224
  const n = newValue == null ? "" : newValue;
1221
1225
  if (memberName === "list") {
1222
1226
  isProp = false;
1223
- } else if (oldValue == null || elm[memberName] != n) {
1227
+ } else if (oldValue == null || elm[memberName] !== n) {
1224
1228
  if (typeof elm.__lookupSetter__(memberName) === "function") {
1225
1229
  elm[memberName] = n;
1226
1230
  } else {
@@ -1313,22 +1317,23 @@ function sortedAttrNames(attrNames) {
1313
1317
  );
1314
1318
  }
1315
1319
  var hostTagName;
1320
+ var useNativeShadowDom = false;
1316
1321
  var isSvgMode = false;
1322
+ var refCallbacksToRemove = [];
1323
+ var refCallbacksToAttach = [];
1317
1324
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1318
1325
  const newVNode2 = newParentVNode.$children$[childIndex];
1319
1326
  let i2 = 0;
1320
1327
  let elm;
1321
1328
  let childNode;
1322
- if (newVNode2.$text$ !== null) {
1329
+ if (newVNode2.$text$ != null) {
1323
1330
  elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1324
1331
  } else {
1325
1332
  if (!isSvgMode) {
1326
1333
  isSvgMode = newVNode2.$tag$ === "svg";
1327
1334
  }
1328
1335
  if (!win.document) {
1329
- throw new Error(
1330
- "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."
1331
- );
1336
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
1332
1337
  }
1333
1338
  elm = newVNode2.$elm$ = win.document.createElementNS(
1334
1339
  isSvgMode ? SVG_NS : HTML_NS,
@@ -1341,10 +1346,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1341
1346
  updateElement(null, newVNode2, isSvgMode);
1342
1347
  }
1343
1348
  if (newVNode2.$children$) {
1349
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
1344
1350
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1345
1351
  childNode = createElm(oldParentVNode, newVNode2, i2);
1346
1352
  if (childNode) {
1347
- elm.appendChild(childNode);
1353
+ appendTarget.appendChild(childNode);
1348
1354
  }
1349
1355
  }
1350
1356
  }
@@ -1359,12 +1365,34 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1359
1365
  elm["s-hn"] = hostTagName;
1360
1366
  return elm;
1361
1367
  };
1368
+ var relocateToHostRoot = (parentElm) => {
1369
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1370
+ const host = parentElm.closest(hostTagName.toLowerCase());
1371
+ if (host != null) {
1372
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
1373
+ (ref) => ref["s-cr"]
1374
+ );
1375
+ const childNodeArray = Array.from(
1376
+ parentElm.__childNodes || parentElm.childNodes
1377
+ );
1378
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1379
+ if (childNode["s-sh"] != null) {
1380
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1381
+ childNode["s-sh"] = void 0;
1382
+ }
1383
+ }
1384
+ }
1385
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1386
+ };
1362
1387
  var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1363
1388
  let containerElm = parentElm;
1364
1389
  let childNode;
1365
1390
  if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1366
1391
  containerElm = containerElm.shadowRoot;
1367
1392
  }
1393
+ if (parentVNode.$tag$ === "template") {
1394
+ containerElm = containerElm.content;
1395
+ }
1368
1396
  for (; startIdx <= endIdx; ++startIdx) {
1369
1397
  if (vnodes[startIdx]) {
1370
1398
  childNode = createElm(null, parentVNode, startIdx);
@@ -1400,6 +1428,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1400
1428
  let newEndVnode = newCh[newEndIdx];
1401
1429
  let node;
1402
1430
  let elmToMove;
1431
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
1403
1432
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1404
1433
  if (oldStartVnode == null) {
1405
1434
  oldStartVnode = oldCh[++oldStartIdx];
@@ -1419,12 +1448,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1419
1448
  newEndVnode = newCh[--newEndIdx];
1420
1449
  } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1421
1450
  patch(oldStartVnode, newEndVnode, isInitialRender);
1422
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1451
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1423
1452
  oldStartVnode = oldCh[++oldStartIdx];
1424
1453
  newEndVnode = newCh[--newEndIdx];
1425
1454
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1426
1455
  patch(oldEndVnode, newStartVnode, isInitialRender);
1427
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1456
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1428
1457
  oldEndVnode = oldCh[--oldEndIdx];
1429
1458
  newStartVnode = newCh[++newStartIdx];
1430
1459
  } else {
@@ -1489,11 +1518,17 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1489
1518
  const newChildren = newVNode2.$children$;
1490
1519
  const tag = newVNode2.$tag$;
1491
1520
  const text = newVNode2.$text$;
1492
- if (text === null) {
1521
+ if (text == null) {
1493
1522
  {
1494
1523
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1495
1524
  }
1496
1525
  {
1526
+ if (tag === "slot" && !useNativeShadowDom) {
1527
+ if (oldVNode.$name$ !== newVNode2.$name$) {
1528
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1529
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
1530
+ }
1531
+ }
1497
1532
  updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
1498
1533
  }
1499
1534
  if (oldChildren !== null && newChildren !== null) {
@@ -1508,6 +1543,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1508
1543
  !isInitialRender && BUILD.updatable && oldChildren !== null
1509
1544
  ) {
1510
1545
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
1546
+ } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
1547
+ newVNode2.$children$ = oldChildren;
1511
1548
  }
1512
1549
  if (isSvgMode && tag === "svg") {
1513
1550
  isSvgMode = false;
@@ -1518,12 +1555,29 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1518
1555
  };
1519
1556
  var nullifyVNodeRefs = (vNode) => {
1520
1557
  {
1521
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1558
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1559
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1560
+ }
1522
1561
  vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1523
1562
  }
1524
1563
  };
1525
- var insertBefore = (parent, newNode, reference) => {
1564
+ var queueRefAttachment = (refCallback, elm) => {
1565
+ {
1566
+ refCallbacksToAttach.push(() => refCallback(elm));
1567
+ }
1568
+ };
1569
+ var flushQueuedRefCallbacks = () => {
1526
1570
  {
1571
+ refCallbacksToRemove.forEach((cb) => cb());
1572
+ refCallbacksToRemove.length = 0;
1573
+ refCallbacksToAttach.forEach((cb) => cb());
1574
+ refCallbacksToAttach.length = 0;
1575
+ }
1576
+ };
1577
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1578
+ if (parent.__insertBefore) {
1579
+ return parent.__insertBefore(newNode, reference);
1580
+ } else {
1527
1581
  return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1528
1582
  }
1529
1583
  };
@@ -1536,9 +1590,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1536
1590
  hostTagName = hostElm.tagName;
1537
1591
  if (cmpMeta.$attrsToReflect$) {
1538
1592
  rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1539
- cmpMeta.$attrsToReflect$.map(
1540
- ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
1541
- );
1593
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
1594
+ {
1595
+ rootVnode.$attrs$[attribute] = hostElm[propName];
1596
+ }
1597
+ });
1542
1598
  }
1543
1599
  if (isInitialLoad && rootVnode.$attrs$) {
1544
1600
  for (const key of Object.keys(rootVnode.$attrs$)) {
@@ -1551,7 +1607,9 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1551
1607
  rootVnode.$flags$ |= 4 /* isHost */;
1552
1608
  hostRef.$vnode$ = rootVnode;
1553
1609
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1610
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1554
1611
  patch(oldVNode, rootVnode, isInitialLoad);
1612
+ flushQueuedRefCallbacks();
1555
1613
  };
1556
1614
 
1557
1615
  // src/runtime/update-component.ts
@@ -1577,6 +1635,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
1577
1635
  }
1578
1636
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1579
1637
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1638
+ if (isInitialLoad) {
1639
+ queueMicrotask(() => {
1640
+ dispatch();
1641
+ });
1642
+ return;
1643
+ }
1580
1644
  return writeTask(dispatch) ;
1581
1645
  };
1582
1646
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -1591,10 +1655,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1591
1655
  let maybePromise;
1592
1656
  if (isInitialLoad) {
1593
1657
  {
1594
- hostRef.$flags$ |= 256 /* isListenReady */;
1595
- if (hostRef.$queuedListeners$) {
1596
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1597
- hostRef.$queuedListeners$ = void 0;
1658
+ {
1659
+ hostRef.$flags$ |= 256 /* isListenReady */;
1660
+ if (hostRef.$queuedListeners$) {
1661
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1662
+ hostRef.$queuedListeners$ = void 0;
1663
+ }
1664
+ }
1665
+ if (hostRef.$fetchedCbList$.length) {
1666
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
1598
1667
  }
1599
1668
  }
1600
1669
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
@@ -1605,8 +1674,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1605
1674
  endSchedule();
1606
1675
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1607
1676
  };
1608
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1609
- console.error(err2);
1677
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
1678
+ console.error(err);
1610
1679
  fn();
1611
1680
  }) : fn();
1612
1681
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
@@ -1634,7 +1703,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1634
1703
  if (childrenPromises.length === 0) {
1635
1704
  postUpdate();
1636
1705
  } else {
1637
- Promise.all(childrenPromises).then(postUpdate);
1706
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
1638
1707
  hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1639
1708
  childrenPromises.length = 0;
1640
1709
  }
@@ -1700,7 +1769,13 @@ var postUpdateComponent = (hostRef) => {
1700
1769
  }
1701
1770
  };
1702
1771
  var appDidLoad = (who) => {
1772
+ var _a;
1703
1773
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1774
+ {
1775
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
1776
+ plt.$orgLocNodes$.clear();
1777
+ }
1778
+ }
1704
1779
  };
1705
1780
  var safeCall = (instance, method, arg, elm) => {
1706
1781
  if (instance && instance[method]) {
@@ -1721,6 +1796,9 @@ var addHydratedFlag = (elm) => {
1721
1796
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1722
1797
  var setValue = (ref, propName, newVal, cmpMeta) => {
1723
1798
  const hostRef = getHostRef(ref);
1799
+ if (!hostRef) {
1800
+ return;
1801
+ }
1724
1802
  if (!hostRef) {
1725
1803
  throw new Error(
1726
1804
  `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).`
@@ -1739,25 +1817,35 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1739
1817
  const didValueChange = newVal !== oldVal && !areBothNaN;
1740
1818
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1741
1819
  hostRef.$instanceValues$.set(propName, newVal);
1742
- if (instance) {
1743
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1744
- const watchMethods = cmpMeta.$watchers$[propName];
1745
- if (watchMethods) {
1746
- watchMethods.map((watchMethodName) => {
1747
- try {
1748
- instance[watchMethodName](newVal, oldVal, propName);
1749
- } catch (e) {
1750
- consoleError(e, elm);
1820
+ if (cmpMeta.$watchers$) {
1821
+ const watchMethods = cmpMeta.$watchers$[propName];
1822
+ if (watchMethods) {
1823
+ watchMethods.map((watcher) => {
1824
+ try {
1825
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1826
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1827
+ if (!instance) {
1828
+ hostRef.$fetchedCbList$.push(() => {
1829
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1830
+ });
1831
+ } else {
1832
+ instance[watchMethodName](newVal, oldVal, propName);
1833
+ }
1751
1834
  }
1752
- });
1753
- }
1754
- }
1755
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1756
- if (instance.componentShouldUpdate) {
1757
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1758
- return;
1835
+ } catch (e) {
1836
+ consoleError(e, elm);
1759
1837
  }
1838
+ });
1839
+ }
1840
+ }
1841
+ if (flags & 2 /* hasRendered */) {
1842
+ if (instance.componentShouldUpdate) {
1843
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
1844
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
1845
+ return;
1760
1846
  }
1847
+ }
1848
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
1761
1849
  scheduleUpdate(hostRef, false);
1762
1850
  }
1763
1851
  }
@@ -1772,10 +1860,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1772
1860
  FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
1773
1861
  Object.defineProperty(prototype, cbName, {
1774
1862
  value(...args) {
1863
+ var _a2;
1775
1864
  const hostRef = getHostRef(this);
1776
- const instance = hostRef.$lazyInstance$ ;
1865
+ const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
1777
1866
  if (!instance) {
1778
- hostRef.$onReadyPromise$.then((asyncInstance) => {
1867
+ (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
1779
1868
  const cb = asyncInstance[cbName];
1780
1869
  typeof cb === "function" && cb.call(asyncInstance, ...args);
1781
1870
  });
@@ -1787,14 +1876,22 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1787
1876
  });
1788
1877
  });
1789
1878
  }
1790
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1791
- if (Cstr.watchers && !cmpMeta.$watchers$) {
1792
- cmpMeta.$watchers$ = Cstr.watchers;
1879
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1880
+ {
1881
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1882
+ cmpMeta.$watchers$ = Cstr.watchers;
1883
+ }
1884
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1885
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1886
+ }
1887
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1888
+ cmpMeta.$serializers$ = Cstr.serializers;
1889
+ }
1793
1890
  }
1794
1891
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1795
1892
  members.map(([memberName, [memberFlags]]) => {
1796
1893
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1797
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1894
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
1798
1895
  if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1799
1896
  if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1800
1897
  if (flags & 1 /* isElementConstructor */ || !origGetter) {
@@ -1817,12 +1914,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1817
1914
  Object.defineProperty(prototype, memberName, {
1818
1915
  set(newValue) {
1819
1916
  const ref = getHostRef(this);
1917
+ if (!ref) {
1918
+ return;
1919
+ }
1820
1920
  if (origSetter) {
1821
1921
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1822
1922
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1823
1923
  newValue = ref.$instanceValues$.get(memberName);
1824
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1825
- ref.$instanceValues$.set(memberName, currentValue);
1826
1924
  }
1827
1925
  origSetter.apply(this, [
1828
1926
  parsePropertyValue(
@@ -1839,7 +1937,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1839
1937
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1840
1938
  setValue(this, memberName, newValue, cmpMeta);
1841
1939
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1842
- ref.$onReadyPromise$.then(() => {
1940
+ ref.$fetchedCbList$.push(() => {
1843
1941
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1844
1942
  ref.$lazyInstance$[memberName] = newValue;
1845
1943
  }
@@ -1862,7 +1960,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1862
1960
  if (ref.$lazyInstance$) {
1863
1961
  setterSetVal();
1864
1962
  } else {
1865
- ref.$onReadyPromise$.then(() => setterSetVal());
1963
+ ref.$fetchedCbList$.push(() => {
1964
+ setterSetVal();
1965
+ });
1866
1966
  }
1867
1967
  }
1868
1968
  }
@@ -1886,29 +1986,34 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1886
1986
  plt.jmp(() => {
1887
1987
  var _a2;
1888
1988
  const propName = attrNameToPropName.get(attrName);
1989
+ const hostRef = getHostRef(this);
1889
1990
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1890
1991
  newValue = this[propName];
1891
1992
  delete this[propName];
1892
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1993
+ }
1994
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1893
1995
  this[propName] == newValue) {
1894
1996
  return;
1895
1997
  } else if (propName == null) {
1896
- const hostRef = getHostRef(this);
1897
1998
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1898
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1999
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1899
2000
  const instance = hostRef.$lazyInstance$ ;
1900
2001
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1901
- entry == null ? void 0 : entry.forEach((callbackName) => {
1902
- if (instance[callbackName] != null) {
1903
- instance[callbackName].call(instance, newValue, oldValue, attrName);
2002
+ entry == null ? void 0 : entry.forEach((watcher) => {
2003
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2004
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
2005
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1904
2006
  }
1905
2007
  });
1906
2008
  }
1907
2009
  return;
1908
2010
  }
2011
+ const propFlags = members.find(([m]) => m === propName);
2012
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
2013
+ newValue = newValue === null || newValue === "false" ? false : true;
2014
+ }
1909
2015
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1910
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1911
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
2016
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1912
2017
  this[propName] = newValue;
1913
2018
  }
1914
2019
  });
@@ -1916,7 +2021,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1916
2021
  Cstr.observedAttributes = Array.from(
1917
2022
  /* @__PURE__ */ new Set([
1918
2023
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1919
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
2024
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1920
2025
  var _a2;
1921
2026
  const attrName = m[1] || propName;
1922
2027
  attrNameToPropName.set(attrName, propName);
@@ -1935,69 +2040,84 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1935
2040
  // src/runtime/initialize-component.ts
1936
2041
  var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1937
2042
  let Cstr;
1938
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1939
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1940
- const bundleId = cmpMeta.$lazyBundleId$;
1941
- if (bundleId) {
1942
- const CstrImport = loadModule(cmpMeta, hostRef);
1943
- if (CstrImport && "then" in CstrImport) {
1944
- const endLoad = uniqueTime();
1945
- Cstr = await CstrImport;
1946
- endLoad();
1947
- } else {
1948
- Cstr = CstrImport;
1949
- }
1950
- if (!Cstr) {
1951
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1952
- }
1953
- if (!Cstr.isProxied) {
2043
+ try {
2044
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2045
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2046
+ const bundleId = cmpMeta.$lazyBundleId$;
2047
+ if (bundleId) {
2048
+ const CstrImport = loadModule(cmpMeta, hostRef);
2049
+ if (CstrImport && "then" in CstrImport) {
2050
+ const endLoad = uniqueTime();
2051
+ Cstr = await CstrImport;
2052
+ endLoad();
2053
+ } else {
2054
+ Cstr = CstrImport;
2055
+ }
2056
+ if (!Cstr) {
2057
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2058
+ }
2059
+ if (!Cstr.isProxied) {
2060
+ {
2061
+ cmpMeta.$watchers$ = Cstr.watchers;
2062
+ cmpMeta.$serializers$ = Cstr.serializers;
2063
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2064
+ }
2065
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2066
+ Cstr.isProxied = true;
2067
+ }
2068
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1954
2069
  {
1955
- cmpMeta.$watchers$ = Cstr.watchers;
2070
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2071
+ }
2072
+ try {
2073
+ new Cstr(hostRef);
2074
+ } catch (e) {
2075
+ consoleError(e, elm);
2076
+ }
2077
+ {
2078
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2079
+ }
2080
+ {
2081
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2082
+ }
2083
+ endNewInstance();
2084
+ {
2085
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2086
+ }
2087
+ } else {
2088
+ Cstr = elm.constructor;
2089
+ const cmpTag = elm.localName;
2090
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2091
+ }
2092
+ if (Cstr && Cstr.style) {
2093
+ let style;
2094
+ if (typeof Cstr.style === "string") {
2095
+ style = Cstr.style;
2096
+ }
2097
+ const scopeId2 = getScopeId(cmpMeta);
2098
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
2099
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2100
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2101
+ endRegisterStyles();
1956
2102
  }
1957
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1958
- Cstr.isProxied = true;
1959
- }
1960
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1961
- {
1962
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1963
- }
1964
- try {
1965
- new Cstr(hostRef);
1966
- } catch (e) {
1967
- consoleError(e, elm);
1968
- }
1969
- {
1970
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
1971
- }
1972
- {
1973
- hostRef.$flags$ |= 128 /* isWatchReady */;
1974
2103
  }
1975
- endNewInstance();
1976
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
2104
+ }
2105
+ const ancestorComponent = hostRef.$ancestorComponent$;
2106
+ const schedule = () => scheduleUpdate(hostRef, true);
2107
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2108
+ ancestorComponent["s-rc"].push(schedule);
1977
2109
  } else {
1978
- Cstr = elm.constructor;
1979
- const cmpTag = elm.localName;
1980
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2110
+ schedule();
1981
2111
  }
1982
- if (Cstr && Cstr.style) {
1983
- let style;
1984
- if (typeof Cstr.style === "string") {
1985
- style = Cstr.style;
1986
- }
1987
- const scopeId2 = getScopeId(cmpMeta);
1988
- if (!styles.has(scopeId2)) {
1989
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1990
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1991
- endRegisterStyles();
1992
- }
2112
+ } catch (e) {
2113
+ consoleError(e, elm);
2114
+ if (hostRef.$onRenderResolve$) {
2115
+ hostRef.$onRenderResolve$();
2116
+ hostRef.$onRenderResolve$ = void 0;
2117
+ }
2118
+ if (hostRef.$onReadyResolve$) {
2119
+ hostRef.$onReadyResolve$(elm);
1993
2120
  }
1994
- }
1995
- const ancestorComponent = hostRef.$ancestorComponent$;
1996
- const schedule = () => scheduleUpdate(hostRef, true);
1997
- if (ancestorComponent && ancestorComponent["s-rc"]) {
1998
- ancestorComponent["s-rc"].push(schedule);
1999
- } else {
2000
- schedule();
2001
2121
  }
2002
2122
  };
2003
2123
  var fireConnectedCallback = (instance, elm) => {
@@ -2010,6 +2130,9 @@ var fireConnectedCallback = (instance, elm) => {
2010
2130
  var connectedCallback = (elm) => {
2011
2131
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2012
2132
  const hostRef = getHostRef(elm);
2133
+ if (!hostRef) {
2134
+ return;
2135
+ }
2013
2136
  const cmpMeta = hostRef.$cmpMeta$;
2014
2137
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2015
2138
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -2036,7 +2159,7 @@ var connectedCallback = (elm) => {
2036
2159
  }
2037
2160
  if (cmpMeta.$members$) {
2038
2161
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2039
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
2162
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
2040
2163
  const value = elm[memberName];
2041
2164
  delete elm[memberName];
2042
2165
  elm[memberName] = value;
@@ -2066,7 +2189,7 @@ var disconnectedCallback = async (elm) => {
2066
2189
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2067
2190
  const hostRef = getHostRef(elm);
2068
2191
  {
2069
- if (hostRef.$rmListeners$) {
2192
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
2070
2193
  hostRef.$rmListeners$.map((rmListener) => rmListener());
2071
2194
  hostRef.$rmListeners$ = void 0;
2072
2195
  }
@@ -2110,19 +2233,15 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2110
2233
  {
2111
2234
  hydrateScopedToShadow();
2112
2235
  }
2113
- let hasSlotRelocation = false;
2114
2236
  lazyBundles.map((lazyBundle) => {
2115
2237
  lazyBundle[1].map((compactMeta) => {
2116
- var _a2;
2238
+ var _a2, _b, _c;
2117
2239
  const cmpMeta = {
2118
2240
  $flags$: compactMeta[0],
2119
2241
  $tagName$: compactMeta[1],
2120
2242
  $members$: compactMeta[2],
2121
2243
  $listeners$: compactMeta[3]
2122
2244
  };
2123
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2124
- hasSlotRelocation = true;
2125
- }
2126
2245
  {
2127
2246
  cmpMeta.$members$ = compactMeta[2];
2128
2247
  }
@@ -2134,13 +2253,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2134
2253
  }
2135
2254
  {
2136
2255
  cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
2256
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
2257
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
2137
2258
  }
2138
- const tagName = cmpMeta.$tagName$;
2259
+ const tagName = transformTag(cmpMeta.$tagName$);
2139
2260
  const HostElement = class extends HTMLElement {
2261
+ ["s-p"];
2262
+ ["s-rc"];
2263
+ hasRegisteredEventListeners = false;
2140
2264
  // StencilLazyHost
2141
2265
  constructor(self) {
2142
2266
  super(self);
2143
- this.hasRegisteredEventListeners = false;
2144
2267
  self = this;
2145
2268
  registerHost(self, cmpMeta);
2146
2269
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
@@ -2159,6 +2282,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2159
2282
  }
2160
2283
  connectedCallback() {
2161
2284
  const hostRef = getHostRef(this);
2285
+ if (!hostRef) {
2286
+ return;
2287
+ }
2162
2288
  if (!this.hasRegisteredEventListeners) {
2163
2289
  this.hasRegisteredEventListeners = true;
2164
2290
  addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
@@ -2178,6 +2304,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2178
2304
  plt.raf(() => {
2179
2305
  var _a3;
2180
2306
  const hostRef = getHostRef(this);
2307
+ if (!hostRef) {
2308
+ return;
2309
+ }
2181
2310
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2182
2311
  if (i2 > -1) {
2183
2312
  deferredConnectedCallbacks.splice(i2, 1);
@@ -2188,7 +2317,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2188
2317
  });
2189
2318
  }
2190
2319
  componentOnReady() {
2191
- return getHostRef(this).$onReadyPromise$;
2320
+ var _a3;
2321
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2192
2322
  }
2193
2323
  };
2194
2324
  if (cmpMeta.$flags$ & 64 /* formAssociated */) {
@@ -2205,9 +2335,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2205
2335
  });
2206
2336
  });
2207
2337
  if (cmpTags.length > 0) {
2208
- if (hasSlotRelocation) {
2209
- dataStyles.textContent += SLOT_FB_CSS;
2210
- }
2211
2338
  {
2212
2339
  dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2213
2340
  }
@@ -2268,16 +2395,15 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2268
2395
 
2269
2396
  // src/runtime/nonce.ts
2270
2397
  var setNonce = (nonce) => plt.$nonce$ = nonce;
2398
+ function transformTag(tag) {
2399
+ return tag;
2400
+ }
2271
2401
 
2272
2402
  exports.Host = Host;
2273
2403
  exports.bootstrapLazy = bootstrapLazy;
2274
2404
  exports.createEvent = createEvent;
2275
2405
  exports.getElement = getElement;
2276
- exports.globalScripts = globalScripts;
2277
2406
  exports.h = h;
2278
2407
  exports.promiseResolve = promiseResolve;
2279
2408
  exports.registerInstance = registerInstance;
2280
2409
  exports.setNonce = setNonce;
2281
- //# sourceMappingURL=index-BK9MSAiE.js.map
2282
-
2283
- //# sourceMappingURL=index-BK9MSAiE.js.map