@dropi/ui 0.1.41 → 0.1.43

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