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