@dropi/ui 0.1.41 → 0.1.42

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 (605) hide show
  1. package/assets/icons/symbol/svg/sprite.css.svg +1 -1
  2. package/dist/cjs/dropi-accordion-item.cjs.entry.js +2 -2
  3. package/dist/cjs/dropi-accordion.cjs.entry.js +2 -2
  4. package/dist/cjs/dropi-alert-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/dropi-alert-modal.cjs.entry.js +20 -16
  6. package/dist/cjs/dropi-alert.cjs.entry.js +12 -12
  7. package/dist/cjs/dropi-avatars.cjs.entry.js +1 -1
  8. package/dist/cjs/dropi-badge-legacy.cjs.entry.js +2 -2
  9. package/dist/cjs/dropi-badge.cjs.entry.js +1 -1
  10. package/dist/cjs/dropi-banner-external.cjs.entry.js +3 -3
  11. package/dist/cjs/dropi-breadcrumb.cjs.entry.js +2 -2
  12. package/dist/cjs/dropi-button.cjs.entry.js +7 -7
  13. package/dist/cjs/dropi-card-checkbox.cjs.entry.js +6 -6
  14. package/dist/cjs/dropi-card-product.cjs.entry.js +12 -12
  15. package/dist/cjs/dropi-card-section.cjs.entry.js +9 -9
  16. package/dist/cjs/dropi-carousel.cjs.entry.js +8 -8
  17. package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +9 -9
  18. package/dist/cjs/dropi-checkbox.cjs.entry.js +6 -6
  19. package/dist/cjs/dropi-chips.cjs.entry.js +4 -4
  20. package/dist/cjs/dropi-city-selector.cjs.entry.js +2 -2
  21. package/dist/cjs/dropi-color-picker.cjs.entry.js +4 -4
  22. package/dist/cjs/dropi-country-flags.cjs.entry.js +2 -2
  23. package/dist/cjs/dropi-country-selector.cjs.entry.js +6 -6
  24. package/dist/cjs/dropi-date-picker-range.cjs.entry.js +4 -4
  25. package/dist/cjs/dropi-date-picker.cjs.entry.js +12 -12
  26. package/dist/cjs/dropi-drawer.cjs.entry.js +4 -4
  27. package/dist/cjs/dropi-dropdown.cjs.entry.js +2 -2
  28. package/dist/cjs/dropi-empty-state.cjs.entry.js +3 -3
  29. package/dist/cjs/dropi-favorite-button.cjs.entry.js +3 -3
  30. package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +5 -5
  31. package/dist/cjs/dropi-file-upload.cjs.entry.js +3 -3
  32. package/dist/cjs/dropi-icon.cjs.entry.js +17 -3
  33. package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +5 -5
  34. package/dist/cjs/dropi-image-miniature.cjs.entry.js +3 -3
  35. package/dist/cjs/dropi-image-overlay.cjs.entry.js +2 -2
  36. package/dist/cjs/dropi-input_3.cjs.entry.js +50 -22
  37. package/dist/cjs/dropi-languages-selector.cjs.entry.js +4 -4
  38. package/dist/cjs/dropi-logo.cjs.entry.js +2 -2
  39. package/dist/cjs/dropi-lottie-loader.cjs.entry.js +1 -1
  40. package/dist/cjs/dropi-media-player.cjs.entry.js +3 -3
  41. package/dist/cjs/dropi-modal.cjs.entry.js +37 -32
  42. package/dist/cjs/dropi-navbar.cjs.entry.js +7 -7
  43. package/dist/cjs/dropi-otp-send-code.cjs.entry.js +34 -19
  44. package/dist/cjs/dropi-phone-input.cjs.entry.js +14 -14
  45. package/dist/cjs/dropi-progress-bar.cjs.entry.js +43 -0
  46. package/dist/cjs/dropi-radio-button.cjs.entry.js +5 -5
  47. package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +9 -9
  48. package/dist/cjs/dropi-read-more.cjs.entry.js +2 -2
  49. package/dist/cjs/dropi-search.cjs.entry.js +21 -21
  50. package/dist/cjs/dropi-select.cjs.entry.js +50 -22
  51. package/dist/cjs/dropi-sidebar.cjs.entry.js +6 -6
  52. package/dist/cjs/dropi-simple-stepper.cjs.entry.js +1 -1
  53. package/dist/cjs/dropi-skeleton.cjs.entry.js +1 -1
  54. package/dist/cjs/dropi-steps.cjs.entry.js +1 -1
  55. package/dist/cjs/dropi-switch.cjs.entry.js +5 -5
  56. package/dist/cjs/dropi-table.cjs.entry.js +38 -30
  57. package/dist/cjs/dropi-tabs.cjs.entry.js +5 -5
  58. package/dist/cjs/dropi-tag-type-product.cjs.entry.js +2 -2
  59. package/dist/cjs/dropi-text-area.cjs.entry.js +7 -7
  60. package/dist/cjs/dropi-time-line.cjs.entry.js +2 -2
  61. package/dist/cjs/dropi-toast.cjs.entry.js +2 -2
  62. package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +3 -3
  63. package/dist/cjs/dropi-tooltip.cjs.entry.js +2 -2
  64. package/dist/cjs/dropi-ui.cjs.js +2 -2
  65. package/dist/cjs/dropi-vertical-steps.cjs.entry.js +3 -3
  66. package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +2 -2
  67. package/dist/cjs/index-CEWSDq65.js +2773 -0
  68. package/dist/cjs/loader.cjs.js +2 -2
  69. package/dist/collection/assets/icons/symbol/svg/sprite.css.svg +1 -1
  70. package/dist/collection/collection-manifest.json +1 -0
  71. package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +1 -1
  72. package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
  73. package/dist/collection/components/dropi-alert/dropi-alert.js +16 -16
  74. package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +43 -19
  75. package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.js +1 -1
  76. package/dist/collection/components/dropi-button/dropi-button.css +6 -3
  77. package/dist/collection/components/dropi-button/dropi-button.js +6 -6
  78. package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +6 -6
  79. package/dist/collection/components/dropi-card-product/dropi-card-product.js +11 -11
  80. package/dist/collection/components/dropi-card-section/dropi-card-section.js +10 -10
  81. package/dist/collection/components/dropi-carousel/dropi-carousel.js +9 -9
  82. package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +6 -6
  83. package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +10 -10
  84. package/dist/collection/components/dropi-chips/dropi-chips.js +4 -4
  85. package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +2 -2
  86. package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +1 -1
  87. package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +6 -6
  88. package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +12 -12
  89. package/dist/collection/components/dropi-drawer/dropi-drawer.js +2 -2
  90. package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +1 -1
  91. package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +1 -1
  92. package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +1 -1
  93. package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +1 -1
  94. package/dist/collection/components/dropi-icon/dropi-icon.css +2 -0
  95. package/dist/collection/components/dropi-icon/dropi-icon.js +35 -1
  96. package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +4 -4
  97. package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
  98. package/dist/collection/components/dropi-input/dropi-input.js +18 -18
  99. package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +4 -4
  100. package/dist/collection/components/dropi-logo/dropi-logo.js +1 -1
  101. package/dist/collection/components/dropi-modal/dropi-modal.css +12 -6
  102. package/dist/collection/components/dropi-modal/dropi-modal.js +47 -42
  103. package/dist/collection/components/dropi-navbar/dropi-navbar.js +2 -2
  104. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +54 -18
  105. package/dist/collection/components/dropi-paginator/dropi-paginator.js +6 -6
  106. package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +17 -17
  107. package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.css +35 -0
  108. package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.js +168 -0
  109. package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +5 -5
  110. package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +10 -10
  111. package/dist/collection/components/dropi-read-more/dropi-read-more.js +1 -1
  112. package/dist/collection/components/dropi-search/dropi-search.js +26 -26
  113. package/dist/collection/components/dropi-select/dropi-select.css +4 -0
  114. package/dist/collection/components/dropi-select/dropi-select.js +85 -25
  115. package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +6 -6
  116. package/dist/collection/components/dropi-switch/dropi-switch.js +5 -5
  117. package/dist/collection/components/dropi-table/dropi-table.js +35 -27
  118. package/dist/collection/components/dropi-tabs/dropi-tabs.js +5 -5
  119. package/dist/collection/components/dropi-tag/dropi-tag.css +16 -7
  120. package/dist/collection/components/dropi-tag/dropi-tag.js +55 -1
  121. package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +1 -1
  122. package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
  123. package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
  124. package/dist/collection/components/dropi-toast/dropi-toast.js +1 -1
  125. package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
  126. package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +2 -2
  127. package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +1 -1
  128. package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +1 -1
  129. package/dist/components/dropi-accordion-item.js +1 -1
  130. package/dist/components/dropi-accordion.js +1 -1
  131. package/dist/components/dropi-alert-modal.js +1 -1
  132. package/dist/components/dropi-alert.js +1 -1
  133. package/dist/components/dropi-badge-legacy.js +1 -1
  134. package/dist/components/dropi-banner-external.js +1 -1
  135. package/dist/components/dropi-breadcrumb.js +1 -1
  136. package/dist/components/dropi-button.js +1 -1
  137. package/dist/components/dropi-card-checkbox.js +1 -1
  138. package/dist/components/dropi-card-product.js +1 -1
  139. package/dist/components/dropi-card-section.js +1 -1
  140. package/dist/components/dropi-carousel.js +1 -1
  141. package/dist/components/dropi-checkbox-selection-list.js +1 -1
  142. package/dist/components/dropi-checkbox.js +1 -1
  143. package/dist/components/dropi-chips.js +1 -1
  144. package/dist/components/dropi-city-selector.js +1 -1
  145. package/dist/components/dropi-color-picker.js +1 -1
  146. package/dist/components/dropi-country-flags.js +1 -1
  147. package/dist/components/dropi-country-selector.js +1 -1
  148. package/dist/components/dropi-date-picker-range.js +1 -1
  149. package/dist/components/dropi-date-picker.js +1 -1
  150. package/dist/components/dropi-drawer.js +1 -1
  151. package/dist/components/dropi-dropdown.js +1 -1
  152. package/dist/components/dropi-empty-state.js +1 -1
  153. package/dist/components/dropi-favorite-button.js +1 -1
  154. package/dist/components/dropi-file-upload-progress-bar.js +1 -1
  155. package/dist/components/dropi-file-upload.js +1 -1
  156. package/dist/components/dropi-icon.js +1 -1
  157. package/dist/components/dropi-ilustration-icon.js +1 -1
  158. package/dist/components/dropi-image-miniature.js +1 -1
  159. package/dist/components/dropi-image-overlay.js +1 -1
  160. package/dist/components/dropi-input.js +1 -1
  161. package/dist/components/dropi-languages-selector.js +1 -1
  162. package/dist/components/dropi-logo.js +1 -1
  163. package/dist/components/dropi-media-player.js +1 -1
  164. package/dist/components/dropi-modal.js +1 -1
  165. package/dist/components/dropi-navbar.js +1 -1
  166. package/dist/components/dropi-otp-send-code.js +1 -1
  167. package/dist/components/dropi-paginator.js +1 -1
  168. package/dist/components/dropi-phone-input.js +1 -1
  169. package/dist/components/dropi-progress-bar.d.ts +11 -0
  170. package/dist/components/dropi-progress-bar.js +1 -0
  171. package/dist/components/dropi-radio-button.js +1 -1
  172. package/dist/components/dropi-radio-selection-list.js +1 -1
  173. package/dist/components/dropi-read-more.js +1 -1
  174. package/dist/components/dropi-search.js +1 -1
  175. package/dist/components/dropi-select.js +1 -1
  176. package/dist/components/dropi-sidebar.js +1 -1
  177. package/dist/components/dropi-steps.js +1 -1
  178. package/dist/components/dropi-switch.js +1 -1
  179. package/dist/components/dropi-table.js +1 -1
  180. package/dist/components/dropi-tabs.js +1 -1
  181. package/dist/components/dropi-tag-type-product.js +1 -1
  182. package/dist/components/dropi-tag.js +1 -1
  183. package/dist/components/dropi-text-area.js +1 -1
  184. package/dist/components/dropi-time-line.js +1 -1
  185. package/dist/components/dropi-toast.js +1 -1
  186. package/dist/components/dropi-tooltip-v2.js +1 -1
  187. package/dist/components/dropi-tooltip.js +1 -1
  188. package/dist/components/dropi-vertical-steps.js +1 -1
  189. package/dist/components/dropi-youtube-lazy-video.js +1 -1
  190. package/dist/components/index.js +1 -1
  191. package/dist/components/p-1YjHPRto.js +1 -0
  192. package/dist/components/p-9CkX3ALN.js +1 -0
  193. package/dist/components/p-B9-h_ikq.js +1 -0
  194. package/dist/components/p-B9rJd-Rf.js +1 -0
  195. package/dist/components/p-BGb7xtJN.js +1 -0
  196. package/dist/components/p-BHV6BYSS.js +1 -0
  197. package/dist/components/p-BSB5Ar-y.js +1 -0
  198. package/dist/components/p-BSHROiHb.js +1 -0
  199. package/dist/components/p-BT99axEq.js +1 -0
  200. package/dist/components/p-BVgUVZyu.js +1 -0
  201. package/dist/components/p-BhRjfHZ3.js +1 -0
  202. package/dist/components/p-Bimspdte.js +1 -0
  203. package/dist/components/p-BmuWhHN-.js +1 -0
  204. package/dist/components/p-BqJ52YOH.js +1 -0
  205. package/dist/components/p-BrR1YjVi.js +1 -0
  206. package/dist/components/p-BrnGRyf0.js +1 -0
  207. package/dist/components/p-BtkDdEAq.js +1 -0
  208. package/dist/components/p-BvIwy9Yl.js +1 -0
  209. package/dist/components/p-BzCPv3ND.js +1 -0
  210. package/dist/components/p-C44-ijf2.js +1 -0
  211. package/dist/components/p-CHb992Wr.js +1 -0
  212. package/dist/components/p-CJ4s6SQT.js +1 -0
  213. package/dist/components/p-CKflT57p.js +1 -0
  214. package/dist/components/p-CWT7wT9m.js +1 -0
  215. package/dist/components/p-CWWFRdg7.js +1 -0
  216. package/dist/components/p-CWwDNt3V.js +1 -0
  217. package/dist/components/p-CXUiN3Rj.js +1 -0
  218. package/dist/components/p-C_zOkGR5.js +1 -0
  219. package/dist/components/p-Cujt3jky.js +1 -0
  220. package/dist/components/p-D5UeShUa.js +1 -0
  221. package/dist/components/p-D7GP-lmt.js +1 -0
  222. package/dist/components/p-DFNI0UID.js +1 -0
  223. package/dist/components/p-DG5fe-Ke.js +1 -0
  224. package/dist/components/p-DKWuIsc_.js +1 -0
  225. package/dist/components/p-DLyzE3Kh.js +1 -0
  226. package/dist/components/p-DN_IcU8H.js +1 -0
  227. package/dist/components/p-DON3zW51.js +1 -0
  228. package/dist/components/p-DQzskhll.js +1 -0
  229. package/dist/components/p-DYAsdhfM.js +1 -0
  230. package/dist/components/p-DYYToiO9.js +1 -0
  231. package/dist/components/p-DehWQyi5.js +1 -0
  232. package/dist/components/p-DfSe-tBr.js +1 -0
  233. package/dist/components/p-Dgeh9Yg8.js +1 -0
  234. package/dist/components/p-DlaiuH5K.js +1 -0
  235. package/dist/components/p-DvaFep4Y.js +1 -0
  236. package/dist/components/p-ETg0qC-7.js +1 -0
  237. package/dist/components/p-HCtk4_Dq.js +1 -0
  238. package/dist/components/p-QezfyBk4.js +1 -0
  239. package/dist/components/p-RD09_3LO.js +1 -0
  240. package/dist/components/p-RQjw5hdz.js +1 -0
  241. package/dist/components/p-dbZuh0Uq.js +1 -0
  242. package/dist/components/p-emzVHCws.js +1 -0
  243. package/dist/components/p-im7kgtnS.js +1 -0
  244. package/dist/components/p-kC6NU5nP.js +1 -0
  245. package/dist/components/p-lX2uCKEi.js +1 -0
  246. package/dist/components/p-ndQSfLKF.js +1 -0
  247. package/dist/components/p-plWZwD4h.js +1 -0
  248. package/dist/components/p-t0lkpFmw.js +1 -0
  249. package/dist/components/p-ujToMKti.js +1 -0
  250. package/dist/dropi-ui/dropi-accordion-item.entry.js +1 -1
  251. package/dist/dropi-ui/dropi-accordion.entry.js +1 -1
  252. package/dist/dropi-ui/dropi-alert-modal.entry.js +19 -15
  253. package/dist/dropi-ui/dropi-alert-modal.entry.js.map +1 -1
  254. package/dist/dropi-ui/dropi-alert.entry.js +11 -11
  255. package/dist/dropi-ui/dropi-alert.entry.js.map +1 -1
  256. package/dist/dropi-ui/dropi-badge-legacy.entry.js +1 -1
  257. package/dist/dropi-ui/dropi-button.entry.js +6 -6
  258. package/dist/dropi-ui/dropi-button.entry.js.map +1 -1
  259. package/dist/dropi-ui/dropi-card-checkbox.entry.js +5 -5
  260. package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +1 -1
  261. package/dist/dropi-ui/dropi-card-product.entry.js +9 -9
  262. package/dist/dropi-ui/dropi-card-product.entry.js.map +1 -1
  263. package/dist/dropi-ui/dropi-card-section.entry.js +8 -8
  264. package/dist/dropi-ui/dropi-card-section.entry.js.map +1 -1
  265. package/dist/dropi-ui/dropi-carousel.entry.js +7 -7
  266. package/dist/dropi-ui/dropi-carousel.entry.js.map +1 -1
  267. package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js +8 -8
  268. package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +1 -1
  269. package/dist/dropi-ui/dropi-checkbox.entry.js +5 -5
  270. package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -1
  271. package/dist/dropi-ui/dropi-chips.entry.js +3 -3
  272. package/dist/dropi-ui/dropi-chips.entry.js.map +1 -1
  273. package/dist/dropi-ui/dropi-color-picker.entry.js +2 -2
  274. package/dist/dropi-ui/dropi-country-flags.entry.js +1 -1
  275. package/dist/dropi-ui/dropi-country-selector.entry.js +5 -5
  276. package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -1
  277. package/dist/dropi-ui/dropi-date-picker.entry.js +10 -10
  278. package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -1
  279. package/dist/dropi-ui/dropi-drawer.entry.js +2 -2
  280. package/dist/dropi-ui/dropi-empty-state.entry.js +1 -1
  281. package/dist/dropi-ui/dropi-favorite-button.entry.js +1 -1
  282. package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js +1 -1
  283. package/dist/dropi-ui/dropi-file-upload.entry.js +1 -1
  284. package/dist/dropi-ui/dropi-file-upload.entry.js.map +1 -1
  285. package/dist/dropi-ui/dropi-icon.entry.js +16 -2
  286. package/dist/dropi-ui/dropi-icon.entry.js.map +1 -1
  287. package/dist/dropi-ui/dropi-ilustration-icon.entry.js +4 -4
  288. package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +1 -1
  289. package/dist/dropi-ui/dropi-image-miniature.entry.js +1 -1
  290. package/dist/dropi-ui/dropi-input.entry.js +14 -14
  291. package/dist/dropi-ui/dropi-input.entry.js.map +1 -1
  292. package/dist/dropi-ui/dropi-languages-selector.entry.js +3 -3
  293. package/dist/dropi-ui/dropi-languages-selector.entry.js.map +1 -1
  294. package/dist/dropi-ui/dropi-logo.entry.js +1 -1
  295. package/dist/dropi-ui/dropi-modal.entry.js +36 -31
  296. package/dist/dropi-ui/dropi-modal.entry.js.map +1 -1
  297. package/dist/dropi-ui/dropi-navbar.entry.js +2 -2
  298. package/dist/dropi-ui/dropi-otp-send-code.entry.js +30 -15
  299. package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -1
  300. package/dist/dropi-ui/dropi-paginator.entry.js +5 -5
  301. package/dist/dropi-ui/dropi-paginator.entry.js.map +1 -1
  302. package/dist/dropi-ui/dropi-phone-input.entry.js +13 -13
  303. package/dist/dropi-ui/dropi-phone-input.entry.js.map +1 -1
  304. package/dist/dropi-ui/dropi-progress-bar.entry.js +44 -0
  305. package/dist/dropi-ui/dropi-progress-bar.entry.js.map +1 -0
  306. package/dist/dropi-ui/dropi-radio-button.entry.js +4 -4
  307. package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -1
  308. package/dist/dropi-ui/dropi-radio-selection-list.entry.js +8 -8
  309. package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +1 -1
  310. package/dist/dropi-ui/dropi-read-more.entry.js +1 -1
  311. package/dist/dropi-ui/dropi-search.entry.js +20 -20
  312. package/dist/dropi-ui/dropi-search.entry.js.map +1 -1
  313. package/dist/dropi-ui/dropi-select.entry.js +49 -21
  314. package/dist/dropi-ui/dropi-select.entry.js.map +1 -1
  315. package/dist/dropi-ui/dropi-sidebar.entry.js +5 -5
  316. package/dist/dropi-ui/dropi-sidebar.entry.js.map +1 -1
  317. package/dist/dropi-ui/dropi-switch.entry.js +4 -4
  318. package/dist/dropi-ui/dropi-switch.entry.js.map +1 -1
  319. package/dist/dropi-ui/dropi-table.entry.js +29 -21
  320. package/dist/dropi-ui/dropi-table.entry.js.map +1 -1
  321. package/dist/dropi-ui/dropi-tabs.entry.js +4 -4
  322. package/dist/dropi-ui/dropi-tabs.entry.js.map +1 -1
  323. package/dist/dropi-ui/dropi-tag-type-product.entry.js +1 -1
  324. package/dist/dropi-ui/dropi-tag.entry.js +30 -2
  325. package/dist/dropi-ui/dropi-tag.entry.js.map +1 -1
  326. package/dist/dropi-ui/dropi-text-area.entry.js +2 -2
  327. package/dist/dropi-ui/dropi-time-line.entry.js +1 -1
  328. package/dist/dropi-ui/dropi-toast.entry.js +1 -1
  329. package/dist/dropi-ui/dropi-tooltip-v2.entry.js +2 -2
  330. package/dist/dropi-ui/dropi-tooltip.entry.js +1 -1
  331. package/dist/dropi-ui/dropi-ui.css +1 -311
  332. package/dist/dropi-ui/dropi-ui.esm.js +1 -50
  333. package/dist/dropi-ui/dropi-vertical-steps.entry.js +1 -1
  334. package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js +1 -1
  335. package/dist/dropi-ui/index.esm.js +0 -4
  336. package/dist/dropi-ui/p-019c2c37.entry.js +1 -0
  337. package/dist/dropi-ui/p-01c57627.entry.js +1 -0
  338. package/dist/dropi-ui/p-03515548.entry.js +1 -0
  339. package/dist/dropi-ui/p-0366349e.entry.js +1 -0
  340. package/dist/dropi-ui/p-06bdd006.entry.js +1 -0
  341. package/dist/dropi-ui/p-086a6f5f.entry.js +1 -0
  342. package/dist/dropi-ui/p-088616e6.entry.js +1 -0
  343. package/dist/dropi-ui/p-08bc8fb2.entry.js +1 -0
  344. package/dist/dropi-ui/p-0946a1f7.entry.js +1 -0
  345. package/dist/dropi-ui/p-09aa9a3c.entry.js +1 -0
  346. package/dist/dropi-ui/p-0a76c15c.entry.js +1 -0
  347. package/dist/dropi-ui/p-0d188f2c.entry.js +1 -0
  348. package/dist/dropi-ui/p-0e026afe.entry.js +1 -0
  349. package/dist/dropi-ui/p-0ef73e45.entry.js +1 -0
  350. package/dist/dropi-ui/p-0f1b13e5.entry.js +1 -0
  351. package/dist/dropi-ui/p-1107c210.entry.js +1 -0
  352. package/dist/dropi-ui/p-13a6dd72.entry.js +1 -0
  353. package/dist/dropi-ui/p-1558c22f.entry.js +1 -0
  354. package/dist/dropi-ui/p-16674c7c.entry.js +1 -0
  355. package/dist/dropi-ui/p-17c53e19.entry.js +1 -0
  356. package/dist/dropi-ui/p-1ce00757.entry.js +1 -0
  357. package/dist/dropi-ui/p-229dddb0.entry.js +1 -0
  358. package/dist/dropi-ui/p-278281d2.entry.js +1 -0
  359. package/dist/dropi-ui/p-28f960a1.entry.js +1 -0
  360. package/dist/dropi-ui/p-2d356767.entry.js +1 -0
  361. package/dist/dropi-ui/p-2f9072e7.entry.js +1 -0
  362. package/dist/dropi-ui/p-30377b7e.entry.js +1 -0
  363. package/dist/dropi-ui/p-342eaf9e.entry.js +1 -0
  364. package/dist/dropi-ui/p-3496cc01.entry.js +1 -0
  365. package/dist/dropi-ui/p-37bdbadc.entry.js +1 -0
  366. package/dist/dropi-ui/p-393867c2.entry.js +1 -0
  367. package/dist/dropi-ui/p-3a28b79c.entry.js +1 -0
  368. package/dist/dropi-ui/p-3aefce2b.entry.js +1 -0
  369. package/dist/dropi-ui/p-3f76c680.entry.js +1 -0
  370. package/dist/dropi-ui/p-488a3113.entry.js +1 -0
  371. package/dist/dropi-ui/p-497e4eff.entry.js +1 -0
  372. package/dist/dropi-ui/p-4a72e4c8.entry.js +1 -0
  373. package/dist/dropi-ui/p-4b169817.entry.js +1 -0
  374. package/dist/dropi-ui/p-4d31eab8.entry.js +1 -0
  375. package/dist/dropi-ui/p-508cfd38.entry.js +1 -0
  376. package/dist/dropi-ui/p-50e851b7.entry.js +1 -0
  377. package/dist/dropi-ui/p-5730ca4e.entry.js +1 -0
  378. package/dist/dropi-ui/p-575e1951.entry.js +1 -0
  379. package/dist/dropi-ui/p-57c3b667.entry.js +1 -0
  380. package/dist/dropi-ui/p-5c0cd221.entry.js +1 -0
  381. package/dist/dropi-ui/p-5e0da387.entry.js +1 -0
  382. package/dist/dropi-ui/p-5eb75ddf.entry.js +1 -0
  383. package/dist/dropi-ui/p-5f735166.entry.js +1 -0
  384. package/dist/dropi-ui/p-61f8905c.entry.js +1 -0
  385. package/dist/dropi-ui/p-648e5340.entry.js +1 -0
  386. package/dist/dropi-ui/p-66d7d67b.entry.js +1 -0
  387. package/dist/dropi-ui/p-673a5cfd.entry.js +1 -0
  388. package/dist/dropi-ui/p-67ba7d35.entry.js +1 -0
  389. package/dist/dropi-ui/p-692b665a.entry.js +1 -0
  390. package/dist/dropi-ui/p-69cf66c1.entry.js +1 -0
  391. package/dist/dropi-ui/p-6a148627.entry.js +1 -0
  392. package/dist/dropi-ui/p-6b925a36.entry.js +1 -0
  393. package/dist/dropi-ui/p-6cb6cfe0.entry.js +1 -0
  394. package/dist/dropi-ui/p-6dbce3d3.entry.js +1 -0
  395. package/dist/dropi-ui/p-70f75e92.entry.js +1 -0
  396. package/dist/dropi-ui/p-7140309a.entry.js +1 -0
  397. package/dist/dropi-ui/p-72ec96d0.entry.js +1 -0
  398. package/dist/dropi-ui/p-7450d195.entry.js +1 -0
  399. package/dist/dropi-ui/p-754aed1c.entry.js +1 -0
  400. package/dist/dropi-ui/p-76fa02a1.entry.js +1 -0
  401. package/dist/dropi-ui/p-770b0195.entry.js +1 -0
  402. package/dist/dropi-ui/p-7822b081.entry.js +1 -0
  403. package/dist/dropi-ui/p-78282471.entry.js +1 -0
  404. package/dist/dropi-ui/p-78aa7fb3.entry.js +1 -0
  405. package/dist/dropi-ui/p-7a25f595.entry.js +1 -0
  406. package/dist/dropi-ui/p-7c0f959f.entry.js +1 -0
  407. package/dist/dropi-ui/p-7c5ea4c5.entry.js +1 -0
  408. package/dist/dropi-ui/p-7f02ae47.entry.js +1 -0
  409. package/dist/dropi-ui/p-7f0f828d.entry.js +1 -0
  410. package/dist/dropi-ui/p-80f0f6e6.entry.js +1 -0
  411. package/dist/dropi-ui/p-813678a2.entry.js +1 -0
  412. package/dist/dropi-ui/p-819d810e.entry.js +1 -0
  413. package/dist/dropi-ui/p-84019422.entry.js +1 -0
  414. package/dist/dropi-ui/p-8b8dc399.entry.js +1 -0
  415. package/dist/dropi-ui/p-8cf27f13.entry.js +1 -0
  416. package/dist/dropi-ui/p-8d6313c0.entry.js +1 -0
  417. package/dist/dropi-ui/p-8dbc6bc8.entry.js +1 -0
  418. package/dist/dropi-ui/p-8fc3dbcb.entry.js +1 -0
  419. package/dist/dropi-ui/p-90abda79.entry.js +1 -0
  420. package/dist/dropi-ui/p-928b59e8.entry.js +1 -0
  421. package/dist/dropi-ui/p-92c9e3c5.entry.js +1 -0
  422. package/dist/dropi-ui/p-94144382.entry.js +1 -0
  423. package/dist/dropi-ui/p-94a58087.entry.js +1 -0
  424. package/dist/dropi-ui/p-9645d628.entry.js +1 -0
  425. package/dist/dropi-ui/p-96f72e50.entry.js +1 -0
  426. package/dist/dropi-ui/p-9b288982.entry.js +1 -0
  427. package/dist/dropi-ui/p-9b55c8ad.entry.js +1 -0
  428. package/dist/dropi-ui/p-9bcde3a5.entry.js +1 -0
  429. package/dist/dropi-ui/p-9e8615de.entry.js +1 -0
  430. package/dist/dropi-ui/p-a0ade2e7.entry.js +1 -0
  431. package/dist/dropi-ui/p-a2fb4CHk.js +2 -0
  432. package/dist/dropi-ui/p-a3b729fe.entry.js +1 -0
  433. package/dist/dropi-ui/p-a3d602fd.entry.js +1 -0
  434. package/dist/dropi-ui/p-a470a24a.entry.js +1 -0
  435. package/dist/dropi-ui/p-a50c8339.entry.js +1 -0
  436. package/dist/dropi-ui/p-a524ef3d.entry.js +1 -0
  437. package/dist/dropi-ui/p-a62c691f.entry.js +1 -0
  438. package/dist/dropi-ui/p-a745529a.entry.js +1 -0
  439. package/dist/dropi-ui/p-a96c54ed.entry.js +1 -0
  440. package/dist/dropi-ui/p-ab3c52a4.entry.js +1 -0
  441. package/dist/dropi-ui/p-abd327ed.entry.js +1 -0
  442. package/dist/dropi-ui/p-ac79e805.entry.js +1 -0
  443. package/dist/dropi-ui/p-ac9d2149.entry.js +1 -0
  444. package/dist/dropi-ui/p-ad73631e.entry.js +1 -0
  445. package/dist/dropi-ui/p-b20f7dde.entry.js +1 -0
  446. package/dist/dropi-ui/p-b2e7cf4f.entry.js +1 -0
  447. package/dist/dropi-ui/p-b325f7cf.entry.js +1 -0
  448. package/dist/dropi-ui/p-b63f5d03.entry.js +1 -0
  449. package/dist/dropi-ui/p-b7748488.entry.js +1 -0
  450. package/dist/dropi-ui/p-b8050ef5.entry.js +1 -0
  451. package/dist/dropi-ui/p-b99fee29.entry.js +1 -0
  452. package/dist/dropi-ui/p-ba3779a2.entry.js +1 -0
  453. package/dist/dropi-ui/p-bd0d1a29.entry.js +1 -0
  454. package/dist/dropi-ui/p-bef43920.entry.js +1 -0
  455. package/dist/dropi-ui/p-bfd43bdf.entry.js +1 -0
  456. package/dist/dropi-ui/p-c173db8c.entry.js +1 -0
  457. package/dist/dropi-ui/p-c218524f.entry.js +1 -0
  458. package/dist/dropi-ui/p-c4fbbb5a.entry.js +1 -0
  459. package/dist/dropi-ui/p-c51fcf75.entry.js +1 -0
  460. package/dist/dropi-ui/p-c662bce3.entry.js +1 -0
  461. package/dist/dropi-ui/p-c6ac1b6d.entry.js +1 -0
  462. package/dist/dropi-ui/p-ca2e462a.entry.js +1 -0
  463. package/dist/dropi-ui/p-ca90e108.entry.js +1 -0
  464. package/dist/dropi-ui/p-cb87d3c7.entry.js +1 -0
  465. package/dist/dropi-ui/p-cc954850.entry.js +1 -0
  466. package/dist/dropi-ui/p-cf7cd408.entry.js +1 -0
  467. package/dist/dropi-ui/p-d02dfc6a.entry.js +1 -0
  468. package/dist/dropi-ui/p-d11524ca.entry.js +1 -0
  469. package/dist/dropi-ui/p-d46f3328.entry.js +1 -0
  470. package/dist/dropi-ui/p-d693bbb8.entry.js +1 -0
  471. package/dist/dropi-ui/p-d813969b.entry.js +1 -0
  472. package/dist/dropi-ui/p-d899d4e1.entry.js +1 -0
  473. package/dist/dropi-ui/p-da038b5d.entry.js +1 -0
  474. package/dist/dropi-ui/p-db6af92e.entry.js +1 -0
  475. package/dist/dropi-ui/p-dc920aff.entry.js +1 -0
  476. package/dist/dropi-ui/p-e1126498.entry.js +1 -0
  477. package/dist/dropi-ui/p-e163bf7f.entry.js +1 -0
  478. package/dist/dropi-ui/p-e1b40bda.entry.js +1 -0
  479. package/dist/dropi-ui/p-e22a3b45.entry.js +1 -0
  480. package/dist/dropi-ui/p-e524fed1.entry.js +1 -0
  481. package/dist/dropi-ui/p-e53b23dd.entry.js +1 -0
  482. package/dist/dropi-ui/p-e629fdc7.entry.js +1 -0
  483. package/dist/dropi-ui/p-e97d3704.entry.js +1 -0
  484. package/dist/dropi-ui/p-e9a64ecc.entry.js +1 -0
  485. package/dist/dropi-ui/p-ea13bfee.entry.js +1 -0
  486. package/dist/dropi-ui/p-edcf5623.entry.js +1 -0
  487. package/dist/dropi-ui/p-edeacd44.entry.js +1 -0
  488. package/dist/dropi-ui/p-edef4506.entry.js +1 -0
  489. package/dist/dropi-ui/p-eec49ea3.entry.js +1 -0
  490. package/dist/dropi-ui/p-f057bd98.entry.js +1 -0
  491. package/dist/dropi-ui/p-f0893459.entry.js +1 -0
  492. package/dist/dropi-ui/p-f0ace417.entry.js +1 -0
  493. package/dist/dropi-ui/p-f23e1df7.entry.js +1 -0
  494. package/dist/dropi-ui/p-f4bd8568.entry.js +1 -0
  495. package/dist/dropi-ui/p-f7a605f8.entry.js +1 -0
  496. package/dist/dropi-ui/p-f7df0f43.entry.js +1 -0
  497. package/dist/dropi-ui/p-f80fa01d.entry.js +1 -0
  498. package/dist/dropi-ui/p-f9084a2c.entry.js +1 -0
  499. package/dist/dropi-ui/p-f9af2041.entry.js +1 -0
  500. package/dist/dropi-ui/p-f9d05b69.entry.js +1 -0
  501. package/dist/dropi-ui/p-faa59cd8.entry.js +1 -0
  502. package/dist/dropi-ui/p-fb39dfdc.entry.js +1 -0
  503. package/dist/dropi-ui/p-fcba49ca.entry.js +1 -0
  504. package/dist/dropi-ui/p-fdbdedd0.entry.js +1 -0
  505. package/dist/dropi-ui/p-fef3673d.entry.js +1 -0
  506. package/dist/esm/dropi-accordion-item.entry.js +2 -2
  507. package/dist/esm/dropi-accordion.entry.js +2 -2
  508. package/dist/esm/dropi-alert-legacy.entry.js +1 -1
  509. package/dist/esm/dropi-alert-modal.entry.js +20 -16
  510. package/dist/esm/dropi-alert.entry.js +12 -12
  511. package/dist/esm/dropi-avatars.entry.js +1 -1
  512. package/dist/esm/dropi-badge-legacy.entry.js +2 -2
  513. package/dist/esm/dropi-badge.entry.js +1 -1
  514. package/dist/esm/dropi-banner-external.entry.js +3 -3
  515. package/dist/esm/dropi-breadcrumb.entry.js +2 -2
  516. package/dist/esm/dropi-button.entry.js +7 -7
  517. package/dist/esm/dropi-card-checkbox.entry.js +6 -6
  518. package/dist/esm/dropi-card-product.entry.js +12 -12
  519. package/dist/esm/dropi-card-section.entry.js +9 -9
  520. package/dist/esm/dropi-carousel.entry.js +8 -8
  521. package/dist/esm/dropi-checkbox-selection-list.entry.js +9 -9
  522. package/dist/esm/dropi-checkbox.entry.js +6 -6
  523. package/dist/esm/dropi-chips.entry.js +4 -4
  524. package/dist/esm/dropi-city-selector.entry.js +2 -2
  525. package/dist/esm/dropi-color-picker.entry.js +4 -4
  526. package/dist/esm/dropi-country-flags.entry.js +2 -2
  527. package/dist/esm/dropi-country-selector.entry.js +6 -6
  528. package/dist/esm/dropi-date-picker-range.entry.js +4 -4
  529. package/dist/esm/dropi-date-picker.entry.js +12 -12
  530. package/dist/esm/dropi-drawer.entry.js +4 -4
  531. package/dist/esm/dropi-dropdown.entry.js +2 -2
  532. package/dist/esm/dropi-empty-state.entry.js +3 -3
  533. package/dist/esm/dropi-favorite-button.entry.js +3 -3
  534. package/dist/esm/dropi-file-upload-progress-bar.entry.js +5 -5
  535. package/dist/esm/dropi-file-upload.entry.js +3 -3
  536. package/dist/esm/dropi-icon.entry.js +17 -3
  537. package/dist/esm/dropi-ilustration-icon.entry.js +5 -5
  538. package/dist/esm/dropi-image-miniature.entry.js +3 -3
  539. package/dist/esm/dropi-image-overlay.entry.js +2 -2
  540. package/dist/esm/dropi-input_3.entry.js +50 -22
  541. package/dist/esm/dropi-languages-selector.entry.js +4 -4
  542. package/dist/esm/dropi-logo.entry.js +2 -2
  543. package/dist/esm/dropi-lottie-loader.entry.js +1 -1
  544. package/dist/esm/dropi-media-player.entry.js +3 -3
  545. package/dist/esm/dropi-modal.entry.js +37 -32
  546. package/dist/esm/dropi-navbar.entry.js +7 -7
  547. package/dist/esm/dropi-otp-send-code.entry.js +34 -19
  548. package/dist/esm/dropi-phone-input.entry.js +14 -14
  549. package/dist/esm/dropi-progress-bar.entry.js +41 -0
  550. package/dist/esm/dropi-radio-button.entry.js +5 -5
  551. package/dist/esm/dropi-radio-selection-list.entry.js +9 -9
  552. package/dist/esm/dropi-read-more.entry.js +2 -2
  553. package/dist/esm/dropi-search.entry.js +21 -21
  554. package/dist/esm/dropi-select.entry.js +50 -22
  555. package/dist/esm/dropi-sidebar.entry.js +6 -6
  556. package/dist/esm/dropi-simple-stepper.entry.js +1 -1
  557. package/dist/esm/dropi-skeleton.entry.js +1 -1
  558. package/dist/esm/dropi-steps.entry.js +1 -1
  559. package/dist/esm/dropi-switch.entry.js +5 -5
  560. package/dist/esm/dropi-table.entry.js +38 -30
  561. package/dist/esm/dropi-tabs.entry.js +5 -5
  562. package/dist/esm/dropi-tag-type-product.entry.js +2 -2
  563. package/dist/esm/dropi-text-area.entry.js +7 -7
  564. package/dist/esm/dropi-time-line.entry.js +2 -2
  565. package/dist/esm/dropi-toast.entry.js +2 -2
  566. package/dist/esm/dropi-tooltip-v2.entry.js +3 -3
  567. package/dist/esm/dropi-tooltip.entry.js +2 -2
  568. package/dist/esm/dropi-ui.js +3 -3
  569. package/dist/esm/dropi-vertical-steps.entry.js +3 -3
  570. package/dist/esm/dropi-youtube-lazy-video.entry.js +2 -2
  571. package/dist/esm/index-a2fb4CHk.js +2763 -0
  572. package/dist/esm/loader.js +3 -3
  573. package/dist/types/components/dropi-alert/dropi-alert.d.ts +3 -3
  574. package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +8 -4
  575. package/dist/types/components/dropi-button/dropi-button.d.ts +1 -1
  576. package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +1 -1
  577. package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +2 -2
  578. package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +2 -2
  579. package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +2 -2
  580. package/dist/types/components/dropi-checkbox/dropi-checkbox.d.ts +1 -1
  581. package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +2 -2
  582. package/dist/types/components/dropi-chips/dropi-chips.d.ts +1 -1
  583. package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +1 -1
  584. package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +2 -2
  585. package/dist/types/components/dropi-icon/dropi-icon.d.ts +4 -0
  586. package/dist/types/components/dropi-input/dropi-input.d.ts +4 -4
  587. package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +1 -1
  588. package/dist/types/components/dropi-modal/dropi-modal.d.ts +9 -8
  589. package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +7 -3
  590. package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +1 -1
  591. package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +4 -4
  592. package/dist/types/components/dropi-progress-bar/dropi-progress-bar.d.ts +16 -0
  593. package/dist/types/components/dropi-radio-button/dropi-radio-button.d.ts +1 -1
  594. package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +2 -2
  595. package/dist/types/components/dropi-search/dropi-search.d.ts +6 -6
  596. package/dist/types/components/dropi-select/dropi-select.d.ts +10 -5
  597. package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +1 -1
  598. package/dist/types/components/dropi-switch/dropi-switch.d.ts +1 -1
  599. package/dist/types/components/dropi-table/dropi-table.d.ts +6 -6
  600. package/dist/types/components/dropi-tabs/dropi-tabs.d.ts +1 -1
  601. package/dist/types/components/dropi-tag/dropi-tag.d.ts +5 -0
  602. package/dist/types/components.d.ts +303 -167
  603. package/hydrate/index.js +509 -348
  604. package/hydrate/index.mjs +509 -348
  605. package/package.json +1 -1
