@xplor-education/core-stencil-components 2.0.0

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 (724) hide show
  1. package/LICENSE +21 -0
  2. package/components/index.d.ts +33 -0
  3. package/components/index.js +2324 -0
  4. package/components/index.js.map +1 -0
  5. package/components/p-B1W2qj2l.js +50 -0
  6. package/components/p-B1W2qj2l.js.map +1 -0
  7. package/components/p-BK_ATKuB.js +37 -0
  8. package/components/p-BK_ATKuB.js.map +1 -0
  9. package/components/p-CBSi5kQB.js +56 -0
  10. package/components/p-CBSi5kQB.js.map +1 -0
  11. package/components/p-CTD6SyTD.js +181 -0
  12. package/components/p-CTD6SyTD.js.map +1 -0
  13. package/components/p-Ddr35stE.js +117 -0
  14. package/components/p-Ddr35stE.js.map +1 -0
  15. package/components/p-x30CgLRv.js +184 -0
  16. package/components/p-x30CgLRv.js.map +1 -0
  17. package/components/xplor-alert-dialog.d.ts +11 -0
  18. package/components/xplor-alert-dialog.js +85 -0
  19. package/components/xplor-alert-dialog.js.map +1 -0
  20. package/components/xplor-alert-message.d.ts +11 -0
  21. package/components/xplor-alert-message.js +48 -0
  22. package/components/xplor-alert-message.js.map +1 -0
  23. package/components/xplor-assistant.d.ts +11 -0
  24. package/components/xplor-assistant.js +763 -0
  25. package/components/xplor-assistant.js.map +1 -0
  26. package/components/xplor-autocomplete.d.ts +11 -0
  27. package/components/xplor-autocomplete.js +268 -0
  28. package/components/xplor-autocomplete.js.map +1 -0
  29. package/components/xplor-avatar-and-name.d.ts +11 -0
  30. package/components/xplor-avatar-and-name.js +48 -0
  31. package/components/xplor-avatar-and-name.js.map +1 -0
  32. package/components/xplor-avatar.d.ts +11 -0
  33. package/components/xplor-avatar.js +9 -0
  34. package/components/xplor-avatar.js.map +1 -0
  35. package/components/xplor-badge-active.d.ts +11 -0
  36. package/components/xplor-badge-active.js +35 -0
  37. package/components/xplor-badge-active.js.map +1 -0
  38. package/components/xplor-badge-archived.d.ts +11 -0
  39. package/components/xplor-badge-archived.js +35 -0
  40. package/components/xplor-badge-archived.js.map +1 -0
  41. package/components/xplor-badge-deleted.d.ts +11 -0
  42. package/components/xplor-badge-deleted.js +35 -0
  43. package/components/xplor-badge-deleted.js.map +1 -0
  44. package/components/xplor-badge-expired.d.ts +11 -0
  45. package/components/xplor-badge-expired.js +35 -0
  46. package/components/xplor-badge-expired.js.map +1 -0
  47. package/components/xplor-badge-inactive.d.ts +11 -0
  48. package/components/xplor-badge-inactive.js +35 -0
  49. package/components/xplor-badge-inactive.js.map +1 -0
  50. package/components/xplor-badge-recalled.d.ts +11 -0
  51. package/components/xplor-badge-recalled.js +35 -0
  52. package/components/xplor-badge-recalled.js.map +1 -0
  53. package/components/xplor-badge-session-booking.d.ts +11 -0
  54. package/components/xplor-badge-session-booking.js +60 -0
  55. package/components/xplor-badge-session-booking.js.map +1 -0
  56. package/components/xplor-badge-upcoming.d.ts +11 -0
  57. package/components/xplor-badge-upcoming.js +35 -0
  58. package/components/xplor-badge-upcoming.js.map +1 -0
  59. package/components/xplor-badge-waitlist.d.ts +11 -0
  60. package/components/xplor-badge-waitlist.js +35 -0
  61. package/components/xplor-badge-waitlist.js.map +1 -0
  62. package/components/xplor-badge.d.ts +11 -0
  63. package/components/xplor-badge.js +151 -0
  64. package/components/xplor-badge.js.map +1 -0
  65. package/components/xplor-btn-back-to-parent.d.ts +11 -0
  66. package/components/xplor-btn-back-to-parent.js +72 -0
  67. package/components/xplor-btn-back-to-parent.js.map +1 -0
  68. package/components/xplor-btn-back.d.ts +11 -0
  69. package/components/xplor-btn-back.js +76 -0
  70. package/components/xplor-btn-back.js.map +1 -0
  71. package/components/xplor-btn-icon.d.ts +11 -0
  72. package/components/xplor-btn-icon.js +77 -0
  73. package/components/xplor-btn-icon.js.map +1 -0
  74. package/components/xplor-btn-menu.d.ts +11 -0
  75. package/components/xplor-btn-menu.js +105 -0
  76. package/components/xplor-btn-menu.js.map +1 -0
  77. package/components/xplor-btn-toggle-group.d.ts +11 -0
  78. package/components/xplor-btn-toggle-group.js +46 -0
  79. package/components/xplor-btn-toggle-group.js.map +1 -0
  80. package/components/xplor-btn-toggle-secondary.d.ts +11 -0
  81. package/components/xplor-btn-toggle-secondary.js +64 -0
  82. package/components/xplor-btn-toggle-secondary.js.map +1 -0
  83. package/components/xplor-btn-toggle.d.ts +11 -0
  84. package/components/xplor-btn-toggle.js +69 -0
  85. package/components/xplor-btn-toggle.js.map +1 -0
  86. package/components/xplor-btn-tooltip.d.ts +11 -0
  87. package/components/xplor-btn-tooltip.js +58 -0
  88. package/components/xplor-btn-tooltip.js.map +1 -0
  89. package/components/xplor-button.d.ts +11 -0
  90. package/components/xplor-button.js +9 -0
  91. package/components/xplor-button.js.map +1 -0
  92. package/components/xplor-chat-widget.d.ts +11 -0
  93. package/components/xplor-chat-widget.js +104 -0
  94. package/components/xplor-chat-widget.js.map +1 -0
  95. package/components/xplor-checkbox.d.ts +11 -0
  96. package/components/xplor-checkbox.js +124 -0
  97. package/components/xplor-checkbox.js.map +1 -0
  98. package/components/xplor-combobox.d.ts +11 -0
  99. package/components/xplor-combobox.js +278 -0
  100. package/components/xplor-combobox.js.map +1 -0
  101. package/components/xplor-datatable.d.ts +11 -0
  102. package/components/xplor-datatable.js +243 -0
  103. package/components/xplor-datatable.js.map +1 -0
  104. package/components/xplor-date-picker.d.ts +11 -0
  105. package/components/xplor-date-picker.js +268 -0
  106. package/components/xplor-date-picker.js.map +1 -0
  107. package/components/xplor-drag-and-drop-input.d.ts +11 -0
  108. package/components/xplor-drag-and-drop-input.js +137 -0
  109. package/components/xplor-drag-and-drop-input.js.map +1 -0
  110. package/components/xplor-dropdown.d.ts +11 -0
  111. package/components/xplor-dropdown.js +9 -0
  112. package/components/xplor-dropdown.js.map +1 -0
  113. package/components/xplor-expansion-panel.d.ts +11 -0
  114. package/components/xplor-expansion-panel.js +74 -0
  115. package/components/xplor-expansion-panel.js.map +1 -0
  116. package/components/xplor-expansion-panels.d.ts +11 -0
  117. package/components/xplor-expansion-panels.js +70 -0
  118. package/components/xplor-expansion-panels.js.map +1 -0
  119. package/components/xplor-file-upload.d.ts +11 -0
  120. package/components/xplor-file-upload.js +183 -0
  121. package/components/xplor-file-upload.js.map +1 -0
  122. package/components/xplor-inline-checkbox.d.ts +11 -0
  123. package/components/xplor-inline-checkbox.js +75 -0
  124. package/components/xplor-inline-checkbox.js.map +1 -0
  125. package/components/xplor-inline-date-picker.d.ts +11 -0
  126. package/components/xplor-inline-date-picker.js +9 -0
  127. package/components/xplor-inline-date-picker.js.map +1 -0
  128. package/components/xplor-inline-switch.d.ts +11 -0
  129. package/components/xplor-inline-switch.js +68 -0
  130. package/components/xplor-inline-switch.js.map +1 -0
  131. package/components/xplor-input-file.d.ts +11 -0
  132. package/components/xplor-input-file.js +121 -0
  133. package/components/xplor-input-file.js.map +1 -0
  134. package/components/xplor-input-search.d.ts +11 -0
  135. package/components/xplor-input-search.js +89 -0
  136. package/components/xplor-input-search.js.map +1 -0
  137. package/components/xplor-input-select.d.ts +11 -0
  138. package/components/xplor-input-select.js +168 -0
  139. package/components/xplor-input-select.js.map +1 -0
  140. package/components/xplor-input-send.d.ts +11 -0
  141. package/components/xplor-input-send.js +87 -0
  142. package/components/xplor-input-send.js.map +1 -0
  143. package/components/xplor-input-text-area.d.ts +11 -0
  144. package/components/xplor-input-text-area.js +131 -0
  145. package/components/xplor-input-text-area.js.map +1 -0
  146. package/components/xplor-input-text-secondary.d.ts +11 -0
  147. package/components/xplor-input-text-secondary.js +94 -0
  148. package/components/xplor-input-text-secondary.js.map +1 -0
  149. package/components/xplor-input-text.d.ts +11 -0
  150. package/components/xplor-input-text.js +129 -0
  151. package/components/xplor-input-text.js.map +1 -0
  152. package/components/xplor-input-title.d.ts +11 -0
  153. package/components/xplor-input-title.js +68 -0
  154. package/components/xplor-input-title.js.map +1 -0
  155. package/components/xplor-links.d.ts +11 -0
  156. package/components/xplor-links.js +38 -0
  157. package/components/xplor-links.js.map +1 -0
  158. package/components/xplor-modal-persistent.d.ts +11 -0
  159. package/components/xplor-modal-persistent.js +65 -0
  160. package/components/xplor-modal-persistent.js.map +1 -0
  161. package/components/xplor-modal.d.ts +11 -0
  162. package/components/xplor-modal.js +9 -0
  163. package/components/xplor-modal.js.map +1 -0
  164. package/components/xplor-nav-tabs.d.ts +11 -0
  165. package/components/xplor-nav-tabs.js +58 -0
  166. package/components/xplor-nav-tabs.js.map +1 -0
  167. package/components/xplor-section-card.d.ts +11 -0
  168. package/components/xplor-section-card.js +46 -0
  169. package/components/xplor-section-card.js.map +1 -0
  170. package/components/xplor-section-heading.d.ts +11 -0
  171. package/components/xplor-section-heading.js +43 -0
  172. package/components/xplor-section-heading.js.map +1 -0
  173. package/components/xplor-table.d.ts +11 -0
  174. package/components/xplor-table.js +275 -0
  175. package/components/xplor-table.js.map +1 -0
  176. package/components/xplor-text-bubble.d.ts +11 -0
  177. package/components/xplor-text-bubble.js +42 -0
  178. package/components/xplor-text-bubble.js.map +1 -0
  179. package/components/xplor-text-field.d.ts +11 -0
  180. package/components/xplor-text-field.js +190 -0
  181. package/components/xplor-text-field.js.map +1 -0
  182. package/components/xplor-time-picker.d.ts +11 -0
  183. package/components/xplor-time-picker.js +348 -0
  184. package/components/xplor-time-picker.js.map +1 -0
  185. package/components/xplor-tooltip.d.ts +11 -0
  186. package/components/xplor-tooltip.js +9 -0
  187. package/components/xplor-tooltip.js.map +1 -0
  188. package/dist/cjs/index-Bc5o_4vY.js +2594 -0
  189. package/dist/cjs/index-Bc5o_4vY.js.map +1 -0
  190. package/dist/cjs/index.cjs.js +5 -0
  191. package/dist/cjs/index.cjs.js.map +1 -0
  192. package/dist/cjs/loader.cjs.js +15 -0
  193. package/dist/cjs/loader.cjs.js.map +1 -0
  194. package/dist/cjs/xplor-alert-dialog_57.cjs.entry.js +4750 -0
  195. package/dist/cjs/xplor-alert-dialog_57.cjs.entry.js.map +1 -0
  196. package/dist/cjs/xplor-component-library.cjs.js +27 -0
  197. package/dist/cjs/xplor-component-library.cjs.js.map +1 -0
  198. package/dist/collection/collection-manifest.json +69 -0
  199. package/dist/collection/components/element-interface.js +2 -0
  200. package/dist/collection/components/element-interface.js.map +1 -0
  201. package/dist/collection/components/helpers.js +129 -0
  202. package/dist/collection/components/helpers.js.map +1 -0
  203. package/dist/collection/components/xplor-alert-dialog/xplor-alert-dialog.css +348 -0
  204. package/dist/collection/components/xplor-alert-dialog/xplor-alert-dialog.js +163 -0
  205. package/dist/collection/components/xplor-alert-dialog/xplor-alert-dialog.js.map +1 -0
  206. package/dist/collection/components/xplor-alert-message/xplor-alert-message.css +352 -0
  207. package/dist/collection/components/xplor-alert-message/xplor-alert-message.js +110 -0
  208. package/dist/collection/components/xplor-alert-message/xplor-alert-message.js.map +1 -0
  209. package/dist/collection/components/xplor-assistant/internal/AssistantInput.js +39 -0
  210. package/dist/collection/components/xplor-assistant/internal/AssistantInput.js.map +1 -0
  211. package/dist/collection/components/xplor-assistant/internal/AssistantMessage.js +35 -0
  212. package/dist/collection/components/xplor-assistant/internal/AssistantMessage.js.map +1 -0
  213. package/dist/collection/components/xplor-assistant/internal/QuickReplies.js +13 -0
  214. package/dist/collection/components/xplor-assistant/internal/QuickReplies.js.map +1 -0
  215. package/dist/collection/components/xplor-assistant/internal/TypingIndicator.js +9 -0
  216. package/dist/collection/components/xplor-assistant/internal/TypingIndicator.js.map +1 -0
  217. package/dist/collection/components/xplor-assistant/internal/types.js +2 -0
  218. package/dist/collection/components/xplor-assistant/internal/types.js.map +1 -0
  219. package/dist/collection/components/xplor-assistant/utils/api.js +138 -0
  220. package/dist/collection/components/xplor-assistant/utils/api.js.map +1 -0
  221. package/dist/collection/components/xplor-assistant/utils/icons.js +53 -0
  222. package/dist/collection/components/xplor-assistant/utils/icons.js.map +1 -0
  223. package/dist/collection/components/xplor-assistant/utils/speech.js +230 -0
  224. package/dist/collection/components/xplor-assistant/utils/speech.js.map +1 -0
  225. package/dist/collection/components/xplor-assistant/xplor-assistant.css +1384 -0
  226. package/dist/collection/components/xplor-assistant/xplor-assistant.js +675 -0
  227. package/dist/collection/components/xplor-assistant/xplor-assistant.js.map +1 -0
  228. package/dist/collection/components/xplor-autocomplete/xplor-autocomplete.css +458 -0
  229. package/dist/collection/components/xplor-autocomplete/xplor-autocomplete.js +613 -0
  230. package/dist/collection/components/xplor-autocomplete/xplor-autocomplete.js.map +1 -0
  231. package/dist/collection/components/xplor-avatar/avatar.stories.js +175 -0
  232. package/dist/collection/components/xplor-avatar/avatar.stories.js.map +1 -0
  233. package/dist/collection/components/xplor-avatar/xplor-avatar.css +271 -0
  234. package/dist/collection/components/xplor-avatar/xplor-avatar.js +186 -0
  235. package/dist/collection/components/xplor-avatar/xplor-avatar.js.map +1 -0
  236. package/dist/collection/components/xplor-avatar-and-name/xplor-avatar-and-name.css +284 -0
  237. package/dist/collection/components/xplor-avatar-and-name/xplor-avatar-and-name.js +122 -0
  238. package/dist/collection/components/xplor-avatar-and-name/xplor-avatar-and-name.js.map +1 -0
  239. package/dist/collection/components/xplor-badge/xplor-badge.css +1100 -0
  240. package/dist/collection/components/xplor-badge/xplor-badge.js +273 -0
  241. package/dist/collection/components/xplor-badge/xplor-badge.js.map +1 -0
  242. package/dist/collection/components/xplor-badge-active/xplor-badge-active.css +280 -0
  243. package/dist/collection/components/xplor-badge-active/xplor-badge-active.js +19 -0
  244. package/dist/collection/components/xplor-badge-active/xplor-badge-active.js.map +1 -0
  245. package/dist/collection/components/xplor-badge-archived/xplor-badge-archived.css +280 -0
  246. package/dist/collection/components/xplor-badge-archived/xplor-badge-archived.js +19 -0
  247. package/dist/collection/components/xplor-badge-archived/xplor-badge-archived.js.map +1 -0
  248. package/dist/collection/components/xplor-badge-deleted/xplor-badge-deleted.css +280 -0
  249. package/dist/collection/components/xplor-badge-deleted/xplor-badge-deleted.js +19 -0
  250. package/dist/collection/components/xplor-badge-deleted/xplor-badge-deleted.js.map +1 -0
  251. package/dist/collection/components/xplor-badge-expired/xplor-badge-expired.css +280 -0
  252. package/dist/collection/components/xplor-badge-expired/xplor-badge-expired.js +19 -0
  253. package/dist/collection/components/xplor-badge-expired/xplor-badge-expired.js.map +1 -0
  254. package/dist/collection/components/xplor-badge-inactive/xplor-badge-inactive.css +280 -0
  255. package/dist/collection/components/xplor-badge-inactive/xplor-badge-inactive.js +19 -0
  256. package/dist/collection/components/xplor-badge-inactive/xplor-badge-inactive.js.map +1 -0
  257. package/dist/collection/components/xplor-badge-recalled/xplor-badge-recalled.css +280 -0
  258. package/dist/collection/components/xplor-badge-recalled/xplor-badge-recalled.js +19 -0
  259. package/dist/collection/components/xplor-badge-recalled/xplor-badge-recalled.js.map +1 -0
  260. package/dist/collection/components/xplor-badge-session-booking/xplor-badge-session-booking.css +300 -0
  261. package/dist/collection/components/xplor-badge-session-booking/xplor-badge-session-booking.js +93 -0
  262. package/dist/collection/components/xplor-badge-session-booking/xplor-badge-session-booking.js.map +1 -0
  263. package/dist/collection/components/xplor-badge-upcoming/xplor-badge-upcoming.css +280 -0
  264. package/dist/collection/components/xplor-badge-upcoming/xplor-badge-upcoming.js +19 -0
  265. package/dist/collection/components/xplor-badge-upcoming/xplor-badge-upcoming.js.map +1 -0
  266. package/dist/collection/components/xplor-badge-waitlist/xplor-badge-waitlist.css +280 -0
  267. package/dist/collection/components/xplor-badge-waitlist/xplor-badge-waitlist.js +19 -0
  268. package/dist/collection/components/xplor-badge-waitlist/xplor-badge-waitlist.js.map +1 -0
  269. package/dist/collection/components/xplor-btn-back/xplor-btn-back.css +306 -0
  270. package/dist/collection/components/xplor-btn-back/xplor-btn-back.js +182 -0
  271. package/dist/collection/components/xplor-btn-back/xplor-btn-back.js.map +1 -0
  272. package/dist/collection/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.css +306 -0
  273. package/dist/collection/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.js +173 -0
  274. package/dist/collection/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.js.map +1 -0
  275. package/dist/collection/components/xplor-btn-icon/xplor-btn-icon.css +370 -0
  276. package/dist/collection/components/xplor-btn-icon/xplor-btn-icon.js +183 -0
  277. package/dist/collection/components/xplor-btn-icon/xplor-btn-icon.js.map +1 -0
  278. package/dist/collection/components/xplor-btn-menu/xplor-btn-menu.css +327 -0
  279. package/dist/collection/components/xplor-btn-menu/xplor-btn-menu.js +238 -0
  280. package/dist/collection/components/xplor-btn-menu/xplor-btn-menu.js.map +1 -0
  281. package/dist/collection/components/xplor-btn-toggle/xplor-btn-toggle.css +312 -0
  282. package/dist/collection/components/xplor-btn-toggle/xplor-btn-toggle.js +151 -0
  283. package/dist/collection/components/xplor-btn-toggle/xplor-btn-toggle.js.map +1 -0
  284. package/dist/collection/components/xplor-btn-toggle-group/xplor-btn-toggle-group.css +278 -0
  285. package/dist/collection/components/xplor-btn-toggle-group/xplor-btn-toggle-group.js +73 -0
  286. package/dist/collection/components/xplor-btn-toggle-group/xplor-btn-toggle-group.js.map +1 -0
  287. package/dist/collection/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.css +314 -0
  288. package/dist/collection/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.js +127 -0
  289. package/dist/collection/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.js.map +1 -0
  290. package/dist/collection/components/xplor-btn-tooltip/xplor-btn-tooltip.css +271 -0
  291. package/dist/collection/components/xplor-btn-tooltip/xplor-btn-tooltip.js +164 -0
  292. package/dist/collection/components/xplor-btn-tooltip/xplor-btn-tooltip.js.map +1 -0
  293. package/dist/collection/components/xplor-button/xplor-button.css +1253 -0
  294. package/dist/collection/components/xplor-button/xplor-button.js +212 -0
  295. package/dist/collection/components/xplor-button/xplor-button.js.map +1 -0
  296. package/dist/collection/components/xplor-button/xplor-buttons.stories.js +49 -0
  297. package/dist/collection/components/xplor-button/xplor-buttons.stories.js.map +1 -0
  298. package/dist/collection/components/xplor-chat-widget/xplor-chat-widget.css +276 -0
  299. package/dist/collection/components/xplor-chat-widget/xplor-chat-widget.js +139 -0
  300. package/dist/collection/components/xplor-chat-widget/xplor-chat-widget.js.map +1 -0
  301. package/dist/collection/components/xplor-chat-widget/xplor-chat.stories.js +31 -0
  302. package/dist/collection/components/xplor-chat-widget/xplor-chat.stories.js.map +1 -0
  303. package/dist/collection/components/xplor-checkbox/xplor-checkbox.css +453 -0
  304. package/dist/collection/components/xplor-checkbox/xplor-checkbox.js +230 -0
  305. package/dist/collection/components/xplor-checkbox/xplor-checkbox.js.map +1 -0
  306. package/dist/collection/components/xplor-combobox/xplor-combobox.css +473 -0
  307. package/dist/collection/components/xplor-combobox/xplor-combobox.js +553 -0
  308. package/dist/collection/components/xplor-combobox/xplor-combobox.js.map +1 -0
  309. package/dist/collection/components/xplor-datatable/xplor-datatable.css +580 -0
  310. package/dist/collection/components/xplor-datatable/xplor-datatable.js +536 -0
  311. package/dist/collection/components/xplor-datatable/xplor-datatable.js.map +1 -0
  312. package/dist/collection/components/xplor-datatable/xplor-datatable.stories.js +137 -0
  313. package/dist/collection/components/xplor-datatable/xplor-datatable.stories.js.map +1 -0
  314. package/dist/collection/components/xplor-date-picker/xplor-date-picker.css +415 -0
  315. package/dist/collection/components/xplor-date-picker/xplor-date-picker.js +694 -0
  316. package/dist/collection/components/xplor-date-picker/xplor-date-picker.js.map +1 -0
  317. package/dist/collection/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.css +1149 -0
  318. package/dist/collection/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.js +256 -0
  319. package/dist/collection/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.js.map +1 -0
  320. package/dist/collection/components/xplor-dropdown/xplor-dropdown.css +286 -0
  321. package/dist/collection/components/xplor-dropdown/xplor-dropdown.js +83 -0
  322. package/dist/collection/components/xplor-dropdown/xplor-dropdown.js.map +1 -0
  323. package/dist/collection/components/xplor-expansion-panel/xplor-expansion-panel.css +334 -0
  324. package/dist/collection/components/xplor-expansion-panel/xplor-expansion-panel.js +122 -0
  325. package/dist/collection/components/xplor-expansion-panel/xplor-expansion-panel.js.map +1 -0
  326. package/dist/collection/components/xplor-expansion-panels/xplor-expansion-panels.css +277 -0
  327. package/dist/collection/components/xplor-expansion-panels/xplor-expansion-panels.js +129 -0
  328. package/dist/collection/components/xplor-expansion-panels/xplor-expansion-panels.js.map +1 -0
  329. package/dist/collection/components/xplor-file-upload/xplor-file-upload.css +433 -0
  330. package/dist/collection/components/xplor-file-upload/xplor-file-upload.js +347 -0
  331. package/dist/collection/components/xplor-file-upload/xplor-file-upload.js.map +1 -0
  332. package/dist/collection/components/xplor-inline-checkbox/xplor-inline-checkbox.css +300 -0
  333. package/dist/collection/components/xplor-inline-checkbox/xplor-inline-checkbox.js +194 -0
  334. package/dist/collection/components/xplor-inline-checkbox/xplor-inline-checkbox.js.map +1 -0
  335. package/dist/collection/components/xplor-inline-date-picker/xplor-inline-date-picker.css +410 -0
  336. package/dist/collection/components/xplor-inline-date-picker/xplor-inline-date-picker.js +325 -0
  337. package/dist/collection/components/xplor-inline-date-picker/xplor-inline-date-picker.js.map +1 -0
  338. package/dist/collection/components/xplor-inline-switch/xplor-inline-switch.css +343 -0
  339. package/dist/collection/components/xplor-inline-switch/xplor-inline-switch.js +168 -0
  340. package/dist/collection/components/xplor-inline-switch/xplor-inline-switch.js.map +1 -0
  341. package/dist/collection/components/xplor-input-file/xplor-input-file.css +392 -0
  342. package/dist/collection/components/xplor-input-file/xplor-input-file.js +340 -0
  343. package/dist/collection/components/xplor-input-file/xplor-input-file.js.map +1 -0
  344. package/dist/collection/components/xplor-input-search/xplor-input-search.css +371 -0
  345. package/dist/collection/components/xplor-input-search/xplor-input-search.js +213 -0
  346. package/dist/collection/components/xplor-input-search/xplor-input-search.js.map +1 -0
  347. package/dist/collection/components/xplor-input-select/xplor-input-select.css +397 -0
  348. package/dist/collection/components/xplor-input-select/xplor-input-select.js +430 -0
  349. package/dist/collection/components/xplor-input-select/xplor-input-select.js.map +1 -0
  350. package/dist/collection/components/xplor-input-send/xplor-input-send.css +312 -0
  351. package/dist/collection/components/xplor-input-send/xplor-input-send.js +218 -0
  352. package/dist/collection/components/xplor-input-send/xplor-input-send.js.map +1 -0
  353. package/dist/collection/components/xplor-input-text/xplor-input-text.css +334 -0
  354. package/dist/collection/components/xplor-input-text/xplor-input-text.js +419 -0
  355. package/dist/collection/components/xplor-input-text/xplor-input-text.js.map +1 -0
  356. package/dist/collection/components/xplor-input-text-area/xplor-input-text-area.css +359 -0
  357. package/dist/collection/components/xplor-input-text-area/xplor-input-text-area.js +416 -0
  358. package/dist/collection/components/xplor-input-text-area/xplor-input-text-area.js.map +1 -0
  359. package/dist/collection/components/xplor-input-text-secondary/xplor-input-text-secondary.css +339 -0
  360. package/dist/collection/components/xplor-input-text-secondary/xplor-input-text-secondary.js +384 -0
  361. package/dist/collection/components/xplor-input-text-secondary/xplor-input-text-secondary.js.map +1 -0
  362. package/dist/collection/components/xplor-input-title/xplor-input-title.css +304 -0
  363. package/dist/collection/components/xplor-input-title/xplor-input-title.js +164 -0
  364. package/dist/collection/components/xplor-input-title/xplor-input-title.js.map +1 -0
  365. package/dist/collection/components/xplor-links/xplor-links.css +9 -0
  366. package/dist/collection/components/xplor-links/xplor-links.js +42 -0
  367. package/dist/collection/components/xplor-links/xplor-links.js.map +1 -0
  368. package/dist/collection/components/xplor-links/xplor-links.stories.js +18 -0
  369. package/dist/collection/components/xplor-links/xplor-links.stories.js.map +1 -0
  370. package/dist/collection/components/xplor-modal/xplor-modal.css +385 -0
  371. package/dist/collection/components/xplor-modal/xplor-modal.js +279 -0
  372. package/dist/collection/components/xplor-modal/xplor-modal.js.map +1 -0
  373. package/dist/collection/components/xplor-modal-persistent/xplor-modal-persistent.js +152 -0
  374. package/dist/collection/components/xplor-modal-persistent/xplor-modal-persistent.js.map +1 -0
  375. package/dist/collection/components/xplor-nav-tabs/xplor-nav-tabs.css +333 -0
  376. package/dist/collection/components/xplor-nav-tabs/xplor-nav-tabs.js +144 -0
  377. package/dist/collection/components/xplor-nav-tabs/xplor-nav-tabs.js.map +1 -0
  378. package/dist/collection/components/xplor-section-card/xplor-section-card.css +1076 -0
  379. package/dist/collection/components/xplor-section-card/xplor-section-card.js +92 -0
  380. package/dist/collection/components/xplor-section-card/xplor-section-card.js.map +1 -0
  381. package/dist/collection/components/xplor-section-heading/xplor-section-heading.css +285 -0
  382. package/dist/collection/components/xplor-section-heading/xplor-section-heading.js +69 -0
  383. package/dist/collection/components/xplor-section-heading/xplor-section-heading.js.map +1 -0
  384. package/dist/collection/components/xplor-table/xplor-table.js +695 -0
  385. package/dist/collection/components/xplor-table/xplor-table.js.map +1 -0
  386. package/dist/collection/components/xplor-table/xplor-table.stories.js +159 -0
  387. package/dist/collection/components/xplor-table/xplor-table.stories.js.map +1 -0
  388. package/dist/collection/components/xplor-text-bubble/xplor-text-bubble.css +285 -0
  389. package/dist/collection/components/xplor-text-bubble/xplor-text-bubble.js +50 -0
  390. package/dist/collection/components/xplor-text-bubble/xplor-text-bubble.js.map +1 -0
  391. package/dist/collection/components/xplor-text-field/xplor-text-field.css +1280 -0
  392. package/dist/collection/components/xplor-text-field/xplor-text-field.js +591 -0
  393. package/dist/collection/components/xplor-text-field/xplor-text-field.js.map +1 -0
  394. package/dist/collection/components/xplor-time-picker/xplor-time-picker.css +448 -0
  395. package/dist/collection/components/xplor-time-picker/xplor-time-picker.js +647 -0
  396. package/dist/collection/components/xplor-time-picker/xplor-time-picker.js.map +1 -0
  397. package/dist/collection/components/xplor-tooltip/xplor-tooltip.css +336 -0
  398. package/dist/collection/components/xplor-tooltip/xplor-tooltip.js +311 -0
  399. package/dist/collection/components/xplor-tooltip/xplor-tooltip.js.map +1 -0
  400. package/dist/collection/globals/globals.js +32 -0
  401. package/dist/collection/globals/globals.js.map +1 -0
  402. package/dist/collection/index.js +2 -0
  403. package/dist/collection/index.js.map +1 -0
  404. package/dist/collection/stories/Button.js +17 -0
  405. package/dist/collection/stories/Button.js.map +1 -0
  406. package/dist/collection/stories/Button.stories.js +50 -0
  407. package/dist/collection/stories/Button.stories.js.map +1 -0
  408. package/dist/collection/stories/Header.js +41 -0
  409. package/dist/collection/stories/Header.js.map +1 -0
  410. package/dist/collection/stories/Header.stories.js +28 -0
  411. package/dist/collection/stories/Header.stories.js.map +1 -0
  412. package/dist/collection/stories/Page.js +85 -0
  413. package/dist/collection/stories/Page.js.map +1 -0
  414. package/dist/collection/stories/Page.stories.js +25 -0
  415. package/dist/collection/stories/Page.stories.js.map +1 -0
  416. package/dist/collection/stories/assets/accessibility.svg +1 -0
  417. package/dist/collection/stories/assets/discord.svg +1 -0
  418. package/dist/collection/stories/assets/github.svg +1 -0
  419. package/dist/collection/stories/assets/tutorials.svg +1 -0
  420. package/dist/collection/stories/assets/youtube.svg +1 -0
  421. package/dist/collection/utils/helpers.js +25 -0
  422. package/dist/collection/utils/helpers.js.map +1 -0
  423. package/dist/components/index.d.ts +33 -0
  424. package/dist/components/index.js +2324 -0
  425. package/dist/components/index.js.map +1 -0
  426. package/dist/components/p-4l9DAhAo.js +182 -0
  427. package/dist/components/p-4l9DAhAo.js.map +1 -0
  428. package/dist/components/p-BHdeGt6k.js +51 -0
  429. package/dist/components/p-BHdeGt6k.js.map +1 -0
  430. package/dist/components/p-BIFlTsO8.js +185 -0
  431. package/dist/components/p-BIFlTsO8.js.map +1 -0
  432. package/dist/components/p-CJGP2_5k.js +38 -0
  433. package/dist/components/p-CJGP2_5k.js.map +1 -0
  434. package/dist/components/p-DIv_A5Gj.js +57 -0
  435. package/dist/components/p-DIv_A5Gj.js.map +1 -0
  436. package/dist/components/p-DKh6y3GY.js +118 -0
  437. package/dist/components/p-DKh6y3GY.js.map +1 -0
  438. package/dist/components/xplor-alert-dialog.d.ts +11 -0
  439. package/dist/components/xplor-alert-dialog.js +86 -0
  440. package/dist/components/xplor-alert-dialog.js.map +1 -0
  441. package/dist/components/xplor-alert-message.d.ts +11 -0
  442. package/dist/components/xplor-alert-message.js +49 -0
  443. package/dist/components/xplor-alert-message.js.map +1 -0
  444. package/dist/components/xplor-assistant.d.ts +11 -0
  445. package/dist/components/xplor-assistant.js +764 -0
  446. package/dist/components/xplor-assistant.js.map +1 -0
  447. package/dist/components/xplor-autocomplete.d.ts +11 -0
  448. package/dist/components/xplor-autocomplete.js +269 -0
  449. package/dist/components/xplor-autocomplete.js.map +1 -0
  450. package/dist/components/xplor-avatar-and-name.d.ts +11 -0
  451. package/dist/components/xplor-avatar-and-name.js +49 -0
  452. package/dist/components/xplor-avatar-and-name.js.map +1 -0
  453. package/dist/components/xplor-avatar.d.ts +11 -0
  454. package/dist/components/xplor-avatar.js +9 -0
  455. package/dist/components/xplor-avatar.js.map +1 -0
  456. package/dist/components/xplor-badge-active.d.ts +11 -0
  457. package/dist/components/xplor-badge-active.js +36 -0
  458. package/dist/components/xplor-badge-active.js.map +1 -0
  459. package/dist/components/xplor-badge-archived.d.ts +11 -0
  460. package/dist/components/xplor-badge-archived.js +36 -0
  461. package/dist/components/xplor-badge-archived.js.map +1 -0
  462. package/dist/components/xplor-badge-deleted.d.ts +11 -0
  463. package/dist/components/xplor-badge-deleted.js +36 -0
  464. package/dist/components/xplor-badge-deleted.js.map +1 -0
  465. package/dist/components/xplor-badge-expired.d.ts +11 -0
  466. package/dist/components/xplor-badge-expired.js +36 -0
  467. package/dist/components/xplor-badge-expired.js.map +1 -0
  468. package/dist/components/xplor-badge-inactive.d.ts +11 -0
  469. package/dist/components/xplor-badge-inactive.js +36 -0
  470. package/dist/components/xplor-badge-inactive.js.map +1 -0
  471. package/dist/components/xplor-badge-recalled.d.ts +11 -0
  472. package/dist/components/xplor-badge-recalled.js +36 -0
  473. package/dist/components/xplor-badge-recalled.js.map +1 -0
  474. package/dist/components/xplor-badge-session-booking.d.ts +11 -0
  475. package/dist/components/xplor-badge-session-booking.js +61 -0
  476. package/dist/components/xplor-badge-session-booking.js.map +1 -0
  477. package/dist/components/xplor-badge-upcoming.d.ts +11 -0
  478. package/dist/components/xplor-badge-upcoming.js +36 -0
  479. package/dist/components/xplor-badge-upcoming.js.map +1 -0
  480. package/dist/components/xplor-badge-waitlist.d.ts +11 -0
  481. package/dist/components/xplor-badge-waitlist.js +36 -0
  482. package/dist/components/xplor-badge-waitlist.js.map +1 -0
  483. package/dist/components/xplor-badge.d.ts +11 -0
  484. package/dist/components/xplor-badge.js +152 -0
  485. package/dist/components/xplor-badge.js.map +1 -0
  486. package/dist/components/xplor-btn-back-to-parent.d.ts +11 -0
  487. package/dist/components/xplor-btn-back-to-parent.js +73 -0
  488. package/dist/components/xplor-btn-back-to-parent.js.map +1 -0
  489. package/dist/components/xplor-btn-back.d.ts +11 -0
  490. package/dist/components/xplor-btn-back.js +77 -0
  491. package/dist/components/xplor-btn-back.js.map +1 -0
  492. package/dist/components/xplor-btn-icon.d.ts +11 -0
  493. package/dist/components/xplor-btn-icon.js +78 -0
  494. package/dist/components/xplor-btn-icon.js.map +1 -0
  495. package/dist/components/xplor-btn-menu.d.ts +11 -0
  496. package/dist/components/xplor-btn-menu.js +106 -0
  497. package/dist/components/xplor-btn-menu.js.map +1 -0
  498. package/dist/components/xplor-btn-toggle-group.d.ts +11 -0
  499. package/dist/components/xplor-btn-toggle-group.js +47 -0
  500. package/dist/components/xplor-btn-toggle-group.js.map +1 -0
  501. package/dist/components/xplor-btn-toggle-secondary.d.ts +11 -0
  502. package/dist/components/xplor-btn-toggle-secondary.js +65 -0
  503. package/dist/components/xplor-btn-toggle-secondary.js.map +1 -0
  504. package/dist/components/xplor-btn-toggle.d.ts +11 -0
  505. package/dist/components/xplor-btn-toggle.js +70 -0
  506. package/dist/components/xplor-btn-toggle.js.map +1 -0
  507. package/dist/components/xplor-btn-tooltip.d.ts +11 -0
  508. package/dist/components/xplor-btn-tooltip.js +59 -0
  509. package/dist/components/xplor-btn-tooltip.js.map +1 -0
  510. package/dist/components/xplor-button.d.ts +11 -0
  511. package/dist/components/xplor-button.js +9 -0
  512. package/dist/components/xplor-button.js.map +1 -0
  513. package/dist/components/xplor-chat-widget.d.ts +11 -0
  514. package/dist/components/xplor-chat-widget.js +105 -0
  515. package/dist/components/xplor-chat-widget.js.map +1 -0
  516. package/dist/components/xplor-checkbox.d.ts +11 -0
  517. package/dist/components/xplor-checkbox.js +125 -0
  518. package/dist/components/xplor-checkbox.js.map +1 -0
  519. package/dist/components/xplor-combobox.d.ts +11 -0
  520. package/dist/components/xplor-combobox.js +279 -0
  521. package/dist/components/xplor-combobox.js.map +1 -0
  522. package/dist/components/xplor-datatable.d.ts +11 -0
  523. package/dist/components/xplor-datatable.js +244 -0
  524. package/dist/components/xplor-datatable.js.map +1 -0
  525. package/dist/components/xplor-date-picker.d.ts +11 -0
  526. package/dist/components/xplor-date-picker.js +269 -0
  527. package/dist/components/xplor-date-picker.js.map +1 -0
  528. package/dist/components/xplor-drag-and-drop-input.d.ts +11 -0
  529. package/dist/components/xplor-drag-and-drop-input.js +138 -0
  530. package/dist/components/xplor-drag-and-drop-input.js.map +1 -0
  531. package/dist/components/xplor-dropdown.d.ts +11 -0
  532. package/dist/components/xplor-dropdown.js +9 -0
  533. package/dist/components/xplor-dropdown.js.map +1 -0
  534. package/dist/components/xplor-expansion-panel.d.ts +11 -0
  535. package/dist/components/xplor-expansion-panel.js +75 -0
  536. package/dist/components/xplor-expansion-panel.js.map +1 -0
  537. package/dist/components/xplor-expansion-panels.d.ts +11 -0
  538. package/dist/components/xplor-expansion-panels.js +71 -0
  539. package/dist/components/xplor-expansion-panels.js.map +1 -0
  540. package/dist/components/xplor-file-upload.d.ts +11 -0
  541. package/dist/components/xplor-file-upload.js +184 -0
  542. package/dist/components/xplor-file-upload.js.map +1 -0
  543. package/dist/components/xplor-inline-checkbox.d.ts +11 -0
  544. package/dist/components/xplor-inline-checkbox.js +76 -0
  545. package/dist/components/xplor-inline-checkbox.js.map +1 -0
  546. package/dist/components/xplor-inline-date-picker.d.ts +11 -0
  547. package/dist/components/xplor-inline-date-picker.js +9 -0
  548. package/dist/components/xplor-inline-date-picker.js.map +1 -0
  549. package/dist/components/xplor-inline-switch.d.ts +11 -0
  550. package/dist/components/xplor-inline-switch.js +69 -0
  551. package/dist/components/xplor-inline-switch.js.map +1 -0
  552. package/dist/components/xplor-input-file.d.ts +11 -0
  553. package/dist/components/xplor-input-file.js +122 -0
  554. package/dist/components/xplor-input-file.js.map +1 -0
  555. package/dist/components/xplor-input-search.d.ts +11 -0
  556. package/dist/components/xplor-input-search.js +90 -0
  557. package/dist/components/xplor-input-search.js.map +1 -0
  558. package/dist/components/xplor-input-select.d.ts +11 -0
  559. package/dist/components/xplor-input-select.js +169 -0
  560. package/dist/components/xplor-input-select.js.map +1 -0
  561. package/dist/components/xplor-input-send.d.ts +11 -0
  562. package/dist/components/xplor-input-send.js +88 -0
  563. package/dist/components/xplor-input-send.js.map +1 -0
  564. package/dist/components/xplor-input-text-area.d.ts +11 -0
  565. package/dist/components/xplor-input-text-area.js +132 -0
  566. package/dist/components/xplor-input-text-area.js.map +1 -0
  567. package/dist/components/xplor-input-text-secondary.d.ts +11 -0
  568. package/dist/components/xplor-input-text-secondary.js +95 -0
  569. package/dist/components/xplor-input-text-secondary.js.map +1 -0
  570. package/dist/components/xplor-input-text.d.ts +11 -0
  571. package/dist/components/xplor-input-text.js +130 -0
  572. package/dist/components/xplor-input-text.js.map +1 -0
  573. package/dist/components/xplor-input-title.d.ts +11 -0
  574. package/dist/components/xplor-input-title.js +69 -0
  575. package/dist/components/xplor-input-title.js.map +1 -0
  576. package/dist/components/xplor-links.d.ts +11 -0
  577. package/dist/components/xplor-links.js +39 -0
  578. package/dist/components/xplor-links.js.map +1 -0
  579. package/dist/components/xplor-modal-persistent.d.ts +11 -0
  580. package/dist/components/xplor-modal-persistent.js +66 -0
  581. package/dist/components/xplor-modal-persistent.js.map +1 -0
  582. package/dist/components/xplor-modal.d.ts +11 -0
  583. package/dist/components/xplor-modal.js +9 -0
  584. package/dist/components/xplor-modal.js.map +1 -0
  585. package/dist/components/xplor-nav-tabs.d.ts +11 -0
  586. package/dist/components/xplor-nav-tabs.js +59 -0
  587. package/dist/components/xplor-nav-tabs.js.map +1 -0
  588. package/dist/components/xplor-section-card.d.ts +11 -0
  589. package/dist/components/xplor-section-card.js +47 -0
  590. package/dist/components/xplor-section-card.js.map +1 -0
  591. package/dist/components/xplor-section-heading.d.ts +11 -0
  592. package/dist/components/xplor-section-heading.js +44 -0
  593. package/dist/components/xplor-section-heading.js.map +1 -0
  594. package/dist/components/xplor-table.d.ts +11 -0
  595. package/dist/components/xplor-table.js +276 -0
  596. package/dist/components/xplor-table.js.map +1 -0
  597. package/dist/components/xplor-text-bubble.d.ts +11 -0
  598. package/dist/components/xplor-text-bubble.js +43 -0
  599. package/dist/components/xplor-text-bubble.js.map +1 -0
  600. package/dist/components/xplor-text-field.d.ts +11 -0
  601. package/dist/components/xplor-text-field.js +191 -0
  602. package/dist/components/xplor-text-field.js.map +1 -0
  603. package/dist/components/xplor-time-picker.d.ts +11 -0
  604. package/dist/components/xplor-time-picker.js +349 -0
  605. package/dist/components/xplor-time-picker.js.map +1 -0
  606. package/dist/components/xplor-tooltip.d.ts +11 -0
  607. package/dist/components/xplor-tooltip.js +9 -0
  608. package/dist/components/xplor-tooltip.js.map +1 -0
  609. package/dist/esm/index-Zkk2NJif.js +2566 -0
  610. package/dist/esm/index-Zkk2NJif.js.map +1 -0
  611. package/dist/esm/index.js +4 -0
  612. package/dist/esm/index.js.map +1 -0
  613. package/dist/esm/loader.js +13 -0
  614. package/dist/esm/loader.js.map +1 -0
  615. package/dist/esm/xplor-alert-dialog_57.entry.js +4692 -0
  616. package/dist/esm/xplor-alert-dialog_57.entry.js.map +1 -0
  617. package/dist/esm/xplor-component-library.js +23 -0
  618. package/dist/esm/xplor-component-library.js.map +1 -0
  619. package/dist/hydrate/index.d.ts +273 -0
  620. package/dist/hydrate/index.js +25064 -0
  621. package/dist/hydrate/index.mjs +25056 -0
  622. package/dist/hydrate/package.json +12 -0
  623. package/dist/index.cjs.js +1 -0
  624. package/dist/index.js +1 -0
  625. package/dist/types/components/element-interface.d.ts +19 -0
  626. package/dist/types/components/helpers.d.ts +47 -0
  627. package/dist/types/components/xplor-alert-dialog/xplor-alert-dialog.d.ts +29 -0
  628. package/dist/types/components/xplor-alert-message/xplor-alert-message.d.ts +9 -0
  629. package/dist/types/components/xplor-assistant/internal/AssistantInput.d.ts +17 -0
  630. package/dist/types/components/xplor-assistant/internal/AssistantMessage.d.ts +6 -0
  631. package/dist/types/components/xplor-assistant/internal/QuickReplies.d.ts +6 -0
  632. package/dist/types/components/xplor-assistant/internal/TypingIndicator.d.ts +5 -0
  633. package/dist/types/components/xplor-assistant/internal/types.d.ts +106 -0
  634. package/dist/types/components/xplor-assistant/utils/api.d.ts +48 -0
  635. package/dist/types/components/xplor-assistant/utils/icons.d.ts +24 -0
  636. package/dist/types/components/xplor-assistant/utils/speech.d.ts +86 -0
  637. package/dist/types/components/xplor-assistant/xplor-assistant.d.ts +52 -0
  638. package/dist/types/components/xplor-autocomplete/xplor-autocomplete.d.ts +92 -0
  639. package/dist/types/components/xplor-avatar/avatar.stories.d.ts +75 -0
  640. package/dist/types/components/xplor-avatar/xplor-avatar.d.ts +21 -0
  641. package/dist/types/components/xplor-avatar-and-name/xplor-avatar-and-name.d.ts +8 -0
  642. package/dist/types/components/xplor-badge/xplor-badge.d.ts +52 -0
  643. package/dist/types/components/xplor-badge-active/xplor-badge-active.d.ts +3 -0
  644. package/dist/types/components/xplor-badge-archived/xplor-badge-archived.d.ts +3 -0
  645. package/dist/types/components/xplor-badge-deleted/xplor-badge-deleted.d.ts +3 -0
  646. package/dist/types/components/xplor-badge-expired/xplor-badge-expired.d.ts +3 -0
  647. package/dist/types/components/xplor-badge-inactive/xplor-badge-inactive.d.ts +3 -0
  648. package/dist/types/components/xplor-badge-recalled/xplor-badge-recalled.d.ts +3 -0
  649. package/dist/types/components/xplor-badge-session-booking/xplor-badge-session-booking.d.ts +20 -0
  650. package/dist/types/components/xplor-badge-upcoming/xplor-badge-upcoming.d.ts +3 -0
  651. package/dist/types/components/xplor-badge-waitlist/xplor-badge-waitlist.d.ts +3 -0
  652. package/dist/types/components/xplor-btn-back/xplor-btn-back.d.ts +29 -0
  653. package/dist/types/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.d.ts +29 -0
  654. package/dist/types/components/xplor-btn-icon/xplor-btn-icon.d.ts +29 -0
  655. package/dist/types/components/xplor-btn-menu/xplor-btn-menu.d.ts +49 -0
  656. package/dist/types/components/xplor-btn-toggle/xplor-btn-toggle.d.ts +25 -0
  657. package/dist/types/components/xplor-btn-toggle-group/xplor-btn-toggle-group.d.ts +11 -0
  658. package/dist/types/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.d.ts +21 -0
  659. package/dist/types/components/xplor-btn-tooltip/xplor-btn-tooltip.d.ts +10 -0
  660. package/dist/types/components/xplor-button/xplor-button.d.ts +19 -0
  661. package/dist/types/components/xplor-button/xplor-buttons.stories.d.ts +32 -0
  662. package/dist/types/components/xplor-chat-widget/xplor-chat-widget.d.ts +13 -0
  663. package/dist/types/components/xplor-chat-widget/xplor-chat.stories.d.ts +32 -0
  664. package/dist/types/components/xplor-checkbox/xplor-checkbox.d.ts +25 -0
  665. package/dist/types/components/xplor-combobox/xplor-combobox.d.ts +77 -0
  666. package/dist/types/components/xplor-datatable/xplor-datatable.d.ts +103 -0
  667. package/dist/types/components/xplor-datatable/xplor-datatable.stories.d.ts +18 -0
  668. package/dist/types/components/xplor-date-picker/xplor-date-picker.d.ts +53 -0
  669. package/dist/types/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.d.ts +42 -0
  670. package/dist/types/components/xplor-dropdown/xplor-dropdown.d.ts +6 -0
  671. package/dist/types/components/xplor-expansion-panel/xplor-expansion-panel.d.ts +18 -0
  672. package/dist/types/components/xplor-expansion-panels/xplor-expansion-panels.d.ts +12 -0
  673. package/dist/types/components/xplor-file-upload/xplor-file-upload.d.ts +51 -0
  674. package/dist/types/components/xplor-inline-checkbox/xplor-inline-checkbox.d.ts +33 -0
  675. package/dist/types/components/xplor-inline-date-picker/xplor-inline-date-picker.d.ts +57 -0
  676. package/dist/types/components/xplor-inline-switch/xplor-inline-switch.d.ts +29 -0
  677. package/dist/types/components/xplor-input-file/xplor-input-file.d.ts +60 -0
  678. package/dist/types/components/xplor-input-search/xplor-input-search.d.ts +36 -0
  679. package/dist/types/components/xplor-input-select/xplor-input-select.d.ts +76 -0
  680. package/dist/types/components/xplor-input-send/xplor-input-send.d.ts +18 -0
  681. package/dist/types/components/xplor-input-text/xplor-input-text.d.ts +73 -0
  682. package/dist/types/components/xplor-input-text-area/xplor-input-text-area.d.ts +72 -0
  683. package/dist/types/components/xplor-input-text-secondary/xplor-input-text-secondary.d.ts +25 -0
  684. package/dist/types/components/xplor-input-title/xplor-input-title.d.ts +30 -0
  685. package/dist/types/components/xplor-links/xplor-links.d.ts +4 -0
  686. package/dist/types/components/xplor-links/xplor-links.stories.d.ts +12 -0
  687. package/dist/types/components/xplor-modal/xplor-modal.d.ts +45 -0
  688. package/dist/types/components/xplor-modal-persistent/xplor-modal-persistent.d.ts +28 -0
  689. package/dist/types/components/xplor-nav-tabs/xplor-nav-tabs.d.ts +15 -0
  690. package/dist/types/components/xplor-section-card/xplor-section-card.d.ts +6 -0
  691. package/dist/types/components/xplor-section-heading/xplor-section-heading.d.ts +5 -0
  692. package/dist/types/components/xplor-table/xplor-table.d.ts +65 -0
  693. package/dist/types/components/xplor-table/xplor-table.stories.d.ts +77 -0
  694. package/dist/types/components/xplor-text-bubble/xplor-text-bubble.d.ts +4 -0
  695. package/dist/types/components/xplor-text-field/xplor-text-field.d.ts +111 -0
  696. package/dist/types/components/xplor-time-picker/xplor-time-picker.d.ts +55 -0
  697. package/dist/types/components/xplor-tooltip/xplor-tooltip.d.ts +28 -0
  698. package/dist/types/components.d.ts +4360 -0
  699. package/dist/types/globals/globals.d.ts +3 -0
  700. package/dist/types/index.d.ts +1 -0
  701. package/dist/types/interfaces.d.ts +104 -0
  702. package/dist/types/stencil-public-runtime.d.ts +1702 -0
  703. package/dist/types/stories/Button.d.ts +15 -0
  704. package/dist/types/stories/Header.d.ts +10 -0
  705. package/dist/types/stories/Page.d.ts +2 -0
  706. package/dist/types/stories/Page.stories.d.ts +11 -0
  707. package/dist/types/utils/helpers.d.ts +3 -0
  708. package/dist/xplor-component-library/index.esm.js +2 -0
  709. package/dist/xplor-component-library/index.esm.js.map +1 -0
  710. package/dist/xplor-component-library/loader.esm.js.map +1 -0
  711. package/dist/xplor-component-library/p-25fa8553.entry.js +2 -0
  712. package/dist/xplor-component-library/p-25fa8553.entry.js.map +1 -0
  713. package/dist/xplor-component-library/p-Zkk2NJif.js +3 -0
  714. package/dist/xplor-component-library/p-Zkk2NJif.js.map +1 -0
  715. package/dist/xplor-component-library/xplor-component-library.css +1 -0
  716. package/dist/xplor-component-library/xplor-component-library.esm.js +2 -0
  717. package/dist/xplor-component-library/xplor-component-library.esm.js.map +1 -0
  718. package/loader/cdn.js +1 -0
  719. package/loader/index.cjs.js +1 -0
  720. package/loader/index.d.ts +24 -0
  721. package/loader/index.es2017.js +1 -0
  722. package/loader/index.js +2 -0
  723. package/package.json +124 -0
  724. package/readme.md +315 -0
