@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,2617 +0,0 @@
1
- /**
2
- * Cura Default Theme
3
- */
4
- const ThemeDefault = {
5
- /* Colors */
6
- color: {
7
- primary: {
8
- '100': '113,197,232',
9
- '300': '68,142,205',
10
- '500': '0,61,165',
11
- '700': '0,48,117',
12
- '900': '0,40,85'
13
- },
14
- secondary: {
15
- '100': '245,236,227',
16
- '300': '221,192,162',
17
- '500': '204,160,116',
18
- '700': '136,107,77',
19
- '900': '41,32,23'
20
- },
21
- accent: {
22
- '100': '255,194,123',
23
- '300': '255,168,74',
24
- '500': '255,130,0',
25
- '700': '215,114,10',
26
- '900': '155,90,26'
27
- }
28
- },
29
- /* Spacing */
30
- spacing: {
31
- base: 4,
32
- },
33
- /* Fonts */
34
- font: {
35
- size: '14px',
36
- color: '#4A4A4A',
37
- body: "'Gotham', Arial, Helvetica, sans-serif",
38
- heading: "'Gotham', Arial, Helvetica, sans-serif",
39
- display: "'Gotham', Arial, Helvetica, sans-serif",
40
- weights: {
41
- thin: 100,
42
- light: 300,
43
- regular: 400,
44
- medium: 500,
45
- bold: 700,
46
- black: 900
47
- },
48
- }
49
- };
50
-
51
- /**
52
- * Maternity Theme
53
- */
54
- const ThemeMaternity = Object.assign(Object.assign({}, ThemeDefault), {
55
- /* Custom */
56
- /* Colors */
57
- color: {
58
- primary: {
59
- '100': '248,227,226',
60
- '300': '255,179,171',
61
- '500': '218,113,111',
62
- '700': '145,75,74',
63
- '900': '73,38,37'
64
- },
65
- secondary: {
66
- '100': '253,251,249',
67
- '300': '247,244,238',
68
- '500': '245,236,227',
69
- '700': '204,197,189',
70
- '900': '163,157,151'
71
- },
72
- accent: {
73
- '100': '236,239,249',
74
- '300': '133,153,203',
75
- '500': '11,20,151',
76
- '700': '7,13,101',
77
- '900': '4,7,50'
78
- }
79
- }, font: {
80
- size: '14px',
81
- color: '#4A4A4A',
82
- body: "'Gotham', Arial, Helvetica, sans-serif",
83
- heading: "'Gotham', Arial, Helvetica, sans-serif",
84
- display: "'Gotham', Arial, Helvetica, sans-serif",
85
- weights: {
86
- thin: 100,
87
- light: 300,
88
- regular: 400,
89
- medium: 500,
90
- bold: 700,
91
- black: 900
92
- },
93
- } });
94
-
95
- /**
96
- * Oncology Theme
97
- */
98
- const ThemeOncology = Object.assign(Object.assign({}, ThemeDefault), {
99
- /* Custom */
100
- /* Colors */
101
- color: {
102
- primary: {
103
- '100': '170,190,225',
104
- '300': '85,126,196',
105
- '500': '0,61,166',
106
- '700': '0,41,111',
107
- '900': '0,12,33'
108
- },
109
- secondary: {
110
- '100': '205,215,227',
111
- '300': '155,175,199',
112
- '500': '104,134,171',
113
- '700': '54,95,143',
114
- '900': '4,54,115',
115
- },
116
- accent: {
117
- '100': '153,207,255',
118
- '300': '71,169,255',
119
- '500': '0,131,245',
120
- '700': '0,109,204',
121
- '900': '0,88,164',
122
- },
123
- aux: {
124
- '100': '218,242,239',
125
- '300': '132,212,202',
126
- '500': '71,191,176',
127
- '700': '33,100,92',
128
- '900': '14,38,35',
129
- },
130
- }, font: {
131
- size: '14px',
132
- color: '#4A4A4A',
133
- body: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
134
- heading: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
135
- display: "'Hanken Grotesk', Arial, Helvetica, sans-serif",
136
- weights: {
137
- thin: 100,
138
- light: 300,
139
- regular: 400,
140
- medium: 500,
141
- bold: 700,
142
- black: 900
143
- },
144
- } });
145
-
146
- /**
147
- * Richet Theme
148
- */
149
- const ThemeRichet = Object.assign(Object.assign({}, ThemeDefault), {
150
- /* Custom */
151
- /* Colors */
152
- color: {
153
- primary: {
154
- '100': '153,197,255',
155
- '300': '67,142,241',
156
- '500': '0,47,108',
157
- '700': '1,39,91',
158
- '900': '0,33,77'
159
- },
160
- secondary: {
161
- '100': '243,237,227',
162
- '300': '216,194,163',
163
- '500': '208,173,103',
164
- '700': '201,155,64',
165
- '900': '149,104,15'
166
- },
167
- accent: {
168
- '100': '167,230,215',
169
- '300': '130,225,209',
170
- '500': '44,213,196',
171
- '700': '26,188,169',
172
- '900': '0,150,129'
173
- }
174
- } });
175
-
176
- /**
177
- * Perinatal temporary Theme
178
- */
179
- const ThemePerinatalTemporary = Object.assign(Object.assign({}, ThemeDefault), {
180
- /* Custom */
181
- /* Colors */
182
- color: {
183
- primary: {
184
- '100': '239,226,228',
185
- '300': '226,196,200',
186
- '500': '199,134,141',
187
- '700': '175,91,109',
188
- '900': '147,58,77'
189
- },
190
- secondary: {
191
- '100': '233,226,220',
192
- '300': '211,196,186',
193
- '500': '189,167,151',
194
- '700': '95,84,76',
195
- '900': '38,33,30'
196
- },
197
- accent: {
198
- '100': '219,189,196',
199
- '300': '183,124,136',
200
- '500': '147,58,77',
201
- '700': '74,29,39',
202
- '900': '29,12,15'
203
- }
204
- } });
205
-
206
- /**
207
- * Legacy Default Theme
208
- */
209
- const ThemeLegacyDefault = Object.assign(Object.assign({}, ThemeDefault), {
210
- /* Custom */
211
- /* Colors */
212
- color: {
213
- primary: {
214
- '100': '204,217,231',
215
- '300': '85,128,174',
216
- '500': '0,65,134',
217
- '700': '0,43,89',
218
- '900': '0,13,27'
219
- },
220
- secondary: {
221
- '100': '238,232,206',
222
- '300': '198,180,92',
223
- '500': '170,142,11',
224
- '700': '113,95,7',
225
- '900': '34,28,2'
226
- },
227
- accent: {
228
- '100': '249,232,213',
229
- '300': '228,160,79',
230
- '500': '223,141,44',
231
- '700': '149,94,29',
232
- '900': '45,28,9'
233
- }
234
- },
235
- /* Fonts */
236
- font: {
237
- size: '14px',
238
- color: '#4A4A4A',
239
- body: "'Roboto', Arial, Helvetica, sans-serif",
240
- heading: "'Roboto', Arial, Helvetica, sans-serif",
241
- display: "'Roboto', Arial, Helvetica, sans-serif",
242
- weights: {
243
- thin: 100,
244
- light: 300,
245
- regular: 400,
246
- medium: 500,
247
- bold: 700,
248
- black: 900
249
- },
250
- } });
251
-
252
- const ThemePresets = {
253
- 'default': ThemeDefault,
254
- 'maternidade': ThemeMaternity,
255
- 'oncologia': ThemeOncology,
256
- 'richet': ThemeRichet,
257
- 'perinatalTemp': ThemePerinatalTemporary,
258
- 'legacyDefault': ThemeLegacyDefault
259
- };
260
-
261
- /**
262
- * Static
263
- */
264
- const Static = {
265
- /* Colors */
266
- color: {
267
- success: {
268
- '100': '223,246,233',
269
- '300': '148,225,181',
270
- '500': '95,210,144',
271
- '700': '49,115,77',
272
- '900': '19,42,29',
273
- },
274
- info: {
275
- '100': '207,226,255',
276
- '300': '149,191,255',
277
- '500': '110,168,255',
278
- '700': '66,100,153',
279
- '900': '37,56,85',
280
- },
281
- /* error: {
282
- '100': '251,221,221',
283
- '300': '242,143,143',
284
- '500': '235,87,87',
285
- '700': '157,58,58',
286
- '900': '47,17,17',
287
- }, */
288
- error: {
289
- '100': '251,221,221',
290
- '300': '242,143,143',
291
- '500': '206,42,42',
292
- '700': '157,58,58',
293
- '900': '47,17,17',
294
- },
295
- warning: {
296
- '100': '252,250,196',
297
- '300': '248,244,137',
298
- '500': '245,239,78',
299
- '700': '108,106,32',
300
- '900': '49,48,16',
301
- },
302
- whatsapp: {
303
- '100': '182,240,204',
304
- '300': '110,226,153',
305
- '500': '37,211,102',
306
- '700': '25,141,68',
307
- '900': '7,42,20',
308
- },
309
- neutral: {
310
- '0': '255,255,255',
311
- '100': '246,246,246',
312
- '200': '233,233,233',
313
- '300': '226,226,226',
314
- '400': '212,212,212',
315
- '500': '183,183,183',
316
- '600': '146,146,146',
317
- '700': '110,110,110',
318
- '800': '74,74,74',
319
- '900': '38,38,38',
320
- },
321
- },
322
- breakpoints: {
323
- xsmall: {
324
- min: 0,
325
- max: 480
326
- },
327
- small: {
328
- min: 481,
329
- max: 768
330
- },
331
- medium: {
332
- min: 769,
333
- max: 992
334
- },
335
- large: {
336
- min: 993,
337
- max: 1920
338
- },
339
- xlarge: {
340
- min: 1921,
341
- max: 4096
342
- }
343
- }
344
- };
345
-
346
- class CuraThemeColorsModule {
347
- constructor() {
348
- this.NeutralDepthAlias = {
349
- 'purewhite': '0',
350
- 'white': '100',
351
- 'pale': '200',
352
- 'lighter': '300',
353
- 'light': '400',
354
- 'base': '500',
355
- 'medium': '600',
356
- 'dark': '700',
357
- 'darker': '800',
358
- 'black': '900',
359
- };
360
- this.ColorDepthAlias = {
361
- 'lighter': '100',
362
- 'light': '300',
363
- 'base': '500',
364
- 'dark': '700',
365
- 'darker': '900'
366
- };
367
- }
368
- /**
369
- * Get theme color.
370
- * @param colorWithDepth string Ex.: primary-light
371
- * @returns RGBA value.
372
- */
373
- getColor(colorWithDepth = "primary-base", opacity = 1) {
374
- const { color, depth } = this.splitColorDepth(colorWithDepth);
375
- const staticColor = this.getStatic(color, depth, opacity);
376
- if (staticColor)
377
- return staticColor;
378
- return this.getDynamic(color, depth, opacity);
379
- }
380
- /**
381
- * Internal: Look for static color by name and depth.
382
- * @param color Color name.
383
- * @param depth Depth number or alias.
384
- * @returns RGBA value.
385
- */
386
- getStatic(color, depth, opacity = 1) {
387
- var _a, _b, _c;
388
- const colorObj = Static.color[color];
389
- if (!colorObj)
390
- return null;
391
- const alias = color === 'neutral' ? this.NeutralDepthAlias[depth] : this.ColorDepthAlias[depth];
392
- return ((_a = Static.color[color]) === null || _a === void 0 ? void 0 : _a[alias])
393
- ? `rgba(${(_b = Static.color[color]) === null || _b === void 0 ? void 0 : _b[alias]}, ${opacity})`
394
- : `rgba(${(_c = Static.color[color]) === null || _c === void 0 ? void 0 : _c[depth]}, ${opacity})`;
395
- }
396
- /**
397
- * Internal: Look for theme dynamic colors.
398
- * @param color Color name.
399
- * @param depth Color depth.
400
- * @returns RGBA value.
401
- */
402
- getDynamic(color, depth, opacity) {
403
- const themeVar = this.ColorDepthAlias[depth]
404
- ? `--cura-color-${color}-${this.ColorDepthAlias[depth]}`
405
- : `--cura-color-${color}-${depth}`;
406
- return getComputedStyle(document.documentElement).getPropertyValue(themeVar)
407
- ? `rgba(var(${themeVar}), ${opacity})`
408
- : `rgba(var(--cura-color-primary-500), ${opacity})`;
409
- }
410
- /**
411
- * Internal: Split color strings
412
- * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.
413
- * @returns Object { color: string, depth: string }.
414
- */
415
- splitColorDepth(colorWithDepth) {
416
- const [color, depth] = colorWithDepth.toLowerCase().split(/-(.*)/);
417
- return { color: color !== null && color !== void 0 ? color : "primary", depth: depth !== null && depth !== void 0 ? depth : "base" };
418
- }
419
- }
420
-
421
- class CuraThemeSpacingModule {
422
- constructor() {
423
- this.curaSpacing = '--cura-spacing-base';
424
- }
425
- /** Returns the base spacing var defined in the theme */
426
- getSpacing() {
427
- if (getComputedStyle(document.body).getPropertyValue(this.curaSpacing)) {
428
- return `var(${this.curaSpacing})`;
429
- }
430
- return '4';
431
- }
432
- }
433
-
434
- class CuraThemeFontsModule {
435
- constructor() {
436
- /**
437
- * Get the CSS variable related to the font size base defined by the theme.
438
- * @returns Related CSS variable as a string.
439
- */
440
- this.getSize = () => `var(--cura-font-size)`;
441
- /**
442
- * Get CSS variable related to the font color defined by the theme.
443
- * @returns Related CSS variable as a string.
444
- */
445
- this.getColor = () => `var(--cura-font-color)`;
446
- }
447
- /**
448
- * Get the CSS variable related to the font family defined by the theme.
449
- * @param type 'body' | 'heading' | 'display'
450
- * @returns Related css variable as a string.
451
- */
452
- getFamily(type = "body") {
453
- const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;
454
- return getComputedStyle(document.body).getPropertyValue(curaFontFamilyCSSVar)
455
- ? `var(${curaFontFamilyCSSVar})`
456
- : 'var(--cura-font-body)';
457
- }
458
- /**
459
- * Get the CSS variables related to font weights defined by the theme.
460
- * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.
461
- */
462
- getWeights() {
463
- const weights = {};
464
- Object.keys(ThemeDefault.font.weights).forEach((key) => weights[key] = `var(--cura-font-weights-${key})`);
465
- return weights;
466
- }
467
- }
468
-
469
- class CuraThemeBreakpointsModule {
470
- constructor() { }
471
- /** Returns the base spacing var defined in the theme */
472
- get(size = null, position = null) {
473
- if (size) {
474
- const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];
475
- if (breakpoint || breakpoint === 0)
476
- return breakpoint;
477
- }
478
- return Static.breakpoints;
479
- }
480
- }
481
-
482
- class CuraThemeModule {
483
- constructor() {
484
- var _a;
485
- this.prefix = '--cura';
486
- this.colors = new CuraThemeColorsModule();
487
- this.spacing = new CuraThemeSpacingModule();
488
- this.fonts = new CuraThemeFontsModule();
489
- this.breakpoints = new CuraThemeBreakpointsModule();
490
- this.groupObject = {};
491
- /* Private */
492
- /** Set css var based on object structure */
493
- this.setCssVar = (prop, path) => {
494
- const varName = this.groupPath(path, prop[0]);
495
- this.rootElement.style.setProperty(varName, prop[1]);
496
- };
497
- this.groupPath = (a, b) => `${a}-${b}`;
498
- this.isObject = val => {
499
- return val && typeof val === 'object' && !Array.isArray(val);
500
- };
501
- /** Deep merge objects */
502
- this.mergeObject = (from, to) => {
503
- const entries = Object.entries(from);
504
- for (let e of entries) {
505
- if (this.isObject(e[1])) {
506
- this.mergeObject(e[1], to[e[0]]);
507
- }
508
- else {
509
- to[e[0]] = e[1];
510
- }
511
- }
512
- };
513
- /** Set css vars from preset object */
514
- this.buildCssVars = (path, obj, isGroup = false) => {
515
- const entries = Object.entries(obj);
516
- for (let e of entries) {
517
- if (this.isObject(e[1])) {
518
- this.buildCssVars(this.groupPath(path, e[0]), e[1], isGroup);
519
- }
520
- else {
521
- if (isGroup) {
522
- const varName = this.groupPath(path, e[0]);
523
- this.groupObject[varName] = e[1];
524
- }
525
- else {
526
- this.setCssVar(e, path);
527
- }
528
- }
529
- }
530
- };
531
- if (typeof window === 'undefined')
532
- return;
533
- this.rootElement = (_a = window === null || window === void 0 ? void 0 : window.document) === null || _a === void 0 ? void 0 : _a.documentElement;
534
- }
535
- /**
536
- * Load a theme.
537
- * @param theme Theme tag.
538
- */
539
- load(theme = 'default') {
540
- const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;
541
- this.buildCssVars(this.prefix, preset);
542
- }
543
- loadVarsSSR(theme = 'default') {
544
- const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;
545
- this.buildCssVars(this.prefix, preset, true);
546
- return this.groupObject;
547
- }
548
- /**
549
- * Define a custom theme
550
- * @param customTheme Custom theme object definition
551
- */
552
- setCustom(customTheme) {
553
- const customTag = customTheme.name;
554
- if (customTag in ThemePresets) {
555
- console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);
556
- this.load('default');
557
- }
558
- else {
559
- const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets ? ThemePresets[customTheme.fromPreset] : ThemePresets.default;
560
- const newTheme = Object.assign({}, JSON.parse(JSON.stringify(preset)));
561
- this.mergeObject(customTheme.definitions, newTheme);
562
- ThemePresets[customTag] = newTheme;
563
- this.load(customTag);
564
- }
565
- }
566
- }
567
-
568
- class CuraAPI {
569
- constructor(config) {
570
- this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;
571
- const themeModule = new CuraThemeModule();
572
- this.theme = {
573
- load: function (themeTag) { themeModule.load(themeTag); },
574
- setCustom: function (customThemeDefinitions) { themeModule.setCustom(customThemeDefinitions); },
575
- colors: {
576
- getColor: function (colorWithDepth, opacity) { return themeModule.colors.getColor(colorWithDepth, opacity); },
577
- },
578
- fonts: {
579
- getFamily: function (type) { return themeModule.fonts.getFamily(type); },
580
- getWeights: function () { return themeModule.fonts.getWeights(); },
581
- getSize: function () { return themeModule.fonts.getSize(); },
582
- getColor: function () { return themeModule.fonts.getColor(); }
583
- },
584
- spacing: {
585
- getSpacing: function () { return themeModule.spacing.getSpacing(); },
586
- },
587
- breakpoints: {
588
- get: function (size, position) { return themeModule.breakpoints.get(size, position); }
589
- }
590
- };
591
- this._addGlobalClasses();
592
- if (config && config.customTheme) {
593
- this.theme.setCustom(config.customTheme);
594
- }
595
- else {
596
- const theme = config && config.theme ? config.theme : 'default';
597
- this.theme.load(theme);
598
- }
599
- }
600
- _addGlobalClasses() {
601
- const styleId = "cura_global_classes";
602
- let styleElement = document.head.querySelector(`#${styleId}`);
603
- if (!styleElement) {
604
- styleElement = document.createElement("style");
605
- styleElement.id = styleId;
606
- styleElement.textContent = `
607
- .cura-body-scroll-lock {
608
- overflow: hidden;
609
- position: fixed;
610
- left: 0;
611
- right: 0;
612
- top: 0;
613
- }
614
- `;
615
- document.head.appendChild(styleElement);
616
- }
617
- }
618
- }
619
-
620
- function appGlobalScript () {
621
- const config = window.CuraInit;
622
- window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
623
- const api = window.CuraAPI;
624
- window.dispatchEvent(new CustomEvent("CuraAPIReady", { detail: { api } }));
625
- if (config && typeof config.onReady === 'function')
626
- config.onReady(api);
627
- }
628
-
629
- const globalScripts = appGlobalScript;
630
- const globalStyles = null;
631
-
632
- const NAMESPACE = 'cura';
633
- const BUILD = /* cura */ { hydratedSelectorName: "hydrated", lazyLoad: false, updatable: true};
634
-
635
- /*
636
- Stencil Client Platform v4.35.1 | MIT Licensed | https://stenciljs.com
637
- */
638
- var __defProp = Object.defineProperty;
639
- var __export = (target, all) => {
640
- for (var name in all)
641
- __defProp(target, name, { get: all[name], enumerable: true });
642
- };
643
-
644
- // src/utils/constants.ts
645
- var SVG_NS = "http://www.w3.org/2000/svg";
646
- var HTML_NS = "http://www.w3.org/1999/xhtml";
647
- var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
648
- PrimitiveType2["Undefined"] = "undefined";
649
- PrimitiveType2["Null"] = "null";
650
- PrimitiveType2["String"] = "string";
651
- PrimitiveType2["Number"] = "number";
652
- PrimitiveType2["SpecialNumber"] = "number";
653
- PrimitiveType2["Boolean"] = "boolean";
654
- PrimitiveType2["BigInt"] = "bigint";
655
- return PrimitiveType2;
656
- })(PrimitiveType || {});
657
- var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
658
- NonPrimitiveType2["Array"] = "array";
659
- NonPrimitiveType2["Date"] = "date";
660
- NonPrimitiveType2["Map"] = "map";
661
- NonPrimitiveType2["Object"] = "object";
662
- NonPrimitiveType2["RegularExpression"] = "regexp";
663
- NonPrimitiveType2["Set"] = "set";
664
- NonPrimitiveType2["Channel"] = "channel";
665
- NonPrimitiveType2["Symbol"] = "symbol";
666
- return NonPrimitiveType2;
667
- })(NonPrimitiveType || {});
668
- var TYPE_CONSTANT = "type";
669
- var VALUE_CONSTANT = "value";
670
- var SERIALIZED_PREFIX = "serialized:";
671
-
672
- // src/client/client-host-ref.ts
673
- var getHostRef = (ref) => {
674
- if (ref.__stencil__getHostRef) {
675
- return ref.__stencil__getHostRef();
676
- }
677
- return void 0;
678
- };
679
- var registerHost = (hostElement, cmpMeta) => {
680
- const hostRef = {
681
- $flags$: 0,
682
- $hostElement$: hostElement,
683
- $cmpMeta$: cmpMeta,
684
- $instanceValues$: /* @__PURE__ */ new Map()
685
- };
686
- {
687
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
688
- hostElement["s-p"] = [];
689
- hostElement["s-rc"] = [];
690
- }
691
- const ref = hostRef;
692
- hostElement.__stencil__getHostRef = () => ref;
693
- return ref;
694
- };
695
- var isMemberInElement = (elm, memberName) => memberName in elm;
696
- var consoleError = (e, el) => (0, console.error)(e, el);
697
-
698
- // src/client/client-style.ts
699
- var styles = /* @__PURE__ */ new Map();
700
-
701
- // src/runtime/runtime-constants.ts
702
- var CONTENT_REF_ID = "r";
703
- var ORG_LOCATION_ID = "o";
704
- var SLOT_NODE_ID = "s";
705
- var TEXT_NODE_ID = "t";
706
- var COMMENT_NODE_ID = "c";
707
- var HYDRATE_ID = "s-id";
708
- var HYDRATED_STYLE_ID = "sty-id";
709
- var HYDRATE_CHILD_ID = "c-id";
710
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
711
- var XLINK_NS = "http://www.w3.org/1999/xlink";
712
- var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
713
- "formAssociatedCallback",
714
- "formResetCallback",
715
- "formDisabledCallback",
716
- "formStateRestoreCallback"
717
- ];
718
- var win = typeof window !== "undefined" ? window : {};
719
- var H = win.HTMLElement || class {
720
- };
721
- var plt = {
722
- $flags$: 0,
723
- $resourcesUrl$: "",
724
- jmp: (h2) => h2(),
725
- raf: (h2) => requestAnimationFrame(h2),
726
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
727
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
728
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
729
- };
730
- var supportsListenerOptions = /* @__PURE__ */ (() => {
731
- var _a;
732
- let supportsListenerOptions2 = false;
733
- try {
734
- (_a = win.document) == null ? void 0 : _a.addEventListener(
735
- "e",
736
- null,
737
- Object.defineProperty({}, "passive", {
738
- get() {
739
- supportsListenerOptions2 = true;
740
- }
741
- })
742
- );
743
- } catch (e) {
744
- }
745
- return supportsListenerOptions2;
746
- })();
747
- var promiseResolve = (v) => Promise.resolve(v);
748
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
749
- try {
750
- new CSSStyleSheet();
751
- return typeof new CSSStyleSheet().replaceSync === "function";
752
- } catch (e) {
753
- }
754
- return false;
755
- })() ;
756
- var queuePending = false;
757
- var queueDomReads = [];
758
- var queueDomWrites = [];
759
- var queueTask = (queue, write) => (cb) => {
760
- queue.push(cb);
761
- if (!queuePending) {
762
- queuePending = true;
763
- if (write && plt.$flags$ & 4 /* queueSync */) {
764
- nextTick(flush);
765
- } else {
766
- plt.raf(flush);
767
- }
768
- }
769
- };
770
- var consume = (queue) => {
771
- for (let i2 = 0; i2 < queue.length; i2++) {
772
- try {
773
- queue[i2](performance.now());
774
- } catch (e) {
775
- consoleError(e);
776
- }
777
- }
778
- queue.length = 0;
779
- };
780
- var flush = () => {
781
- consume(queueDomReads);
782
- {
783
- consume(queueDomWrites);
784
- if (queuePending = queueDomReads.length > 0) {
785
- plt.raf(flush);
786
- }
787
- }
788
- };
789
- var nextTick = (cb) => promiseResolve().then(cb);
790
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
791
-
792
- // src/runtime/asset-path.ts
793
- var getAssetPath = (path) => {
794
- const assetUrl = new URL(path, plt.$resourcesUrl$);
795
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
796
- };
797
- var setAssetPath = (path) => plt.$resourcesUrl$ = path;
798
- var isComplexType = (o) => {
799
- o = typeof o;
800
- return o === "object" || o === "function";
801
- };
802
-
803
- // src/utils/query-nonce-meta-tag-content.ts
804
- function queryNonceMetaTagContent(doc) {
805
- var _a, _b, _c;
806
- 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;
807
- }
808
-
809
- // src/utils/regular-expression.ts
810
- var escapeRegExpSpecialCharacters = (text) => {
811
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
812
- };
813
-
814
- // src/utils/remote-value.ts
815
- var RemoteValue = class _RemoteValue {
816
- /**
817
- * Deserializes a LocalValue serialized object back to its original JavaScript representation
818
- *
819
- * @param serialized The serialized LocalValue object
820
- * @returns The original JavaScript value/object
821
- */
822
- static fromLocalValue(serialized) {
823
- const type = serialized[TYPE_CONSTANT];
824
- const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
825
- switch (type) {
826
- case "string" /* String */:
827
- return value;
828
- case "boolean" /* Boolean */:
829
- return value;
830
- case "bigint" /* BigInt */:
831
- return BigInt(value);
832
- case "undefined" /* Undefined */:
833
- return void 0;
834
- case "null" /* Null */:
835
- return null;
836
- case "number" /* Number */:
837
- if (value === "NaN") return NaN;
838
- if (value === "-0") return -0;
839
- if (value === "Infinity") return Infinity;
840
- if (value === "-Infinity") return -Infinity;
841
- return value;
842
- case "array" /* Array */:
843
- return value.map((item) => _RemoteValue.fromLocalValue(item));
844
- case "date" /* Date */:
845
- return new Date(value);
846
- case "map" /* Map */:
847
- const map2 = /* @__PURE__ */ new Map();
848
- for (const [key, val] of value) {
849
- const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
850
- const deserializedValue = _RemoteValue.fromLocalValue(val);
851
- map2.set(deserializedKey, deserializedValue);
852
- }
853
- return map2;
854
- case "object" /* Object */:
855
- const obj = {};
856
- for (const [key, val] of value) {
857
- obj[key] = _RemoteValue.fromLocalValue(val);
858
- }
859
- return obj;
860
- case "regexp" /* RegularExpression */:
861
- const { pattern, flags } = value;
862
- return new RegExp(pattern, flags);
863
- case "set" /* Set */:
864
- const set = /* @__PURE__ */ new Set();
865
- for (const item of value) {
866
- set.add(_RemoteValue.fromLocalValue(item));
867
- }
868
- return set;
869
- case "symbol" /* Symbol */:
870
- return Symbol(value);
871
- default:
872
- throw new Error(`Unsupported type: ${type}`);
873
- }
874
- }
875
- /**
876
- * Utility method to deserialize multiple LocalValues at once
877
- *
878
- * @param serializedValues Array of serialized LocalValue objects
879
- * @returns Array of deserialized JavaScript values
880
- */
881
- static fromLocalValueArray(serializedValues) {
882
- return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
883
- }
884
- /**
885
- * Verifies if the given object matches the structure of a serialized LocalValue
886
- *
887
- * @param obj Object to verify
888
- * @returns boolean indicating if the object has LocalValue structure
889
- */
890
- static isLocalValueObject(obj) {
891
- if (typeof obj !== "object" || obj === null) {
892
- return false;
893
- }
894
- if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
895
- return false;
896
- }
897
- const type = obj[TYPE_CONSTANT];
898
- const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
899
- if (!hasTypeProperty) {
900
- return false;
901
- }
902
- if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
903
- return obj.hasOwnProperty(VALUE_CONSTANT);
904
- }
905
- return true;
906
- }
907
- };
908
-
909
- // src/utils/result.ts
910
- var result_exports = {};
911
- __export(result_exports, {
912
- err: () => err,
913
- map: () => map,
914
- ok: () => ok,
915
- unwrap: () => unwrap,
916
- unwrapErr: () => unwrapErr
917
- });
918
- var ok = (value) => ({
919
- isOk: true,
920
- isErr: false,
921
- value
922
- });
923
- var err = (value) => ({
924
- isOk: false,
925
- isErr: true,
926
- value
927
- });
928
- function map(result, fn) {
929
- if (result.isOk) {
930
- const val = fn(result.value);
931
- if (val instanceof Promise) {
932
- return val.then((newVal) => ok(newVal));
933
- } else {
934
- return ok(val);
935
- }
936
- }
937
- if (result.isErr) {
938
- const value = result.value;
939
- return err(value);
940
- }
941
- throw "should never get here";
942
- }
943
- var unwrap = (result) => {
944
- if (result.isOk) {
945
- return result.value;
946
- } else {
947
- throw result.value;
948
- }
949
- };
950
- var unwrapErr = (result) => {
951
- if (result.isErr) {
952
- return result.value;
953
- } else {
954
- throw result.value;
955
- }
956
- };
957
-
958
- // src/utils/serialize.ts
959
- function deserializeProperty(value) {
960
- if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
961
- return value;
962
- }
963
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
964
- }
965
- function createShadowRoot(cmpMeta) {
966
- const shadowRoot = this.attachShadow({ mode: "open" });
967
- if (supportsConstructableStylesheets) {
968
- const sheet = new CSSStyleSheet();
969
- sheet.replaceSync(globalStyles);
970
- shadowRoot.adoptedStyleSheets.push(sheet);
971
- }
972
- }
973
- var getSlottedChildNodes = (childNodes) => {
974
- const result = [];
975
- for (let i2 = 0; i2 < childNodes.length; i2++) {
976
- const slottedNode = childNodes[i2]["s-nr"] || void 0;
977
- if (slottedNode && slottedNode.isConnected) {
978
- result.push(slottedNode);
979
- }
980
- }
981
- return result;
982
- };
983
- var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
984
- if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
985
- return;
986
- }
987
- const slottedNodeLocation = document.createTextNode("");
988
- slottedNodeLocation["s-nr"] = newChild;
989
- if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
990
- const parent = slotNode["s-cr"].parentNode;
991
- const appendMethod = internalCall(parent, "appendChild");
992
- if (typeof position !== "undefined") {
993
- slottedNodeLocation["s-oo"] = position;
994
- const childNodes = internalCall(parent, "childNodes");
995
- const slotRelocateNodes = [slottedNodeLocation];
996
- childNodes.forEach((n) => {
997
- if (n["s-nr"]) slotRelocateNodes.push(n);
998
- });
999
- slotRelocateNodes.sort((a, b) => {
1000
- if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
1001
- else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
1002
- return 0;
1003
- });
1004
- slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
1005
- } else {
1006
- appendMethod.call(parent, slottedNodeLocation);
1007
- }
1008
- newChild["s-ol"] = slottedNodeLocation;
1009
- newChild["s-sh"] = slotNode["s-hn"];
1010
- };
1011
- var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
1012
- function patchSlotNode(node) {
1013
- if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
1014
- const assignedFactory = (elementsOnly) => (function(opts) {
1015
- const toReturn = [];
1016
- const slotName = this["s-sn"];
1017
- if (opts == null ? void 0 : opts.flatten) {
1018
- console.error(`
1019
- Flattening is not supported for Stencil non-shadow slots.
1020
- You can use \`.childNodes\` to nested slot fallback content.
1021
- If you have a particular use case, please open an issue on the Stencil repo.
1022
- `);
1023
- }
1024
- const parent = this["s-cr"].parentElement;
1025
- const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
1026
- slottedNodes.forEach((n) => {
1027
- if (slotName === getSlotName(n)) {
1028
- toReturn.push(n);
1029
- }
1030
- });
1031
- if (elementsOnly) {
1032
- return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
1033
- }
1034
- return toReturn;
1035
- }).bind(node);
1036
- node.assignedElements = assignedFactory(true);
1037
- node.assignedNodes = assignedFactory(false);
1038
- }
1039
- function internalCall(node, method) {
1040
- if ("__" + method in node) {
1041
- const toReturn = node["__" + method];
1042
- if (typeof toReturn !== "function") return toReturn;
1043
- return toReturn.bind(node);
1044
- } else {
1045
- if (typeof node[method] !== "function") return node[method];
1046
- return node[method].bind(node);
1047
- }
1048
- }
1049
- var createTime = (fnName, tagName = "") => {
1050
- {
1051
- return () => {
1052
- return;
1053
- };
1054
- }
1055
- };
1056
- var h = (nodeName, vnodeData, ...children) => {
1057
- let child = null;
1058
- let key = null;
1059
- let simple = false;
1060
- let lastSimple = false;
1061
- const vNodeChildren = [];
1062
- const walk = (c) => {
1063
- for (let i2 = 0; i2 < c.length; i2++) {
1064
- child = c[i2];
1065
- if (Array.isArray(child)) {
1066
- walk(child);
1067
- } else if (child != null && typeof child !== "boolean") {
1068
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
1069
- child = String(child);
1070
- }
1071
- if (simple && lastSimple) {
1072
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
1073
- } else {
1074
- vNodeChildren.push(simple ? newVNode(null, child) : child);
1075
- }
1076
- lastSimple = simple;
1077
- }
1078
- }
1079
- };
1080
- walk(children);
1081
- if (vnodeData) {
1082
- if (vnodeData.key) {
1083
- key = vnodeData.key;
1084
- }
1085
- {
1086
- const classData = vnodeData.className || vnodeData.class;
1087
- if (classData) {
1088
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
1089
- }
1090
- }
1091
- }
1092
- const vnode = newVNode(nodeName, null);
1093
- vnode.$attrs$ = vnodeData;
1094
- if (vNodeChildren.length > 0) {
1095
- vnode.$children$ = vNodeChildren;
1096
- }
1097
- {
1098
- vnode.$key$ = key;
1099
- }
1100
- return vnode;
1101
- };
1102
- var newVNode = (tag, text) => {
1103
- const vnode = {
1104
- $flags$: 0,
1105
- $tag$: tag,
1106
- $text$: text,
1107
- $elm$: null,
1108
- $children$: null
1109
- };
1110
- {
1111
- vnode.$attrs$ = null;
1112
- }
1113
- {
1114
- vnode.$key$ = null;
1115
- }
1116
- return vnode;
1117
- };
1118
- var Host = {};
1119
- var isHost = (node) => node && node.$tag$ === Host;
1120
-
1121
- // src/runtime/client-hydrate.ts
1122
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1123
- var _a;
1124
- const endHydrate = createTime("hydrateClient", tagName);
1125
- const shadowRoot = hostElm.shadowRoot;
1126
- const childRenderNodes = [];
1127
- const slotNodes = [];
1128
- const slottedNodes = [];
1129
- const shadowRootNodes = shadowRoot ? [] : null;
1130
- const vnode = newVNode(tagName, null);
1131
- vnode.$elm$ = hostElm;
1132
- const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
1133
- members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
1134
- var _a2, _b;
1135
- if (!(memberFlags & 31 /* Prop */)) {
1136
- return;
1137
- }
1138
- const attributeName = metaAttributeName || memberName;
1139
- const attrVal = hostElm.getAttribute(attributeName);
1140
- if (attrVal !== null) {
1141
- const attrPropVal = parsePropertyValue(
1142
- attrVal,
1143
- memberFlags,
1144
- !!(((_a2 = hostRef.$cmpMeta$) == null ? void 0 : _a2.$flags$) & 64 /* formAssociated */)
1145
- );
1146
- (_b = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b.set(memberName, attrPropVal);
1147
- }
1148
- });
1149
- if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
1150
- initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
1151
- }
1152
- hostElm[HYDRATE_ID] = hostId;
1153
- hostElm.removeAttribute(HYDRATE_ID);
1154
- hostRef.$vnode$ = clientHydrate(
1155
- vnode,
1156
- childRenderNodes,
1157
- slotNodes,
1158
- shadowRootNodes,
1159
- hostElm,
1160
- hostElm,
1161
- hostId,
1162
- slottedNodes
1163
- );
1164
- let crIndex = 0;
1165
- const crLength = childRenderNodes.length;
1166
- let childRenderNode;
1167
- for (crIndex; crIndex < crLength; crIndex++) {
1168
- childRenderNode = childRenderNodes[crIndex];
1169
- const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
1170
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
1171
- const node = childRenderNode.$elm$;
1172
- if (!shadowRoot) {
1173
- node["s-hn"] = tagName.toUpperCase();
1174
- if (childRenderNode.$tag$ === "slot") {
1175
- node["s-cr"] = hostElm["s-cr"];
1176
- }
1177
- }
1178
- if (childRenderNode.$tag$ === "slot") {
1179
- childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
1180
- if (childRenderNode.$children$) {
1181
- childRenderNode.$flags$ |= 2 /* isSlotFallback */;
1182
- if (!childRenderNode.$elm$.childNodes.length) {
1183
- childRenderNode.$children$.forEach((c) => {
1184
- childRenderNode.$elm$.appendChild(c.$elm$);
1185
- });
1186
- }
1187
- } else {
1188
- childRenderNode.$flags$ |= 1 /* isSlotReference */;
1189
- }
1190
- }
1191
- if (orgLocationNode && orgLocationNode.isConnected) {
1192
- if (shadowRoot && orgLocationNode["s-en"] === "") {
1193
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1194
- }
1195
- orgLocationNode.parentNode.removeChild(orgLocationNode);
1196
- if (!shadowRoot) {
1197
- node["s-oo"] = parseInt(childRenderNode.$nodeId$);
1198
- }
1199
- }
1200
- plt.$orgLocNodes$.delete(orgLocationId);
1201
- }
1202
- const hosts = [];
1203
- const snLen = slottedNodes.length;
1204
- let snIndex = 0;
1205
- let slotGroup;
1206
- let snGroupIdx;
1207
- let snGroupLen;
1208
- let slottedItem;
1209
- for (snIndex; snIndex < snLen; snIndex++) {
1210
- slotGroup = slottedNodes[snIndex];
1211
- if (!slotGroup || !slotGroup.length) continue;
1212
- snGroupLen = slotGroup.length;
1213
- snGroupIdx = 0;
1214
- for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
1215
- slottedItem = slotGroup[snGroupIdx];
1216
- if (!hosts[slottedItem.hostId]) {
1217
- hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
1218
- }
1219
- if (!hosts[slottedItem.hostId]) continue;
1220
- const hostEle = hosts[slottedItem.hostId];
1221
- if (!hostEle.shadowRoot || !shadowRoot) {
1222
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
1223
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
1224
- slottedItem.slot["s-cr"] = hostEle;
1225
- } else {
1226
- slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
1227
- }
1228
- addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
1229
- }
1230
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1231
- hostEle.appendChild(slottedItem.node);
1232
- }
1233
- }
1234
- }
1235
- if (shadowRoot && !shadowRoot.childNodes.length) {
1236
- let rnIdex = 0;
1237
- const rnLen = shadowRootNodes.length;
1238
- if (rnLen) {
1239
- for (rnIdex; rnIdex < rnLen; rnIdex++) {
1240
- shadowRoot.appendChild(shadowRootNodes[rnIdex]);
1241
- }
1242
- Array.from(hostElm.childNodes).forEach((node) => {
1243
- if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
1244
- if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
1245
- node.removeAttribute("hidden");
1246
- } else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
1247
- node.parentNode.removeChild(node);
1248
- }
1249
- }
1250
- });
1251
- }
1252
- }
1253
- plt.$orgLocNodes$.delete(hostElm["s-id"]);
1254
- hostRef.$hostElement$ = hostElm;
1255
- endHydrate();
1256
- };
1257
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1258
- let childNodeType;
1259
- let childIdSplt;
1260
- let childVNode;
1261
- let i2;
1262
- if (node.nodeType === 1 /* ElementNode */) {
1263
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1264
- if (childNodeType) {
1265
- childIdSplt = childNodeType.split(".");
1266
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1267
- childVNode = createSimpleVNode({
1268
- $flags$: 0,
1269
- $hostId$: childIdSplt[0],
1270
- $nodeId$: childIdSplt[1],
1271
- $depth$: childIdSplt[2],
1272
- $index$: childIdSplt[3],
1273
- $tag$: node.tagName.toLowerCase(),
1274
- $elm$: node,
1275
- // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
1276
- // won't try to reconcile them. Classes set on the node will be blown away.
1277
- $attrs$: { class: node.className || "" }
1278
- });
1279
- childRenderNodes.push(childVNode);
1280
- node.removeAttribute(HYDRATE_CHILD_ID);
1281
- if (!parentVNode.$children$) {
1282
- parentVNode.$children$ = [];
1283
- }
1284
- const slotName = childVNode.$elm$.getAttribute("s-sn");
1285
- if (typeof slotName === "string") {
1286
- if (childVNode.$tag$ === "slot-fb") {
1287
- addSlot(
1288
- slotName,
1289
- childIdSplt[2],
1290
- childVNode,
1291
- node,
1292
- parentVNode,
1293
- childRenderNodes,
1294
- slotNodes,
1295
- shadowRootNodes,
1296
- slottedNodes
1297
- );
1298
- }
1299
- childVNode.$elm$["s-sn"] = slotName;
1300
- childVNode.$elm$.removeAttribute("s-sn");
1301
- }
1302
- if (childVNode.$index$ !== void 0) {
1303
- parentVNode.$children$[childVNode.$index$] = childVNode;
1304
- }
1305
- parentVNode = childVNode;
1306
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1307
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1308
- }
1309
- }
1310
- }
1311
- if (node.shadowRoot) {
1312
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1313
- clientHydrate(
1314
- parentVNode,
1315
- childRenderNodes,
1316
- slotNodes,
1317
- shadowRootNodes,
1318
- hostElm,
1319
- node.shadowRoot.childNodes[i2],
1320
- hostId,
1321
- slottedNodes
1322
- );
1323
- }
1324
- }
1325
- const nonShadowNodes = node.__childNodes || node.childNodes;
1326
- for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1327
- clientHydrate(
1328
- parentVNode,
1329
- childRenderNodes,
1330
- slotNodes,
1331
- shadowRootNodes,
1332
- hostElm,
1333
- nonShadowNodes[i2],
1334
- hostId,
1335
- slottedNodes
1336
- );
1337
- }
1338
- } else if (node.nodeType === 8 /* CommentNode */) {
1339
- childIdSplt = node.nodeValue.split(".");
1340
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1341
- childNodeType = childIdSplt[0];
1342
- childVNode = createSimpleVNode({
1343
- $hostId$: childIdSplt[1],
1344
- $nodeId$: childIdSplt[2],
1345
- $depth$: childIdSplt[3],
1346
- $index$: childIdSplt[4] || "0",
1347
- $elm$: node,
1348
- $attrs$: null,
1349
- $children$: null,
1350
- $key$: null,
1351
- $name$: null,
1352
- $tag$: null,
1353
- $text$: null
1354
- });
1355
- if (childNodeType === TEXT_NODE_ID) {
1356
- childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
1357
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1358
- childVNode.$text$ = childVNode.$elm$.textContent;
1359
- childRenderNodes.push(childVNode);
1360
- node.remove();
1361
- if (hostId === childVNode.$hostId$) {
1362
- if (!parentVNode.$children$) {
1363
- parentVNode.$children$ = [];
1364
- }
1365
- parentVNode.$children$[childVNode.$index$] = childVNode;
1366
- }
1367
- if (shadowRootNodes && childVNode.$depth$ === "0") {
1368
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1369
- }
1370
- }
1371
- } else if (childNodeType === COMMENT_NODE_ID) {
1372
- childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
1373
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1374
- childRenderNodes.push(childVNode);
1375
- node.remove();
1376
- }
1377
- } else if (childVNode.$hostId$ === hostId) {
1378
- if (childNodeType === SLOT_NODE_ID) {
1379
- const slotName = node["s-sn"] = childIdSplt[5] || "";
1380
- addSlot(
1381
- slotName,
1382
- childIdSplt[2],
1383
- childVNode,
1384
- node,
1385
- parentVNode,
1386
- childRenderNodes,
1387
- slotNodes,
1388
- shadowRootNodes,
1389
- slottedNodes
1390
- );
1391
- } else if (childNodeType === CONTENT_REF_ID) {
1392
- if (shadowRootNodes) {
1393
- node.remove();
1394
- }
1395
- }
1396
- }
1397
- }
1398
- } else if (parentVNode && parentVNode.$tag$ === "style") {
1399
- const vnode = newVNode(null, node.textContent);
1400
- vnode.$elm$ = node;
1401
- vnode.$index$ = "0";
1402
- parentVNode.$children$ = [vnode];
1403
- } else {
1404
- if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
1405
- node.remove();
1406
- }
1407
- }
1408
- return parentVNode;
1409
- };
1410
- var initializeDocumentHydrate = (node, orgLocNodes) => {
1411
- if (node.nodeType === 1 /* ElementNode */) {
1412
- const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1413
- if (componentId) {
1414
- orgLocNodes.set(componentId, node);
1415
- }
1416
- let i2 = 0;
1417
- if (node.shadowRoot) {
1418
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1419
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1420
- }
1421
- }
1422
- const nonShadowNodes = node.__childNodes || node.childNodes;
1423
- for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1424
- initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1425
- }
1426
- } else if (node.nodeType === 8 /* CommentNode */) {
1427
- const childIdSplt = node.nodeValue.split(".");
1428
- if (childIdSplt[0] === ORG_LOCATION_ID) {
1429
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1430
- node.nodeValue = "";
1431
- node["s-en"] = childIdSplt[3];
1432
- }
1433
- }
1434
- };
1435
- var createSimpleVNode = (vnode) => {
1436
- const defaultVNode = {
1437
- $flags$: 0,
1438
- $hostId$: null,
1439
- $nodeId$: null,
1440
- $depth$: null,
1441
- $index$: "0",
1442
- $elm$: null,
1443
- $attrs$: null,
1444
- $children$: null,
1445
- $key$: null,
1446
- $name$: null,
1447
- $tag$: null,
1448
- $text$: null
1449
- };
1450
- return { ...defaultVNode, ...vnode };
1451
- };
1452
- function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1453
- node["s-sr"] = true;
1454
- childVNode.$name$ = slotName || null;
1455
- childVNode.$tag$ = "slot";
1456
- const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1457
- if (shadowRootNodes && win.document) {
1458
- const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1459
- if (childVNode.$name$) {
1460
- childVNode.$elm$.setAttribute("name", slotName);
1461
- }
1462
- if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
1463
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1464
- } else {
1465
- node.parentNode.insertBefore(slot, node);
1466
- }
1467
- addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1468
- node.remove();
1469
- if (childVNode.$depth$ === "0") {
1470
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1471
- }
1472
- } else {
1473
- const slot = childVNode.$elm$;
1474
- const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1475
- addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1476
- patchSlotNode(node);
1477
- if (shouldMove) {
1478
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1479
- }
1480
- }
1481
- childRenderNodes.push(childVNode);
1482
- slotNodes.push(childVNode);
1483
- if (!parentVNode.$children$) {
1484
- parentVNode.$children$ = [];
1485
- }
1486
- parentVNode.$children$[childVNode.$index$] = childVNode;
1487
- }
1488
- var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1489
- let slottedNode = slotNode.nextSibling;
1490
- slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1491
- 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 */))) {
1492
- slottedNode["s-sn"] = slotName;
1493
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1494
- slottedNode = slottedNode.nextSibling;
1495
- }
1496
- };
1497
- var findCorrespondingNode = (node, type) => {
1498
- let sibling = node;
1499
- do {
1500
- sibling = sibling.nextSibling;
1501
- } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1502
- return sibling;
1503
- };
1504
- var createSupportsRuleRe = (selector) => {
1505
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
1506
- return new RegExp(
1507
- // First capture group: match any context before the selector that's not inside @supports selector()
1508
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
1509
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
1510
- "g"
1511
- );
1512
- };
1513
- createSupportsRuleRe("::slotted");
1514
- createSupportsRuleRe(":host");
1515
- createSupportsRuleRe(":host-context");
1516
- var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1517
- if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
1518
- try {
1519
- propValue = JSON.parse(propValue);
1520
- return propValue;
1521
- } catch (e) {
1522
- }
1523
- }
1524
- if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1525
- propValue = deserializeProperty(propValue);
1526
- return propValue;
1527
- }
1528
- if (propValue != null && !isComplexType(propValue)) {
1529
- if (propType & 4 /* Boolean */) {
1530
- if (isFormAssociated && typeof propValue === "string") {
1531
- return propValue === "" || !!propValue;
1532
- } else {
1533
- return propValue === "false" ? false : propValue === "" || !!propValue;
1534
- }
1535
- }
1536
- if (propType & 2 /* Number */) {
1537
- return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
1538
- }
1539
- if (propType & 1 /* String */) {
1540
- return String(propValue);
1541
- }
1542
- return propValue;
1543
- }
1544
- return propValue;
1545
- };
1546
- var getElement = (ref) => ref;
1547
-
1548
- // src/runtime/event-emitter.ts
1549
- var createEvent = (ref, name, flags) => {
1550
- const elm = getElement(ref);
1551
- return {
1552
- emit: (detail) => {
1553
- return emitEvent(elm, name, {
1554
- bubbles: true,
1555
- composed: true,
1556
- cancelable: true,
1557
- detail
1558
- });
1559
- }
1560
- };
1561
- };
1562
- var emitEvent = (elm, name, opts) => {
1563
- const ev = plt.ce(name, opts);
1564
- elm.dispatchEvent(ev);
1565
- return ev;
1566
- };
1567
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1568
- var registerStyle = (scopeId2, cssText, allowCS) => {
1569
- let style = styles.get(scopeId2);
1570
- if (supportsConstructableStylesheets && allowCS) {
1571
- style = style || new CSSStyleSheet();
1572
- if (typeof style === "string") {
1573
- style = cssText;
1574
- } else {
1575
- style.replaceSync(cssText);
1576
- }
1577
- } else {
1578
- style = cssText;
1579
- }
1580
- styles.set(scopeId2, style);
1581
- };
1582
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
1583
- var _a;
1584
- const scopeId2 = getScopeId(cmpMeta);
1585
- const style = styles.get(scopeId2);
1586
- if (!win.document) {
1587
- return scopeId2;
1588
- }
1589
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1590
- if (style) {
1591
- if (typeof style === "string") {
1592
- styleContainerNode = styleContainerNode.head || styleContainerNode;
1593
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1594
- let styleElm;
1595
- if (!appliedStyles) {
1596
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1597
- }
1598
- if (!appliedStyles.has(scopeId2)) {
1599
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1600
- styleElm.innerHTML = style;
1601
- } else {
1602
- styleElm = win.document.createElement("style");
1603
- styleElm.innerHTML = style;
1604
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1605
- if (nonce != null) {
1606
- styleElm.setAttribute("nonce", nonce);
1607
- }
1608
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1609
- if (styleContainerNode.nodeName === "HEAD") {
1610
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1611
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1612
- styleContainerNode.insertBefore(
1613
- styleElm,
1614
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1615
- );
1616
- } else if ("host" in styleContainerNode) {
1617
- if (supportsConstructableStylesheets) {
1618
- const stylesheet = new CSSStyleSheet();
1619
- stylesheet.replaceSync(style);
1620
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1621
- } else {
1622
- const existingStyleContainer = styleContainerNode.querySelector("style");
1623
- if (existingStyleContainer) {
1624
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1625
- } else {
1626
- styleContainerNode.prepend(styleElm);
1627
- }
1628
- }
1629
- } else {
1630
- styleContainerNode.append(styleElm);
1631
- }
1632
- }
1633
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1634
- styleContainerNode.insertBefore(styleElm, null);
1635
- }
1636
- }
1637
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1638
- styleElm.innerHTML += SLOT_FB_CSS;
1639
- }
1640
- if (appliedStyles) {
1641
- appliedStyles.add(scopeId2);
1642
- }
1643
- }
1644
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1645
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1646
- }
1647
- }
1648
- return scopeId2;
1649
- };
1650
- var attachStyles = (hostRef) => {
1651
- const cmpMeta = hostRef.$cmpMeta$;
1652
- const elm = hostRef.$hostElement$;
1653
- const flags = cmpMeta.$flags$;
1654
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1655
- const scopeId2 = addStyle(
1656
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1657
- cmpMeta);
1658
- if (flags & 10 /* needsScopedEncapsulation */) {
1659
- elm["s-sc"] = scopeId2;
1660
- elm.classList.add(scopeId2 + "-h");
1661
- }
1662
- endAttachStyles();
1663
- };
1664
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1665
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1666
- var hydrateScopedToShadow = () => {
1667
- if (!win.document) {
1668
- return;
1669
- }
1670
- const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1671
- let i2 = 0;
1672
- for (; i2 < styles2.length; i2++) {
1673
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1674
- }
1675
- };
1676
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1677
- if (oldValue === newValue) {
1678
- return;
1679
- }
1680
- let isProp = isMemberInElement(elm, memberName);
1681
- let ln = memberName.toLowerCase();
1682
- if (memberName === "class") {
1683
- const classList = elm.classList;
1684
- const oldClasses = parseClassList(oldValue);
1685
- let newClasses = parseClassList(newValue);
1686
- if (elm["s-si"] && initialRender) {
1687
- newClasses.push(elm["s-si"]);
1688
- oldClasses.forEach((c) => {
1689
- if (c.startsWith(elm["s-si"])) newClasses.push(c);
1690
- });
1691
- newClasses = [...new Set(newClasses)];
1692
- classList.add(...newClasses);
1693
- } else {
1694
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1695
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1696
- }
1697
- } else if (memberName === "style") {
1698
- {
1699
- for (const prop in oldValue) {
1700
- if (!newValue || newValue[prop] == null) {
1701
- if (prop.includes("-")) {
1702
- elm.style.removeProperty(prop);
1703
- } else {
1704
- elm.style[prop] = "";
1705
- }
1706
- }
1707
- }
1708
- }
1709
- for (const prop in newValue) {
1710
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
1711
- if (prop.includes("-")) {
1712
- elm.style.setProperty(prop, newValue[prop]);
1713
- } else {
1714
- elm.style[prop] = newValue[prop];
1715
- }
1716
- }
1717
- }
1718
- } else if (memberName === "key") ; else if (memberName === "ref") {
1719
- if (newValue) {
1720
- newValue(elm);
1721
- }
1722
- } else if ((!elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
1723
- if (memberName[2] === "-") {
1724
- memberName = memberName.slice(3);
1725
- } else if (isMemberInElement(win, ln)) {
1726
- memberName = ln.slice(2);
1727
- } else {
1728
- memberName = ln[2] + memberName.slice(3);
1729
- }
1730
- if (oldValue || newValue) {
1731
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
1732
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
1733
- if (oldValue) {
1734
- plt.rel(elm, memberName, oldValue, capture);
1735
- }
1736
- if (newValue) {
1737
- plt.ael(elm, memberName, newValue, capture);
1738
- }
1739
- }
1740
- } else {
1741
- const isComplex = isComplexType(newValue);
1742
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
1743
- try {
1744
- if (!elm.tagName.includes("-")) {
1745
- const n = newValue == null ? "" : newValue;
1746
- if (memberName === "list") {
1747
- isProp = false;
1748
- } else if (oldValue == null || elm[memberName] != n) {
1749
- if (typeof elm.__lookupSetter__(memberName) === "function") {
1750
- elm[memberName] = n;
1751
- } else {
1752
- elm.setAttribute(memberName, n);
1753
- }
1754
- }
1755
- } else if (elm[memberName] !== newValue) {
1756
- elm[memberName] = newValue;
1757
- }
1758
- } catch (e) {
1759
- }
1760
- }
1761
- let xlink = false;
1762
- {
1763
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
1764
- memberName = ln;
1765
- xlink = true;
1766
- }
1767
- }
1768
- if (newValue == null || newValue === false) {
1769
- if (newValue !== false || elm.getAttribute(memberName) === "") {
1770
- if (xlink) {
1771
- elm.removeAttributeNS(XLINK_NS, memberName);
1772
- } else {
1773
- elm.removeAttribute(memberName);
1774
- }
1775
- }
1776
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
1777
- newValue = newValue === true ? "" : newValue;
1778
- if (xlink) {
1779
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
1780
- } else {
1781
- elm.setAttribute(memberName, newValue);
1782
- }
1783
- }
1784
- }
1785
- };
1786
- var parseClassListRegex = /\s/;
1787
- var parseClassList = (value) => {
1788
- if (typeof value === "object" && value && "baseVal" in value) {
1789
- value = value.baseVal;
1790
- }
1791
- if (!value || typeof value !== "string") {
1792
- return [];
1793
- }
1794
- return value.split(parseClassListRegex);
1795
- };
1796
- var CAPTURE_EVENT_SUFFIX = "Capture";
1797
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
1798
-
1799
- // src/runtime/vdom/update-element.ts
1800
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1801
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
1802
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
1803
- const newVnodeAttrs = newVnode.$attrs$ || {};
1804
- {
1805
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
1806
- if (!(memberName in newVnodeAttrs)) {
1807
- setAccessor(
1808
- elm,
1809
- memberName,
1810
- oldVnodeAttrs[memberName],
1811
- void 0,
1812
- isSvgMode2,
1813
- newVnode.$flags$,
1814
- isInitialRender
1815
- );
1816
- }
1817
- }
1818
- }
1819
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
1820
- setAccessor(
1821
- elm,
1822
- memberName,
1823
- oldVnodeAttrs[memberName],
1824
- newVnodeAttrs[memberName],
1825
- isSvgMode2,
1826
- newVnode.$flags$,
1827
- isInitialRender
1828
- );
1829
- }
1830
- };
1831
- function sortedAttrNames(attrNames) {
1832
- return attrNames.includes("ref") ? (
1833
- // we need to sort these to ensure that `'ref'` is the last attr
1834
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
1835
- ) : (
1836
- // no need to sort, return the original array
1837
- attrNames
1838
- );
1839
- }
1840
- var hostTagName;
1841
- var isSvgMode = false;
1842
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1843
- const newVNode2 = newParentVNode.$children$[childIndex];
1844
- let i2 = 0;
1845
- let elm;
1846
- let childNode;
1847
- if (newVNode2.$text$ !== null) {
1848
- elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1849
- } else {
1850
- if (!isSvgMode) {
1851
- isSvgMode = newVNode2.$tag$ === "svg";
1852
- }
1853
- if (!win.document) {
1854
- throw new Error(
1855
- "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."
1856
- );
1857
- }
1858
- elm = newVNode2.$elm$ = win.document.createElementNS(
1859
- isSvgMode ? SVG_NS : HTML_NS,
1860
- newVNode2.$tag$
1861
- ) ;
1862
- if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
1863
- isSvgMode = false;
1864
- }
1865
- {
1866
- updateElement(null, newVNode2, isSvgMode);
1867
- }
1868
- if (newVNode2.$children$) {
1869
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1870
- childNode = createElm(oldParentVNode, newVNode2, i2);
1871
- if (childNode) {
1872
- elm.appendChild(childNode);
1873
- }
1874
- }
1875
- }
1876
- {
1877
- if (newVNode2.$tag$ === "svg") {
1878
- isSvgMode = false;
1879
- } else if (elm.tagName === "foreignObject") {
1880
- isSvgMode = true;
1881
- }
1882
- }
1883
- }
1884
- elm["s-hn"] = hostTagName;
1885
- return elm;
1886
- };
1887
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1888
- let containerElm = parentElm;
1889
- let childNode;
1890
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1891
- containerElm = containerElm.shadowRoot;
1892
- }
1893
- for (; startIdx <= endIdx; ++startIdx) {
1894
- if (vnodes[startIdx]) {
1895
- childNode = createElm(null, parentVNode, startIdx);
1896
- if (childNode) {
1897
- vnodes[startIdx].$elm$ = childNode;
1898
- insertBefore(containerElm, childNode, before);
1899
- }
1900
- }
1901
- }
1902
- };
1903
- var removeVnodes = (vnodes, startIdx, endIdx) => {
1904
- for (let index = startIdx; index <= endIdx; ++index) {
1905
- const vnode = vnodes[index];
1906
- if (vnode) {
1907
- const elm = vnode.$elm$;
1908
- nullifyVNodeRefs(vnode);
1909
- if (elm) {
1910
- elm.remove();
1911
- }
1912
- }
1913
- }
1914
- };
1915
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1916
- let oldStartIdx = 0;
1917
- let newStartIdx = 0;
1918
- let idxInOld = 0;
1919
- let i2 = 0;
1920
- let oldEndIdx = oldCh.length - 1;
1921
- let oldStartVnode = oldCh[0];
1922
- let oldEndVnode = oldCh[oldEndIdx];
1923
- let newEndIdx = newCh.length - 1;
1924
- let newStartVnode = newCh[0];
1925
- let newEndVnode = newCh[newEndIdx];
1926
- let node;
1927
- let elmToMove;
1928
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1929
- if (oldStartVnode == null) {
1930
- oldStartVnode = oldCh[++oldStartIdx];
1931
- } else if (oldEndVnode == null) {
1932
- oldEndVnode = oldCh[--oldEndIdx];
1933
- } else if (newStartVnode == null) {
1934
- newStartVnode = newCh[++newStartIdx];
1935
- } else if (newEndVnode == null) {
1936
- newEndVnode = newCh[--newEndIdx];
1937
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1938
- patch(oldStartVnode, newStartVnode, isInitialRender);
1939
- oldStartVnode = oldCh[++oldStartIdx];
1940
- newStartVnode = newCh[++newStartIdx];
1941
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1942
- patch(oldEndVnode, newEndVnode, isInitialRender);
1943
- oldEndVnode = oldCh[--oldEndIdx];
1944
- newEndVnode = newCh[--newEndIdx];
1945
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1946
- patch(oldStartVnode, newEndVnode, isInitialRender);
1947
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1948
- oldStartVnode = oldCh[++oldStartIdx];
1949
- newEndVnode = newCh[--newEndIdx];
1950
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1951
- patch(oldEndVnode, newStartVnode, isInitialRender);
1952
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1953
- oldEndVnode = oldCh[--oldEndIdx];
1954
- newStartVnode = newCh[++newStartIdx];
1955
- } else {
1956
- idxInOld = -1;
1957
- {
1958
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1959
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1960
- idxInOld = i2;
1961
- break;
1962
- }
1963
- }
1964
- }
1965
- if (idxInOld >= 0) {
1966
- elmToMove = oldCh[idxInOld];
1967
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1968
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
1969
- } else {
1970
- patch(elmToMove, newStartVnode, isInitialRender);
1971
- oldCh[idxInOld] = void 0;
1972
- node = elmToMove.$elm$;
1973
- }
1974
- newStartVnode = newCh[++newStartIdx];
1975
- } else {
1976
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1977
- newStartVnode = newCh[++newStartIdx];
1978
- }
1979
- if (node) {
1980
- {
1981
- insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
1982
- }
1983
- }
1984
- }
1985
- }
1986
- if (oldStartIdx > oldEndIdx) {
1987
- addVnodes(
1988
- parentElm,
1989
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1990
- newVNode2,
1991
- newCh,
1992
- newStartIdx,
1993
- newEndIdx
1994
- );
1995
- } else if (newStartIdx > newEndIdx) {
1996
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1997
- }
1998
- };
1999
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
2000
- if (leftVNode.$tag$ === rightVNode.$tag$) {
2001
- if (!isInitialRender) {
2002
- return leftVNode.$key$ === rightVNode.$key$;
2003
- }
2004
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
2005
- leftVNode.$key$ = rightVNode.$key$;
2006
- }
2007
- return true;
2008
- }
2009
- return false;
2010
- };
2011
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
2012
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
2013
- const oldChildren = oldVNode.$children$;
2014
- const newChildren = newVNode2.$children$;
2015
- const tag = newVNode2.$tag$;
2016
- const text = newVNode2.$text$;
2017
- if (text === null) {
2018
- {
2019
- isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
2020
- }
2021
- {
2022
- updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
2023
- }
2024
- if (oldChildren !== null && newChildren !== null) {
2025
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
2026
- } else if (newChildren !== null) {
2027
- if (oldVNode.$text$ !== null) {
2028
- elm.textContent = "";
2029
- }
2030
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
2031
- } else if (
2032
- // don't do this on initial render as it can cause non-hydrated content to be removed
2033
- !isInitialRender && BUILD.updatable && oldChildren !== null
2034
- ) {
2035
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
2036
- }
2037
- if (isSvgMode && tag === "svg") {
2038
- isSvgMode = false;
2039
- }
2040
- } else if (oldVNode.$text$ !== text) {
2041
- elm.data = text;
2042
- }
2043
- };
2044
- var nullifyVNodeRefs = (vNode) => {
2045
- {
2046
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
2047
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
2048
- }
2049
- };
2050
- var insertBefore = (parent, newNode, reference) => {
2051
- {
2052
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
2053
- }
2054
- };
2055
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2056
- const hostElm = hostRef.$hostElement$;
2057
- const cmpMeta = hostRef.$cmpMeta$;
2058
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
2059
- const isHostElement = isHost(renderFnResults);
2060
- const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
2061
- hostTagName = hostElm.tagName;
2062
- if (cmpMeta.$attrsToReflect$) {
2063
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
2064
- cmpMeta.$attrsToReflect$.map(
2065
- ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
2066
- );
2067
- }
2068
- if (isInitialLoad && rootVnode.$attrs$) {
2069
- for (const key of Object.keys(rootVnode.$attrs$)) {
2070
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
2071
- rootVnode.$attrs$[key] = hostElm[key];
2072
- }
2073
- }
2074
- }
2075
- rootVnode.$tag$ = null;
2076
- rootVnode.$flags$ |= 4 /* isHost */;
2077
- hostRef.$vnode$ = rootVnode;
2078
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
2079
- patch(oldVNode, rootVnode, isInitialLoad);
2080
- };
2081
-
2082
- // src/runtime/update-component.ts
2083
- var attachToAncestor = (hostRef, ancestorComponent) => {
2084
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
2085
- const index = ancestorComponent["s-p"].push(
2086
- new Promise(
2087
- (r) => hostRef.$onRenderResolve$ = () => {
2088
- ancestorComponent["s-p"].splice(index - 1, 1);
2089
- r();
2090
- }
2091
- )
2092
- );
2093
- }
2094
- };
2095
- var scheduleUpdate = (hostRef, isInitialLoad) => {
2096
- {
2097
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
2098
- }
2099
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
2100
- hostRef.$flags$ |= 512 /* needsRerender */;
2101
- return;
2102
- }
2103
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
2104
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
2105
- return writeTask(dispatch) ;
2106
- };
2107
- var dispatchHooks = (hostRef, isInitialLoad) => {
2108
- const elm = hostRef.$hostElement$;
2109
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
2110
- const instance = elm;
2111
- if (!instance) {
2112
- throw new Error(
2113
- `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
2114
- );
2115
- }
2116
- let maybePromise;
2117
- if (isInitialLoad) {
2118
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
2119
- } else {
2120
- maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
2121
- }
2122
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
2123
- endSchedule();
2124
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
2125
- };
2126
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
2127
- console.error(err2);
2128
- fn();
2129
- }) : fn();
2130
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
2131
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
2132
- var _a;
2133
- const elm = hostRef.$hostElement$;
2134
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
2135
- const rc = elm["s-rc"];
2136
- if (isInitialLoad) {
2137
- attachStyles(hostRef);
2138
- }
2139
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
2140
- {
2141
- callRender(hostRef, instance, elm, isInitialLoad);
2142
- }
2143
- if (rc) {
2144
- rc.map((cb) => cb());
2145
- elm["s-rc"] = void 0;
2146
- }
2147
- endRender();
2148
- endUpdate();
2149
- {
2150
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
2151
- const postUpdate = () => postUpdateComponent(hostRef);
2152
- if (childrenPromises.length === 0) {
2153
- postUpdate();
2154
- } else {
2155
- Promise.all(childrenPromises).then(postUpdate);
2156
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
2157
- childrenPromises.length = 0;
2158
- }
2159
- }
2160
- };
2161
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
2162
- try {
2163
- instance = instance.render() ;
2164
- {
2165
- hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
2166
- }
2167
- {
2168
- hostRef.$flags$ |= 2 /* hasRendered */;
2169
- }
2170
- {
2171
- {
2172
- {
2173
- renderVdom(hostRef, instance, isInitialLoad);
2174
- }
2175
- }
2176
- }
2177
- } catch (e) {
2178
- consoleError(e, hostRef.$hostElement$);
2179
- }
2180
- return null;
2181
- };
2182
- var postUpdateComponent = (hostRef) => {
2183
- const tagName = hostRef.$cmpMeta$.$tagName$;
2184
- const elm = hostRef.$hostElement$;
2185
- const endPostUpdate = createTime("postUpdate", tagName);
2186
- const instance = elm;
2187
- const ancestorComponent = hostRef.$ancestorComponent$;
2188
- safeCall(instance, "componentDidRender", void 0, elm);
2189
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
2190
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
2191
- {
2192
- addHydratedFlag(elm);
2193
- }
2194
- safeCall(instance, "componentDidLoad", void 0, elm);
2195
- endPostUpdate();
2196
- {
2197
- hostRef.$onReadyResolve$(elm);
2198
- if (!ancestorComponent) {
2199
- appDidLoad();
2200
- }
2201
- }
2202
- } else {
2203
- safeCall(instance, "componentDidUpdate", void 0, elm);
2204
- endPostUpdate();
2205
- }
2206
- {
2207
- if (hostRef.$onRenderResolve$) {
2208
- hostRef.$onRenderResolve$();
2209
- hostRef.$onRenderResolve$ = void 0;
2210
- }
2211
- if (hostRef.$flags$ & 512 /* needsRerender */) {
2212
- nextTick(() => scheduleUpdate(hostRef, false));
2213
- }
2214
- hostRef.$flags$ &= -517;
2215
- }
2216
- };
2217
- var appDidLoad = (who) => {
2218
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2219
- };
2220
- var safeCall = (instance, method, arg, elm) => {
2221
- if (instance && instance[method]) {
2222
- try {
2223
- return instance[method](arg);
2224
- } catch (e) {
2225
- consoleError(e, elm);
2226
- }
2227
- }
2228
- return void 0;
2229
- };
2230
- var addHydratedFlag = (elm) => {
2231
- var _a;
2232
- return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
2233
- };
2234
-
2235
- // src/runtime/set-value.ts
2236
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
2237
- var setValue = (ref, propName, newVal, cmpMeta) => {
2238
- const hostRef = getHostRef(ref);
2239
- const elm = ref;
2240
- const oldVal = hostRef.$instanceValues$.get(propName);
2241
- const flags = hostRef.$flags$;
2242
- const instance = elm;
2243
- newVal = parsePropertyValue(
2244
- newVal,
2245
- cmpMeta.$members$[propName][0],
2246
- !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2247
- );
2248
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
2249
- const didValueChange = newVal !== oldVal && !areBothNaN;
2250
- if (didValueChange) {
2251
- hostRef.$instanceValues$.set(propName, newVal);
2252
- {
2253
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
2254
- const watchMethods = cmpMeta.$watchers$[propName];
2255
- if (watchMethods) {
2256
- watchMethods.map((watchMethodName) => {
2257
- try {
2258
- instance[watchMethodName](newVal, oldVal, propName);
2259
- } catch (e) {
2260
- consoleError(e, elm);
2261
- }
2262
- });
2263
- }
2264
- }
2265
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
2266
- if (instance.componentShouldUpdate) {
2267
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
2268
- return;
2269
- }
2270
- }
2271
- scheduleUpdate(hostRef, false);
2272
- }
2273
- }
2274
- }
2275
- };
2276
-
2277
- // src/runtime/proxy-component.ts
2278
- var proxyComponent = (Cstr, cmpMeta, flags) => {
2279
- var _a, _b;
2280
- const prototype = Cstr.prototype;
2281
- if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
2282
- FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
2283
- const originalFormAssociatedCallback = prototype[cbName];
2284
- Object.defineProperty(prototype, cbName, {
2285
- value(...args) {
2286
- const hostRef = getHostRef(this);
2287
- const instance = this;
2288
- if (!instance) {
2289
- hostRef.$onReadyPromise$.then((asyncInstance) => {
2290
- const cb = asyncInstance[cbName];
2291
- typeof cb === "function" && cb.call(asyncInstance, ...args);
2292
- });
2293
- } else {
2294
- const cb = originalFormAssociatedCallback;
2295
- typeof cb === "function" && cb.call(instance, ...args);
2296
- }
2297
- }
2298
- });
2299
- });
2300
- }
2301
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
2302
- if (Cstr.watchers && !cmpMeta.$watchers$) {
2303
- cmpMeta.$watchers$ = Cstr.watchers;
2304
- }
2305
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2306
- members.map(([memberName, [memberFlags]]) => {
2307
- if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
2308
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
2309
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
2310
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
2311
- {
2312
- Object.defineProperty(prototype, memberName, {
2313
- get() {
2314
- {
2315
- return origGetter ? origGetter.apply(this) : getValue(this, memberName);
2316
- }
2317
- },
2318
- configurable: true,
2319
- enumerable: true
2320
- });
2321
- }
2322
- Object.defineProperty(prototype, memberName, {
2323
- set(newValue) {
2324
- const ref = getHostRef(this);
2325
- if (origSetter) {
2326
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2327
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
2328
- newValue = ref.$instanceValues$.get(memberName);
2329
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
2330
- ref.$instanceValues$.set(memberName, currentValue);
2331
- }
2332
- origSetter.apply(this, [
2333
- parsePropertyValue(
2334
- newValue,
2335
- memberFlags,
2336
- !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2337
- )
2338
- ]);
2339
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2340
- setValue(this, memberName, newValue, cmpMeta);
2341
- return;
2342
- }
2343
- {
2344
- setValue(this, memberName, newValue, cmpMeta);
2345
- return;
2346
- }
2347
- }
2348
- });
2349
- }
2350
- });
2351
- {
2352
- const attrNameToPropName = /* @__PURE__ */ new Map();
2353
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
2354
- plt.jmp(() => {
2355
- var _a2;
2356
- const propName = attrNameToPropName.get(attrName);
2357
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) ; else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2358
- this[propName] == newValue) {
2359
- return;
2360
- } else if (propName == null) {
2361
- const hostRef = getHostRef(this);
2362
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
2363
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
2364
- const elm = this;
2365
- const instance = elm;
2366
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2367
- entry == null ? void 0 : entry.forEach((callbackName) => {
2368
- if (instance[callbackName] != null) {
2369
- instance[callbackName].call(instance, newValue, oldValue, attrName);
2370
- }
2371
- });
2372
- }
2373
- return;
2374
- }
2375
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2376
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2377
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
2378
- this[propName] = newValue;
2379
- }
2380
- });
2381
- };
2382
- Cstr.observedAttributes = Array.from(
2383
- /* @__PURE__ */ new Set([
2384
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2385
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
2386
- var _a2;
2387
- const attrName = m[1] || propName;
2388
- attrNameToPropName.set(attrName, propName);
2389
- if (m[0] & 512 /* ReflectAttr */) {
2390
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2391
- }
2392
- return attrName;
2393
- })
2394
- ])
2395
- );
2396
- }
2397
- }
2398
- return Cstr;
2399
- };
2400
-
2401
- // src/runtime/initialize-component.ts
2402
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2403
- let Cstr;
2404
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2405
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2406
- {
2407
- Cstr = elm.constructor;
2408
- const cmpTag = elm.localName;
2409
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2410
- }
2411
- if (Cstr && Cstr.style) {
2412
- let style;
2413
- if (typeof Cstr.style === "string") {
2414
- style = Cstr.style;
2415
- }
2416
- const scopeId2 = getScopeId(cmpMeta);
2417
- if (!styles.has(scopeId2)) {
2418
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2419
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2420
- endRegisterStyles();
2421
- }
2422
- }
2423
- }
2424
- const ancestorComponent = hostRef.$ancestorComponent$;
2425
- const schedule = () => scheduleUpdate(hostRef, true);
2426
- if (ancestorComponent && ancestorComponent["s-rc"]) {
2427
- ancestorComponent["s-rc"].push(schedule);
2428
- } else {
2429
- schedule();
2430
- }
2431
- };
2432
- var fireConnectedCallback = (instance, elm) => {
2433
- };
2434
-
2435
- // src/runtime/connected-callback.ts
2436
- var connectedCallback = (elm) => {
2437
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2438
- const hostRef = getHostRef(elm);
2439
- const cmpMeta = hostRef.$cmpMeta$;
2440
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2441
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2442
- hostRef.$flags$ |= 1 /* hasConnected */;
2443
- let hostId;
2444
- {
2445
- hostId = elm.getAttribute(HYDRATE_ID);
2446
- if (hostId) {
2447
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2448
- const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2449
- elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2450
- }
2451
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2452
- }
2453
- }
2454
- {
2455
- let ancestorComponent = elm;
2456
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2457
- if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2458
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2459
- break;
2460
- }
2461
- }
2462
- }
2463
- if (cmpMeta.$members$) {
2464
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2465
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
2466
- const value = elm[memberName];
2467
- delete elm[memberName];
2468
- elm[memberName] = value;
2469
- }
2470
- });
2471
- }
2472
- if (BUILD.initializeNextTick) {
2473
- nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
2474
- } else {
2475
- initializeComponent(elm, hostRef, cmpMeta);
2476
- }
2477
- } else {
2478
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2479
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2480
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
2481
- }
2482
- }
2483
- endConnected();
2484
- }
2485
- };
2486
- var disconnectedCallback = async (elm) => {
2487
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2488
- const hostRef = getHostRef(elm);
2489
- {
2490
- if (hostRef.$rmListeners$) {
2491
- hostRef.$rmListeners$.map((rmListener) => rmListener());
2492
- hostRef.$rmListeners$ = void 0;
2493
- }
2494
- }
2495
- }
2496
- if (rootAppliedStyles.has(elm)) {
2497
- rootAppliedStyles.delete(elm);
2498
- }
2499
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2500
- rootAppliedStyles.delete(elm.shadowRoot);
2501
- }
2502
- };
2503
- var proxyCustomElement = (Cstr, compactMeta) => {
2504
- const cmpMeta = {
2505
- $flags$: compactMeta[0],
2506
- $tagName$: compactMeta[1]
2507
- };
2508
- {
2509
- cmpMeta.$members$ = compactMeta[2];
2510
- }
2511
- {
2512
- cmpMeta.$listeners$ = compactMeta[3];
2513
- }
2514
- {
2515
- cmpMeta.$watchers$ = Cstr.$watchers$;
2516
- }
2517
- {
2518
- cmpMeta.$attrsToReflect$ = [];
2519
- }
2520
- {
2521
- hydrateScopedToShadow();
2522
- }
2523
- const originalConnectedCallback = Cstr.prototype.connectedCallback;
2524
- const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
2525
- Object.assign(Cstr.prototype, {
2526
- __hasHostListenerAttached: false,
2527
- __registerHost() {
2528
- registerHost(this, cmpMeta);
2529
- },
2530
- connectedCallback() {
2531
- if (!this.__hasHostListenerAttached) {
2532
- const hostRef = getHostRef(this);
2533
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2534
- this.__hasHostListenerAttached = true;
2535
- }
2536
- connectedCallback(this);
2537
- if (originalConnectedCallback) {
2538
- originalConnectedCallback.call(this);
2539
- }
2540
- },
2541
- disconnectedCallback() {
2542
- disconnectedCallback(this);
2543
- if (originalDisconnectedCallback) {
2544
- originalDisconnectedCallback.call(this);
2545
- }
2546
- },
2547
- __attachShadow() {
2548
- {
2549
- if (!this.shadowRoot) {
2550
- createShadowRoot.call(this, cmpMeta);
2551
- } else {
2552
- if (this.shadowRoot.mode !== "open") {
2553
- throw new Error(
2554
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
2555
- );
2556
- }
2557
- }
2558
- }
2559
- }
2560
- });
2561
- Cstr.is = cmpMeta.$tagName$;
2562
- return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
2563
- };
2564
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2565
- if (listeners && win.document) {
2566
- listeners.map(([flags, name, method]) => {
2567
- const target = getHostListenerTarget(win.document, elm, flags) ;
2568
- const handler = hostListenerProxy(hostRef, method);
2569
- const opts = hostListenerOpts(flags);
2570
- plt.ael(target, name, handler, opts);
2571
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2572
- });
2573
- }
2574
- };
2575
- var hostListenerProxy = (hostRef, methodName) => (ev) => {
2576
- try {
2577
- {
2578
- hostRef.$hostElement$[methodName](ev);
2579
- }
2580
- } catch (e) {
2581
- consoleError(e, hostRef.$hostElement$);
2582
- }
2583
- };
2584
- var getHostListenerTarget = (doc, elm, flags) => {
2585
- if (flags & 8 /* TargetWindow */) {
2586
- return win;
2587
- }
2588
- return elm;
2589
- };
2590
- var hostListenerOpts = (flags) => supportsListenerOptions ? {
2591
- passive: (flags & 1 /* Passive */) !== 0,
2592
- capture: (flags & 2 /* Capture */) !== 0
2593
- } : (flags & 2 /* Capture */) !== 0;
2594
-
2595
- // src/runtime/nonce.ts
2596
- var setNonce = (nonce) => plt.$nonce$ = nonce;
2597
-
2598
- // src/runtime/platform-options.ts
2599
- var setPlatformOptions = (opts) => Object.assign(plt, opts);
2600
-
2601
- // src/runtime/render.ts
2602
- function render(vnode, container) {
2603
- const cmpMeta = {
2604
- $flags$: 0,
2605
- $tagName$: container.tagName
2606
- };
2607
- const ref = {
2608
- $cmpMeta$: cmpMeta,
2609
- $hostElement$: container
2610
- };
2611
- renderVdom(ref, vnode);
2612
- }
2613
-
2614
- export { CuraThemeModule as C, H, Static as S, getAssetPath as a, setNonce as b, setPlatformOptions as c, Host as d, createEvent as e, globalScripts as g, h, proxyCustomElement as p, render as r, setAssetPath as s };
2615
- //# sourceMappingURL=p-D1cPOZpG.js.map
2616
-
2617
- //# sourceMappingURL=p-D1cPOZpG.js.map