@@ -0,0 +1,2773 @@
1
+ 'use strict';
2
+
3
+ const NAMESPACE = 'dropi-ui';
4
+ const BUILD = /* dropi-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
5
+
6
+ const globalScripts = () => {};
7
+ const globalStyles = ":root{--Primary-Primary-50:#fef8f2;--Primary-Primary-100:#ffecda;--Primary-Primary-200:#fcddbd;--Primary-Primary-300:#f2bc85;--Primary-Primary-400:#f7b46f;--Primary-Primary-500:#f49a3d;--Primary-Primary-600:#e58017;--Primary-Primary-700:#99540f;--Primary-Primary-800:#66380a;--Primary-Primary-900:#331c05;--Secondary-Secondary-50:#f0fafc;--Secondary-Secondary-100:#cee8f2;--Secondary-Secondary-200:#95d0e5;--Secondary-Secondary-300:#62bad9;--Secondary-Secondary-400:#33a4cc;--Secondary-Secondary-500:#008dbf;--Secondary-Secondary-600:#007199;--Secondary-Secondary-700:#005573;--Secondary-Secondary-800:#00384d;--Secondary-Secondary-900:#001c26;--Neutral-White:#ffffff;--Neutral-Black:#000000;--Gray-Gray-50:#f7f8fa;--Gray-Gray-100:#e6eaf2;--Gray-Gray-200:#c3c9d9;--Gray-Gray-300:#a3abbf;--Gray-Gray-400:#858ea6;--Gray-Gray-500:#69738c;--Gray-Gray-600:#475066;--Gray-Gray-700:#32394d;--Gray-Gray-800:#1f2433;--Gray-Gray-900:#0e111a;--Success-Success-50:#e7f8f3;--Success-Success-100:#b3eada;--Success-Success-200:#8ee0c8;--Success-Success-300:#5bd1af;--Success-Success-400:#3bc99f;--Success-Success-500:#0abb87;--Success-Success-600:#09aa7b;--Success-Success-700:#078560;--Success-Success-800:#06674a;--Success-Success-900:#044f39;--Error-Error-50:#fef0f0;--Error-Error-100:#fcd1d1;--Error-Error-200:#fababb;--Error-Error-300:#f89b9c;--Error-Error-400:#f68889;--Error-Error-500:#f46a6b;--Error-Error-600:#de6061;--Error-Error-700:#ad4b4c;--Error-Error-800:#863a3b;--Error-Error-900:#662d2d;--Info-Info-50:#eef6fe;--Info-Info-100:#c9e3fb;--Info-Info-200:#afd6f9;--Info-Info-300:#8ac3f6;--Info-Info-400:#73b7f4;--Info-Info-500:#50a5f1;--Info-Info-600:#4996db;--Info-Info-700:#3975ab;--Info-Info-800:#2c5b85;--Info-Info-900:#224565;--Warning-Warning-50:#fef8ed;--Warning-Warning-100:#fbe8c8;--Warning-Warning-200:#f9ddad;--Warning-Warning-300:#f6cd87;--Warning-Warning-400:#f4c370;--Warning-Warning-500:#f1b44c;--Warning-Warning-600:#dba445;--Warning-Warning-700:#ab8036;--Warning-Warning-800:#85632a;--Warning-Warning-900:#654c20;--Orange-orange-50:#fef5ec;--Orange-orange-500:#f49a3d;--Size-1:4px;--Size-2:8px;--Size-3:12px;--Size-4:16px;--Size-5:24px;--Size-6:32px;--Size-7:40px;--Size-8:48px;--Size-9:56px;--Size-10:64px;--Border-1:4px;--Border-2:8px;--Border-3:12px;--Border-4:24px;--Border-5:32px;--Border-full:9999px;--font-size-xxxxl:36px;--font-size-xxxl:30px;--font-size-xxl:24px;--font-size-xl:20px;--font-size-l:18px;--font-size-m:16px;--font-size-s:14px;--font-size-xs:12px;--font-size-xxs:10px;--lineheight-simple:110%;--lineheight-large:150%;--font-weight-bold:700;--font-weight-semibold:600;--font-weight-medium:500;--font-weight-regular:400;--font-weight-light:300;--font-family-01:'Inter', sans-serif;--breakpoint-extra-small:576px;--breakpoint-small:600px;--breakpoint-medium:1000px;--breakpoint-large:1200px;--breakpoint-extra-large:1536px;--breakpoint-full-width:1920px;--Shadow-small:0px 0px 12px rgba(0, 0, 0, 0.04);--Shadow-medium:0.5px 4px 8px rgba(0, 0, 0, 0.08);--Shadow-large:0px 4px 16px rgba(0, 0, 0, 0.16);--Shadow-icon:0px 0px 4px rgba(0, 0, 0, 0.16);--Interrapidisimo:#383637;--Domina:#464ffe;--Coordinadora:#2686c5;--Servientrega:#1ba558;--99-minutos:#9cd453;--TCC:#f8dd49;--Veloces:#dc2e76;--Envia:#e7484e;--Restlogix:#90dd92;--Tiui:#0596a5;--Fedex:#4d148c;--Laarcourier:#faf063;--Gintracom:#ff3939;--Blue-express:#1542a3;--Lulu:#f03a3e;--Urbano:#e53237;--Tipsa:#1d3681}@media (max-width: 600px){:root{--font-size-xxxxl:32px;--font-size-xxxl:26px;--font-size-xxl:20px;--font-size-xl:18px;--font-size-l:16px;--font-size-m:16px;--font-size-s:14px;--font-size-xs:12px;--font-size-xxs:10px}}*{font-family:var(--font-family-01);box-sizing:border-box;text-align:left}h1{color:var(--Gray-Gray-700);font-size:var(--font-size-xxxxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h2{color:var(--Gray-Gray-700);font-size:var(--font-size-xxxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h3{color:var(--Gray-Gray-700);font-size:var(--font-size-xxl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h4{color:var(--Gray-Gray-700);font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}h5{color:var(--Gray-Gray-700);font-size:var(--font-size-l);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Body-L-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-m);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-L-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-m);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Body-M-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-s);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-M-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Body-S-Medium{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);line-height:var(--lineheight-large)}.Body-S-Regular{color:var(--Gray-Gray-600);font-size:var(--font-size-xs);font-weight:var(--font-weight-regular);line-height:var(--lineheight-large)}.Caption-M{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Caption-S{color:var(--Gray-Gray-700);font-size:var(--font-size-xxs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-L{color:var(--Gray-Gray-700);font-size:var(--font-size-m);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-M{color:var(--Gray-Gray-700);font-size:var(--font-size-s);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}.Label-S{color:var(--Gray-Gray-700);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);line-height:var(--lineheight-simple)}body.dropi-modal-open{overflow:hidden !important}dropi-icon:not(:defined){display:inline-flex;width:24px;height:24px;overflow:hidden}";
8
+
9
+ /*
10
+ Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
11
+ */
12
+
13
+ var Build = {
14
+ isBrowser: true};
15
+
16
+ // src/utils/constants.ts
17
+ var SVG_NS = "http://www.w3.org/2000/svg";
18
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
19
+ var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
20
+ PrimitiveType2["Undefined"] = "undefined";
21
+ PrimitiveType2["Null"] = "null";
22
+ PrimitiveType2["String"] = "string";
23
+ PrimitiveType2["Number"] = "number";
24
+ PrimitiveType2["SpecialNumber"] = "number";
25
+ PrimitiveType2["Boolean"] = "boolean";
26
+ PrimitiveType2["BigInt"] = "bigint";
27
+ return PrimitiveType2;
28
+ })(PrimitiveType || {});
29
+ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
30
+ NonPrimitiveType2["Array"] = "array";
31
+ NonPrimitiveType2["Date"] = "date";
32
+ NonPrimitiveType2["Map"] = "map";
33
+ NonPrimitiveType2["Object"] = "object";
34
+ NonPrimitiveType2["RegularExpression"] = "regexp";
35
+ NonPrimitiveType2["Set"] = "set";
36
+ NonPrimitiveType2["Channel"] = "channel";
37
+ NonPrimitiveType2["Symbol"] = "symbol";
38
+ return NonPrimitiveType2;
39
+ })(NonPrimitiveType || {});
40
+ var TYPE_CONSTANT = "type";
41
+ var VALUE_CONSTANT = "value";
42
+ var SERIALIZED_PREFIX = "serialized:";
43
+
44
+ // src/utils/get-prop-descriptor.ts
45
+ function getPropertyDescriptor(obj, memberName, getOnly) {
46
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
47
+ while (obj && obj !== stopAt) {
48
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
49
+ if (desc && (!getOnly || desc.get)) return desc;
50
+ obj = Object.getPrototypeOf(obj);
51
+ }
52
+ return void 0;
53
+ }
54
+
55
+ // src/utils/es2022-rewire-class-members.ts
56
+ var reWireGetterSetter = (instance, hostRef) => {
57
+ var _a;
58
+ const cmpMeta = hostRef.$cmpMeta$;
59
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
60
+ members.map(([memberName, [memberFlags]]) => {
61
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
62
+ const ogValue = instance[memberName];
63
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
64
+ if (ogDescriptor) {
65
+ Object.defineProperty(instance, memberName, {
66
+ get() {
67
+ return ogDescriptor.get.call(this);
68
+ },
69
+ set(newValue) {
70
+ ogDescriptor.set.call(this, newValue);
71
+ },
72
+ configurable: true,
73
+ enumerable: true
74
+ });
75
+ }
76
+ if (hostRef.$instanceValues$.has(memberName)) {
77
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
78
+ } else if (ogValue !== void 0) {
79
+ instance[memberName] = ogValue;
80
+ }
81
+ }
82
+ });
83
+ };
84
+
85
+ // src/client/client-host-ref.ts
86
+ var getHostRef = (ref) => {
87
+ if (ref.__stencil__getHostRef) {
88
+ return ref.__stencil__getHostRef();
89
+ }
90
+ return void 0;
91
+ };
92
+ var registerInstance = (lazyInstance, hostRef) => {
93
+ if (!hostRef) return;
94
+ lazyInstance.__stencil__getHostRef = () => hostRef;
95
+ hostRef.$lazyInstance$ = lazyInstance;
96
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
97
+ reWireGetterSetter(lazyInstance, hostRef);
98
+ }
99
+ };
100
+ var registerHost = (hostElement, cmpMeta) => {
101
+ const hostRef = {
102
+ $flags$: 0,
103
+ $hostElement$: hostElement,
104
+ $cmpMeta$: cmpMeta,
105
+ $instanceValues$: /* @__PURE__ */ new Map(),
106
+ $serializerValues$: /* @__PURE__ */ new Map()
107
+ };
108
+ {
109
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
110
+ }
111
+ {
112
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
113
+ hostElement["s-p"] = [];
114
+ hostElement["s-rc"] = [];
115
+ }
116
+ {
117
+ hostRef.$fetchedCbList$ = [];
118
+ }
119
+ const ref = hostRef;
120
+ hostElement.__stencil__getHostRef = () => ref;
121
+ return ref;
122
+ };
123
+ var isMemberInElement = (elm, memberName) => memberName in elm;
124
+ var consoleError = (e, el) => (0, console.error)(e, el);
125
+
126
+ // src/client/client-load-module.ts
127
+ var cmpModules = /* @__PURE__ */ new Map();
128
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
129
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
130
+ const bundleId = cmpMeta.$lazyBundleId$;
131
+ if (!bundleId) {
132
+ return void 0;
133
+ }
134
+ const module = cmpModules.get(bundleId) ;
135
+ if (module) {
136
+ return module[exportName];
137
+ }
138
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
139
+ return import(
140
+ /* @vite-ignore */
141
+ /* webpackInclude: /\.entry\.js$/ */
142
+ /* webpackExclude: /\.system\.entry\.js$/ */
143
+ /* webpackMode: "lazy" */
144
+ `./${bundleId}.entry.js${""}`
145
+ ).then(
146
+ (importedModule) => {
147
+ {
148
+ cmpModules.set(bundleId, importedModule);
149
+ }
150
+ return importedModule[exportName];
151
+ },
152
+ (e) => {
153
+ consoleError(e, hostRef.$hostElement$);
154
+ }
155
+ );
156
+ };
157
+
158
+ // src/client/client-style.ts
159
+ var styles = /* @__PURE__ */ new Map();
160
+
161
+ // src/runtime/runtime-constants.ts
162
+ var CONTENT_REF_ID = "r";
163
+ var ORG_LOCATION_ID = "o";
164
+ var SLOT_NODE_ID = "s";
165
+ var TEXT_NODE_ID = "t";
166
+ var COMMENT_NODE_ID = "c";
167
+ var HYDRATE_ID = "s-id";
168
+ var HYDRATED_STYLE_ID = "sty-id";
169
+ var HYDRATE_CHILD_ID = "c-id";
170
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
171
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
172
+ var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
173
+ "formAssociatedCallback",
174
+ "formResetCallback",
175
+ "formDisabledCallback",
176
+ "formStateRestoreCallback"
177
+ ];
178
+ var win = typeof window !== "undefined" ? window : {};
179
+ var plt = {
180
+ $flags$: 0,
181
+ $resourcesUrl$: "",
182
+ jmp: (h2) => h2(),
183
+ raf: (h2) => requestAnimationFrame(h2),
184
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
185
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
186
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
187
+ };
188
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
189
+ var _a;
190
+ let supportsListenerOptions2 = false;
191
+ try {
192
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
193
+ "e",
194
+ null,
195
+ Object.defineProperty({}, "passive", {
196
+ get() {
197
+ supportsListenerOptions2 = true;
198
+ }
199
+ })
200
+ );
201
+ } catch (e) {
202
+ }
203
+ return supportsListenerOptions2;
204
+ })();
205
+ var promiseResolve = (v) => Promise.resolve(v);
206
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
207
+ try {
208
+ if (!win.document.adoptedStyleSheets) {
209
+ return false;
210
+ }
211
+ new CSSStyleSheet();
212
+ return typeof new CSSStyleSheet().replaceSync === "function";
213
+ } catch (e) {
214
+ }
215
+ return false;
216
+ })() ;
217
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
218
+ var queuePending = false;
219
+ var queueDomReads = [];
220
+ var queueDomWrites = [];
221
+ var queueTask = (queue, write) => (cb) => {
222
+ queue.push(cb);
223
+ if (!queuePending) {
224
+ queuePending = true;
225
+ if (write && plt.$flags$ & 4 /* queueSync */) {
226
+ nextTick(flush);
227
+ } else {
228
+ plt.raf(flush);
229
+ }
230
+ }
231
+ };
232
+ var consume = (queue) => {
233
+ for (let i2 = 0; i2 < queue.length; i2++) {
234
+ try {
235
+ queue[i2](performance.now());
236
+ } catch (e) {
237
+ consoleError(e);
238
+ }
239
+ }
240
+ queue.length = 0;
241
+ };
242
+ var flush = () => {
243
+ consume(queueDomReads);
244
+ {
245
+ consume(queueDomWrites);
246
+ if (queuePending = queueDomReads.length > 0) {
247
+ plt.raf(flush);
248
+ }
249
+ }
250
+ };
251
+ var nextTick = (cb) => promiseResolve().then(cb);
252
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
253
+
254
+ // src/utils/style.ts
255
+ function createStyleSheetIfNeededAndSupported(styles2) {
256
+ if (!supportsConstructableStylesheets) return void 0;
257
+ const sheet = new CSSStyleSheet();
258
+ sheet.replaceSync(styles2);
259
+ return sheet;
260
+ }
261
+
262
+ // src/utils/shadow-root.ts
263
+ var globalStyleSheet;
264
+ function createShadowRoot(cmpMeta) {
265
+ var _a;
266
+ const opts = { mode: "open" };
267
+ const shadowRoot = this.attachShadow(opts);
268
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
269
+ if (globalStyleSheet) {
270
+ if (supportsMutableAdoptedStyleSheets) {
271
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
272
+ } else {
273
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
274
+ }
275
+ } else if (!supportsConstructableStylesheets) {
276
+ const styleElm = document.createElement("style");
277
+ styleElm.innerHTML = globalStyles;
278
+ shadowRoot.prepend(styleElm);
279
+ }
280
+ }
281
+ var updateFallbackSlotVisibility = (elm) => {
282
+ const childNodes = internalCall(elm, "childNodes");
283
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
284
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
285
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
286
+ if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
287
+ slotNode.hidden = true;
288
+ } else {
289
+ slotNode.hidden = false;
290
+ }
291
+ }
292
+ });
293
+ }
294
+ let i2 = 0;
295
+ for (i2 = 0; i2 < childNodes.length; i2++) {
296
+ const childNode = childNodes[i2];
297
+ if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
298
+ updateFallbackSlotVisibility(childNode);
299
+ }
300
+ }
301
+ };
302
+ var getSlottedChildNodes = (childNodes) => {
303
+ const result = [];
304
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
305
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
306
+ if (slottedNode && slottedNode.isConnected) {
307
+ result.push(slottedNode);
308
+ }
309
+ }
310
+ return result;
311
+ };
312
+ function getHostSlotNodes(childNodes, hostName, slotName) {
313
+ let i2 = 0;
314
+ let slottedNodes = [];
315
+ let childNode;
316
+ for (; i2 < childNodes.length; i2++) {
317
+ childNode = childNodes[i2];
318
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
319
+ slottedNodes.push(childNode);
320
+ if (typeof slotName !== "undefined") return slottedNodes;
321
+ }
322
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
323
+ }
324
+ return slottedNodes;
325
+ }
326
+ var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
327
+ const childNodes = [];
328
+ if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
329
+ let node = slot;
330
+ while (node = node.nextSibling) {
331
+ if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
332
+ }
333
+ return childNodes;
334
+ };
335
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
336
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
337
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
338
+ return true;
339
+ }
340
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
341
+ return true;
342
+ }
343
+ return false;
344
+ }
345
+ if (nodeToRelocate["s-sn"] === slotName) {
346
+ return true;
347
+ }
348
+ return slotName === "";
349
+ };
350
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
351
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
352
+ return;
353
+ }
354
+ const slottedNodeLocation = document.createTextNode("");
355
+ slottedNodeLocation["s-nr"] = newChild;
356
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
357
+ const parent = slotNode["s-cr"].parentNode;
358
+ const appendMethod = internalCall(parent, "appendChild");
359
+ if (typeof position !== "undefined") {
360
+ slottedNodeLocation["s-oo"] = position;
361
+ const childNodes = internalCall(parent, "childNodes");
362
+ const slotRelocateNodes = [slottedNodeLocation];
363
+ childNodes.forEach((n) => {
364
+ if (n["s-nr"]) slotRelocateNodes.push(n);
365
+ });
366
+ slotRelocateNodes.sort((a, b) => {
367
+ if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
368
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
369
+ return 0;
370
+ });
371
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
372
+ } else {
373
+ appendMethod.call(parent, slottedNodeLocation);
374
+ }
375
+ newChild["s-ol"] = slottedNodeLocation;
376
+ newChild["s-sh"] = slotNode["s-hn"];
377
+ };
378
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
379
+ function patchSlotNode(node) {
380
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
381
+ const assignedFactory = (elementsOnly) => (function(opts) {
382
+ const toReturn = [];
383
+ const slotName = this["s-sn"];
384
+ if (opts == null ? void 0 : opts.flatten) {
385
+ console.error(`
386
+ Flattening is not supported for Stencil non-shadow slots.
387
+ You can use \`.childNodes\` to nested slot fallback content.
388
+ If you have a particular use case, please open an issue on the Stencil repo.
389
+ `);
390
+ }
391
+ const parent = this["s-cr"].parentElement;
392
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
393
+ slottedNodes.forEach((n) => {
394
+ if (slotName === getSlotName(n)) {
395
+ toReturn.push(n);
396
+ }
397
+ });
398
+ if (elementsOnly) {
399
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
400
+ }
401
+ return toReturn;
402
+ }).bind(node);
403
+ node.assignedElements = assignedFactory(true);
404
+ node.assignedNodes = assignedFactory(false);
405
+ }
406
+ function dispatchSlotChangeEvent(elm) {
407
+ elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
408
+ }
409
+ function findSlotFromSlottedNode(slottedNode, parentHost) {
410
+ var _a;
411
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
412
+ if (!parentHost) return { slotNode: null, slotName: "" };
413
+ const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
414
+ const childNodes = internalCall(parentHost, "childNodes");
415
+ const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
416
+ return { slotNode, slotName };
417
+ }
418
+ function internalCall(node, method) {
419
+ if ("__" + method in node) {
420
+ const toReturn = node["__" + method];
421
+ if (typeof toReturn !== "function") return toReturn;
422
+ return toReturn.bind(node);
423
+ } else {
424
+ if (typeof node[method] !== "function") return node[method];
425
+ return node[method].bind(node);
426
+ }
427
+ }
428
+ var createTime = (fnName, tagName = "") => {
429
+ {
430
+ return () => {
431
+ return;
432
+ };
433
+ }
434
+ };
435
+ var uniqueTime = (key, measureText) => {
436
+ {
437
+ return () => {
438
+ return;
439
+ };
440
+ }
441
+ };
442
+
443
+ // src/utils/query-nonce-meta-tag-content.ts
444
+ function queryNonceMetaTagContent(doc) {
445
+ var _a, _b, _c;
446
+ 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;
447
+ }
448
+
449
+ // src/runtime/styles.ts
450
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
451
+ var registerStyle = (scopeId2, cssText, allowCS) => {
452
+ let style = styles.get(scopeId2);
453
+ if (supportsConstructableStylesheets && allowCS) {
454
+ style = style || new CSSStyleSheet();
455
+ if (typeof style === "string") {
456
+ style = cssText;
457
+ } else {
458
+ style.replaceSync(cssText);
459
+ }
460
+ } else {
461
+ style = cssText;
462
+ }
463
+ styles.set(scopeId2, style);
464
+ };
465
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
466
+ var _a, _b, _c;
467
+ const scopeId2 = getScopeId(cmpMeta);
468
+ const style = styles.get(scopeId2);
469
+ if (!win.document) {
470
+ return scopeId2;
471
+ }
472
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
473
+ if (style) {
474
+ if (typeof style === "string") {
475
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
476
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
477
+ let styleElm;
478
+ if (!appliedStyles) {
479
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
480
+ }
481
+ const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
482
+ if (existingStyleElm) {
483
+ existingStyleElm.textContent = style;
484
+ } else if (!appliedStyles.has(scopeId2)) {
485
+ styleElm = win.document.createElement("style");
486
+ styleElm.textContent = style;
487
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
488
+ if (nonce != null) {
489
+ styleElm.setAttribute("nonce", nonce);
490
+ }
491
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
492
+ if (styleContainerNode.nodeName === "HEAD") {
493
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
494
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
495
+ styleContainerNode.insertBefore(
496
+ styleElm,
497
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
498
+ );
499
+ } else if ("host" in styleContainerNode) {
500
+ if (supportsConstructableStylesheets) {
501
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
502
+ const stylesheet = new currentWindow.CSSStyleSheet();
503
+ stylesheet.replaceSync(style);
504
+ if (supportsMutableAdoptedStyleSheets) {
505
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
506
+ } else {
507
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
508
+ }
509
+ } else {
510
+ const existingStyleContainer = styleContainerNode.querySelector("style");
511
+ if (existingStyleContainer && true) {
512
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
513
+ } else {
514
+ styleContainerNode.prepend(styleElm);
515
+ }
516
+ }
517
+ } else {
518
+ styleContainerNode.append(styleElm);
519
+ }
520
+ }
521
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
522
+ styleContainerNode.insertBefore(styleElm, null);
523
+ }
524
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
525
+ styleElm.textContent += SLOT_FB_CSS;
526
+ }
527
+ if (appliedStyles) {
528
+ appliedStyles.add(scopeId2);
529
+ }
530
+ }
531
+ } else {
532
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
533
+ if (!appliedStyles) {
534
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
535
+ }
536
+ if (!appliedStyles.has(scopeId2)) {
537
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
538
+ let stylesheet;
539
+ if (style.constructor === currentWindow.CSSStyleSheet) {
540
+ stylesheet = style;
541
+ } else {
542
+ stylesheet = new currentWindow.CSSStyleSheet();
543
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
544
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
545
+ }
546
+ }
547
+ if (supportsMutableAdoptedStyleSheets) {
548
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
549
+ } else {
550
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
551
+ }
552
+ appliedStyles.add(scopeId2);
553
+ if ("host" in styleContainerNode) {
554
+ const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
555
+ if (ssrStyleElm) {
556
+ writeTask(() => ssrStyleElm.remove());
557
+ }
558
+ }
559
+ }
560
+ }
561
+ }
562
+ return scopeId2;
563
+ };
564
+ var attachStyles = (hostRef) => {
565
+ const cmpMeta = hostRef.$cmpMeta$;
566
+ const elm = hostRef.$hostElement$;
567
+ const flags = cmpMeta.$flags$;
568
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
569
+ const scopeId2 = addStyle(
570
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
571
+ cmpMeta);
572
+ if (flags & 10 /* needsScopedEncapsulation */) {
573
+ elm["s-sc"] = scopeId2;
574
+ elm.classList.add(scopeId2 + "-h");
575
+ }
576
+ endAttachStyles();
577
+ };
578
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
579
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
580
+ var hydrateScopedToShadow = () => {
581
+ if (!win.document) {
582
+ return;
583
+ }
584
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
585
+ let i2 = 0;
586
+ for (; i2 < styles2.length; i2++) {
587
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
588
+ }
589
+ };
590
+ var isComplexType = (o) => {
591
+ o = typeof o;
592
+ return o === "object" || o === "function";
593
+ };
594
+
595
+ // src/runtime/vdom/h.ts
596
+ var h = (nodeName, vnodeData, ...children) => {
597
+ if (typeof nodeName === "string") {
598
+ nodeName = transformTag(nodeName);
599
+ }
600
+ let child = null;
601
+ let key = null;
602
+ let slotName = null;
603
+ let simple = false;
604
+ let lastSimple = false;
605
+ const vNodeChildren = [];
606
+ const walk = (c) => {
607
+ for (let i2 = 0; i2 < c.length; i2++) {
608
+ child = c[i2];
609
+ if (Array.isArray(child)) {
610
+ walk(child);
611
+ } else if (child != null && typeof child !== "boolean") {
612
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
613
+ child = String(child);
614
+ }
615
+ if (simple && lastSimple) {
616
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
617
+ } else {
618
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
619
+ }
620
+ lastSimple = simple;
621
+ }
622
+ }
623
+ };
624
+ walk(children);
625
+ if (vnodeData) {
626
+ if (vnodeData.key) {
627
+ key = vnodeData.key;
628
+ }
629
+ if (vnodeData.name) {
630
+ slotName = vnodeData.name;
631
+ }
632
+ {
633
+ const classData = vnodeData.className || vnodeData.class;
634
+ if (classData) {
635
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
636
+ }
637
+ }
638
+ }
639
+ const vnode = newVNode(nodeName, null);
640
+ vnode.$attrs$ = vnodeData;
641
+ if (vNodeChildren.length > 0) {
642
+ vnode.$children$ = vNodeChildren;
643
+ }
644
+ {
645
+ vnode.$key$ = key;
646
+ }
647
+ {
648
+ vnode.$name$ = slotName;
649
+ }
650
+ return vnode;
651
+ };
652
+ var newVNode = (tag, text) => {
653
+ const vnode = {
654
+ $flags$: 0,
655
+ $tag$: tag,
656
+ // Normalize undefined to null to prevent rendering "undefined" as text
657
+ $text$: text != null ? text : null,
658
+ $elm$: null,
659
+ $children$: null
660
+ };
661
+ {
662
+ vnode.$attrs$ = null;
663
+ }
664
+ {
665
+ vnode.$key$ = null;
666
+ }
667
+ {
668
+ vnode.$name$ = null;
669
+ }
670
+ return vnode;
671
+ };
672
+ var Host = {};
673
+ var isHost = (node) => node && node.$tag$ === Host;
674
+
675
+ // src/runtime/client-hydrate.ts
676
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
677
+ var _a, _b, _c, _d;
678
+ const endHydrate = createTime("hydrateClient", tagName);
679
+ const shadowRoot = hostElm.shadowRoot;
680
+ const childRenderNodes = [];
681
+ const slotNodes = [];
682
+ const slottedNodes = [];
683
+ const shadowRootNodes = shadowRoot ? [] : null;
684
+ const vnode = newVNode(tagName, null);
685
+ vnode.$elm$ = hostElm;
686
+ if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
687
+ initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
688
+ }
689
+ hostElm[HYDRATE_ID] = hostId;
690
+ hostElm.removeAttribute(HYDRATE_ID);
691
+ hostRef.$vnode$ = clientHydrate(
692
+ vnode,
693
+ childRenderNodes,
694
+ slotNodes,
695
+ shadowRootNodes,
696
+ hostElm,
697
+ hostElm,
698
+ hostId,
699
+ slottedNodes
700
+ );
701
+ let crIndex = 0;
702
+ const crLength = childRenderNodes.length;
703
+ let childRenderNode;
704
+ for (crIndex; crIndex < crLength; crIndex++) {
705
+ childRenderNode = childRenderNodes[crIndex];
706
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
707
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
708
+ const node = childRenderNode.$elm$;
709
+ if (!shadowRoot) {
710
+ node["s-hn"] = transformTag(tagName).toUpperCase();
711
+ if (childRenderNode.$tag$ === "slot") {
712
+ node["s-cr"] = hostElm["s-cr"];
713
+ }
714
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
715
+ const cmpMeta = getHostRef(childRenderNode.$elm$);
716
+ if (cmpMeta) {
717
+ const scopeId3 = getScopeId(
718
+ cmpMeta.$cmpMeta$);
719
+ const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
720
+ if (styleSheet) {
721
+ shadowRootNodes.unshift(styleSheet.cloneNode(true));
722
+ }
723
+ }
724
+ }
725
+ if (childRenderNode.$tag$ === "slot") {
726
+ childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
727
+ if (childRenderNode.$children$) {
728
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
729
+ if (!childRenderNode.$elm$.childNodes.length) {
730
+ childRenderNode.$children$.forEach((c) => {
731
+ childRenderNode.$elm$.appendChild(c.$elm$);
732
+ });
733
+ }
734
+ } else {
735
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
736
+ }
737
+ }
738
+ if (orgLocationNode && orgLocationNode.isConnected) {
739
+ if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
740
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
741
+ }
742
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
743
+ if (!shadowRoot) {
744
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
745
+ }
746
+ }
747
+ if (orgLocationNode && !orgLocationNode["s-id"]) {
748
+ plt.$orgLocNodes$.delete(orgLocationId);
749
+ }
750
+ }
751
+ const hosts = [];
752
+ const snLen = slottedNodes.length;
753
+ let snIndex = 0;
754
+ let slotGroup;
755
+ let snGroupIdx;
756
+ let snGroupLen;
757
+ let slottedItem;
758
+ let currentPos = 0;
759
+ for (snIndex; snIndex < snLen; snIndex++) {
760
+ slotGroup = slottedNodes[snIndex];
761
+ if (!slotGroup || !slotGroup.length) continue;
762
+ snGroupLen = slotGroup.length;
763
+ snGroupIdx = 0;
764
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
765
+ slottedItem = slotGroup[snGroupIdx];
766
+ if (!hosts[slottedItem.hostId]) {
767
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
768
+ }
769
+ if (!hosts[slottedItem.hostId]) continue;
770
+ const hostEle = hosts[slottedItem.hostId];
771
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
772
+ hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
773
+ }
774
+ if (!hostEle.shadowRoot || !shadowRoot) {
775
+ if (!slottedItem.slot["s-cr"]) {
776
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
777
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
778
+ slottedItem.slot["s-cr"] = hostEle;
779
+ } else {
780
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
781
+ }
782
+ }
783
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
784
+ if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
785
+ slottedItem.node.removeAttribute("slot");
786
+ }
787
+ }
788
+ currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
789
+ }
790
+ }
791
+ if (shadowRoot && !shadowRoot.childNodes.length) {
792
+ let rnIdex = 0;
793
+ const rnLen = shadowRootNodes.length;
794
+ if (rnLen) {
795
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
796
+ const node = shadowRootNodes[rnIdex];
797
+ if (node) {
798
+ shadowRoot.appendChild(node);
799
+ }
800
+ }
801
+ Array.from(hostElm.childNodes).forEach((node) => {
802
+ if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
803
+ if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
804
+ node.removeAttribute("hidden");
805
+ } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
806
+ node.parentNode.removeChild(node);
807
+ }
808
+ }
809
+ });
810
+ }
811
+ }
812
+ hostRef.$hostElement$ = hostElm;
813
+ endHydrate();
814
+ };
815
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
816
+ let childNodeType;
817
+ let childIdSplt;
818
+ let childVNode;
819
+ let i2;
820
+ if (node.nodeType === 1 /* ElementNode */) {
821
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
822
+ if (childNodeType) {
823
+ childIdSplt = childNodeType.split(".");
824
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
825
+ childVNode = createSimpleVNode({
826
+ $flags$: 0,
827
+ $hostId$: childIdSplt[0],
828
+ $nodeId$: childIdSplt[1],
829
+ $depth$: childIdSplt[2],
830
+ $index$: childIdSplt[3],
831
+ $tag$: node.tagName.toLowerCase(),
832
+ $elm$: node,
833
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
834
+ // won't try to reconcile them. Classes set on the node will be blown away.
835
+ $attrs$: { class: node.className || "" }
836
+ });
837
+ childRenderNodes.push(childVNode);
838
+ node.removeAttribute(HYDRATE_CHILD_ID);
839
+ if (!parentVNode.$children$) {
840
+ parentVNode.$children$ = [];
841
+ }
842
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
843
+ if (typeof slotName === "string") {
844
+ if (childVNode.$tag$ === "slot-fb") {
845
+ addSlot(
846
+ slotName,
847
+ childIdSplt[2],
848
+ childVNode,
849
+ node,
850
+ parentVNode,
851
+ childRenderNodes,
852
+ slotNodes,
853
+ shadowRootNodes,
854
+ slottedNodes
855
+ );
856
+ }
857
+ childVNode.$elm$["s-sn"] = slotName;
858
+ childVNode.$elm$.removeAttribute("s-sn");
859
+ }
860
+ if (childVNode.$index$ !== void 0) {
861
+ parentVNode.$children$[childVNode.$index$] = childVNode;
862
+ }
863
+ parentVNode = childVNode;
864
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
865
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
866
+ }
867
+ }
868
+ }
869
+ if (node.shadowRoot) {
870
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
871
+ clientHydrate(
872
+ parentVNode,
873
+ childRenderNodes,
874
+ slotNodes,
875
+ shadowRootNodes,
876
+ hostElm,
877
+ node.shadowRoot.childNodes[i2],
878
+ hostId,
879
+ slottedNodes
880
+ );
881
+ }
882
+ }
883
+ const nonShadowNodes = node.__childNodes || node.childNodes;
884
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
885
+ clientHydrate(
886
+ parentVNode,
887
+ childRenderNodes,
888
+ slotNodes,
889
+ shadowRootNodes,
890
+ hostElm,
891
+ nonShadowNodes[i2],
892
+ hostId,
893
+ slottedNodes
894
+ );
895
+ }
896
+ } else if (node.nodeType === 8 /* CommentNode */) {
897
+ childIdSplt = node.nodeValue.split(".");
898
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
899
+ childNodeType = childIdSplt[0];
900
+ childVNode = createSimpleVNode({
901
+ $hostId$: childIdSplt[1],
902
+ $nodeId$: childIdSplt[2],
903
+ $depth$: childIdSplt[3],
904
+ $index$: childIdSplt[4] || "0",
905
+ $elm$: node,
906
+ $attrs$: null,
907
+ $children$: null,
908
+ $key$: null,
909
+ $name$: null,
910
+ $tag$: null,
911
+ $text$: null
912
+ });
913
+ if (childNodeType === TEXT_NODE_ID) {
914
+ childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
915
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
916
+ childVNode.$text$ = childVNode.$elm$.textContent;
917
+ childRenderNodes.push(childVNode);
918
+ node.remove();
919
+ if (hostId === childVNode.$hostId$) {
920
+ if (!parentVNode.$children$) {
921
+ parentVNode.$children$ = [];
922
+ }
923
+ parentVNode.$children$[childVNode.$index$] = childVNode;
924
+ }
925
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
926
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
927
+ }
928
+ }
929
+ } else if (childNodeType === COMMENT_NODE_ID) {
930
+ childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
931
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
932
+ childRenderNodes.push(childVNode);
933
+ node.remove();
934
+ }
935
+ } else if (childVNode.$hostId$ === hostId) {
936
+ if (childNodeType === SLOT_NODE_ID) {
937
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
938
+ addSlot(
939
+ slotName,
940
+ childIdSplt[2],
941
+ childVNode,
942
+ node,
943
+ parentVNode,
944
+ childRenderNodes,
945
+ slotNodes,
946
+ shadowRootNodes,
947
+ slottedNodes
948
+ );
949
+ } else if (childNodeType === CONTENT_REF_ID) {
950
+ if (shadowRootNodes) {
951
+ node.remove();
952
+ } else {
953
+ hostElm["s-cr"] = node;
954
+ node["s-cn"] = true;
955
+ }
956
+ }
957
+ }
958
+ }
959
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
960
+ const vnode = newVNode(null, node.textContent);
961
+ vnode.$elm$ = node;
962
+ vnode.$index$ = "0";
963
+ parentVNode.$children$ = [vnode];
964
+ }
965
+ return parentVNode;
966
+ };
967
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
968
+ if (node.nodeType === 1 /* ElementNode */) {
969
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
970
+ if (componentId) {
971
+ orgLocNodes.set(componentId, node);
972
+ }
973
+ let i2 = 0;
974
+ if (node.shadowRoot) {
975
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
976
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
977
+ }
978
+ }
979
+ const nonShadowNodes = node.__childNodes || node.childNodes;
980
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
981
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
982
+ }
983
+ } else if (node.nodeType === 8 /* CommentNode */) {
984
+ const childIdSplt = node.nodeValue.split(".");
985
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
986
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
987
+ node.nodeValue = "";
988
+ node["s-en"] = childIdSplt[3];
989
+ }
990
+ }
991
+ };
992
+ var createSimpleVNode = (vnode) => {
993
+ const defaultVNode = {
994
+ $flags$: 0,
995
+ $hostId$: null,
996
+ $nodeId$: null,
997
+ $depth$: null,
998
+ $index$: "0",
999
+ $elm$: null,
1000
+ $attrs$: null,
1001
+ $children$: null,
1002
+ $key$: null,
1003
+ $name$: null,
1004
+ $tag$: null,
1005
+ $text$: null
1006
+ };
1007
+ return { ...defaultVNode, ...vnode };
1008
+ };
1009
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1010
+ node["s-sr"] = true;
1011
+ childVNode.$name$ = slotName || null;
1012
+ childVNode.$tag$ = "slot";
1013
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1014
+ if (shadowRootNodes && win.document) {
1015
+ const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1016
+ if (childVNode.$name$) {
1017
+ childVNode.$elm$.setAttribute("name", slotName);
1018
+ }
1019
+ if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1020
+ internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
1021
+ } else {
1022
+ internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
1023
+ }
1024
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1025
+ node.remove();
1026
+ if (childVNode.$depth$ === "0") {
1027
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1028
+ }
1029
+ } else {
1030
+ const slot = childVNode.$elm$;
1031
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1032
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1033
+ patchSlotNode(node);
1034
+ if (shouldMove) {
1035
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1036
+ }
1037
+ }
1038
+ childRenderNodes.push(childVNode);
1039
+ slotNodes.push(childVNode);
1040
+ if (!parentVNode.$children$) {
1041
+ parentVNode.$children$ = [];
1042
+ }
1043
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1044
+ }
1045
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1046
+ var _a, _b;
1047
+ let slottedNode = slotNode.nextSibling;
1048
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1049
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1050
+ do {
1051
+ if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1052
+ slottedNode["s-sn"] = slotName;
1053
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1054
+ }
1055
+ slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1056
+ } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
1057
+ };
1058
+ var findCorrespondingNode = (node, type) => {
1059
+ let sibling = node;
1060
+ do {
1061
+ sibling = sibling.nextSibling;
1062
+ } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
1063
+ return sibling;
1064
+ };
1065
+
1066
+ // src/utils/remote-value.ts
1067
+ var RemoteValue = class _RemoteValue {
1068
+ /**
1069
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
1070
+ *
1071
+ * @param serialized The serialized LocalValue object
1072
+ * @returns The original JavaScript value/object
1073
+ */
1074
+ static fromLocalValue(serialized) {
1075
+ const type = serialized[TYPE_CONSTANT];
1076
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
1077
+ switch (type) {
1078
+ case "string" /* String */:
1079
+ return value;
1080
+ case "boolean" /* Boolean */:
1081
+ return value;
1082
+ case "bigint" /* BigInt */:
1083
+ return BigInt(value);
1084
+ case "undefined" /* Undefined */:
1085
+ return void 0;
1086
+ case "null" /* Null */:
1087
+ return null;
1088
+ case "number" /* Number */:
1089
+ if (value === "NaN") return NaN;
1090
+ if (value === "-0") return -0;
1091
+ if (value === "Infinity") return Infinity;
1092
+ if (value === "-Infinity") return -Infinity;
1093
+ return value;
1094
+ case "array" /* Array */:
1095
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
1096
+ case "date" /* Date */:
1097
+ return new Date(value);
1098
+ case "map" /* Map */:
1099
+ const map = /* @__PURE__ */ new Map();
1100
+ for (const [key, val] of value) {
1101
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1102
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
1103
+ map.set(deserializedKey, deserializedValue);
1104
+ }
1105
+ return map;
1106
+ case "object" /* Object */:
1107
+ const obj = {};
1108
+ for (const [key, val] of value) {
1109
+ obj[key] = _RemoteValue.fromLocalValue(val);
1110
+ }
1111
+ return obj;
1112
+ case "regexp" /* RegularExpression */:
1113
+ const { pattern, flags } = value;
1114
+ return new RegExp(pattern, flags);
1115
+ case "set" /* Set */:
1116
+ const set = /* @__PURE__ */ new Set();
1117
+ for (const item of value) {
1118
+ set.add(_RemoteValue.fromLocalValue(item));
1119
+ }
1120
+ return set;
1121
+ case "symbol" /* Symbol */:
1122
+ return Symbol(value);
1123
+ default:
1124
+ throw new Error(`Unsupported type: ${type}`);
1125
+ }
1126
+ }
1127
+ /**
1128
+ * Utility method to deserialize multiple LocalValues at once
1129
+ *
1130
+ * @param serializedValues Array of serialized LocalValue objects
1131
+ * @returns Array of deserialized JavaScript values
1132
+ */
1133
+ static fromLocalValueArray(serializedValues) {
1134
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
1135
+ }
1136
+ /**
1137
+ * Verifies if the given object matches the structure of a serialized LocalValue
1138
+ *
1139
+ * @param obj Object to verify
1140
+ * @returns boolean indicating if the object has LocalValue structure
1141
+ */
1142
+ static isLocalValueObject(obj) {
1143
+ if (typeof obj !== "object" || obj === null) {
1144
+ return false;
1145
+ }
1146
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
1147
+ return false;
1148
+ }
1149
+ const type = obj[TYPE_CONSTANT];
1150
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
1151
+ if (!hasTypeProperty) {
1152
+ return false;
1153
+ }
1154
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
1155
+ return obj.hasOwnProperty(VALUE_CONSTANT);
1156
+ }
1157
+ return true;
1158
+ }
1159
+ };
1160
+
1161
+ // src/utils/serialize.ts
1162
+ function deserializeProperty(value) {
1163
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1164
+ return value;
1165
+ }
1166
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
1167
+ }
1168
+
1169
+ // src/runtime/parse-property-value.ts
1170
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1171
+ if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1172
+ propValue = deserializeProperty(propValue);
1173
+ return propValue;
1174
+ }
1175
+ if (propValue != null && !isComplexType(propValue)) {
1176
+ if (propType & 4 /* Boolean */) {
1177
+ if (isFormAssociated && typeof propValue === "string") {
1178
+ return propValue === "" || !!propValue;
1179
+ } else {
1180
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1181
+ }
1182
+ }
1183
+ if (propType & 2 /* Number */) {
1184
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
1185
+ }
1186
+ if (propType & 1 /* String */) {
1187
+ return String(propValue);
1188
+ }
1189
+ return propValue;
1190
+ }
1191
+ return propValue;
1192
+ };
1193
+ var getElement = (ref) => {
1194
+ var _a;
1195
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1196
+ };
1197
+
1198
+ // src/runtime/event-emitter.ts
1199
+ var createEvent = (ref, name, flags) => {
1200
+ const elm = getElement(ref);
1201
+ return {
1202
+ emit: (detail) => {
1203
+ return emitEvent(elm, name, {
1204
+ bubbles: true,
1205
+ composed: true,
1206
+ cancelable: true,
1207
+ detail
1208
+ });
1209
+ }
1210
+ };
1211
+ };
1212
+ var emitEvent = (elm, name, opts) => {
1213
+ const ev = plt.ce(name, opts);
1214
+ elm.dispatchEvent(ev);
1215
+ return ev;
1216
+ };
1217
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1218
+ if (oldValue === newValue) {
1219
+ return;
1220
+ }
1221
+ let isProp = isMemberInElement(elm, memberName);
1222
+ let ln = memberName.toLowerCase();
1223
+ if (memberName === "class") {
1224
+ const classList = elm.classList;
1225
+ const oldClasses = parseClassList(oldValue);
1226
+ let newClasses = parseClassList(newValue);
1227
+ if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1228
+ const scopeId2 = elm["s-sc"] || elm["s-si"];
1229
+ newClasses.push(scopeId2);
1230
+ oldClasses.forEach((c) => {
1231
+ if (c.startsWith(scopeId2)) newClasses.push(c);
1232
+ });
1233
+ newClasses = [...new Set(newClasses)].filter((c) => c);
1234
+ classList.add(...newClasses);
1235
+ } else {
1236
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1237
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1238
+ }
1239
+ } else if (memberName === "style") {
1240
+ {
1241
+ for (const prop in oldValue) {
1242
+ if (!newValue || newValue[prop] == null) {
1243
+ if (prop.includes("-")) {
1244
+ elm.style.removeProperty(prop);
1245
+ } else {
1246
+ elm.style[prop] = "";
1247
+ }
1248
+ }
1249
+ }
1250
+ }
1251
+ for (const prop in newValue) {
1252
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
1253
+ if (prop.includes("-")) {
1254
+ elm.style.setProperty(prop, newValue[prop]);
1255
+ } else {
1256
+ elm.style[prop] = newValue[prop];
1257
+ }
1258
+ }
1259
+ }
1260
+ } else if (memberName === "key") ; else if (memberName === "ref") {
1261
+ if (newValue) {
1262
+ queueRefAttachment(newValue, elm);
1263
+ }
1264
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
1265
+ if (memberName[2] === "-") {
1266
+ memberName = memberName.slice(3);
1267
+ } else if (isMemberInElement(win, ln)) {
1268
+ memberName = ln.slice(2);
1269
+ } else {
1270
+ memberName = ln[2] + memberName.slice(3);
1271
+ }
1272
+ if (oldValue || newValue) {
1273
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
1274
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
1275
+ if (oldValue) {
1276
+ plt.rel(elm, memberName, oldValue, capture);
1277
+ }
1278
+ if (newValue) {
1279
+ plt.ael(elm, memberName, newValue, capture);
1280
+ }
1281
+ }
1282
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
1283
+ const propName = memberName.slice(5);
1284
+ let attrName;
1285
+ {
1286
+ const hostRef = getHostRef(elm);
1287
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
1288
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
1289
+ if (memberMeta && memberMeta[1]) {
1290
+ attrName = memberMeta[1];
1291
+ }
1292
+ }
1293
+ }
1294
+ if (!attrName) {
1295
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1296
+ }
1297
+ if (newValue == null || newValue === false) {
1298
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
1299
+ elm.removeAttribute(attrName);
1300
+ }
1301
+ } else {
1302
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
1303
+ }
1304
+ return;
1305
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
1306
+ const propName = memberName.slice(5);
1307
+ try {
1308
+ elm[propName] = newValue;
1309
+ } catch (e) {
1310
+ }
1311
+ return;
1312
+ } else {
1313
+ const isComplex = isComplexType(newValue);
1314
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
1315
+ try {
1316
+ if (!elm.tagName.includes("-")) {
1317
+ const n = newValue == null ? "" : newValue;
1318
+ if (memberName === "list") {
1319
+ isProp = false;
1320
+ } else if (oldValue == null || elm[memberName] !== n) {
1321
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
1322
+ elm[memberName] = n;
1323
+ } else {
1324
+ elm.setAttribute(memberName, n);
1325
+ }
1326
+ }
1327
+ } else if (elm[memberName] !== newValue) {
1328
+ elm[memberName] = newValue;
1329
+ }
1330
+ } catch (e) {
1331
+ }
1332
+ }
1333
+ if (newValue == null || newValue === false) {
1334
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
1335
+ {
1336
+ elm.removeAttribute(memberName);
1337
+ }
1338
+ }
1339
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
1340
+ newValue = newValue === true ? "" : newValue;
1341
+ {
1342
+ elm.setAttribute(memberName, newValue);
1343
+ }
1344
+ }
1345
+ }
1346
+ };
1347
+ var parseClassListRegex = /\s/;
1348
+ var parseClassList = (value) => {
1349
+ if (typeof value === "object" && value && "baseVal" in value) {
1350
+ value = value.baseVal;
1351
+ }
1352
+ if (!value || typeof value !== "string") {
1353
+ return [];
1354
+ }
1355
+ return value.split(parseClassListRegex);
1356
+ };
1357
+ var CAPTURE_EVENT_SUFFIX = "Capture";
1358
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
1359
+
1360
+ // src/runtime/vdom/update-element.ts
1361
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1362
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
1363
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
1364
+ const newVnodeAttrs = newVnode.$attrs$ || {};
1365
+ {
1366
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
1367
+ if (!(memberName in newVnodeAttrs)) {
1368
+ setAccessor(
1369
+ elm,
1370
+ memberName,
1371
+ oldVnodeAttrs[memberName],
1372
+ void 0,
1373
+ isSvgMode2,
1374
+ newVnode.$flags$,
1375
+ isInitialRender
1376
+ );
1377
+ }
1378
+ }
1379
+ }
1380
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
1381
+ setAccessor(
1382
+ elm,
1383
+ memberName,
1384
+ oldVnodeAttrs[memberName],
1385
+ newVnodeAttrs[memberName],
1386
+ isSvgMode2,
1387
+ newVnode.$flags$,
1388
+ isInitialRender
1389
+ );
1390
+ }
1391
+ };
1392
+ function sortedAttrNames(attrNames) {
1393
+ return attrNames.includes("ref") ? (
1394
+ // we need to sort these to ensure that `'ref'` is the last attr
1395
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
1396
+ ) : (
1397
+ // no need to sort, return the original array
1398
+ attrNames
1399
+ );
1400
+ }
1401
+ var contentRef;
1402
+ var hostTagName;
1403
+ var useNativeShadowDom = false;
1404
+ var checkSlotFallbackVisibility = false;
1405
+ var checkSlotRelocate = false;
1406
+ var isSvgMode = false;
1407
+ var refCallbacksToRemove = [];
1408
+ var refCallbacksToAttach = [];
1409
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1410
+ var _a;
1411
+ const newVNode2 = newParentVNode.$children$[childIndex];
1412
+ let i2 = 0;
1413
+ let elm;
1414
+ let childNode;
1415
+ let oldVNode;
1416
+ if (!useNativeShadowDom) {
1417
+ checkSlotRelocate = true;
1418
+ if (newVNode2.$tag$ === "slot") {
1419
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
1420
+ // slot element has fallback content
1421
+ // still create an element that "mocks" the slot element
1422
+ 2 /* isSlotFallback */
1423
+ ) : (
1424
+ // slot element does not have fallback content
1425
+ // create an html comment we'll use to always reference
1426
+ // where actual slot content should sit next to
1427
+ 1 /* isSlotReference */
1428
+ );
1429
+ }
1430
+ }
1431
+ if (newVNode2.$text$ != null) {
1432
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1433
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
1434
+ elm = newVNode2.$elm$ = win.document.createTextNode("");
1435
+ {
1436
+ updateElement(null, newVNode2, isSvgMode);
1437
+ }
1438
+ } else {
1439
+ if (!isSvgMode) {
1440
+ isSvgMode = newVNode2.$tag$ === "svg";
1441
+ }
1442
+ if (!win.document) {
1443
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
1444
+ }
1445
+ elm = newVNode2.$elm$ = win.document.createElementNS(
1446
+ isSvgMode ? SVG_NS : HTML_NS,
1447
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1448
+ ) ;
1449
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
1450
+ isSvgMode = false;
1451
+ }
1452
+ {
1453
+ updateElement(null, newVNode2, isSvgMode);
1454
+ }
1455
+ if (newVNode2.$children$) {
1456
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
1457
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1458
+ childNode = createElm(oldParentVNode, newVNode2, i2);
1459
+ if (childNode) {
1460
+ appendTarget.appendChild(childNode);
1461
+ }
1462
+ }
1463
+ }
1464
+ {
1465
+ if (newVNode2.$tag$ === "svg") {
1466
+ isSvgMode = false;
1467
+ } else if (elm.tagName === "foreignObject") {
1468
+ isSvgMode = true;
1469
+ }
1470
+ }
1471
+ }
1472
+ elm["s-hn"] = hostTagName;
1473
+ {
1474
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
1475
+ elm["s-sr"] = true;
1476
+ elm["s-cr"] = contentRef;
1477
+ elm["s-sn"] = newVNode2.$name$ || "";
1478
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
1479
+ patchSlotNode(elm);
1480
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
1481
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
1482
+ relocateToHostRoot(oldParentVNode.$elm$);
1483
+ }
1484
+ }
1485
+ }
1486
+ return elm;
1487
+ };
1488
+ var relocateToHostRoot = (parentElm) => {
1489
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1490
+ const host = parentElm.closest(hostTagName.toLowerCase());
1491
+ if (host != null) {
1492
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
1493
+ (ref) => ref["s-cr"]
1494
+ );
1495
+ const childNodeArray = Array.from(
1496
+ parentElm.__childNodes || parentElm.childNodes
1497
+ );
1498
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1499
+ if (childNode["s-sh"] != null) {
1500
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1501
+ childNode["s-sh"] = void 0;
1502
+ checkSlotRelocate = true;
1503
+ }
1504
+ }
1505
+ }
1506
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1507
+ };
1508
+ var putBackInOriginalLocation = (parentElm, recursive) => {
1509
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1510
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
1511
+ if (parentElm["s-sr"]) {
1512
+ let node = parentElm;
1513
+ while (node = node.nextSibling) {
1514
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
1515
+ oldSlotChildNodes.push(node);
1516
+ }
1517
+ }
1518
+ }
1519
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1520
+ const childNode = oldSlotChildNodes[i2];
1521
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1522
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
1523
+ childNode["s-ol"].remove();
1524
+ childNode["s-ol"] = void 0;
1525
+ childNode["s-sh"] = void 0;
1526
+ checkSlotRelocate = true;
1527
+ }
1528
+ if (recursive) {
1529
+ putBackInOriginalLocation(childNode, recursive);
1530
+ }
1531
+ }
1532
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1533
+ };
1534
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1535
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
1536
+ let childNode;
1537
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1538
+ containerElm = containerElm.shadowRoot;
1539
+ }
1540
+ if (parentVNode.$tag$ === "template") {
1541
+ containerElm = containerElm.content;
1542
+ }
1543
+ for (; startIdx <= endIdx; ++startIdx) {
1544
+ if (vnodes[startIdx]) {
1545
+ childNode = createElm(null, parentVNode, startIdx);
1546
+ if (childNode) {
1547
+ vnodes[startIdx].$elm$ = childNode;
1548
+ insertBefore(containerElm, childNode, referenceNode(before) );
1549
+ }
1550
+ }
1551
+ }
1552
+ };
1553
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
1554
+ for (let index = startIdx; index <= endIdx; ++index) {
1555
+ const vnode = vnodes[index];
1556
+ if (vnode) {
1557
+ const elm = vnode.$elm$;
1558
+ nullifyVNodeRefs(vnode);
1559
+ if (elm) {
1560
+ {
1561
+ checkSlotFallbackVisibility = true;
1562
+ if (elm["s-ol"]) {
1563
+ elm["s-ol"].remove();
1564
+ } else {
1565
+ putBackInOriginalLocation(elm, true);
1566
+ }
1567
+ }
1568
+ elm.remove();
1569
+ }
1570
+ }
1571
+ }
1572
+ };
1573
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1574
+ let oldStartIdx = 0;
1575
+ let newStartIdx = 0;
1576
+ let idxInOld = 0;
1577
+ let i2 = 0;
1578
+ let oldEndIdx = oldCh.length - 1;
1579
+ let oldStartVnode = oldCh[0];
1580
+ let oldEndVnode = oldCh[oldEndIdx];
1581
+ let newEndIdx = newCh.length - 1;
1582
+ let newStartVnode = newCh[0];
1583
+ let newEndVnode = newCh[newEndIdx];
1584
+ let node;
1585
+ let elmToMove;
1586
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
1587
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1588
+ if (oldStartVnode == null) {
1589
+ oldStartVnode = oldCh[++oldStartIdx];
1590
+ } else if (oldEndVnode == null) {
1591
+ oldEndVnode = oldCh[--oldEndIdx];
1592
+ } else if (newStartVnode == null) {
1593
+ newStartVnode = newCh[++newStartIdx];
1594
+ } else if (newEndVnode == null) {
1595
+ newEndVnode = newCh[--newEndIdx];
1596
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1597
+ patch(oldStartVnode, newStartVnode, isInitialRender);
1598
+ oldStartVnode = oldCh[++oldStartIdx];
1599
+ newStartVnode = newCh[++newStartIdx];
1600
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1601
+ patch(oldEndVnode, newEndVnode, isInitialRender);
1602
+ oldEndVnode = oldCh[--oldEndIdx];
1603
+ newEndVnode = newCh[--newEndIdx];
1604
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1605
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1606
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1607
+ }
1608
+ patch(oldStartVnode, newEndVnode, isInitialRender);
1609
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1610
+ oldStartVnode = oldCh[++oldStartIdx];
1611
+ newEndVnode = newCh[--newEndIdx];
1612
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1613
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1614
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1615
+ }
1616
+ patch(oldEndVnode, newStartVnode, isInitialRender);
1617
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1618
+ oldEndVnode = oldCh[--oldEndIdx];
1619
+ newStartVnode = newCh[++newStartIdx];
1620
+ } else {
1621
+ idxInOld = -1;
1622
+ {
1623
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1624
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1625
+ idxInOld = i2;
1626
+ break;
1627
+ }
1628
+ }
1629
+ }
1630
+ if (idxInOld >= 0) {
1631
+ elmToMove = oldCh[idxInOld];
1632
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1633
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
1634
+ } else {
1635
+ patch(elmToMove, newStartVnode, isInitialRender);
1636
+ oldCh[idxInOld] = void 0;
1637
+ node = elmToMove.$elm$;
1638
+ }
1639
+ newStartVnode = newCh[++newStartIdx];
1640
+ } else {
1641
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1642
+ newStartVnode = newCh[++newStartIdx];
1643
+ }
1644
+ if (node) {
1645
+ {
1646
+ insertBefore(
1647
+ referenceNode(oldStartVnode.$elm$).parentNode,
1648
+ node,
1649
+ referenceNode(oldStartVnode.$elm$)
1650
+ );
1651
+ }
1652
+ }
1653
+ }
1654
+ }
1655
+ if (oldStartIdx > oldEndIdx) {
1656
+ addVnodes(
1657
+ parentElm,
1658
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1659
+ newVNode2,
1660
+ newCh,
1661
+ newStartIdx,
1662
+ newEndIdx
1663
+ );
1664
+ } else if (newStartIdx > newEndIdx) {
1665
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1666
+ }
1667
+ };
1668
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1669
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1670
+ if (leftVNode.$tag$ === "slot") {
1671
+ return leftVNode.$name$ === rightVNode.$name$;
1672
+ }
1673
+ if (!isInitialRender) {
1674
+ return leftVNode.$key$ === rightVNode.$key$;
1675
+ }
1676
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1677
+ leftVNode.$key$ = rightVNode.$key$;
1678
+ }
1679
+ return true;
1680
+ }
1681
+ return false;
1682
+ };
1683
+ var referenceNode = (node) => node && node["s-ol"] || node;
1684
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1685
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
1686
+ const oldChildren = oldVNode.$children$;
1687
+ const newChildren = newVNode2.$children$;
1688
+ const tag = newVNode2.$tag$;
1689
+ const text = newVNode2.$text$;
1690
+ let defaultHolder;
1691
+ if (text == null) {
1692
+ {
1693
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1694
+ }
1695
+ {
1696
+ if (tag === "slot" && !useNativeShadowDom) {
1697
+ if (oldVNode.$name$ !== newVNode2.$name$) {
1698
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1699
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
1700
+ }
1701
+ }
1702
+ updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
1703
+ }
1704
+ if (oldChildren !== null && newChildren !== null) {
1705
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1706
+ } else if (newChildren !== null) {
1707
+ if (oldVNode.$text$ !== null) {
1708
+ elm.textContent = "";
1709
+ }
1710
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1711
+ } else if (
1712
+ // don't do this on initial render as it can cause non-hydrated content to be removed
1713
+ !isInitialRender && BUILD.updatable && oldChildren !== null
1714
+ ) {
1715
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1716
+ } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
1717
+ newVNode2.$children$ = oldChildren;
1718
+ }
1719
+ if (isSvgMode && tag === "svg") {
1720
+ isSvgMode = false;
1721
+ }
1722
+ } else if ((defaultHolder = elm["s-cr"])) {
1723
+ defaultHolder.parentNode.textContent = text;
1724
+ } else if (oldVNode.$text$ !== text) {
1725
+ elm.data = text;
1726
+ }
1727
+ };
1728
+ var relocateNodes = [];
1729
+ var markSlotContentForRelocation = (elm) => {
1730
+ let node;
1731
+ let hostContentNodes;
1732
+ let j;
1733
+ const children = elm.__childNodes || elm.childNodes;
1734
+ for (const childNode of children) {
1735
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1736
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1737
+ const slotName = childNode["s-sn"];
1738
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1739
+ node = hostContentNodes[j];
1740
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
1741
+ if (isNodeLocatedInSlot(node, slotName)) {
1742
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1743
+ checkSlotFallbackVisibility = true;
1744
+ node["s-sn"] = node["s-sn"] || slotName;
1745
+ if (relocateNodeData) {
1746
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1747
+ relocateNodeData.$slotRefNode$ = childNode;
1748
+ } else {
1749
+ node["s-sh"] = childNode["s-hn"];
1750
+ relocateNodes.push({
1751
+ $slotRefNode$: childNode,
1752
+ $nodeToRelocate$: node
1753
+ });
1754
+ }
1755
+ if (node["s-sr"]) {
1756
+ relocateNodes.map((relocateNode) => {
1757
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1758
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1759
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1760
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1761
+ }
1762
+ }
1763
+ });
1764
+ }
1765
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1766
+ relocateNodes.push({
1767
+ $nodeToRelocate$: node
1768
+ });
1769
+ }
1770
+ }
1771
+ }
1772
+ }
1773
+ if (childNode.nodeType === 1 /* ElementNode */) {
1774
+ markSlotContentForRelocation(childNode);
1775
+ }
1776
+ }
1777
+ };
1778
+ var nullifyVNodeRefs = (vNode) => {
1779
+ {
1780
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1781
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1782
+ }
1783
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1784
+ }
1785
+ };
1786
+ var queueRefAttachment = (refCallback, elm) => {
1787
+ {
1788
+ refCallbacksToAttach.push(() => refCallback(elm));
1789
+ }
1790
+ };
1791
+ var flushQueuedRefCallbacks = () => {
1792
+ {
1793
+ refCallbacksToRemove.forEach((cb) => cb());
1794
+ refCallbacksToRemove.length = 0;
1795
+ refCallbacksToAttach.forEach((cb) => cb());
1796
+ refCallbacksToAttach.length = 0;
1797
+ }
1798
+ };
1799
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1800
+ {
1801
+ if (typeof newNode["s-sn"] === "string") {
1802
+ parent.insertBefore(newNode, reference);
1803
+ const { slotNode } = findSlotFromSlottedNode(newNode);
1804
+ if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
1805
+ return newNode;
1806
+ }
1807
+ }
1808
+ if (parent.__insertBefore) {
1809
+ return parent.__insertBefore(newNode, reference);
1810
+ } else {
1811
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1812
+ }
1813
+ };
1814
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1815
+ var _a, _b, _c, _d, _e;
1816
+ const hostElm = hostRef.$hostElement$;
1817
+ const cmpMeta = hostRef.$cmpMeta$;
1818
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1819
+ const isHostElement = isHost(renderFnResults);
1820
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1821
+ hostTagName = hostElm.tagName;
1822
+ if (cmpMeta.$attrsToReflect$) {
1823
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1824
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
1825
+ {
1826
+ rootVnode.$attrs$[attribute] = hostElm[propName];
1827
+ }
1828
+ });
1829
+ }
1830
+ if (isInitialLoad && rootVnode.$attrs$) {
1831
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1832
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1833
+ rootVnode.$attrs$[key] = hostElm[key];
1834
+ }
1835
+ }
1836
+ }
1837
+ rootVnode.$tag$ = null;
1838
+ rootVnode.$flags$ |= 4 /* isHost */;
1839
+ hostRef.$vnode$ = rootVnode;
1840
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1841
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1842
+ {
1843
+ contentRef = hostElm["s-cr"];
1844
+ checkSlotFallbackVisibility = false;
1845
+ }
1846
+ patch(oldVNode, rootVnode, isInitialLoad);
1847
+ {
1848
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1849
+ if (checkSlotRelocate) {
1850
+ markSlotContentForRelocation(rootVnode.$elm$);
1851
+ for (const relocateData of relocateNodes) {
1852
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1853
+ if (!nodeToRelocate["s-ol"] && win.document) {
1854
+ const orgLocationNode = win.document.createTextNode("");
1855
+ orgLocationNode["s-nr"] = nodeToRelocate;
1856
+ insertBefore(
1857
+ nodeToRelocate.parentNode,
1858
+ nodeToRelocate["s-ol"] = orgLocationNode,
1859
+ nodeToRelocate,
1860
+ isInitialLoad
1861
+ );
1862
+ }
1863
+ }
1864
+ for (const relocateData of relocateNodes) {
1865
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1866
+ const slotRefNode = relocateData.$slotRefNode$;
1867
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
1868
+ nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
1869
+ }
1870
+ if (slotRefNode) {
1871
+ const parentNodeRef = slotRefNode.parentNode;
1872
+ let insertBeforeNode = slotRefNode.nextSibling;
1873
+ if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1874
+ let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
1875
+ while (orgLocationNode) {
1876
+ let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
1877
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1878
+ refNode = refNode.nextSibling;
1879
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1880
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
1881
+ }
1882
+ if (!refNode || !refNode["s-nr"]) {
1883
+ insertBeforeNode = refNode;
1884
+ break;
1885
+ }
1886
+ }
1887
+ orgLocationNode = orgLocationNode.previousSibling;
1888
+ }
1889
+ }
1890
+ const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1891
+ const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1892
+ if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1893
+ if (nodeToRelocate !== insertBeforeNode) {
1894
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
1895
+ if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
1896
+ const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
1897
+ textNode["s-hn"] = nodeToRelocate["s-hn"];
1898
+ textNode["s-sn"] = nodeToRelocate["s-sn"];
1899
+ textNode["s-sh"] = nodeToRelocate["s-sh"];
1900
+ textNode["s-sr"] = nodeToRelocate["s-sr"];
1901
+ textNode["s-ol"] = nodeToRelocate["s-ol"];
1902
+ textNode["s-ol"]["s-nr"] = textNode;
1903
+ insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
1904
+ nodeToRelocate.parentNode.removeChild(nodeToRelocate);
1905
+ }
1906
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1907
+ nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
1908
+ }
1909
+ }
1910
+ }
1911
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1912
+ } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1913
+ nodeToRelocate.hidden = true;
1914
+ }
1915
+ }
1916
+ }
1917
+ if (checkSlotFallbackVisibility) {
1918
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1919
+ }
1920
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1921
+ relocateNodes.length = 0;
1922
+ }
1923
+ if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
1924
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1925
+ for (const childNode of children) {
1926
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1927
+ if (isInitialLoad && childNode["s-ih"] == null) {
1928
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1929
+ }
1930
+ if (childNode.nodeType === 1 /* ElementNode */) {
1931
+ childNode.hidden = true;
1932
+ } else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
1933
+ const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
1934
+ textCommentNode["s-sn"] = childNode["s-sn"];
1935
+ insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
1936
+ childNode.parentNode.removeChild(childNode);
1937
+ }
1938
+ }
1939
+ }
1940
+ }
1941
+ contentRef = void 0;
1942
+ flushQueuedRefCallbacks();
1943
+ };
1944
+
1945
+ // src/runtime/update-component.ts
1946
+ var attachToAncestor = (hostRef, ancestorComponent) => {
1947
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1948
+ const index = ancestorComponent["s-p"].push(
1949
+ new Promise(
1950
+ (r) => hostRef.$onRenderResolve$ = () => {
1951
+ ancestorComponent["s-p"].splice(index - 1, 1);
1952
+ r();
1953
+ }
1954
+ )
1955
+ );
1956
+ }
1957
+ };
1958
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
1959
+ {
1960
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1961
+ }
1962
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1963
+ hostRef.$flags$ |= 512 /* needsRerender */;
1964
+ return;
1965
+ }
1966
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1967
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1968
+ if (isInitialLoad) {
1969
+ queueMicrotask(() => {
1970
+ dispatch();
1971
+ });
1972
+ return;
1973
+ }
1974
+ return writeTask(dispatch) ;
1975
+ };
1976
+ var dispatchHooks = (hostRef, isInitialLoad) => {
1977
+ const elm = hostRef.$hostElement$;
1978
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1979
+ const instance = hostRef.$lazyInstance$ ;
1980
+ if (!instance) {
1981
+ throw new Error(
1982
+ `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`
1983
+ );
1984
+ }
1985
+ let maybePromise;
1986
+ if (isInitialLoad) {
1987
+ {
1988
+ if (hostRef.$deferredConnectedCallback$) {
1989
+ hostRef.$deferredConnectedCallback$ = false;
1990
+ safeCall(instance, "connectedCallback", void 0, elm);
1991
+ }
1992
+ {
1993
+ hostRef.$flags$ |= 256 /* isListenReady */;
1994
+ if (hostRef.$queuedListeners$) {
1995
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1996
+ hostRef.$queuedListeners$ = void 0;
1997
+ }
1998
+ }
1999
+ if (hostRef.$fetchedCbList$.length) {
2000
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
2001
+ }
2002
+ }
2003
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
2004
+ } else {
2005
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
2006
+ }
2007
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
2008
+ endSchedule();
2009
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
2010
+ };
2011
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
2012
+ console.error(err);
2013
+ fn();
2014
+ }) : fn();
2015
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
2016
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
2017
+ var _a;
2018
+ const elm = hostRef.$hostElement$;
2019
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
2020
+ const rc = elm["s-rc"];
2021
+ if (isInitialLoad) {
2022
+ attachStyles(hostRef);
2023
+ }
2024
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
2025
+ {
2026
+ callRender(hostRef, instance, elm, isInitialLoad);
2027
+ }
2028
+ if (rc) {
2029
+ rc.map((cb) => cb());
2030
+ elm["s-rc"] = void 0;
2031
+ }
2032
+ endRender();
2033
+ endUpdate();
2034
+ {
2035
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
2036
+ const postUpdate = () => postUpdateComponent(hostRef);
2037
+ if (childrenPromises.length === 0) {
2038
+ postUpdate();
2039
+ } else {
2040
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
2041
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
2042
+ childrenPromises.length = 0;
2043
+ }
2044
+ }
2045
+ };
2046
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
2047
+ try {
2048
+ instance = instance.render() ;
2049
+ {
2050
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
2051
+ }
2052
+ {
2053
+ hostRef.$flags$ |= 2 /* hasRendered */;
2054
+ }
2055
+ {
2056
+ {
2057
+ {
2058
+ renderVdom(hostRef, instance, isInitialLoad);
2059
+ }
2060
+ }
2061
+ }
2062
+ } catch (e) {
2063
+ consoleError(e, hostRef.$hostElement$);
2064
+ }
2065
+ return null;
2066
+ };
2067
+ var postUpdateComponent = (hostRef) => {
2068
+ const tagName = hostRef.$cmpMeta$.$tagName$;
2069
+ const elm = hostRef.$hostElement$;
2070
+ const endPostUpdate = createTime("postUpdate", tagName);
2071
+ const instance = hostRef.$lazyInstance$ ;
2072
+ const ancestorComponent = hostRef.$ancestorComponent$;
2073
+ safeCall(instance, "componentDidRender", void 0, elm);
2074
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
2075
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
2076
+ {
2077
+ addHydratedFlag(elm);
2078
+ }
2079
+ safeCall(instance, "componentDidLoad", void 0, elm);
2080
+ endPostUpdate();
2081
+ {
2082
+ hostRef.$onReadyResolve$(elm);
2083
+ if (!ancestorComponent) {
2084
+ appDidLoad();
2085
+ }
2086
+ }
2087
+ } else {
2088
+ safeCall(instance, "componentDidUpdate", void 0, elm);
2089
+ endPostUpdate();
2090
+ }
2091
+ {
2092
+ hostRef.$onInstanceResolve$(elm);
2093
+ }
2094
+ {
2095
+ if (hostRef.$onRenderResolve$) {
2096
+ hostRef.$onRenderResolve$();
2097
+ hostRef.$onRenderResolve$ = void 0;
2098
+ }
2099
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
2100
+ nextTick(() => scheduleUpdate(hostRef, false));
2101
+ }
2102
+ hostRef.$flags$ &= -517;
2103
+ }
2104
+ };
2105
+ var appDidLoad = (who) => {
2106
+ var _a;
2107
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2108
+ {
2109
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
2110
+ plt.$orgLocNodes$.clear();
2111
+ }
2112
+ }
2113
+ };
2114
+ var safeCall = (instance, method, arg, elm) => {
2115
+ if (instance && instance[method]) {
2116
+ try {
2117
+ return instance[method](arg);
2118
+ } catch (e) {
2119
+ consoleError(e, elm);
2120
+ }
2121
+ }
2122
+ return void 0;
2123
+ };
2124
+ var addHydratedFlag = (elm) => {
2125
+ var _a;
2126
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
2127
+ };
2128
+
2129
+ // src/runtime/set-value.ts
2130
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
2131
+ var setValue = (ref, propName, newVal, cmpMeta) => {
2132
+ const hostRef = getHostRef(ref);
2133
+ if (!hostRef) {
2134
+ return;
2135
+ }
2136
+ if (!hostRef) {
2137
+ throw new Error(
2138
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
2139
+ );
2140
+ }
2141
+ const elm = hostRef.$hostElement$ ;
2142
+ const oldVal = hostRef.$instanceValues$.get(propName);
2143
+ const flags = hostRef.$flags$;
2144
+ const instance = hostRef.$lazyInstance$ ;
2145
+ newVal = parsePropertyValue(
2146
+ newVal,
2147
+ cmpMeta.$members$[propName][0],
2148
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2149
+ );
2150
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
2151
+ const didValueChange = newVal !== oldVal && !areBothNaN;
2152
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
2153
+ hostRef.$instanceValues$.set(propName, newVal);
2154
+ if (cmpMeta.$watchers$) {
2155
+ const watchMethods = cmpMeta.$watchers$[propName];
2156
+ if (watchMethods) {
2157
+ watchMethods.map((watcher) => {
2158
+ try {
2159
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2160
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
2161
+ if (!instance) {
2162
+ hostRef.$fetchedCbList$.push(() => {
2163
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
2164
+ });
2165
+ } else {
2166
+ instance[watchMethodName](newVal, oldVal, propName);
2167
+ }
2168
+ }
2169
+ } catch (e) {
2170
+ consoleError(e, elm);
2171
+ }
2172
+ });
2173
+ }
2174
+ }
2175
+ if (flags & 2 /* hasRendered */) {
2176
+ if (instance.componentShouldUpdate) {
2177
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
2178
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
2179
+ return;
2180
+ }
2181
+ }
2182
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
2183
+ scheduleUpdate(hostRef, false);
2184
+ }
2185
+ }
2186
+ }
2187
+ };
2188
+
2189
+ // src/runtime/proxy-component.ts
2190
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
2191
+ var _a, _b;
2192
+ const prototype = Cstr.prototype;
2193
+ if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
2194
+ FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
2195
+ Object.defineProperty(prototype, cbName, {
2196
+ value(...args) {
2197
+ var _a2;
2198
+ const hostRef = getHostRef(this);
2199
+ const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
2200
+ if (!instance) {
2201
+ (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
2202
+ const cb = asyncInstance[cbName];
2203
+ typeof cb === "function" && cb.call(asyncInstance, ...args);
2204
+ });
2205
+ } else {
2206
+ const cb = instance[cbName] ;
2207
+ typeof cb === "function" && cb.call(instance, ...args);
2208
+ }
2209
+ }
2210
+ });
2211
+ });
2212
+ }
2213
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
2214
+ {
2215
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
2216
+ cmpMeta.$watchers$ = Cstr.watchers;
2217
+ }
2218
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
2219
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2220
+ }
2221
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
2222
+ cmpMeta.$serializers$ = Cstr.serializers;
2223
+ }
2224
+ }
2225
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2226
+ members.map(([memberName, [memberFlags]]) => {
2227
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
2228
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
2229
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
2230
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
2231
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
2232
+ Object.defineProperty(prototype, memberName, {
2233
+ get() {
2234
+ {
2235
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
2236
+ return getValue(this, memberName);
2237
+ }
2238
+ const ref = getHostRef(this);
2239
+ const instance = ref ? ref.$lazyInstance$ : prototype;
2240
+ if (!instance) return;
2241
+ return instance[memberName];
2242
+ }
2243
+ },
2244
+ configurable: true,
2245
+ enumerable: true
2246
+ });
2247
+ }
2248
+ Object.defineProperty(prototype, memberName, {
2249
+ set(newValue) {
2250
+ const ref = getHostRef(this);
2251
+ if (!ref) {
2252
+ return;
2253
+ }
2254
+ if (origSetter) {
2255
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2256
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
2257
+ newValue = ref.$instanceValues$.get(memberName);
2258
+ }
2259
+ origSetter.apply(this, [
2260
+ parsePropertyValue(
2261
+ newValue,
2262
+ memberFlags,
2263
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2264
+ )
2265
+ ]);
2266
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2267
+ setValue(this, memberName, newValue, cmpMeta);
2268
+ return;
2269
+ }
2270
+ {
2271
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
2272
+ setValue(this, memberName, newValue, cmpMeta);
2273
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
2274
+ ref.$fetchedCbList$.push(() => {
2275
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
2276
+ ref.$lazyInstance$[memberName] = newValue;
2277
+ }
2278
+ });
2279
+ }
2280
+ return;
2281
+ }
2282
+ const setterSetVal = () => {
2283
+ const currentValue = ref.$lazyInstance$[memberName];
2284
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
2285
+ ref.$instanceValues$.set(memberName, currentValue);
2286
+ }
2287
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
2288
+ newValue,
2289
+ memberFlags,
2290
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2291
+ );
2292
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2293
+ };
2294
+ if (ref.$lazyInstance$) {
2295
+ setterSetVal();
2296
+ } else {
2297
+ ref.$fetchedCbList$.push(() => {
2298
+ setterSetVal();
2299
+ });
2300
+ }
2301
+ }
2302
+ }
2303
+ });
2304
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
2305
+ Object.defineProperty(prototype, memberName, {
2306
+ value(...args) {
2307
+ var _a2;
2308
+ const ref = getHostRef(this);
2309
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
2310
+ var _a3;
2311
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
2312
+ });
2313
+ }
2314
+ });
2315
+ }
2316
+ });
2317
+ if ((flags & 1 /* isElementConstructor */)) {
2318
+ const attrNameToPropName = /* @__PURE__ */ new Map();
2319
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
2320
+ plt.jmp(() => {
2321
+ var _a2;
2322
+ const propName = attrNameToPropName.get(attrName);
2323
+ const hostRef = getHostRef(this);
2324
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
2325
+ newValue = this[propName];
2326
+ delete this[propName];
2327
+ }
2328
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2329
+ this[propName] == newValue) {
2330
+ return;
2331
+ } else if (propName == null) {
2332
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
2333
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
2334
+ const instance = hostRef.$lazyInstance$ ;
2335
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2336
+ entry == null ? void 0 : entry.forEach((watcher) => {
2337
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
2338
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
2339
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
2340
+ }
2341
+ });
2342
+ }
2343
+ return;
2344
+ }
2345
+ const propFlags = members.find(([m]) => m === propName);
2346
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
2347
+ newValue = newValue === null || newValue === "false" ? false : true;
2348
+ }
2349
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2350
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
2351
+ this[propName] = newValue;
2352
+ }
2353
+ });
2354
+ };
2355
+ Cstr.observedAttributes = Array.from(
2356
+ /* @__PURE__ */ new Set([
2357
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2358
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
2359
+ var _a2;
2360
+ const attrName = m[1] || propName;
2361
+ attrNameToPropName.set(attrName, propName);
2362
+ if (m[0] & 512 /* ReflectAttr */) {
2363
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2364
+ }
2365
+ return attrName;
2366
+ })
2367
+ ])
2368
+ );
2369
+ }
2370
+ }
2371
+ return Cstr;
2372
+ };
2373
+
2374
+ // src/runtime/initialize-component.ts
2375
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2376
+ let Cstr;
2377
+ try {
2378
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2379
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2380
+ const bundleId = cmpMeta.$lazyBundleId$;
2381
+ if (bundleId) {
2382
+ const CstrImport = loadModule(cmpMeta, hostRef);
2383
+ if (CstrImport && "then" in CstrImport) {
2384
+ const endLoad = uniqueTime();
2385
+ Cstr = await CstrImport;
2386
+ endLoad();
2387
+ } else {
2388
+ Cstr = CstrImport;
2389
+ }
2390
+ if (!Cstr) {
2391
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2392
+ }
2393
+ if (!Cstr.isProxied) {
2394
+ {
2395
+ cmpMeta.$watchers$ = Cstr.watchers;
2396
+ cmpMeta.$serializers$ = Cstr.serializers;
2397
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2398
+ }
2399
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2400
+ Cstr.isProxied = true;
2401
+ }
2402
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2403
+ {
2404
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2405
+ }
2406
+ try {
2407
+ new Cstr(hostRef);
2408
+ } catch (e) {
2409
+ consoleError(e, elm);
2410
+ }
2411
+ {
2412
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2413
+ }
2414
+ {
2415
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2416
+ }
2417
+ endNewInstance();
2418
+ const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
2419
+ if (!needsDeferredCallback) {
2420
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2421
+ } else {
2422
+ hostRef.$deferredConnectedCallback$ = true;
2423
+ }
2424
+ } else {
2425
+ Cstr = elm.constructor;
2426
+ const cmpTag = elm.localName;
2427
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2428
+ }
2429
+ if (Cstr && Cstr.style) {
2430
+ let style;
2431
+ if (typeof Cstr.style === "string") {
2432
+ style = Cstr.style;
2433
+ }
2434
+ const scopeId2 = getScopeId(cmpMeta);
2435
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
2436
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2437
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2438
+ endRegisterStyles();
2439
+ }
2440
+ }
2441
+ }
2442
+ const ancestorComponent = hostRef.$ancestorComponent$;
2443
+ const schedule = () => scheduleUpdate(hostRef, true);
2444
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2445
+ ancestorComponent["s-rc"].push(schedule);
2446
+ } else {
2447
+ schedule();
2448
+ }
2449
+ } catch (e) {
2450
+ consoleError(e, elm);
2451
+ if (hostRef.$onRenderResolve$) {
2452
+ hostRef.$onRenderResolve$();
2453
+ hostRef.$onRenderResolve$ = void 0;
2454
+ }
2455
+ if (hostRef.$onReadyResolve$) {
2456
+ hostRef.$onReadyResolve$(elm);
2457
+ }
2458
+ }
2459
+ };
2460
+ var fireConnectedCallback = (instance, elm) => {
2461
+ {
2462
+ safeCall(instance, "connectedCallback", void 0, elm);
2463
+ }
2464
+ };
2465
+
2466
+ // src/runtime/connected-callback.ts
2467
+ var connectedCallback = (elm) => {
2468
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2469
+ const hostRef = getHostRef(elm);
2470
+ if (!hostRef) {
2471
+ return;
2472
+ }
2473
+ const cmpMeta = hostRef.$cmpMeta$;
2474
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2475
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2476
+ hostRef.$flags$ |= 1 /* hasConnected */;
2477
+ let hostId;
2478
+ {
2479
+ hostId = elm.getAttribute(HYDRATE_ID);
2480
+ if (hostId) {
2481
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2482
+ const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2483
+ elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2484
+ }
2485
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2486
+ }
2487
+ }
2488
+ if (!hostId) {
2489
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2490
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2491
+ setContentReference(elm);
2492
+ }
2493
+ }
2494
+ {
2495
+ let ancestorComponent = elm;
2496
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2497
+ if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2498
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2499
+ break;
2500
+ }
2501
+ }
2502
+ }
2503
+ if (cmpMeta.$members$) {
2504
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2505
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
2506
+ const value = elm[memberName];
2507
+ delete elm[memberName];
2508
+ elm[memberName] = value;
2509
+ }
2510
+ });
2511
+ }
2512
+ {
2513
+ initializeComponent(elm, hostRef, cmpMeta);
2514
+ }
2515
+ } else {
2516
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2517
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2518
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2519
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2520
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
2521
+ }
2522
+ }
2523
+ endConnected();
2524
+ }
2525
+ };
2526
+ var setContentReference = (elm) => {
2527
+ if (!win.document) {
2528
+ return;
2529
+ }
2530
+ const contentRefElm = elm["s-cr"] = win.document.createComment(
2531
+ ""
2532
+ );
2533
+ contentRefElm["s-cn"] = true;
2534
+ insertBefore(elm, contentRefElm, elm.firstChild);
2535
+ };
2536
+ var disconnectInstance = (instance, elm) => {
2537
+ {
2538
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
2539
+ }
2540
+ };
2541
+ var disconnectedCallback = async (elm) => {
2542
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2543
+ const hostRef = getHostRef(elm);
2544
+ {
2545
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
2546
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
2547
+ hostRef.$rmListeners$ = void 0;
2548
+ }
2549
+ }
2550
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2551
+ disconnectInstance(hostRef.$lazyInstance$, elm);
2552
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2553
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
2554
+ }
2555
+ }
2556
+ if (rootAppliedStyles.has(elm)) {
2557
+ rootAppliedStyles.delete(elm);
2558
+ }
2559
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2560
+ rootAppliedStyles.delete(elm.shadowRoot);
2561
+ }
2562
+ };
2563
+
2564
+ // src/runtime/bootstrap-lazy.ts
2565
+ var bootstrapLazy = (lazyBundles, options = {}) => {
2566
+ var _a;
2567
+ if (!win.document) {
2568
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
2569
+ return;
2570
+ }
2571
+ const endBootstrap = createTime();
2572
+ const cmpTags = [];
2573
+ const exclude = options.exclude || [];
2574
+ const customElements2 = win.customElements;
2575
+ const head = win.document.head;
2576
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2577
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
2578
+ const deferredConnectedCallbacks = [];
2579
+ let appLoadFallback;
2580
+ let isBootstrapping = true;
2581
+ Object.assign(plt, options);
2582
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
2583
+ {
2584
+ plt.$flags$ |= 2 /* appLoaded */;
2585
+ }
2586
+ {
2587
+ hydrateScopedToShadow();
2588
+ }
2589
+ let hasSlotRelocation = false;
2590
+ lazyBundles.map((lazyBundle) => {
2591
+ lazyBundle[1].map((compactMeta) => {
2592
+ var _a2, _b, _c;
2593
+ const cmpMeta = {
2594
+ $flags$: compactMeta[0],
2595
+ $tagName$: compactMeta[1],
2596
+ $members$: compactMeta[2],
2597
+ $listeners$: compactMeta[3]
2598
+ };
2599
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2600
+ hasSlotRelocation = true;
2601
+ }
2602
+ {
2603
+ cmpMeta.$members$ = compactMeta[2];
2604
+ }
2605
+ {
2606
+ cmpMeta.$listeners$ = compactMeta[3];
2607
+ }
2608
+ {
2609
+ cmpMeta.$attrsToReflect$ = [];
2610
+ }
2611
+ {
2612
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
2613
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
2614
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
2615
+ }
2616
+ const tagName = transformTag(cmpMeta.$tagName$);
2617
+ const HostElement = class extends HTMLElement {
2618
+ ["s-p"];
2619
+ ["s-rc"];
2620
+ hasRegisteredEventListeners = false;
2621
+ // StencilLazyHost
2622
+ constructor(self) {
2623
+ super(self);
2624
+ self = this;
2625
+ registerHost(self, cmpMeta);
2626
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2627
+ {
2628
+ if (!self.shadowRoot) {
2629
+ createShadowRoot.call(self, cmpMeta);
2630
+ } else {
2631
+ if (self.shadowRoot.mode !== "open") {
2632
+ throw new Error(
2633
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2634
+ );
2635
+ }
2636
+ }
2637
+ }
2638
+ }
2639
+ }
2640
+ connectedCallback() {
2641
+ const hostRef = getHostRef(this);
2642
+ if (!hostRef) {
2643
+ return;
2644
+ }
2645
+ if (!this.hasRegisteredEventListeners) {
2646
+ this.hasRegisteredEventListeners = true;
2647
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2648
+ }
2649
+ if (appLoadFallback) {
2650
+ clearTimeout(appLoadFallback);
2651
+ appLoadFallback = null;
2652
+ }
2653
+ if (isBootstrapping) {
2654
+ deferredConnectedCallbacks.push(this);
2655
+ } else {
2656
+ plt.jmp(() => connectedCallback(this));
2657
+ }
2658
+ }
2659
+ disconnectedCallback() {
2660
+ plt.jmp(() => disconnectedCallback(this));
2661
+ plt.raf(() => {
2662
+ var _a3;
2663
+ const hostRef = getHostRef(this);
2664
+ if (!hostRef) {
2665
+ return;
2666
+ }
2667
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2668
+ if (i2 > -1) {
2669
+ deferredConnectedCallbacks.splice(i2, 1);
2670
+ }
2671
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
2672
+ delete hostRef.$vnode$.$elm$;
2673
+ }
2674
+ });
2675
+ }
2676
+ componentOnReady() {
2677
+ var _a3;
2678
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2679
+ }
2680
+ };
2681
+ if (cmpMeta.$flags$ & 64 /* formAssociated */) {
2682
+ HostElement.formAssociated = true;
2683
+ }
2684
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
2685
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2686
+ cmpTags.push(tagName);
2687
+ customElements2.define(
2688
+ tagName,
2689
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2690
+ );
2691
+ }
2692
+ });
2693
+ });
2694
+ if (cmpTags.length > 0) {
2695
+ if (hasSlotRelocation) {
2696
+ dataStyles.textContent += SLOT_FB_CSS;
2697
+ }
2698
+ {
2699
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2700
+ }
2701
+ if (dataStyles.innerHTML.length) {
2702
+ dataStyles.setAttribute("data-styles", "");
2703
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2704
+ if (nonce != null) {
2705
+ dataStyles.setAttribute("nonce", nonce);
2706
+ }
2707
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2708
+ }
2709
+ }
2710
+ isBootstrapping = false;
2711
+ if (deferredConnectedCallbacks.length) {
2712
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
2713
+ } else {
2714
+ {
2715
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2716
+ }
2717
+ }
2718
+ endBootstrap();
2719
+ };
2720
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2721
+ if (listeners && win.document) {
2722
+ listeners.map(([flags, name, method]) => {
2723
+ const target = getHostListenerTarget(win.document, elm, flags) ;
2724
+ const handler = hostListenerProxy(hostRef, method);
2725
+ const opts = hostListenerOpts(flags);
2726
+ plt.ael(target, name, handler, opts);
2727
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2728
+ });
2729
+ }
2730
+ };
2731
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
2732
+ var _a;
2733
+ try {
2734
+ {
2735
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
2736
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2737
+ } else {
2738
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2739
+ }
2740
+ }
2741
+ } catch (e) {
2742
+ consoleError(e, hostRef.$hostElement$);
2743
+ }
2744
+ };
2745
+ var getHostListenerTarget = (doc, elm, flags) => {
2746
+ if (flags & 4 /* TargetDocument */) {
2747
+ return doc;
2748
+ }
2749
+ if (flags & 8 /* TargetWindow */) {
2750
+ return win;
2751
+ }
2752
+ return elm;
2753
+ };
2754
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2755
+ passive: (flags & 1 /* Passive */) !== 0,
2756
+ capture: (flags & 2 /* Capture */) !== 0
2757
+ } : (flags & 2 /* Capture */) !== 0;
2758
+
2759
+ // src/runtime/nonce.ts
2760
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
2761
+ function transformTag(tag) {
2762
+ return tag;
2763
+ }
2764
+
2765
+ exports.Build = Build;
2766
+ exports.bootstrapLazy = bootstrapLazy;
2767
+ exports.createEvent = createEvent;
2768
+ exports.getElement = getElement;
2769
+ exports.globalScripts = globalScripts;
2770
+ exports.h = h;
2771
+ exports.promiseResolve = promiseResolve;
2772
+ exports.registerInstance = registerInstance;
2773
+ exports.setNonce = setNonce;