@@ -0,0 +1,2566 @@
1
+ const NAMESPACE = 'xplor-component-library';
2
+ const BUILD = /* xplor-component-library */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
3
+
4
+ // import { setMode } from '@stencil/core';
5
+ // setMode((elm) => {
6
+ // // NOTE: you can write whatever you want here - it's up to you. This
7
+ // // function must return one of the style "modes" defined in step 1.
8
+ // return (elm as any).mode || elm.getAttribute('mode') || 'default';
9
+ // });
10
+ // const isAllowedBrand = (elmMode: string) => ['default', 'next'].includes(elmMode);
11
+ // const isWebComponentElement = (elm: any) => elm.tagName && elm.tagName.startsWith('XDS-');
12
+ var appGlobalScript = () => {
13
+ };
14
+
15
+ const globalScripts = appGlobalScript;
16
+ const globalStyles = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb;}::before,::after{--tw-content:''}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Montserrat, ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;}body{margin:0;line-height:inherit;}hr{height:0;color:inherit;border-top-width:1px;}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse;}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0;}button,select{text-transform:none}button,input:where([type='button']),input:where([type='reset']),input:where([type='submit']){-webkit-appearance:button;background-color:transparent;background-image:none;}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type='search']{-webkit-appearance:textfield;outline-offset:-2px;}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af;}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af;}button,[role=\"button\"]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=\"until-found\"])){display:none}html[data-theme='office']{--color-primary:rgb(219, 59, 3);--color-secondary:rgb(0, 119, 107);--color-buttons:#89da59;--color-typography:#ff320e}html{--color-primary:#db3b03;--color-secondary:rgb(0, 119, 107);--color-buttons:#fbbc05;--color-typography:#ea4335}:root{--color-primary:#db3b03;--color-secondary:rgb(0, 119, 107);--color-tertiary:rgb(128, 104, 186);--color-white:white;--color-emphasis:rgb(8, 8, 9);--color-supergiant:rgb(213, 66, 99);--color-orange:rgb(250, 200, 127);--color-buttons:#fbbc05;--color-typography:#ea4335;--background:20 66% 99%;--foreground:20 51% 4%;--muted:20 25% 86%;--muted-foreground:20 7% 25%;--popover:20 66% 98%;--popover-foreground:20 51% 3%;--card:20 66% 98%;--card-foreground:20 51% 3%;--border:20 15% 94%;--input:20 15% 94%;--primary:20 48% 72%;--primary-foreground:20 48% 12%;--secondary:20 12% 92%;--secondary-foreground:20 12% 32%;--accent:20 12% 92%;--accent-foreground:20 12% 32%;--destructive:11 80% 22%;--destructive-foreground:11 80% 82%;--ring:20 48% 72%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:253 43% 3%;--foreground:253 31% 98%;--muted:253 7% 13%;--muted-foreground:253 13% 63%;--popover:253 43% 3%;--popover-foreground:253 31% 98%;--card:253 43% 4%;--card-foreground:253 31% 99%;--border:215 27.9% 16.9%;--input:215 27.9% 16.9%;--primary:253 91% 58%;--primary-foreground:253 91% 98%;--secondary:253 7% 9%;--secondary-foreground:253 7% 69%;--accent:253 13% 14%;--accent-foreground:253 13% 74%;--destructive:339.2 90.36% 51.18%;--destructive-foreground:0 0% 100%;--ring:253 91% 58%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{box-sizing:border-box;background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.mx-auto{margin-left:auto;margin-right:auto}.mb-4{margin-bottom:0.25rem}.mb-6{margin-bottom:1.5rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-16{width:1rem;height:1rem}.h-3{height:0.75rem}.h-4{height:0.25rem}.w-3{width:0.75rem}.w-4{width:0.25rem}.w-full{width:100%}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-xl{max-width:36rem}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:0.25rem}.gap-2{gap:0.5rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.gap-y-12{row-gap:0.75rem}.overflow-x-auto{overflow-x:auto}.text-pretty{text-wrap:pretty}.rounded{border-radius:0.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:0.5rem}.rounded-md{border-radius:0.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-teal-600{--tw-bg-opacity:1;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1\\.5{padding:0.375rem}.p-2{padding:0.5rem}.p-6{padding:1.5rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.px-3{padding-left:0.75rem;padding-right:0.75rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.py-1\\.5{padding-top:0.375rem;padding-bottom:0.375rem}.py-24{padding-top:1.5rem;padding-bottom:1.5rem}.py-3{padding-top:0.75rem;padding-bottom:0.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Montserrat, ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base\\/7{font-size:1rem;line-height:1.75rem}.text-lg\\/8{font-size:1.125rem;line-height:2rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-sm\\/6{font-size:0.875rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-tight{letter-spacing:-0.025em}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-primary{color:var(--color-primary)}.text-teal-600{--tw-text-opacity:1;color:rgb(13 148 136 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.theme-office{--color-black:#000000;--color-white:#ffffff;--color-primary:#db3b03;--color-secondary:#ec7702;--color-buttons:#89da59;--color-typography:#ff320e}.theme-pg{--color-primary:#00776b;--color-secondary:#01a39d;--color-buttons:#89da59;--color-typography:#ff320e}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-teal-50:hover{--tw-bg-opacity:1;background-color:rgb(240 253 250 / var(--tw-bg-opacity, 1))}.hover\\:bg-teal-700:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.hover\\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-gray-800:hover{--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.hover\\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\\:text-teal-800:hover{--tw-text-opacity:1;color:rgb(17 94 89 / var(--tw-text-opacity, 1))}.focus\\:border-teal-500:focus{--tw-border-opacity:1;border-color:rgb(20 184 166 / var(--tw-border-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.focus\\:ring-teal-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(20 184 166 / var(--tw-ring-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:0.5}@media (min-width: 640px){.sm\\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.sm\\:gap-y-16{row-gap:1rem}.sm\\:py-32{padding-top:2rem;padding-bottom:2rem}.sm\\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.lg\\:px-8{padding-left:0.5rem;padding-right:0.5rem}}@media (min-width: 1280px){.xl\\:col-span-2{grid-column:span 2 / span 2}.xl\\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}}";
17
+
18
+ /*
19
+ Stencil Client Platform v4.35.1 | MIT Licensed | https://stenciljs.com
20
+ */
21
+ var __defProp = Object.defineProperty;
22
+ var __export = (target, all) => {
23
+ for (var name in all)
24
+ __defProp(target, name, { get: all[name], enumerable: true });
25
+ };
26
+
27
+ // src/utils/constants.ts
28
+ var SVG_NS = "http://www.w3.org/2000/svg";
29
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
30
+ var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
31
+ PrimitiveType2["Undefined"] = "undefined";
32
+ PrimitiveType2["Null"] = "null";
33
+ PrimitiveType2["String"] = "string";
34
+ PrimitiveType2["Number"] = "number";
35
+ PrimitiveType2["SpecialNumber"] = "number";
36
+ PrimitiveType2["Boolean"] = "boolean";
37
+ PrimitiveType2["BigInt"] = "bigint";
38
+ return PrimitiveType2;
39
+ })(PrimitiveType || {});
40
+ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
41
+ NonPrimitiveType2["Array"] = "array";
42
+ NonPrimitiveType2["Date"] = "date";
43
+ NonPrimitiveType2["Map"] = "map";
44
+ NonPrimitiveType2["Object"] = "object";
45
+ NonPrimitiveType2["RegularExpression"] = "regexp";
46
+ NonPrimitiveType2["Set"] = "set";
47
+ NonPrimitiveType2["Channel"] = "channel";
48
+ NonPrimitiveType2["Symbol"] = "symbol";
49
+ return NonPrimitiveType2;
50
+ })(NonPrimitiveType || {});
51
+ var TYPE_CONSTANT = "type";
52
+ var VALUE_CONSTANT = "value";
53
+ var SERIALIZED_PREFIX = "serialized:";
54
+
55
+ // src/client/client-host-ref.ts
56
+ var getHostRef = (ref) => {
57
+ if (ref.__stencil__getHostRef) {
58
+ return ref.__stencil__getHostRef();
59
+ }
60
+ return void 0;
61
+ };
62
+ var registerInstance = (lazyInstance, hostRef) => {
63
+ lazyInstance.__stencil__getHostRef = () => hostRef;
64
+ hostRef.$lazyInstance$ = lazyInstance;
65
+ };
66
+ var registerHost = (hostElement, cmpMeta) => {
67
+ const hostRef = {
68
+ $flags$: 0,
69
+ $hostElement$: hostElement,
70
+ $cmpMeta$: cmpMeta,
71
+ $instanceValues$: /* @__PURE__ */ new Map()
72
+ };
73
+ {
74
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
75
+ }
76
+ {
77
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
78
+ hostElement["s-p"] = [];
79
+ hostElement["s-rc"] = [];
80
+ }
81
+ const ref = hostRef;
82
+ hostElement.__stencil__getHostRef = () => ref;
83
+ return ref;
84
+ };
85
+ var isMemberInElement = (elm, memberName) => memberName in elm;
86
+ var consoleError = (e, el) => (0, console.error)(e, el);
87
+
88
+ // src/client/client-load-module.ts
89
+ var cmpModules = /* @__PURE__ */ new Map();
90
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
91
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
92
+ const bundleId = cmpMeta.$lazyBundleId$;
93
+ if (!bundleId) {
94
+ return void 0;
95
+ }
96
+ const module = cmpModules.get(bundleId) ;
97
+ if (module) {
98
+ return module[exportName];
99
+ }
100
+
101
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
102
+ const processMod = importedModule => {
103
+ cmpModules.set(bundleId, importedModule);
104
+ return importedModule[exportName];
105
+ }
106
+ switch(bundleId) {
107
+
108
+ case 'xplor-alert-dialog_57':
109
+ return import(
110
+ /* webpackMode: "lazy" */
111
+ './xplor-alert-dialog_57.entry.js').then(processMod, consoleError);
112
+ }
113
+ }
114
+ return import(
115
+ /* @vite-ignore */
116
+ /* webpackInclude: /\.entry\.js$/ */
117
+ /* webpackExclude: /\.system\.entry\.js$/ */
118
+ /* webpackMode: "lazy" */
119
+ `./${bundleId}.entry.js${""}`
120
+ ).then(
121
+ (importedModule) => {
122
+ {
123
+ cmpModules.set(bundleId, importedModule);
124
+ }
125
+ return importedModule[exportName];
126
+ },
127
+ (e) => {
128
+ consoleError(e, hostRef.$hostElement$);
129
+ }
130
+ );
131
+ };
132
+
133
+ // src/client/client-style.ts
134
+ var styles = /* @__PURE__ */ new Map();
135
+
136
+ // src/runtime/runtime-constants.ts
137
+ var CONTENT_REF_ID = "r";
138
+ var ORG_LOCATION_ID = "o";
139
+ var SLOT_NODE_ID = "s";
140
+ var TEXT_NODE_ID = "t";
141
+ var COMMENT_NODE_ID = "c";
142
+ var HYDRATE_ID = "s-id";
143
+ var HYDRATED_STYLE_ID = "sty-id";
144
+ var HYDRATE_CHILD_ID = "c-id";
145
+ var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
146
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
147
+ var win = typeof window !== "undefined" ? window : {};
148
+ var plt = {
149
+ $flags$: 0,
150
+ $resourcesUrl$: "",
151
+ jmp: (h2) => h2(),
152
+ raf: (h2) => requestAnimationFrame(h2),
153
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
154
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
155
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
156
+ };
157
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
158
+ var _a;
159
+ let supportsListenerOptions2 = false;
160
+ try {
161
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
162
+ "e",
163
+ null,
164
+ Object.defineProperty({}, "passive", {
165
+ get() {
166
+ supportsListenerOptions2 = true;
167
+ }
168
+ })
169
+ );
170
+ } catch (e) {
171
+ }
172
+ return supportsListenerOptions2;
173
+ })();
174
+ var promiseResolve = (v) => Promise.resolve(v);
175
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
176
+ try {
177
+ new CSSStyleSheet();
178
+ return typeof new CSSStyleSheet().replaceSync === "function";
179
+ } catch (e) {
180
+ }
181
+ return false;
182
+ })() ;
183
+ var queuePending = false;
184
+ var queueDomReads = [];
185
+ var queueDomWrites = [];
186
+ var queueTask = (queue, write) => (cb) => {
187
+ queue.push(cb);
188
+ if (!queuePending) {
189
+ queuePending = true;
190
+ if (write && plt.$flags$ & 4 /* queueSync */) {
191
+ nextTick(flush);
192
+ } else {
193
+ plt.raf(flush);
194
+ }
195
+ }
196
+ };
197
+ var consume = (queue) => {
198
+ for (let i2 = 0; i2 < queue.length; i2++) {
199
+ try {
200
+ queue[i2](performance.now());
201
+ } catch (e) {
202
+ consoleError(e);
203
+ }
204
+ }
205
+ queue.length = 0;
206
+ };
207
+ var flush = () => {
208
+ consume(queueDomReads);
209
+ {
210
+ consume(queueDomWrites);
211
+ if (queuePending = queueDomReads.length > 0) {
212
+ plt.raf(flush);
213
+ }
214
+ }
215
+ };
216
+ var nextTick = (cb) => promiseResolve().then(cb);
217
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
218
+
219
+ // src/utils/helpers.ts
220
+ var isDef = (v) => v != null && v !== void 0;
221
+ var isComplexType = (o) => {
222
+ o = typeof o;
223
+ return o === "object" || o === "function";
224
+ };
225
+
226
+ // src/utils/query-nonce-meta-tag-content.ts
227
+ function queryNonceMetaTagContent(doc) {
228
+ var _a, _b, _c;
229
+ 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;
230
+ }
231
+
232
+ // src/utils/regular-expression.ts
233
+ var escapeRegExpSpecialCharacters = (text) => {
234
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
235
+ };
236
+
237
+ // src/utils/remote-value.ts
238
+ var RemoteValue = class _RemoteValue {
239
+ /**
240
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
241
+ *
242
+ * @param serialized The serialized LocalValue object
243
+ * @returns The original JavaScript value/object
244
+ */
245
+ static fromLocalValue(serialized) {
246
+ const type = serialized[TYPE_CONSTANT];
247
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
248
+ switch (type) {
249
+ case "string" /* String */:
250
+ return value;
251
+ case "boolean" /* Boolean */:
252
+ return value;
253
+ case "bigint" /* BigInt */:
254
+ return BigInt(value);
255
+ case "undefined" /* Undefined */:
256
+ return void 0;
257
+ case "null" /* Null */:
258
+ return null;
259
+ case "number" /* Number */:
260
+ if (value === "NaN") return NaN;
261
+ if (value === "-0") return -0;
262
+ if (value === "Infinity") return Infinity;
263
+ if (value === "-Infinity") return -Infinity;
264
+ return value;
265
+ case "array" /* Array */:
266
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
267
+ case "date" /* Date */:
268
+ return new Date(value);
269
+ case "map" /* Map */:
270
+ const map2 = /* @__PURE__ */ new Map();
271
+ for (const [key, val] of value) {
272
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
273
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
274
+ map2.set(deserializedKey, deserializedValue);
275
+ }
276
+ return map2;
277
+ case "object" /* Object */:
278
+ const obj = {};
279
+ for (const [key, val] of value) {
280
+ obj[key] = _RemoteValue.fromLocalValue(val);
281
+ }
282
+ return obj;
283
+ case "regexp" /* RegularExpression */:
284
+ const { pattern, flags } = value;
285
+ return new RegExp(pattern, flags);
286
+ case "set" /* Set */:
287
+ const set = /* @__PURE__ */ new Set();
288
+ for (const item of value) {
289
+ set.add(_RemoteValue.fromLocalValue(item));
290
+ }
291
+ return set;
292
+ case "symbol" /* Symbol */:
293
+ return Symbol(value);
294
+ default:
295
+ throw new Error(`Unsupported type: ${type}`);
296
+ }
297
+ }
298
+ /**
299
+ * Utility method to deserialize multiple LocalValues at once
300
+ *
301
+ * @param serializedValues Array of serialized LocalValue objects
302
+ * @returns Array of deserialized JavaScript values
303
+ */
304
+ static fromLocalValueArray(serializedValues) {
305
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
306
+ }
307
+ /**
308
+ * Verifies if the given object matches the structure of a serialized LocalValue
309
+ *
310
+ * @param obj Object to verify
311
+ * @returns boolean indicating if the object has LocalValue structure
312
+ */
313
+ static isLocalValueObject(obj) {
314
+ if (typeof obj !== "object" || obj === null) {
315
+ return false;
316
+ }
317
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
318
+ return false;
319
+ }
320
+ const type = obj[TYPE_CONSTANT];
321
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
322
+ if (!hasTypeProperty) {
323
+ return false;
324
+ }
325
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
326
+ return obj.hasOwnProperty(VALUE_CONSTANT);
327
+ }
328
+ return true;
329
+ }
330
+ };
331
+
332
+ // src/utils/result.ts
333
+ var result_exports = {};
334
+ __export(result_exports, {
335
+ err: () => err,
336
+ map: () => map,
337
+ ok: () => ok,
338
+ unwrap: () => unwrap,
339
+ unwrapErr: () => unwrapErr
340
+ });
341
+ var ok = (value) => ({
342
+ isOk: true,
343
+ isErr: false,
344
+ value
345
+ });
346
+ var err = (value) => ({
347
+ isOk: false,
348
+ isErr: true,
349
+ value
350
+ });
351
+ function map(result, fn) {
352
+ if (result.isOk) {
353
+ const val = fn(result.value);
354
+ if (val instanceof Promise) {
355
+ return val.then((newVal) => ok(newVal));
356
+ } else {
357
+ return ok(val);
358
+ }
359
+ }
360
+ if (result.isErr) {
361
+ const value = result.value;
362
+ return err(value);
363
+ }
364
+ throw "should never get here";
365
+ }
366
+ var unwrap = (result) => {
367
+ if (result.isOk) {
368
+ return result.value;
369
+ } else {
370
+ throw result.value;
371
+ }
372
+ };
373
+ var unwrapErr = (result) => {
374
+ if (result.isErr) {
375
+ return result.value;
376
+ } else {
377
+ throw result.value;
378
+ }
379
+ };
380
+
381
+ // src/utils/serialize.ts
382
+ function deserializeProperty(value) {
383
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
384
+ return value;
385
+ }
386
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
387
+ }
388
+ function createShadowRoot(cmpMeta) {
389
+ const shadowRoot = this.attachShadow({ mode: "open" });
390
+ if (supportsConstructableStylesheets) {
391
+ const sheet = new CSSStyleSheet();
392
+ sheet.replaceSync(globalStyles);
393
+ shadowRoot.adoptedStyleSheets.push(sheet);
394
+ }
395
+ }
396
+ var updateFallbackSlotVisibility = (elm) => {
397
+ const childNodes = internalCall(elm, "childNodes");
398
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
399
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
400
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
401
+ if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
402
+ slotNode.hidden = true;
403
+ } else {
404
+ slotNode.hidden = false;
405
+ }
406
+ }
407
+ });
408
+ }
409
+ let i2 = 0;
410
+ for (i2 = 0; i2 < childNodes.length; i2++) {
411
+ const childNode = childNodes[i2];
412
+ if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
413
+ updateFallbackSlotVisibility(childNode);
414
+ }
415
+ }
416
+ };
417
+ var getSlottedChildNodes = (childNodes) => {
418
+ const result = [];
419
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
420
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
421
+ if (slottedNode && slottedNode.isConnected) {
422
+ result.push(slottedNode);
423
+ }
424
+ }
425
+ return result;
426
+ };
427
+ function getHostSlotNodes(childNodes, hostName, slotName) {
428
+ let i2 = 0;
429
+ let slottedNodes = [];
430
+ let childNode;
431
+ for (; i2 < childNodes.length; i2++) {
432
+ childNode = childNodes[i2];
433
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
434
+ slottedNodes.push(childNode);
435
+ }
436
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
437
+ }
438
+ return slottedNodes;
439
+ }
440
+ var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
441
+ const childNodes = [];
442
+ if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
443
+ let node = slot;
444
+ while (node = node.nextSibling) {
445
+ if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
446
+ }
447
+ return childNodes;
448
+ };
449
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
450
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
451
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
452
+ return true;
453
+ }
454
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
455
+ return true;
456
+ }
457
+ return false;
458
+ }
459
+ if (nodeToRelocate["s-sn"] === slotName) {
460
+ return true;
461
+ }
462
+ return slotName === "";
463
+ };
464
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
465
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
466
+ return;
467
+ }
468
+ const slottedNodeLocation = document.createTextNode("");
469
+ slottedNodeLocation["s-nr"] = newChild;
470
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
471
+ const parent = slotNode["s-cr"].parentNode;
472
+ const appendMethod = internalCall(parent, "appendChild");
473
+ if (typeof position !== "undefined") {
474
+ slottedNodeLocation["s-oo"] = position;
475
+ const childNodes = internalCall(parent, "childNodes");
476
+ const slotRelocateNodes = [slottedNodeLocation];
477
+ childNodes.forEach((n) => {
478
+ if (n["s-nr"]) slotRelocateNodes.push(n);
479
+ });
480
+ slotRelocateNodes.sort((a, b) => {
481
+ if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
482
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
483
+ return 0;
484
+ });
485
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
486
+ } else {
487
+ appendMethod.call(parent, slottedNodeLocation);
488
+ }
489
+ newChild["s-ol"] = slottedNodeLocation;
490
+ newChild["s-sh"] = slotNode["s-hn"];
491
+ };
492
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
493
+ function patchSlotNode(node) {
494
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
495
+ const assignedFactory = (elementsOnly) => (function(opts) {
496
+ const toReturn = [];
497
+ const slotName = this["s-sn"];
498
+ if (opts == null ? void 0 : opts.flatten) {
499
+ console.error(`
500
+ Flattening is not supported for Stencil non-shadow slots.
501
+ You can use \`.childNodes\` to nested slot fallback content.
502
+ If you have a particular use case, please open an issue on the Stencil repo.
503
+ `);
504
+ }
505
+ const parent = this["s-cr"].parentElement;
506
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
507
+ slottedNodes.forEach((n) => {
508
+ if (slotName === getSlotName(n)) {
509
+ toReturn.push(n);
510
+ }
511
+ });
512
+ if (elementsOnly) {
513
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
514
+ }
515
+ return toReturn;
516
+ }).bind(node);
517
+ node.assignedElements = assignedFactory(true);
518
+ node.assignedNodes = assignedFactory(false);
519
+ }
520
+ function internalCall(node, method) {
521
+ if ("__" + method in node) {
522
+ const toReturn = node["__" + method];
523
+ if (typeof toReturn !== "function") return toReturn;
524
+ return toReturn.bind(node);
525
+ } else {
526
+ if (typeof node[method] !== "function") return node[method];
527
+ return node[method].bind(node);
528
+ }
529
+ }
530
+ var createTime = (fnName, tagName = "") => {
531
+ {
532
+ return () => {
533
+ return;
534
+ };
535
+ }
536
+ };
537
+ var uniqueTime = (key, measureText) => {
538
+ {
539
+ return () => {
540
+ return;
541
+ };
542
+ }
543
+ };
544
+ var h = (nodeName, vnodeData, ...children) => {
545
+ let child = null;
546
+ let key = null;
547
+ let slotName = null;
548
+ let simple = false;
549
+ let lastSimple = false;
550
+ const vNodeChildren = [];
551
+ const walk = (c) => {
552
+ for (let i2 = 0; i2 < c.length; i2++) {
553
+ child = c[i2];
554
+ if (Array.isArray(child)) {
555
+ walk(child);
556
+ } else if (child != null && typeof child !== "boolean") {
557
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
558
+ child = String(child);
559
+ }
560
+ if (simple && lastSimple) {
561
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
562
+ } else {
563
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
564
+ }
565
+ lastSimple = simple;
566
+ }
567
+ }
568
+ };
569
+ walk(children);
570
+ if (vnodeData) {
571
+ if (vnodeData.key) {
572
+ key = vnodeData.key;
573
+ }
574
+ if (vnodeData.name) {
575
+ slotName = vnodeData.name;
576
+ }
577
+ {
578
+ const classData = vnodeData.className || vnodeData.class;
579
+ if (classData) {
580
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
581
+ }
582
+ }
583
+ }
584
+ if (typeof nodeName === "function") {
585
+ return nodeName(
586
+ vnodeData === null ? {} : vnodeData,
587
+ vNodeChildren,
588
+ vdomFnUtils
589
+ );
590
+ }
591
+ const vnode = newVNode(nodeName, null);
592
+ vnode.$attrs$ = vnodeData;
593
+ if (vNodeChildren.length > 0) {
594
+ vnode.$children$ = vNodeChildren;
595
+ }
596
+ {
597
+ vnode.$key$ = key;
598
+ }
599
+ {
600
+ vnode.$name$ = slotName;
601
+ }
602
+ return vnode;
603
+ };
604
+ var newVNode = (tag, text) => {
605
+ const vnode = {
606
+ $flags$: 0,
607
+ $tag$: tag,
608
+ $text$: text,
609
+ $elm$: null,
610
+ $children$: null
611
+ };
612
+ {
613
+ vnode.$attrs$ = null;
614
+ }
615
+ {
616
+ vnode.$key$ = null;
617
+ }
618
+ {
619
+ vnode.$name$ = null;
620
+ }
621
+ return vnode;
622
+ };
623
+ var Host = {};
624
+ var isHost = (node) => node && node.$tag$ === Host;
625
+ var vdomFnUtils = {
626
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
627
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
628
+ };
629
+ var convertToPublic = (node) => ({
630
+ vattrs: node.$attrs$,
631
+ vchildren: node.$children$,
632
+ vkey: node.$key$,
633
+ vname: node.$name$,
634
+ vtag: node.$tag$,
635
+ vtext: node.$text$
636
+ });
637
+ var convertToPrivate = (node) => {
638
+ if (typeof node.vtag === "function") {
639
+ const vnodeData = { ...node.vattrs };
640
+ if (node.vkey) {
641
+ vnodeData.key = node.vkey;
642
+ }
643
+ if (node.vname) {
644
+ vnodeData.name = node.vname;
645
+ }
646
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
647
+ }
648
+ const vnode = newVNode(node.vtag, node.vtext);
649
+ vnode.$attrs$ = node.vattrs;
650
+ vnode.$children$ = node.vchildren;
651
+ vnode.$key$ = node.vkey;
652
+ vnode.$name$ = node.vname;
653
+ return vnode;
654
+ };
655
+
656
+ // src/runtime/client-hydrate.ts
657
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
658
+ var _a;
659
+ const endHydrate = createTime("hydrateClient", tagName);
660
+ const shadowRoot = hostElm.shadowRoot;
661
+ const childRenderNodes = [];
662
+ const slotNodes = [];
663
+ const slottedNodes = [];
664
+ const shadowRootNodes = shadowRoot ? [] : null;
665
+ const vnode = newVNode(tagName, null);
666
+ vnode.$elm$ = hostElm;
667
+ const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
668
+ members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
669
+ var _b;
670
+ if (!(memberFlags & 31 /* Prop */)) {
671
+ return;
672
+ }
673
+ const attributeName = metaAttributeName || memberName;
674
+ const attrVal = hostElm.getAttribute(attributeName);
675
+ if (attrVal !== null) {
676
+ const attrPropVal = parsePropertyValue(
677
+ attrVal,
678
+ memberFlags);
679
+ (_b = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b.set(memberName, attrPropVal);
680
+ }
681
+ });
682
+ let scopeId2;
683
+ {
684
+ const cmpMeta = hostRef.$cmpMeta$;
685
+ if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm["s-sc"]) {
686
+ scopeId2 = hostElm["s-sc"];
687
+ hostElm.classList.add(scopeId2 + "-h");
688
+ } else if (hostElm["s-sc"]) {
689
+ delete hostElm["s-sc"];
690
+ }
691
+ }
692
+ if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
693
+ initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
694
+ }
695
+ hostElm[HYDRATE_ID] = hostId;
696
+ hostElm.removeAttribute(HYDRATE_ID);
697
+ hostRef.$vnode$ = clientHydrate(
698
+ vnode,
699
+ childRenderNodes,
700
+ slotNodes,
701
+ shadowRootNodes,
702
+ hostElm,
703
+ hostElm,
704
+ hostId,
705
+ slottedNodes
706
+ );
707
+ let crIndex = 0;
708
+ const crLength = childRenderNodes.length;
709
+ let childRenderNode;
710
+ for (crIndex; crIndex < crLength; crIndex++) {
711
+ childRenderNode = childRenderNodes[crIndex];
712
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
713
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
714
+ const node = childRenderNode.$elm$;
715
+ if (!shadowRoot) {
716
+ node["s-hn"] = tagName.toUpperCase();
717
+ if (childRenderNode.$tag$ === "slot") {
718
+ node["s-cr"] = hostElm["s-cr"];
719
+ }
720
+ }
721
+ if (childRenderNode.$tag$ === "slot") {
722
+ childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
723
+ if (childRenderNode.$children$) {
724
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
725
+ if (!childRenderNode.$elm$.childNodes.length) {
726
+ childRenderNode.$children$.forEach((c) => {
727
+ childRenderNode.$elm$.appendChild(c.$elm$);
728
+ });
729
+ }
730
+ } else {
731
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
732
+ }
733
+ }
734
+ if (orgLocationNode && orgLocationNode.isConnected) {
735
+ if (shadowRoot && orgLocationNode["s-en"] === "") {
736
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
737
+ }
738
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
739
+ if (!shadowRoot) {
740
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
741
+ }
742
+ }
743
+ plt.$orgLocNodes$.delete(orgLocationId);
744
+ }
745
+ const hosts = [];
746
+ const snLen = slottedNodes.length;
747
+ let snIndex = 0;
748
+ let slotGroup;
749
+ let snGroupIdx;
750
+ let snGroupLen;
751
+ let slottedItem;
752
+ for (snIndex; snIndex < snLen; snIndex++) {
753
+ slotGroup = slottedNodes[snIndex];
754
+ if (!slotGroup || !slotGroup.length) continue;
755
+ snGroupLen = slotGroup.length;
756
+ snGroupIdx = 0;
757
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
758
+ slottedItem = slotGroup[snGroupIdx];
759
+ if (!hosts[slottedItem.hostId]) {
760
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
761
+ }
762
+ if (!hosts[slottedItem.hostId]) continue;
763
+ const hostEle = hosts[slottedItem.hostId];
764
+ if (!hostEle.shadowRoot || !shadowRoot) {
765
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
766
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
767
+ slottedItem.slot["s-cr"] = hostEle;
768
+ } else {
769
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
770
+ }
771
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
772
+ }
773
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
774
+ hostEle.appendChild(slottedItem.node);
775
+ }
776
+ }
777
+ }
778
+ if (scopeId2 && slotNodes.length) {
779
+ slotNodes.forEach((slot) => {
780
+ slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
781
+ });
782
+ }
783
+ if (shadowRoot && !shadowRoot.childNodes.length) {
784
+ let rnIdex = 0;
785
+ const rnLen = shadowRootNodes.length;
786
+ if (rnLen) {
787
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
788
+ shadowRoot.appendChild(shadowRootNodes[rnIdex]);
789
+ }
790
+ Array.from(hostElm.childNodes).forEach((node) => {
791
+ if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
792
+ if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
793
+ node.removeAttribute("hidden");
794
+ } else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
795
+ node.parentNode.removeChild(node);
796
+ }
797
+ }
798
+ });
799
+ }
800
+ }
801
+ plt.$orgLocNodes$.delete(hostElm["s-id"]);
802
+ hostRef.$hostElement$ = hostElm;
803
+ endHydrate();
804
+ };
805
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
806
+ let childNodeType;
807
+ let childIdSplt;
808
+ let childVNode;
809
+ let i2;
810
+ const scopeId2 = hostElm["s-sc"];
811
+ if (node.nodeType === 1 /* ElementNode */) {
812
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
813
+ if (childNodeType) {
814
+ childIdSplt = childNodeType.split(".");
815
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
816
+ childVNode = createSimpleVNode({
817
+ $flags$: 0,
818
+ $hostId$: childIdSplt[0],
819
+ $nodeId$: childIdSplt[1],
820
+ $depth$: childIdSplt[2],
821
+ $index$: childIdSplt[3],
822
+ $tag$: node.tagName.toLowerCase(),
823
+ $elm$: node,
824
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
825
+ // won't try to reconcile them. Classes set on the node will be blown away.
826
+ $attrs$: { class: node.className || "" }
827
+ });
828
+ childRenderNodes.push(childVNode);
829
+ node.removeAttribute(HYDRATE_CHILD_ID);
830
+ if (!parentVNode.$children$) {
831
+ parentVNode.$children$ = [];
832
+ }
833
+ if (scopeId2) {
834
+ node["s-si"] = scopeId2;
835
+ childVNode.$attrs$.class += " " + scopeId2;
836
+ }
837
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
838
+ if (typeof slotName === "string") {
839
+ if (childVNode.$tag$ === "slot-fb") {
840
+ addSlot(
841
+ slotName,
842
+ childIdSplt[2],
843
+ childVNode,
844
+ node,
845
+ parentVNode,
846
+ childRenderNodes,
847
+ slotNodes,
848
+ shadowRootNodes,
849
+ slottedNodes
850
+ );
851
+ if (scopeId2) {
852
+ node.classList.add(scopeId2);
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
+ } else {
963
+ if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
964
+ node.remove();
965
+ }
966
+ }
967
+ return parentVNode;
968
+ };
969
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
970
+ if (node.nodeType === 1 /* ElementNode */) {
971
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
972
+ if (componentId) {
973
+ orgLocNodes.set(componentId, node);
974
+ }
975
+ let i2 = 0;
976
+ if (node.shadowRoot) {
977
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
978
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
979
+ }
980
+ }
981
+ const nonShadowNodes = node.__childNodes || node.childNodes;
982
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
983
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
984
+ }
985
+ } else if (node.nodeType === 8 /* CommentNode */) {
986
+ const childIdSplt = node.nodeValue.split(".");
987
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
988
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
989
+ node.nodeValue = "";
990
+ node["s-en"] = childIdSplt[3];
991
+ }
992
+ }
993
+ };
994
+ var createSimpleVNode = (vnode) => {
995
+ const defaultVNode = {
996
+ $flags$: 0,
997
+ $hostId$: null,
998
+ $nodeId$: null,
999
+ $depth$: null,
1000
+ $index$: "0",
1001
+ $elm$: null,
1002
+ $attrs$: null,
1003
+ $children$: null,
1004
+ $key$: null,
1005
+ $name$: null,
1006
+ $tag$: null,
1007
+ $text$: null
1008
+ };
1009
+ return { ...defaultVNode, ...vnode };
1010
+ };
1011
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1012
+ node["s-sr"] = true;
1013
+ childVNode.$name$ = slotName || null;
1014
+ childVNode.$tag$ = "slot";
1015
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1016
+ if (shadowRootNodes && win.document) {
1017
+ const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
1018
+ if (childVNode.$name$) {
1019
+ childVNode.$elm$.setAttribute("name", slotName);
1020
+ }
1021
+ if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
1022
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1023
+ } else {
1024
+ node.parentNode.insertBefore(slot, node);
1025
+ }
1026
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1027
+ node.remove();
1028
+ if (childVNode.$depth$ === "0") {
1029
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1030
+ }
1031
+ } else {
1032
+ const slot = childVNode.$elm$;
1033
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1034
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1035
+ patchSlotNode(node);
1036
+ if (shouldMove) {
1037
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1038
+ }
1039
+ }
1040
+ childRenderNodes.push(childVNode);
1041
+ slotNodes.push(childVNode);
1042
+ if (!parentVNode.$children$) {
1043
+ parentVNode.$children$ = [];
1044
+ }
1045
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1046
+ }
1047
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1048
+ let slottedNode = slotNode.nextSibling;
1049
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1050
+ while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
1051
+ slottedNode["s-sn"] = slotName;
1052
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1053
+ slottedNode = slottedNode.nextSibling;
1054
+ }
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
+ var createSupportsRuleRe = (selector) => {
1064
+ const safeSelector2 = escapeRegExpSpecialCharacters(selector);
1065
+ return new RegExp(
1066
+ // First capture group: match any context before the selector that's not inside @supports selector()
1067
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
1068
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
1069
+ "g"
1070
+ );
1071
+ };
1072
+ createSupportsRuleRe("::slotted");
1073
+ createSupportsRuleRe(":host");
1074
+ createSupportsRuleRe(":host-context");
1075
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1076
+ if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
1077
+ try {
1078
+ propValue = JSON.parse(propValue);
1079
+ return propValue;
1080
+ } catch (e) {
1081
+ }
1082
+ }
1083
+ if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1084
+ propValue = deserializeProperty(propValue);
1085
+ return propValue;
1086
+ }
1087
+ if (propValue != null && !isComplexType(propValue)) {
1088
+ if (propType & 4 /* Boolean */) {
1089
+ {
1090
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1091
+ }
1092
+ }
1093
+ if (propType & 2 /* Number */) {
1094
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
1095
+ }
1096
+ if (propType & 1 /* String */) {
1097
+ return String(propValue);
1098
+ }
1099
+ return propValue;
1100
+ }
1101
+ return propValue;
1102
+ };
1103
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1104
+
1105
+ // src/runtime/event-emitter.ts
1106
+ var createEvent = (ref, name, flags) => {
1107
+ const elm = getElement(ref);
1108
+ return {
1109
+ emit: (detail) => {
1110
+ return emitEvent(elm, name, {
1111
+ bubbles: true,
1112
+ composed: true,
1113
+ cancelable: true,
1114
+ detail
1115
+ });
1116
+ }
1117
+ };
1118
+ };
1119
+ var emitEvent = (elm, name, opts) => {
1120
+ const ev = plt.ce(name, opts);
1121
+ elm.dispatchEvent(ev);
1122
+ return ev;
1123
+ };
1124
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1125
+ var registerStyle = (scopeId2, cssText, allowCS) => {
1126
+ let style = styles.get(scopeId2);
1127
+ if (supportsConstructableStylesheets && allowCS) {
1128
+ style = style || new CSSStyleSheet();
1129
+ if (typeof style === "string") {
1130
+ style = cssText;
1131
+ } else {
1132
+ style.replaceSync(cssText);
1133
+ }
1134
+ } else {
1135
+ style = cssText;
1136
+ }
1137
+ styles.set(scopeId2, style);
1138
+ };
1139
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1140
+ var _a;
1141
+ const scopeId2 = getScopeId(cmpMeta);
1142
+ const style = styles.get(scopeId2);
1143
+ if (!win.document) {
1144
+ return scopeId2;
1145
+ }
1146
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1147
+ if (style) {
1148
+ if (typeof style === "string") {
1149
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
1150
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1151
+ let styleElm;
1152
+ if (!appliedStyles) {
1153
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1154
+ }
1155
+ if (!appliedStyles.has(scopeId2)) {
1156
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1157
+ styleElm.innerHTML = style;
1158
+ } else {
1159
+ styleElm = win.document.createElement("style");
1160
+ styleElm.innerHTML = style;
1161
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1162
+ if (nonce != null) {
1163
+ styleElm.setAttribute("nonce", nonce);
1164
+ }
1165
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1166
+ if (styleContainerNode.nodeName === "HEAD") {
1167
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1168
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1169
+ styleContainerNode.insertBefore(
1170
+ styleElm,
1171
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1172
+ );
1173
+ } else if ("host" in styleContainerNode) {
1174
+ if (supportsConstructableStylesheets) {
1175
+ const stylesheet = new CSSStyleSheet();
1176
+ stylesheet.replaceSync(style);
1177
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1178
+ } else {
1179
+ const existingStyleContainer = styleContainerNode.querySelector("style");
1180
+ if (existingStyleContainer) {
1181
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1182
+ } else {
1183
+ styleContainerNode.prepend(styleElm);
1184
+ }
1185
+ }
1186
+ } else {
1187
+ styleContainerNode.append(styleElm);
1188
+ }
1189
+ }
1190
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1191
+ styleContainerNode.insertBefore(styleElm, null);
1192
+ }
1193
+ }
1194
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1195
+ styleElm.innerHTML += SLOT_FB_CSS;
1196
+ }
1197
+ if (appliedStyles) {
1198
+ appliedStyles.add(scopeId2);
1199
+ }
1200
+ }
1201
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1202
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1203
+ }
1204
+ }
1205
+ return scopeId2;
1206
+ };
1207
+ var attachStyles = (hostRef) => {
1208
+ const cmpMeta = hostRef.$cmpMeta$;
1209
+ const elm = hostRef.$hostElement$;
1210
+ const flags = cmpMeta.$flags$;
1211
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1212
+ const scopeId2 = addStyle(
1213
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1214
+ cmpMeta);
1215
+ if (flags & 10 /* needsScopedEncapsulation */) {
1216
+ elm["s-sc"] = scopeId2;
1217
+ elm.classList.add(scopeId2 + "-h");
1218
+ }
1219
+ endAttachStyles();
1220
+ };
1221
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1222
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1223
+ var hydrateScopedToShadow = () => {
1224
+ if (!win.document) {
1225
+ return;
1226
+ }
1227
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1228
+ let i2 = 0;
1229
+ for (; i2 < styles2.length; i2++) {
1230
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1231
+ }
1232
+ };
1233
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1234
+ if (oldValue === newValue) {
1235
+ return;
1236
+ }
1237
+ let isProp = isMemberInElement(elm, memberName);
1238
+ let ln = memberName.toLowerCase();
1239
+ if (memberName === "class") {
1240
+ const classList = elm.classList;
1241
+ const oldClasses = parseClassList(oldValue);
1242
+ let newClasses = parseClassList(newValue);
1243
+ if (elm["s-si"] && initialRender) {
1244
+ newClasses.push(elm["s-si"]);
1245
+ oldClasses.forEach((c) => {
1246
+ if (c.startsWith(elm["s-si"])) newClasses.push(c);
1247
+ });
1248
+ newClasses = [...new Set(newClasses)];
1249
+ classList.add(...newClasses);
1250
+ } else {
1251
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1252
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1253
+ }
1254
+ } else if (memberName === "style") {
1255
+ {
1256
+ for (const prop in oldValue) {
1257
+ if (!newValue || newValue[prop] == null) {
1258
+ if (prop.includes("-")) {
1259
+ elm.style.removeProperty(prop);
1260
+ } else {
1261
+ elm.style[prop] = "";
1262
+ }
1263
+ }
1264
+ }
1265
+ }
1266
+ for (const prop in newValue) {
1267
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
1268
+ if (prop.includes("-")) {
1269
+ elm.style.setProperty(prop, newValue[prop]);
1270
+ } else {
1271
+ elm.style[prop] = newValue[prop];
1272
+ }
1273
+ }
1274
+ }
1275
+ } else if (memberName === "key") ; else if (memberName === "ref") {
1276
+ if (newValue) {
1277
+ newValue(elm);
1278
+ }
1279
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
1280
+ if (memberName[2] === "-") {
1281
+ memberName = memberName.slice(3);
1282
+ } else if (isMemberInElement(win, ln)) {
1283
+ memberName = ln.slice(2);
1284
+ } else {
1285
+ memberName = ln[2] + memberName.slice(3);
1286
+ }
1287
+ if (oldValue || newValue) {
1288
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
1289
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
1290
+ if (oldValue) {
1291
+ plt.rel(elm, memberName, oldValue, capture);
1292
+ }
1293
+ if (newValue) {
1294
+ plt.ael(elm, memberName, newValue, capture);
1295
+ }
1296
+ }
1297
+ } else {
1298
+ const isComplex = isComplexType(newValue);
1299
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
1300
+ try {
1301
+ if (!elm.tagName.includes("-")) {
1302
+ const n = newValue == null ? "" : newValue;
1303
+ if (memberName === "list") {
1304
+ isProp = false;
1305
+ } else if (oldValue == null || elm[memberName] != n) {
1306
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
1307
+ elm[memberName] = n;
1308
+ } else {
1309
+ elm.setAttribute(memberName, n);
1310
+ }
1311
+ }
1312
+ } else if (elm[memberName] !== newValue) {
1313
+ elm[memberName] = newValue;
1314
+ }
1315
+ } catch (e) {
1316
+ }
1317
+ }
1318
+ if (newValue == null || newValue === false) {
1319
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
1320
+ {
1321
+ elm.removeAttribute(memberName);
1322
+ }
1323
+ }
1324
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
1325
+ newValue = newValue === true ? "" : newValue;
1326
+ {
1327
+ elm.setAttribute(memberName, newValue);
1328
+ }
1329
+ }
1330
+ }
1331
+ };
1332
+ var parseClassListRegex = /\s/;
1333
+ var parseClassList = (value) => {
1334
+ if (typeof value === "object" && value && "baseVal" in value) {
1335
+ value = value.baseVal;
1336
+ }
1337
+ if (!value || typeof value !== "string") {
1338
+ return [];
1339
+ }
1340
+ return value.split(parseClassListRegex);
1341
+ };
1342
+ var CAPTURE_EVENT_SUFFIX = "Capture";
1343
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
1344
+
1345
+ // src/runtime/vdom/update-element.ts
1346
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1347
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
1348
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
1349
+ const newVnodeAttrs = newVnode.$attrs$ || {};
1350
+ {
1351
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
1352
+ if (!(memberName in newVnodeAttrs)) {
1353
+ setAccessor(
1354
+ elm,
1355
+ memberName,
1356
+ oldVnodeAttrs[memberName],
1357
+ void 0,
1358
+ isSvgMode2,
1359
+ newVnode.$flags$,
1360
+ isInitialRender
1361
+ );
1362
+ }
1363
+ }
1364
+ }
1365
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
1366
+ setAccessor(
1367
+ elm,
1368
+ memberName,
1369
+ oldVnodeAttrs[memberName],
1370
+ newVnodeAttrs[memberName],
1371
+ isSvgMode2,
1372
+ newVnode.$flags$,
1373
+ isInitialRender
1374
+ );
1375
+ }
1376
+ };
1377
+ function sortedAttrNames(attrNames) {
1378
+ return attrNames.includes("ref") ? (
1379
+ // we need to sort these to ensure that `'ref'` is the last attr
1380
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
1381
+ ) : (
1382
+ // no need to sort, return the original array
1383
+ attrNames
1384
+ );
1385
+ }
1386
+
1387
+ // src/runtime/vdom/vdom-render.ts
1388
+ var scopeId;
1389
+ var contentRef;
1390
+ var hostTagName;
1391
+ var useNativeShadowDom = false;
1392
+ var checkSlotFallbackVisibility = false;
1393
+ var checkSlotRelocate = false;
1394
+ var isSvgMode = false;
1395
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1396
+ var _a;
1397
+ const newVNode2 = newParentVNode.$children$[childIndex];
1398
+ let i2 = 0;
1399
+ let elm;
1400
+ let childNode;
1401
+ let oldVNode;
1402
+ if (!useNativeShadowDom) {
1403
+ checkSlotRelocate = true;
1404
+ if (newVNode2.$tag$ === "slot") {
1405
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
1406
+ // slot element has fallback content
1407
+ // still create an element that "mocks" the slot element
1408
+ 2 /* isSlotFallback */
1409
+ ) : (
1410
+ // slot element does not have fallback content
1411
+ // create an html comment we'll use to always reference
1412
+ // where actual slot content should sit next to
1413
+ 1 /* isSlotReference */
1414
+ );
1415
+ }
1416
+ }
1417
+ if (newVNode2.$text$ !== null) {
1418
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1419
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
1420
+ elm = newVNode2.$elm$ = win.document.createTextNode("");
1421
+ {
1422
+ updateElement(null, newVNode2, isSvgMode);
1423
+ }
1424
+ } else {
1425
+ if (!isSvgMode) {
1426
+ isSvgMode = newVNode2.$tag$ === "svg";
1427
+ }
1428
+ if (!win.document) {
1429
+ throw new Error(
1430
+ "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
1431
+ );
1432
+ }
1433
+ elm = newVNode2.$elm$ = win.document.createElementNS(
1434
+ isSvgMode ? SVG_NS : HTML_NS,
1435
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1436
+ ) ;
1437
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
1438
+ isSvgMode = false;
1439
+ }
1440
+ {
1441
+ updateElement(null, newVNode2, isSvgMode);
1442
+ }
1443
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
1444
+ elm.classList.add(elm["s-si"] = scopeId);
1445
+ }
1446
+ if (newVNode2.$children$) {
1447
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1448
+ childNode = createElm(oldParentVNode, newVNode2, i2);
1449
+ if (childNode) {
1450
+ elm.appendChild(childNode);
1451
+ }
1452
+ }
1453
+ }
1454
+ {
1455
+ if (newVNode2.$tag$ === "svg") {
1456
+ isSvgMode = false;
1457
+ } else if (elm.tagName === "foreignObject") {
1458
+ isSvgMode = true;
1459
+ }
1460
+ }
1461
+ }
1462
+ elm["s-hn"] = hostTagName;
1463
+ {
1464
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
1465
+ elm["s-sr"] = true;
1466
+ elm["s-cr"] = contentRef;
1467
+ elm["s-sn"] = newVNode2.$name$ || "";
1468
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
1469
+ patchSlotNode(elm);
1470
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
1471
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
1472
+ {
1473
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
1474
+ }
1475
+ }
1476
+ {
1477
+ addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
1478
+ }
1479
+ }
1480
+ }
1481
+ return elm;
1482
+ };
1483
+ var putBackInOriginalLocation = (parentElm, recursive) => {
1484
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1485
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
1486
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1487
+ const childNode = oldSlotChildNodes[i2];
1488
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1489
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
1490
+ childNode["s-ol"].remove();
1491
+ childNode["s-ol"] = void 0;
1492
+ childNode["s-sh"] = void 0;
1493
+ checkSlotRelocate = true;
1494
+ }
1495
+ if (recursive) {
1496
+ putBackInOriginalLocation(childNode, recursive);
1497
+ }
1498
+ }
1499
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1500
+ };
1501
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1502
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
1503
+ let childNode;
1504
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1505
+ containerElm = containerElm.shadowRoot;
1506
+ }
1507
+ for (; startIdx <= endIdx; ++startIdx) {
1508
+ if (vnodes[startIdx]) {
1509
+ childNode = createElm(null, parentVNode, startIdx);
1510
+ if (childNode) {
1511
+ vnodes[startIdx].$elm$ = childNode;
1512
+ insertBefore(containerElm, childNode, referenceNode(before) );
1513
+ }
1514
+ }
1515
+ }
1516
+ };
1517
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
1518
+ for (let index = startIdx; index <= endIdx; ++index) {
1519
+ const vnode = vnodes[index];
1520
+ if (vnode) {
1521
+ const elm = vnode.$elm$;
1522
+ nullifyVNodeRefs(vnode);
1523
+ if (elm) {
1524
+ {
1525
+ checkSlotFallbackVisibility = true;
1526
+ if (elm["s-ol"]) {
1527
+ elm["s-ol"].remove();
1528
+ } else {
1529
+ putBackInOriginalLocation(elm, true);
1530
+ }
1531
+ }
1532
+ elm.remove();
1533
+ }
1534
+ }
1535
+ }
1536
+ };
1537
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1538
+ let oldStartIdx = 0;
1539
+ let newStartIdx = 0;
1540
+ let idxInOld = 0;
1541
+ let i2 = 0;
1542
+ let oldEndIdx = oldCh.length - 1;
1543
+ let oldStartVnode = oldCh[0];
1544
+ let oldEndVnode = oldCh[oldEndIdx];
1545
+ let newEndIdx = newCh.length - 1;
1546
+ let newStartVnode = newCh[0];
1547
+ let newEndVnode = newCh[newEndIdx];
1548
+ let node;
1549
+ let elmToMove;
1550
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1551
+ if (oldStartVnode == null) {
1552
+ oldStartVnode = oldCh[++oldStartIdx];
1553
+ } else if (oldEndVnode == null) {
1554
+ oldEndVnode = oldCh[--oldEndIdx];
1555
+ } else if (newStartVnode == null) {
1556
+ newStartVnode = newCh[++newStartIdx];
1557
+ } else if (newEndVnode == null) {
1558
+ newEndVnode = newCh[--newEndIdx];
1559
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1560
+ patch(oldStartVnode, newStartVnode, isInitialRender);
1561
+ oldStartVnode = oldCh[++oldStartIdx];
1562
+ newStartVnode = newCh[++newStartIdx];
1563
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1564
+ patch(oldEndVnode, newEndVnode, isInitialRender);
1565
+ oldEndVnode = oldCh[--oldEndIdx];
1566
+ newEndVnode = newCh[--newEndIdx];
1567
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1568
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1569
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1570
+ }
1571
+ patch(oldStartVnode, newEndVnode, isInitialRender);
1572
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1573
+ oldStartVnode = oldCh[++oldStartIdx];
1574
+ newEndVnode = newCh[--newEndIdx];
1575
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1576
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1577
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1578
+ }
1579
+ patch(oldEndVnode, newStartVnode, isInitialRender);
1580
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1581
+ oldEndVnode = oldCh[--oldEndIdx];
1582
+ newStartVnode = newCh[++newStartIdx];
1583
+ } else {
1584
+ idxInOld = -1;
1585
+ {
1586
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1587
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1588
+ idxInOld = i2;
1589
+ break;
1590
+ }
1591
+ }
1592
+ }
1593
+ if (idxInOld >= 0) {
1594
+ elmToMove = oldCh[idxInOld];
1595
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1596
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
1597
+ } else {
1598
+ patch(elmToMove, newStartVnode, isInitialRender);
1599
+ oldCh[idxInOld] = void 0;
1600
+ node = elmToMove.$elm$;
1601
+ }
1602
+ newStartVnode = newCh[++newStartIdx];
1603
+ } else {
1604
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1605
+ newStartVnode = newCh[++newStartIdx];
1606
+ }
1607
+ if (node) {
1608
+ {
1609
+ insertBefore(
1610
+ referenceNode(oldStartVnode.$elm$).parentNode,
1611
+ node,
1612
+ referenceNode(oldStartVnode.$elm$)
1613
+ );
1614
+ }
1615
+ }
1616
+ }
1617
+ }
1618
+ if (oldStartIdx > oldEndIdx) {
1619
+ addVnodes(
1620
+ parentElm,
1621
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1622
+ newVNode2,
1623
+ newCh,
1624
+ newStartIdx,
1625
+ newEndIdx
1626
+ );
1627
+ } else if (newStartIdx > newEndIdx) {
1628
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1629
+ }
1630
+ };
1631
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1632
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1633
+ if (leftVNode.$tag$ === "slot") {
1634
+ return leftVNode.$name$ === rightVNode.$name$;
1635
+ }
1636
+ if (!isInitialRender) {
1637
+ return leftVNode.$key$ === rightVNode.$key$;
1638
+ }
1639
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1640
+ leftVNode.$key$ = rightVNode.$key$;
1641
+ }
1642
+ return true;
1643
+ }
1644
+ return false;
1645
+ };
1646
+ var referenceNode = (node) => node && node["s-ol"] || node;
1647
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1648
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
1649
+ const oldChildren = oldVNode.$children$;
1650
+ const newChildren = newVNode2.$children$;
1651
+ const tag = newVNode2.$tag$;
1652
+ const text = newVNode2.$text$;
1653
+ let defaultHolder;
1654
+ if (text === null) {
1655
+ {
1656
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1657
+ }
1658
+ {
1659
+ updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
1660
+ }
1661
+ if (oldChildren !== null && newChildren !== null) {
1662
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1663
+ } else if (newChildren !== null) {
1664
+ if (oldVNode.$text$ !== null) {
1665
+ elm.textContent = "";
1666
+ }
1667
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1668
+ } else if (
1669
+ // don't do this on initial render as it can cause non-hydrated content to be removed
1670
+ !isInitialRender && BUILD.updatable && oldChildren !== null
1671
+ ) {
1672
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1673
+ }
1674
+ if (isSvgMode && tag === "svg") {
1675
+ isSvgMode = false;
1676
+ }
1677
+ } else if ((defaultHolder = elm["s-cr"])) {
1678
+ defaultHolder.parentNode.textContent = text;
1679
+ } else if (oldVNode.$text$ !== text) {
1680
+ elm.data = text;
1681
+ }
1682
+ };
1683
+ var relocateNodes = [];
1684
+ var markSlotContentForRelocation = (elm) => {
1685
+ let node;
1686
+ let hostContentNodes;
1687
+ let j;
1688
+ const children = elm.__childNodes || elm.childNodes;
1689
+ for (const childNode of children) {
1690
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1691
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1692
+ const slotName = childNode["s-sn"];
1693
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1694
+ node = hostContentNodes[j];
1695
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
1696
+ if (isNodeLocatedInSlot(node, slotName)) {
1697
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1698
+ checkSlotFallbackVisibility = true;
1699
+ node["s-sn"] = node["s-sn"] || slotName;
1700
+ if (relocateNodeData) {
1701
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1702
+ relocateNodeData.$slotRefNode$ = childNode;
1703
+ } else {
1704
+ node["s-sh"] = childNode["s-hn"];
1705
+ relocateNodes.push({
1706
+ $slotRefNode$: childNode,
1707
+ $nodeToRelocate$: node
1708
+ });
1709
+ }
1710
+ if (node["s-sr"]) {
1711
+ relocateNodes.map((relocateNode) => {
1712
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1713
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1714
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1715
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1716
+ }
1717
+ }
1718
+ });
1719
+ }
1720
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1721
+ relocateNodes.push({
1722
+ $nodeToRelocate$: node
1723
+ });
1724
+ }
1725
+ }
1726
+ }
1727
+ }
1728
+ if (childNode.nodeType === 1 /* ElementNode */) {
1729
+ markSlotContentForRelocation(childNode);
1730
+ }
1731
+ }
1732
+ };
1733
+ var nullifyVNodeRefs = (vNode) => {
1734
+ {
1735
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1736
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1737
+ }
1738
+ };
1739
+ var insertBefore = (parent, newNode, reference) => {
1740
+ if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
1741
+ addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
1742
+ }
1743
+ {
1744
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1745
+ }
1746
+ };
1747
+ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
1748
+ var _a, _b;
1749
+ let scopeId2;
1750
+ if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
1751
+ const scopeName = slotNode["s-sn"];
1752
+ const hostName = slotNode["s-hn"];
1753
+ (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
1754
+ if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
1755
+ let child = (oldParent.__childNodes || oldParent.childNodes)[0];
1756
+ let found = false;
1757
+ while (child) {
1758
+ if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
1759
+ found = true;
1760
+ break;
1761
+ }
1762
+ child = child.nextSibling;
1763
+ }
1764
+ if (!found) oldParent.classList.remove(scopeId2 + "-s");
1765
+ }
1766
+ }
1767
+ }
1768
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1769
+ var _a, _b, _c, _d;
1770
+ const hostElm = hostRef.$hostElement$;
1771
+ const cmpMeta = hostRef.$cmpMeta$;
1772
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1773
+ const isHostElement = isHost(renderFnResults);
1774
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1775
+ hostTagName = hostElm.tagName;
1776
+ if (isInitialLoad && rootVnode.$attrs$) {
1777
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1778
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1779
+ rootVnode.$attrs$[key] = hostElm[key];
1780
+ }
1781
+ }
1782
+ }
1783
+ rootVnode.$tag$ = null;
1784
+ rootVnode.$flags$ |= 4 /* isHost */;
1785
+ hostRef.$vnode$ = rootVnode;
1786
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1787
+ {
1788
+ scopeId = hostElm["s-sc"];
1789
+ }
1790
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1791
+ {
1792
+ contentRef = hostElm["s-cr"];
1793
+ checkSlotFallbackVisibility = false;
1794
+ }
1795
+ patch(oldVNode, rootVnode, isInitialLoad);
1796
+ {
1797
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1798
+ if (checkSlotRelocate) {
1799
+ markSlotContentForRelocation(rootVnode.$elm$);
1800
+ for (const relocateData of relocateNodes) {
1801
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1802
+ if (!nodeToRelocate["s-ol"] && win.document) {
1803
+ const orgLocationNode = win.document.createTextNode("");
1804
+ orgLocationNode["s-nr"] = nodeToRelocate;
1805
+ insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1806
+ }
1807
+ }
1808
+ for (const relocateData of relocateNodes) {
1809
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1810
+ const slotRefNode = relocateData.$slotRefNode$;
1811
+ if (slotRefNode) {
1812
+ const parentNodeRef = slotRefNode.parentNode;
1813
+ let insertBeforeNode = slotRefNode.nextSibling;
1814
+ {
1815
+ let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1816
+ while (orgLocationNode) {
1817
+ let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1818
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1819
+ refNode = refNode.nextSibling;
1820
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1821
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
1822
+ }
1823
+ if (!refNode || !refNode["s-nr"]) {
1824
+ insertBeforeNode = refNode;
1825
+ break;
1826
+ }
1827
+ }
1828
+ orgLocationNode = orgLocationNode.previousSibling;
1829
+ }
1830
+ }
1831
+ const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1832
+ const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1833
+ if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1834
+ if (nodeToRelocate !== insertBeforeNode) {
1835
+ if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1836
+ nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1837
+ }
1838
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1839
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1840
+ nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1841
+ }
1842
+ }
1843
+ }
1844
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1845
+ } else {
1846
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1847
+ if (isInitialLoad) {
1848
+ nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1849
+ }
1850
+ nodeToRelocate.hidden = true;
1851
+ }
1852
+ }
1853
+ }
1854
+ }
1855
+ if (checkSlotFallbackVisibility) {
1856
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1857
+ }
1858
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1859
+ relocateNodes.length = 0;
1860
+ }
1861
+ contentRef = void 0;
1862
+ };
1863
+
1864
+ // src/runtime/update-component.ts
1865
+ var attachToAncestor = (hostRef, ancestorComponent) => {
1866
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1867
+ const index = ancestorComponent["s-p"].push(
1868
+ new Promise(
1869
+ (r) => hostRef.$onRenderResolve$ = () => {
1870
+ ancestorComponent["s-p"].splice(index - 1, 1);
1871
+ r();
1872
+ }
1873
+ )
1874
+ );
1875
+ }
1876
+ };
1877
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
1878
+ {
1879
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1880
+ }
1881
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1882
+ hostRef.$flags$ |= 512 /* needsRerender */;
1883
+ return;
1884
+ }
1885
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1886
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1887
+ return writeTask(dispatch) ;
1888
+ };
1889
+ var dispatchHooks = (hostRef, isInitialLoad) => {
1890
+ const elm = hostRef.$hostElement$;
1891
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1892
+ const instance = hostRef.$lazyInstance$ ;
1893
+ if (!instance) {
1894
+ throw new Error(
1895
+ `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`
1896
+ );
1897
+ }
1898
+ let maybePromise;
1899
+ if (isInitialLoad) {
1900
+ {
1901
+ hostRef.$flags$ |= 256 /* isListenReady */;
1902
+ if (hostRef.$queuedListeners$) {
1903
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1904
+ hostRef.$queuedListeners$ = void 0;
1905
+ }
1906
+ }
1907
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1908
+ } else {
1909
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
1910
+ }
1911
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
1912
+ endSchedule();
1913
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1914
+ };
1915
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1916
+ console.error(err2);
1917
+ fn();
1918
+ }) : fn();
1919
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1920
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1921
+ var _a;
1922
+ const elm = hostRef.$hostElement$;
1923
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1924
+ const rc = elm["s-rc"];
1925
+ if (isInitialLoad) {
1926
+ attachStyles(hostRef);
1927
+ }
1928
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1929
+ {
1930
+ callRender(hostRef, instance, elm, isInitialLoad);
1931
+ }
1932
+ if (rc) {
1933
+ rc.map((cb) => cb());
1934
+ elm["s-rc"] = void 0;
1935
+ }
1936
+ endRender();
1937
+ endUpdate();
1938
+ {
1939
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1940
+ const postUpdate = () => postUpdateComponent(hostRef);
1941
+ if (childrenPromises.length === 0) {
1942
+ postUpdate();
1943
+ } else {
1944
+ Promise.all(childrenPromises).then(postUpdate);
1945
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1946
+ childrenPromises.length = 0;
1947
+ }
1948
+ }
1949
+ };
1950
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
1951
+ try {
1952
+ instance = instance.render() ;
1953
+ {
1954
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
1955
+ }
1956
+ {
1957
+ hostRef.$flags$ |= 2 /* hasRendered */;
1958
+ }
1959
+ {
1960
+ {
1961
+ {
1962
+ renderVdom(hostRef, instance, isInitialLoad);
1963
+ }
1964
+ }
1965
+ }
1966
+ } catch (e) {
1967
+ consoleError(e, hostRef.$hostElement$);
1968
+ }
1969
+ return null;
1970
+ };
1971
+ var postUpdateComponent = (hostRef) => {
1972
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1973
+ const elm = hostRef.$hostElement$;
1974
+ const endPostUpdate = createTime("postUpdate", tagName);
1975
+ const instance = hostRef.$lazyInstance$ ;
1976
+ const ancestorComponent = hostRef.$ancestorComponent$;
1977
+ safeCall(instance, "componentDidRender", void 0, elm);
1978
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1979
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1980
+ {
1981
+ addHydratedFlag(elm);
1982
+ }
1983
+ safeCall(instance, "componentDidLoad", void 0, elm);
1984
+ endPostUpdate();
1985
+ {
1986
+ hostRef.$onReadyResolve$(elm);
1987
+ if (!ancestorComponent) {
1988
+ appDidLoad();
1989
+ }
1990
+ }
1991
+ } else {
1992
+ safeCall(instance, "componentDidUpdate", void 0, elm);
1993
+ endPostUpdate();
1994
+ }
1995
+ {
1996
+ hostRef.$onInstanceResolve$(elm);
1997
+ }
1998
+ {
1999
+ if (hostRef.$onRenderResolve$) {
2000
+ hostRef.$onRenderResolve$();
2001
+ hostRef.$onRenderResolve$ = void 0;
2002
+ }
2003
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
2004
+ nextTick(() => scheduleUpdate(hostRef, false));
2005
+ }
2006
+ hostRef.$flags$ &= -517;
2007
+ }
2008
+ };
2009
+ var appDidLoad = (who) => {
2010
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2011
+ };
2012
+ var safeCall = (instance, method, arg, elm) => {
2013
+ if (instance && instance[method]) {
2014
+ try {
2015
+ return instance[method](arg);
2016
+ } catch (e) {
2017
+ consoleError(e, elm);
2018
+ }
2019
+ }
2020
+ return void 0;
2021
+ };
2022
+ var addHydratedFlag = (elm) => {
2023
+ var _b;
2024
+ return elm.setAttribute((_b = BUILD.hydratedSelectorName) != null ? _b : "hydrated", "") ;
2025
+ };
2026
+
2027
+ // src/runtime/set-value.ts
2028
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
2029
+ var setValue = (ref, propName, newVal, cmpMeta) => {
2030
+ const hostRef = getHostRef(ref);
2031
+ if (!hostRef) {
2032
+ throw new Error(
2033
+ `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).`
2034
+ );
2035
+ }
2036
+ const elm = hostRef.$hostElement$ ;
2037
+ const oldVal = hostRef.$instanceValues$.get(propName);
2038
+ const flags = hostRef.$flags$;
2039
+ const instance = hostRef.$lazyInstance$ ;
2040
+ newVal = parsePropertyValue(
2041
+ newVal,
2042
+ cmpMeta.$members$[propName][0]);
2043
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
2044
+ const didValueChange = newVal !== oldVal && !areBothNaN;
2045
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
2046
+ hostRef.$instanceValues$.set(propName, newVal);
2047
+ if (instance) {
2048
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
2049
+ const watchMethods = cmpMeta.$watchers$[propName];
2050
+ if (watchMethods) {
2051
+ watchMethods.map((watchMethodName) => {
2052
+ try {
2053
+ instance[watchMethodName](newVal, oldVal, propName);
2054
+ } catch (e) {
2055
+ consoleError(e, elm);
2056
+ }
2057
+ });
2058
+ }
2059
+ }
2060
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
2061
+ if (instance.componentShouldUpdate) {
2062
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
2063
+ return;
2064
+ }
2065
+ }
2066
+ scheduleUpdate(hostRef, false);
2067
+ }
2068
+ }
2069
+ }
2070
+ };
2071
+
2072
+ // src/runtime/proxy-component.ts
2073
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
2074
+ var _a, _b;
2075
+ const prototype = Cstr.prototype;
2076
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
2077
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
2078
+ cmpMeta.$watchers$ = Cstr.watchers;
2079
+ }
2080
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2081
+ members.map(([memberName, [memberFlags]]) => {
2082
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
2083
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
2084
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
2085
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
2086
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
2087
+ Object.defineProperty(prototype, memberName, {
2088
+ get() {
2089
+ {
2090
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
2091
+ return getValue(this, memberName);
2092
+ }
2093
+ const ref = getHostRef(this);
2094
+ const instance = ref ? ref.$lazyInstance$ : prototype;
2095
+ if (!instance) return;
2096
+ return instance[memberName];
2097
+ }
2098
+ },
2099
+ configurable: true,
2100
+ enumerable: true
2101
+ });
2102
+ }
2103
+ Object.defineProperty(prototype, memberName, {
2104
+ set(newValue) {
2105
+ const ref = getHostRef(this);
2106
+ if (origSetter) {
2107
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2108
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
2109
+ newValue = ref.$instanceValues$.get(memberName);
2110
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
2111
+ ref.$instanceValues$.set(memberName, currentValue);
2112
+ }
2113
+ origSetter.apply(this, [
2114
+ parsePropertyValue(
2115
+ newValue,
2116
+ memberFlags)
2117
+ ]);
2118
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2119
+ setValue(this, memberName, newValue, cmpMeta);
2120
+ return;
2121
+ }
2122
+ {
2123
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
2124
+ setValue(this, memberName, newValue, cmpMeta);
2125
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
2126
+ ref.$onReadyPromise$.then(() => {
2127
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
2128
+ ref.$lazyInstance$[memberName] = newValue;
2129
+ }
2130
+ });
2131
+ }
2132
+ return;
2133
+ }
2134
+ const setterSetVal = () => {
2135
+ const currentValue = ref.$lazyInstance$[memberName];
2136
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
2137
+ ref.$instanceValues$.set(memberName, currentValue);
2138
+ }
2139
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
2140
+ newValue,
2141
+ memberFlags);
2142
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2143
+ };
2144
+ if (ref.$lazyInstance$) {
2145
+ setterSetVal();
2146
+ } else {
2147
+ ref.$onReadyPromise$.then(() => setterSetVal());
2148
+ }
2149
+ }
2150
+ }
2151
+ });
2152
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
2153
+ Object.defineProperty(prototype, memberName, {
2154
+ value(...args) {
2155
+ var _a2;
2156
+ const ref = getHostRef(this);
2157
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
2158
+ var _a3;
2159
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
2160
+ });
2161
+ }
2162
+ });
2163
+ }
2164
+ });
2165
+ if ((flags & 1 /* isElementConstructor */)) {
2166
+ const attrNameToPropName = /* @__PURE__ */ new Map();
2167
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
2168
+ plt.jmp(() => {
2169
+ var _a2;
2170
+ const propName = attrNameToPropName.get(attrName);
2171
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
2172
+ newValue = this[propName];
2173
+ delete this[propName];
2174
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2175
+ this[propName] == newValue) {
2176
+ return;
2177
+ } else if (propName == null) {
2178
+ const hostRef = getHostRef(this);
2179
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
2180
+ if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
2181
+ const instance = hostRef.$lazyInstance$ ;
2182
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2183
+ entry == null ? void 0 : entry.forEach((callbackName) => {
2184
+ if (instance[callbackName] != null) {
2185
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
2186
+ }
2187
+ });
2188
+ }
2189
+ return;
2190
+ }
2191
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2192
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2193
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
2194
+ this[propName] = newValue;
2195
+ }
2196
+ });
2197
+ };
2198
+ Cstr.observedAttributes = Array.from(
2199
+ /* @__PURE__ */ new Set([
2200
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2201
+ ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
2202
+ const attrName = m[1] || propName;
2203
+ attrNameToPropName.set(attrName, propName);
2204
+ return attrName;
2205
+ })
2206
+ ])
2207
+ );
2208
+ }
2209
+ }
2210
+ return Cstr;
2211
+ };
2212
+
2213
+ // src/runtime/initialize-component.ts
2214
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2215
+ let Cstr;
2216
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2217
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2218
+ const bundleId = cmpMeta.$lazyBundleId$;
2219
+ if (bundleId) {
2220
+ const CstrImport = loadModule(cmpMeta, hostRef);
2221
+ if (CstrImport && "then" in CstrImport) {
2222
+ const endLoad = uniqueTime();
2223
+ Cstr = await CstrImport;
2224
+ endLoad();
2225
+ } else {
2226
+ Cstr = CstrImport;
2227
+ }
2228
+ if (!Cstr) {
2229
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2230
+ }
2231
+ if (!Cstr.isProxied) {
2232
+ {
2233
+ cmpMeta.$watchers$ = Cstr.watchers;
2234
+ }
2235
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2236
+ Cstr.isProxied = true;
2237
+ }
2238
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2239
+ {
2240
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2241
+ }
2242
+ try {
2243
+ new Cstr(hostRef);
2244
+ } catch (e) {
2245
+ consoleError(e, elm);
2246
+ }
2247
+ {
2248
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2249
+ }
2250
+ {
2251
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2252
+ }
2253
+ endNewInstance();
2254
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2255
+ } else {
2256
+ Cstr = elm.constructor;
2257
+ const cmpTag = elm.localName;
2258
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2259
+ }
2260
+ if (Cstr && Cstr.style) {
2261
+ let style;
2262
+ if (typeof Cstr.style === "string") {
2263
+ style = Cstr.style;
2264
+ }
2265
+ const scopeId2 = getScopeId(cmpMeta);
2266
+ if (!styles.has(scopeId2)) {
2267
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2268
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2269
+ endRegisterStyles();
2270
+ }
2271
+ }
2272
+ }
2273
+ const ancestorComponent = hostRef.$ancestorComponent$;
2274
+ const schedule = () => scheduleUpdate(hostRef, true);
2275
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2276
+ ancestorComponent["s-rc"].push(schedule);
2277
+ } else {
2278
+ schedule();
2279
+ }
2280
+ };
2281
+ var fireConnectedCallback = (instance, elm) => {
2282
+ {
2283
+ safeCall(instance, "connectedCallback", void 0, elm);
2284
+ }
2285
+ };
2286
+
2287
+ // src/runtime/connected-callback.ts
2288
+ var connectedCallback = (elm) => {
2289
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2290
+ const hostRef = getHostRef(elm);
2291
+ const cmpMeta = hostRef.$cmpMeta$;
2292
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2293
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2294
+ hostRef.$flags$ |= 1 /* hasConnected */;
2295
+ let hostId;
2296
+ {
2297
+ hostId = elm.getAttribute(HYDRATE_ID);
2298
+ if (hostId) {
2299
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2300
+ const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
2301
+ elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2302
+ } else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2303
+ const scopeId2 = getScopeId(cmpMeta);
2304
+ elm["s-sc"] = scopeId2;
2305
+ }
2306
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2307
+ }
2308
+ }
2309
+ if (!hostId) {
2310
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2311
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2312
+ setContentReference(elm);
2313
+ }
2314
+ }
2315
+ {
2316
+ let ancestorComponent = elm;
2317
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2318
+ if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2319
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2320
+ break;
2321
+ }
2322
+ }
2323
+ }
2324
+ if (cmpMeta.$members$) {
2325
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2326
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
2327
+ const value = elm[memberName];
2328
+ delete elm[memberName];
2329
+ elm[memberName] = value;
2330
+ }
2331
+ });
2332
+ }
2333
+ {
2334
+ initializeComponent(elm, hostRef, cmpMeta);
2335
+ }
2336
+ } else {
2337
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2338
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2339
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2340
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2341
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
2342
+ }
2343
+ }
2344
+ endConnected();
2345
+ }
2346
+ };
2347
+ var setContentReference = (elm) => {
2348
+ if (!win.document) {
2349
+ return;
2350
+ }
2351
+ const contentRefElm = elm["s-cr"] = win.document.createComment(
2352
+ ""
2353
+ );
2354
+ contentRefElm["s-cn"] = true;
2355
+ insertBefore(elm, contentRefElm, elm.firstChild);
2356
+ };
2357
+ var disconnectInstance = (instance, elm) => {
2358
+ {
2359
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
2360
+ }
2361
+ };
2362
+ var disconnectedCallback = async (elm) => {
2363
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2364
+ const hostRef = getHostRef(elm);
2365
+ {
2366
+ if (hostRef.$rmListeners$) {
2367
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
2368
+ hostRef.$rmListeners$ = void 0;
2369
+ }
2370
+ }
2371
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2372
+ disconnectInstance(hostRef.$lazyInstance$, elm);
2373
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2374
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
2375
+ }
2376
+ }
2377
+ if (rootAppliedStyles.has(elm)) {
2378
+ rootAppliedStyles.delete(elm);
2379
+ }
2380
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2381
+ rootAppliedStyles.delete(elm.shadowRoot);
2382
+ }
2383
+ };
2384
+
2385
+ // src/runtime/bootstrap-lazy.ts
2386
+ var bootstrapLazy = (lazyBundles, options = {}) => {
2387
+ var _a;
2388
+ if (!win.document) {
2389
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
2390
+ return;
2391
+ }
2392
+ const endBootstrap = createTime();
2393
+ const cmpTags = [];
2394
+ const exclude = options.exclude || [];
2395
+ const customElements2 = win.customElements;
2396
+ const head = win.document.head;
2397
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2398
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
2399
+ const deferredConnectedCallbacks = [];
2400
+ let appLoadFallback;
2401
+ let isBootstrapping = true;
2402
+ Object.assign(plt, options);
2403
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
2404
+ {
2405
+ plt.$flags$ |= 2 /* appLoaded */;
2406
+ }
2407
+ {
2408
+ hydrateScopedToShadow();
2409
+ }
2410
+ let hasSlotRelocation = false;
2411
+ lazyBundles.map((lazyBundle) => {
2412
+ lazyBundle[1].map((compactMeta) => {
2413
+ var _a2;
2414
+ const cmpMeta = {
2415
+ $flags$: compactMeta[0],
2416
+ $tagName$: compactMeta[1],
2417
+ $members$: compactMeta[2],
2418
+ $listeners$: compactMeta[3]
2419
+ };
2420
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2421
+ hasSlotRelocation = true;
2422
+ }
2423
+ {
2424
+ cmpMeta.$members$ = compactMeta[2];
2425
+ }
2426
+ {
2427
+ cmpMeta.$listeners$ = compactMeta[3];
2428
+ }
2429
+ {
2430
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
2431
+ }
2432
+ const tagName = cmpMeta.$tagName$;
2433
+ const HostElement = class extends HTMLElement {
2434
+ // StencilLazyHost
2435
+ constructor(self) {
2436
+ super(self);
2437
+ this.hasRegisteredEventListeners = false;
2438
+ self = this;
2439
+ registerHost(self, cmpMeta);
2440
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2441
+ {
2442
+ if (!self.shadowRoot) {
2443
+ createShadowRoot.call(self, cmpMeta);
2444
+ } else {
2445
+ if (self.shadowRoot.mode !== "open") {
2446
+ throw new Error(
2447
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2448
+ );
2449
+ }
2450
+ }
2451
+ }
2452
+ }
2453
+ }
2454
+ connectedCallback() {
2455
+ const hostRef = getHostRef(this);
2456
+ if (!this.hasRegisteredEventListeners) {
2457
+ this.hasRegisteredEventListeners = true;
2458
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2459
+ }
2460
+ if (appLoadFallback) {
2461
+ clearTimeout(appLoadFallback);
2462
+ appLoadFallback = null;
2463
+ }
2464
+ if (isBootstrapping) {
2465
+ deferredConnectedCallbacks.push(this);
2466
+ } else {
2467
+ plt.jmp(() => connectedCallback(this));
2468
+ }
2469
+ }
2470
+ disconnectedCallback() {
2471
+ plt.jmp(() => disconnectedCallback(this));
2472
+ plt.raf(() => {
2473
+ var _a3;
2474
+ const hostRef = getHostRef(this);
2475
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2476
+ if (i2 > -1) {
2477
+ deferredConnectedCallbacks.splice(i2, 1);
2478
+ }
2479
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
2480
+ delete hostRef.$vnode$.$elm$;
2481
+ }
2482
+ });
2483
+ }
2484
+ componentOnReady() {
2485
+ return getHostRef(this).$onReadyPromise$;
2486
+ }
2487
+ };
2488
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
2489
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2490
+ cmpTags.push(tagName);
2491
+ customElements2.define(
2492
+ tagName,
2493
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2494
+ );
2495
+ }
2496
+ });
2497
+ });
2498
+ if (cmpTags.length > 0) {
2499
+ if (hasSlotRelocation) {
2500
+ dataStyles.textContent += SLOT_FB_CSS;
2501
+ }
2502
+ {
2503
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2504
+ }
2505
+ if (dataStyles.innerHTML.length) {
2506
+ dataStyles.setAttribute("data-styles", "");
2507
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2508
+ if (nonce != null) {
2509
+ dataStyles.setAttribute("nonce", nonce);
2510
+ }
2511
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2512
+ }
2513
+ }
2514
+ isBootstrapping = false;
2515
+ if (deferredConnectedCallbacks.length) {
2516
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
2517
+ } else {
2518
+ {
2519
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2520
+ }
2521
+ }
2522
+ endBootstrap();
2523
+ };
2524
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2525
+ if (listeners && win.document) {
2526
+ listeners.map(([flags, name, method]) => {
2527
+ const target = getHostListenerTarget(win.document, elm, flags) ;
2528
+ const handler = hostListenerProxy(hostRef, method);
2529
+ const opts = hostListenerOpts(flags);
2530
+ plt.ael(target, name, handler, opts);
2531
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2532
+ });
2533
+ }
2534
+ };
2535
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
2536
+ var _a;
2537
+ try {
2538
+ {
2539
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
2540
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2541
+ } else {
2542
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2543
+ }
2544
+ }
2545
+ } catch (e) {
2546
+ consoleError(e, hostRef.$hostElement$);
2547
+ }
2548
+ };
2549
+ var getHostListenerTarget = (doc, elm, flags) => {
2550
+ if (flags & 4 /* TargetDocument */) {
2551
+ return doc;
2552
+ }
2553
+ return elm;
2554
+ };
2555
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2556
+ passive: (flags & 1 /* Passive */) !== 0,
2557
+ capture: (flags & 2 /* Capture */) !== 0
2558
+ } : (flags & 2 /* Capture */) !== 0;
2559
+
2560
+ // src/runtime/nonce.ts
2561
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
2562
+
2563
+ export { Host as H, getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2564
+ //# sourceMappingURL=index-Zkk2NJif.js.map
2565
+
2566
+ //# sourceMappingURL=index-Zkk2NJif.js.map