@xplortech/apollo-core 1.0.0-beta.8 → 2.4.2

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 (528) hide show
  1. package/.typings/apollo-components.html-data.json +4396 -0
  2. package/README.md +57 -25
  3. package/build/style.css +4374 -3359
  4. package/dist/apollo-core/apollo-core.css +50 -24
  5. package/dist/apollo-core/apollo-core.esm.js +1 -1
  6. package/dist/apollo-core/p-0ac33b3a.entry.js +1 -0
  7. package/dist/apollo-core/p-23ef2717.entry.js +6 -0
  8. package/dist/apollo-core/p-31461db7.entry.js +1 -0
  9. package/dist/apollo-core/p-3b5f8989.entry.js +1 -0
  10. package/dist/apollo-core/p-4fab8172.entry.js +1 -0
  11. package/dist/apollo-core/p-576ce90f.entry.js +1 -0
  12. package/dist/apollo-core/p-5ec45742.entry.js +1 -0
  13. package/dist/apollo-core/p-7b7db57a.entry.js +1 -0
  14. package/dist/apollo-core/p-7f8e5cd0.entry.js +1 -0
  15. package/dist/apollo-core/p-812bb0e4.entry.js +1 -0
  16. package/dist/apollo-core/p-845eef0d.entry.js +1 -0
  17. package/dist/apollo-core/p-8c1f73ea.entry.js +1 -0
  18. package/dist/apollo-core/p-94209785.entry.js +1 -0
  19. package/dist/apollo-core/p-9853028c.entry.js +1 -0
  20. package/dist/apollo-core/p-9d65ece7.entry.js +1 -0
  21. package/dist/apollo-core/p-CH4yJ6Qx.js +1 -0
  22. package/dist/apollo-core/p-Cqlsd6nf.js +1 -0
  23. package/dist/apollo-core/p-DQuL1Twl.js +1 -0
  24. package/dist/apollo-core/p-DhZas3eX.js +2 -0
  25. package/dist/apollo-core/p-b1f4604d.entry.js +1 -0
  26. package/dist/apollo-core/p-be292555.entry.js +1 -0
  27. package/dist/cjs/apollo-core.cjs.js +15 -13
  28. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  29. package/dist/{esm/xpl-input.entry.js → cjs/index-BvmWjxWc.js} +2 -94
  30. package/dist/cjs/index-D__N_vw2.js +2160 -0
  31. package/dist/cjs/loader.cjs.js +6 -15
  32. package/dist/cjs/{v4-14140ff3.js → v4-D4KzFnn8.js} +1 -11
  33. package/dist/cjs/xpl-accordion.cjs.entry.js +73 -0
  34. package/dist/cjs/xpl-application-shell.cjs.entry.js +41 -46
  35. package/dist/cjs/xpl-avatar_41.cjs.entry.js +5521 -0
  36. package/dist/cjs/xpl-button-row.cjs.entry.js +13 -18
  37. package/dist/cjs/xpl-calendar.cjs.entry.js +66 -0
  38. package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +33 -0
  39. package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +37 -0
  40. package/dist/cjs/xpl-dynamic-table.cjs.entry.js +64 -0
  41. package/dist/cjs/xpl-grid-item.cjs.entry.js +16 -18
  42. package/dist/cjs/xpl-grid.cjs.entry.js +29 -28
  43. package/dist/cjs/xpl-large-card.cjs.entry.js +27 -0
  44. package/dist/cjs/xpl-list.cjs.entry.js +23 -30
  45. package/dist/cjs/xpl-main-nav.cjs.entry.js +18 -20
  46. package/dist/cjs/xpl-table-header-cell.cjs.entry.js +57 -0
  47. package/dist/cjs/xpl-table-header.cjs.entry.js +14 -0
  48. package/dist/cjs/xpl-toggle.cjs.entry.js +22 -30
  49. package/dist/cjs/xpl-toolbar.cjs.entry.js +28 -0
  50. package/dist/collection/collection-manifest.json +59 -32
  51. package/dist/collection/components/xpl-accordion/accordion.stories.js +76 -0
  52. package/dist/collection/components/xpl-accordion/xpl-accordion.js +236 -0
  53. package/dist/collection/components/xpl-application-shell/application-shell.stories.js +733 -0
  54. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +163 -158
  55. package/dist/collection/components/xpl-avatar/avatar.stories.js +128 -0
  56. package/dist/collection/components/xpl-avatar/xpl-avatar.js +171 -162
  57. package/dist/collection/components/xpl-backdrop/backdrop.stories.js +20 -0
  58. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +39 -37
  59. package/dist/collection/components/xpl-badge/badge.stories.js +48 -0
  60. package/dist/collection/components/xpl-badge/xpl-badge.js +52 -52
  61. package/dist/collection/components/xpl-breadcrumbs/breadcrumbs.stories.js +130 -0
  62. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +8 -12
  63. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +5 -8
  64. package/dist/collection/components/xpl-button/button.stories.js +133 -0
  65. package/dist/collection/components/xpl-button/xpl-button.js +272 -245
  66. package/dist/collection/components/xpl-button-row/button-row.stories.js +69 -0
  67. package/dist/collection/components/xpl-button-row/xpl-button-row.js +119 -116
  68. package/dist/collection/components/xpl-calendar/calendar.stories.js +59 -0
  69. package/dist/collection/components/xpl-calendar/xpl-calendar.js +224 -0
  70. package/dist/collection/components/xpl-checkbox/checkbox.stories.js +79 -0
  71. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +226 -193
  72. package/dist/collection/components/xpl-choicelist/choicelist.stories.js +134 -0
  73. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +220 -154
  74. package/dist/collection/components/xpl-content-area/content-area.stories.js +55 -0
  75. package/dist/collection/components/xpl-content-area/xpl-content-area.js +35 -33
  76. package/dist/collection/components/xpl-dashboard/dashboard.stories.js +48 -0
  77. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +7 -0
  78. package/dist/collection/components/xpl-data-card/data-card.stories.js +111 -0
  79. package/dist/collection/components/xpl-data-card/xpl-data-card.js +316 -0
  80. package/dist/collection/components/xpl-divider/divider.stories.js +32 -0
  81. package/dist/collection/components/xpl-divider/xpl-divider.js +30 -31
  82. package/dist/collection/components/xpl-dropdown/dropdown.stories.js +383 -0
  83. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +68 -66
  84. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +28 -29
  85. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +148 -114
  86. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +438 -256
  87. package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +161 -0
  88. package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +97 -0
  89. package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +52 -0
  90. package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +81 -0
  91. package/dist/{stories → collection/components/xpl-grid}/grid.stories.js +44 -68
  92. package/dist/collection/components/xpl-grid/xpl-grid.js +27 -24
  93. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +100 -92
  94. package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +48 -0
  95. package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +200 -0
  96. package/dist/collection/components/xpl-icon/icons.stories.js +107 -0
  97. package/dist/collection/components/xpl-icon/xpl-icon.css +5 -0
  98. package/dist/collection/components/xpl-icon/xpl-icon.js +101 -0
  99. package/dist/collection/components/xpl-input/input.stories.js +531 -0
  100. package/dist/collection/components/xpl-input/xpl-input-color/color-utils.js +167 -0
  101. package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +387 -0
  102. package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +377 -0
  103. package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +276 -0
  104. package/dist/collection/components/xpl-input/xpl-input-time/time-utils.js +63 -0
  105. package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +425 -0
  106. package/dist/collection/components/xpl-input/xpl-input.js +729 -460
  107. package/dist/collection/components/xpl-large-card/large-card.stories.js +127 -0
  108. package/dist/collection/components/xpl-large-card/xpl-large-card.js +81 -0
  109. package/dist/collection/components/xpl-list/list.stories.js +148 -0
  110. package/dist/collection/components/xpl-list/xpl-list.js +51 -53
  111. package/dist/collection/components/xpl-main-nav/main-nav.stories.js +307 -0
  112. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +65 -63
  113. package/dist/collection/components/xpl-modal/modal.stories.js +87 -0
  114. package/dist/collection/components/xpl-modal/xpl-modal.js +139 -0
  115. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +63 -61
  116. package/dist/collection/components/xpl-pagination/pagination.stories.js +35 -0
  117. package/dist/collection/components/xpl-pagination/xpl-pagination.js +217 -172
  118. package/dist/collection/components/xpl-popover/popover.stories.js +164 -0
  119. package/dist/collection/components/xpl-popover/xpl-popover.js +346 -0
  120. package/dist/collection/components/xpl-progress/progress.stories.js +102 -0
  121. package/dist/collection/components/xpl-progress/xpl-progress.js +60 -0
  122. package/dist/collection/components/xpl-radio/radio.stories.js +91 -0
  123. package/dist/collection/components/xpl-radio/xpl-radio.js +188 -175
  124. package/dist/collection/components/xpl-secondary-nav/secondary-nav.stories.js +78 -0
  125. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +5 -5
  126. package/dist/collection/components/xpl-select/select.stories.js +293 -0
  127. package/dist/collection/components/xpl-select/xpl-select.js +660 -308
  128. package/dist/collection/components/xpl-skeleton/skeleton.stories.js +67 -0
  129. package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +175 -0
  130. package/dist/collection/components/xpl-slideout/slideout.stories.js +103 -0
  131. package/dist/collection/components/xpl-slideout/xpl-slideout.js +150 -0
  132. package/dist/collection/components/xpl-tab/xpl-tab.js +77 -0
  133. package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +56 -0
  134. package/dist/collection/components/xpl-table/table.stories.js +143 -0
  135. package/dist/collection/components/xpl-table/xpl-table.js +379 -214
  136. package/dist/collection/components/xpl-table-header/table-header.stories.js +122 -0
  137. package/dist/collection/components/xpl-table-header/xpl-table-header.js +7 -0
  138. package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +71 -0
  139. package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +198 -0
  140. package/dist/collection/components/xpl-tabs/tabs.stories.js +77 -0
  141. package/dist/collection/components/xpl-tabs/xpl-tabs.js +206 -0
  142. package/dist/collection/components/xpl-tag/xpl-tag.js +27 -27
  143. package/dist/collection/components/xpl-toast/toast.stories.js +82 -0
  144. package/dist/collection/components/xpl-toast/xpl-toast.js +162 -0
  145. package/dist/collection/components/xpl-toggle/toggle.stories.js +84 -0
  146. package/dist/collection/components/xpl-toggle/xpl-toggle.js +165 -157
  147. package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +56 -0
  148. package/dist/collection/components/xpl-tooltip/tooltip-arrow.js +2 -0
  149. package/dist/collection/components/xpl-tooltip/tooltip.stories.js +85 -0
  150. package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +75 -0
  151. package/dist/collection/components/xpl-utility-bar/utility-bar.stories.js +87 -0
  152. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +89 -93
  153. package/dist/components/_commonjsHelpers.js +1 -0
  154. package/dist/components/index.d.ts +45 -0
  155. package/dist/components/index.js +1 -0
  156. package/dist/components/index2.js +1 -0
  157. package/dist/components/index3.js +1 -0
  158. package/dist/components/v4.js +1 -0
  159. package/dist/components/xpl-accordion.d.ts +11 -0
  160. package/dist/components/xpl-accordion.js +1 -0
  161. package/dist/components/xpl-application-shell.d.ts +11 -0
  162. package/dist/components/xpl-application-shell.js +1 -0
  163. package/dist/components/xpl-avatar.d.ts +11 -0
  164. package/dist/components/xpl-avatar.js +1 -0
  165. package/dist/components/xpl-avatar2.js +1 -0
  166. package/dist/components/xpl-backdrop.d.ts +11 -0
  167. package/dist/components/xpl-backdrop.js +1 -0
  168. package/dist/components/xpl-backdrop2.js +1 -0
  169. package/dist/components/xpl-badge.d.ts +11 -0
  170. package/dist/components/xpl-badge.js +1 -0
  171. package/dist/components/xpl-badge2.js +1 -0
  172. package/dist/components/xpl-breadcrumb-item.d.ts +11 -0
  173. package/dist/components/xpl-breadcrumb-item.js +1 -0
  174. package/dist/components/xpl-breadcrumbs.d.ts +11 -0
  175. package/dist/components/xpl-breadcrumbs.js +1 -0
  176. package/dist/components/xpl-button-row.d.ts +11 -0
  177. package/dist/components/xpl-button-row.js +1 -0
  178. package/dist/components/xpl-button.d.ts +11 -0
  179. package/dist/components/xpl-button.js +1 -0
  180. package/dist/components/xpl-button2.js +1 -0
  181. package/dist/components/xpl-calendar.d.ts +11 -0
  182. package/dist/components/xpl-calendar.js +1 -0
  183. package/dist/components/xpl-checkbox.d.ts +11 -0
  184. package/dist/components/xpl-checkbox.js +1 -0
  185. package/dist/components/xpl-checkbox2.js +1 -0
  186. package/dist/components/xpl-choicelist.d.ts +11 -0
  187. package/dist/components/xpl-choicelist.js +1 -0
  188. package/dist/components/xpl-content-area.d.ts +11 -0
  189. package/dist/components/xpl-content-area.js +1 -0
  190. package/dist/components/xpl-dashboard.d.ts +11 -0
  191. package/dist/components/xpl-dashboard.js +1 -0
  192. package/dist/components/xpl-data-card.d.ts +11 -0
  193. package/dist/components/xpl-data-card.js +1 -0
  194. package/dist/components/xpl-divider.d.ts +11 -0
  195. package/dist/components/xpl-divider.js +1 -0
  196. package/dist/components/xpl-divider2.js +1 -0
  197. package/dist/components/xpl-dropdown-group.d.ts +11 -0
  198. package/dist/components/xpl-dropdown-group.js +1 -0
  199. package/dist/components/xpl-dropdown-group2.js +1 -0
  200. package/dist/components/xpl-dropdown-heading.d.ts +11 -0
  201. package/dist/components/xpl-dropdown-heading.js +1 -0
  202. package/dist/components/xpl-dropdown-heading2.js +1 -0
  203. package/dist/components/xpl-dropdown-option.d.ts +11 -0
  204. package/dist/components/xpl-dropdown-option.js +1 -0
  205. package/dist/components/xpl-dropdown-option2.js +1 -0
  206. package/dist/components/xpl-dropdown.d.ts +11 -0
  207. package/dist/components/xpl-dropdown.js +1 -0
  208. package/dist/components/xpl-dropdown2.js +1 -0
  209. package/dist/components/xpl-dynamic-table-cell.d.ts +11 -0
  210. package/dist/components/xpl-dynamic-table-cell.js +1 -0
  211. package/dist/components/xpl-dynamic-table-row.d.ts +11 -0
  212. package/dist/components/xpl-dynamic-table-row.js +1 -0
  213. package/dist/components/xpl-dynamic-table.d.ts +11 -0
  214. package/dist/components/xpl-dynamic-table.js +1 -0
  215. package/dist/components/xpl-grid-item.d.ts +11 -0
  216. package/dist/components/xpl-grid-item.js +1 -0
  217. package/dist/components/xpl-grid.d.ts +11 -0
  218. package/dist/components/xpl-grid.js +1 -0
  219. package/dist/components/xpl-header-accordion.d.ts +11 -0
  220. package/dist/components/xpl-header-accordion.js +1 -0
  221. package/dist/components/xpl-icon.d.ts +11 -0
  222. package/dist/components/xpl-icon.js +1 -0
  223. package/dist/components/xpl-icon2.js +6 -0
  224. package/dist/components/xpl-input-color.d.ts +11 -0
  225. package/dist/components/xpl-input-color.js +1 -0
  226. package/dist/components/xpl-input-date.d.ts +11 -0
  227. package/dist/components/xpl-input-date.js +1 -0
  228. package/dist/components/xpl-input-date2.js +1 -0
  229. package/dist/components/xpl-input-file.d.ts +11 -0
  230. package/dist/components/xpl-input-file.js +1 -0
  231. package/dist/components/xpl-input-file2.js +1 -0
  232. package/dist/components/xpl-input-time.d.ts +11 -0
  233. package/dist/components/xpl-input-time.js +1 -0
  234. package/dist/components/xpl-input.d.ts +11 -0
  235. package/dist/components/xpl-input.js +1 -0
  236. package/dist/components/xpl-input2.js +1 -0
  237. package/dist/components/xpl-large-card.d.ts +11 -0
  238. package/dist/components/xpl-large-card.js +1 -0
  239. package/dist/components/xpl-list.d.ts +11 -0
  240. package/dist/components/xpl-list.js +1 -0
  241. package/dist/components/xpl-main-nav.d.ts +11 -0
  242. package/dist/components/xpl-main-nav.js +1 -0
  243. package/dist/components/xpl-modal.d.ts +11 -0
  244. package/dist/components/xpl-modal.js +1 -0
  245. package/dist/components/xpl-nav-item.d.ts +11 -0
  246. package/dist/components/xpl-nav-item.js +1 -0
  247. package/dist/components/xpl-pagination.d.ts +11 -0
  248. package/dist/components/xpl-pagination.js +1 -0
  249. package/dist/components/xpl-popover.d.ts +11 -0
  250. package/dist/components/xpl-popover.js +1 -0
  251. package/dist/components/xpl-popover2.js +1 -0
  252. package/dist/components/xpl-progress.d.ts +11 -0
  253. package/dist/components/xpl-progress.js +1 -0
  254. package/dist/components/xpl-radio.d.ts +11 -0
  255. package/dist/components/xpl-radio.js +1 -0
  256. package/dist/components/xpl-radio2.js +1 -0
  257. package/dist/components/xpl-secondary-nav.d.ts +11 -0
  258. package/dist/components/xpl-secondary-nav.js +1 -0
  259. package/dist/components/xpl-select.d.ts +11 -0
  260. package/dist/components/xpl-select.js +1 -0
  261. package/dist/components/xpl-select2.js +1 -0
  262. package/dist/components/xpl-skeleton.d.ts +11 -0
  263. package/dist/components/xpl-skeleton.js +1 -0
  264. package/dist/components/xpl-slideout.d.ts +11 -0
  265. package/dist/components/xpl-slideout.js +1 -0
  266. package/dist/components/xpl-tab-panel.d.ts +11 -0
  267. package/dist/components/xpl-tab-panel.js +1 -0
  268. package/dist/components/xpl-tab.d.ts +11 -0
  269. package/dist/components/xpl-tab.js +1 -0
  270. package/dist/components/xpl-table-header-cell.d.ts +11 -0
  271. package/dist/components/xpl-table-header-cell.js +1 -0
  272. package/dist/components/xpl-table-header.d.ts +11 -0
  273. package/dist/components/xpl-table-header.js +1 -0
  274. package/dist/components/xpl-table.d.ts +11 -0
  275. package/dist/components/xpl-table.js +1 -0
  276. package/dist/components/xpl-tabs.d.ts +11 -0
  277. package/dist/components/xpl-tabs.js +1 -0
  278. package/dist/components/xpl-tag.d.ts +11 -0
  279. package/dist/components/xpl-tag.js +1 -0
  280. package/dist/components/xpl-tag2.js +1 -0
  281. package/dist/components/xpl-toast.d.ts +11 -0
  282. package/dist/components/xpl-toast.js +1 -0
  283. package/dist/components/xpl-toggle.d.ts +11 -0
  284. package/dist/components/xpl-toggle.js +1 -0
  285. package/dist/components/xpl-toolbar.d.ts +11 -0
  286. package/dist/components/xpl-toolbar.js +1 -0
  287. package/dist/components/xpl-tooltip.d.ts +11 -0
  288. package/dist/components/xpl-tooltip.js +1 -0
  289. package/dist/components/xpl-tooltip2.js +1 -0
  290. package/dist/components/xpl-utility-bar.d.ts +11 -0
  291. package/dist/components/xpl-utility-bar.js +1 -0
  292. package/dist/css/typography.stories.js +144 -0
  293. package/dist/esm/apollo-core.js +15 -12
  294. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  295. package/dist/{cjs/xpl-input.cjs.entry.js → esm/index-CH4yJ6Qx.js} +1 -99
  296. package/dist/esm/index-DhZas3eX.js +2132 -0
  297. package/dist/esm/loader.js +7 -14
  298. package/dist/esm/{v4-929670b7.js → v4-Cqlsd6nf.js} +1 -11
  299. package/dist/esm/xpl-accordion.entry.js +71 -0
  300. package/dist/esm/xpl-application-shell.entry.js +41 -44
  301. package/dist/esm/xpl-avatar_41.entry.js +5479 -0
  302. package/dist/esm/xpl-button-row.entry.js +13 -16
  303. package/dist/esm/xpl-calendar.entry.js +64 -0
  304. package/dist/esm/xpl-dynamic-table-cell.entry.js +31 -0
  305. package/dist/esm/xpl-dynamic-table-row.entry.js +35 -0
  306. package/dist/esm/xpl-dynamic-table.entry.js +62 -0
  307. package/dist/esm/xpl-grid-item.entry.js +16 -16
  308. package/dist/esm/xpl-grid.entry.js +29 -26
  309. package/dist/esm/xpl-large-card.entry.js +25 -0
  310. package/dist/esm/xpl-list.entry.js +23 -28
  311. package/dist/esm/xpl-main-nav.entry.js +18 -18
  312. package/dist/esm/xpl-table-header-cell.entry.js +55 -0
  313. package/dist/esm/xpl-table-header.entry.js +12 -0
  314. package/dist/esm/xpl-toggle.entry.js +22 -28
  315. package/dist/esm/xpl-toolbar.entry.js +26 -0
  316. package/dist/types/components/xpl-accordion/accordion.stories.d.ts +37 -0
  317. package/dist/types/components/xpl-accordion/xpl-accordion.d.ts +16 -0
  318. package/dist/types/components/xpl-application-shell/application-shell.stories.d.ts +60 -0
  319. package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +12 -27
  320. package/dist/types/components/xpl-avatar/avatar.stories.d.ts +75 -0
  321. package/dist/types/components/xpl-avatar/xpl-avatar.d.ts +9 -9
  322. package/dist/types/components/xpl-backdrop/backdrop.stories.d.ts +17 -0
  323. package/dist/types/components/xpl-backdrop/xpl-backdrop.d.ts +2 -6
  324. package/dist/types/components/xpl-badge/badge.stories.d.ts +44 -0
  325. package/dist/types/components/xpl-badge/xpl-badge.d.ts +3 -3
  326. package/dist/types/components/xpl-breadcrumbs/breadcrumbs.stories.d.ts +53 -0
  327. package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.d.ts +2 -5
  328. package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.d.ts +1 -4
  329. package/dist/types/components/xpl-button/button.stories.d.ts +92 -0
  330. package/dist/types/components/xpl-button/xpl-button.d.ts +14 -43
  331. package/dist/types/components/xpl-button-row/button-row.stories.d.ts +45 -0
  332. package/dist/types/components/xpl-button-row/xpl-button-row.d.ts +10 -32
  333. package/dist/types/components/xpl-calendar/calendar.stories.d.ts +58 -0
  334. package/dist/types/components/xpl-calendar/xpl-calendar.d.ts +18 -0
  335. package/dist/types/components/xpl-checkbox/checkbox.stories.d.ts +65 -0
  336. package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +13 -13
  337. package/dist/types/components/xpl-choicelist/choice.d.ts +5 -4
  338. package/dist/types/components/xpl-choicelist/choicelist.stories.d.ts +40 -0
  339. package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +16 -32
  340. package/dist/types/components/xpl-content-area/content-area.stories.d.ts +13 -0
  341. package/dist/types/components/xpl-content-area/xpl-content-area.d.ts +2 -5
  342. package/dist/types/components/xpl-dashboard/dashboard.stories.d.ts +31 -0
  343. package/dist/types/components/xpl-dashboard/xpl-dashboard.d.ts +3 -0
  344. package/dist/types/components/xpl-data-card/data-card.stories.d.ts +114 -0
  345. package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +21 -0
  346. package/dist/types/components/xpl-divider/divider.stories.d.ts +37 -0
  347. package/dist/types/components/xpl-divider/xpl-divider.d.ts +2 -7
  348. package/dist/types/components/xpl-dropdown/dropdown-option.d.ts +12 -0
  349. package/dist/types/components/xpl-dropdown/dropdown.stories.d.ts +25 -0
  350. package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +4 -6
  351. package/dist/types/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.d.ts +2 -3
  352. package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +13 -14
  353. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +34 -35
  354. package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +41 -0
  355. package/dist/types/components/xpl-dynamic-table/xpl-dynamic-table.d.ts +14 -0
  356. package/dist/types/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.d.ts +9 -0
  357. package/dist/types/components/xpl-dynamic-table-row/xpl-dynamic-table-row.d.ts +11 -0
  358. package/dist/types/components/xpl-grid/grid.stories.d.ts +133 -0
  359. package/dist/types/components/xpl-grid/xpl-grid.d.ts +3 -3
  360. package/dist/types/components/xpl-grid-item/xpl-grid-item.d.ts +5 -5
  361. package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +44 -0
  362. package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +20 -0
  363. package/dist/types/components/xpl-icon/icons.stories.d.ts +54 -0
  364. package/dist/types/components/xpl-icon/xpl-icon.d.ts +8 -0
  365. package/dist/types/components/xpl-input/input.stories.d.ts +206 -0
  366. package/dist/types/components/xpl-input/xpl-input-color/color-utils.d.ts +41 -0
  367. package/dist/types/components/xpl-input/xpl-input-color/xpl-input-color.d.ts +30 -0
  368. package/dist/types/components/xpl-input/xpl-input-date/xpl-input-date.d.ts +30 -0
  369. package/dist/types/components/xpl-input/xpl-input-file/xpl-input-file.d.ts +24 -0
  370. package/dist/types/components/xpl-input/xpl-input-time/time-utils.d.ts +5 -0
  371. package/dist/types/components/xpl-input/xpl-input-time/xpl-input-time.d.ts +39 -0
  372. package/dist/types/components/xpl-input/xpl-input.d.ts +45 -85
  373. package/dist/types/components/xpl-large-card/large-card.stories.d.ts +71 -0
  374. package/dist/types/components/xpl-large-card/xpl-large-card.d.ts +8 -0
  375. package/dist/types/components/xpl-list/list.stories.d.ts +63 -0
  376. package/dist/types/components/xpl-list/listitem.d.ts +14 -14
  377. package/dist/types/components/xpl-list/xpl-list.d.ts +2 -26
  378. package/dist/types/components/xpl-main-nav/main-nav.stories.d.ts +13 -0
  379. package/dist/types/components/xpl-main-nav/xpl-main-nav.d.ts +6 -13
  380. package/dist/types/components/xpl-modal/modal.stories.d.ts +99 -0
  381. package/dist/types/components/xpl-modal/xpl-modal.d.ts +15 -0
  382. package/dist/types/components/xpl-nav-item/xpl-nav-item.d.ts +4 -10
  383. package/dist/types/components/xpl-pagination/pagination.stories.d.ts +35 -0
  384. package/dist/types/components/xpl-pagination/xpl-pagination.d.ts +19 -22
  385. package/dist/types/components/xpl-popover/popover.stories.d.ts +12 -0
  386. package/dist/types/components/xpl-popover/xpl-popover.d.ts +24 -0
  387. package/dist/types/components/xpl-progress/progress.stories.d.ts +34 -0
  388. package/dist/types/components/xpl-progress/xpl-progress.d.ts +6 -0
  389. package/dist/types/components/xpl-radio/radio.stories.d.ts +79 -0
  390. package/dist/types/components/xpl-radio/xpl-radio.d.ts +11 -11
  391. package/dist/types/components/xpl-secondary-nav/secondary-nav.stories.d.ts +5 -0
  392. package/dist/types/components/xpl-secondary-nav/xpl-secondary-nav.d.ts +1 -1
  393. package/dist/types/components/xpl-select/select.stories.d.ts +164 -0
  394. package/dist/types/components/xpl-select/xpl-select.d.ts +59 -55
  395. package/dist/types/components/xpl-skeleton/skeleton.stories.d.ts +26 -0
  396. package/dist/types/components/xpl-skeleton/xpl-skeleton.d.ts +10 -0
  397. package/dist/types/components/xpl-slideout/slideout.stories.d.ts +114 -0
  398. package/dist/types/components/xpl-slideout/xpl-slideout.d.ts +14 -0
  399. package/dist/types/components/xpl-tab/xpl-tab.d.ts +8 -0
  400. package/dist/types/components/xpl-tab-panel/xpl-tab-panel.d.ts +5 -0
  401. package/dist/types/components/xpl-table/table.stories.d.ts +84 -0
  402. package/dist/types/components/xpl-table/xpl-table.d.ts +37 -23
  403. package/dist/types/components/xpl-table-header/table-header.stories.d.ts +103 -0
  404. package/dist/types/components/xpl-table-header/xpl-table-header.d.ts +3 -0
  405. package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +55 -0
  406. package/dist/types/components/xpl-table-header-cell/xpl-table-header-cell.d.ts +14 -0
  407. package/dist/types/components/xpl-tabs/tabs.stories.d.ts +40 -0
  408. package/dist/types/components/xpl-tabs/xpl-tabs.d.ts +28 -0
  409. package/dist/types/components/xpl-tag/xpl-tag.d.ts +2 -2
  410. package/dist/types/components/xpl-toast/toast.stories.d.ts +62 -0
  411. package/dist/types/components/xpl-toast/xpl-toast.d.ts +14 -0
  412. package/dist/types/components/xpl-toggle/toggle.stories.d.ts +67 -0
  413. package/dist/types/components/xpl-toggle/xpl-toggle.d.ts +9 -21
  414. package/dist/types/components/xpl-toolbar/xpl-toolbar.d.ts +7 -0
  415. package/dist/types/components/xpl-tooltip/tooltip-arrow.d.ts +2 -0
  416. package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +39 -0
  417. package/dist/types/components/xpl-tooltip/xpl-tooltip.d.ts +6 -0
  418. package/dist/types/components/xpl-utility-bar/utility-bar.stories.d.ts +20 -0
  419. package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +7 -17
  420. package/dist/types/components.d.ts +3060 -498
  421. package/dist/types/home/runner/work/apollo/apollo/packages/apollo-core/.stencil/css/typography.stories.d.ts +90 -0
  422. package/dist/types/stencil-public-runtime.d.ts +236 -34
  423. package/loader/cdn.js +1 -3
  424. package/loader/index.cjs.js +1 -3
  425. package/loader/index.d.ts +5 -2
  426. package/loader/index.es2017.js +1 -3
  427. package/loader/index.js +1 -3
  428. package/package.json +110 -61
  429. package/CHANGELOG.md +0 -106
  430. package/dist/apollo-core/p-10f00380.entry.js +0 -1
  431. package/dist/apollo-core/p-26ec64fe.entry.js +0 -1
  432. package/dist/apollo-core/p-2f90296c.js +0 -10
  433. package/dist/apollo-core/p-31acfdb4.entry.js +0 -1
  434. package/dist/apollo-core/p-4184ac44.entry.js +0 -1
  435. package/dist/apollo-core/p-4fa14839.entry.js +0 -1
  436. package/dist/apollo-core/p-55b87345.js +0 -2
  437. package/dist/apollo-core/p-63a6c98a.entry.js +0 -1
  438. package/dist/apollo-core/p-68c33b77.entry.js +0 -1
  439. package/dist/apollo-core/p-78d07caf.entry.js +0 -1
  440. package/dist/apollo-core/p-796957d3.entry.js +0 -1
  441. package/dist/apollo-core/p-88160d68.entry.js +0 -1
  442. package/dist/apollo-core/p-9ec318bb.entry.js +0 -1
  443. package/dist/apollo-core/p-a2a34e44.entry.js +0 -1
  444. package/dist/apollo-core/p-ad90fe4d.js +0 -1
  445. package/dist/apollo-core/p-beea2502.entry.js +0 -1
  446. package/dist/apollo-core/p-d499e43f.entry.js +0 -1
  447. package/dist/apollo-core/p-d8a3d94c.entry.js +0 -1
  448. package/dist/apollo-core/p-e047b446.entry.js +0 -1
  449. package/dist/cjs/index-2ab4832e.js +0 -2003
  450. package/dist/cjs/regular-872f5226.js +0 -16043
  451. package/dist/cjs/xpl-avatar_12.cjs.entry.js +0 -362
  452. package/dist/cjs/xpl-backdrop.cjs.entry.js +0 -21
  453. package/dist/cjs/xpl-choicelist.cjs.entry.js +0 -50
  454. package/dist/cjs/xpl-divider.cjs.entry.js +0 -19
  455. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +0 -113
  456. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +0 -121
  457. package/dist/cjs/xpl-pagination.cjs.entry.js +0 -79
  458. package/dist/cjs/xpl-select.cjs.entry.js +0 -610
  459. package/dist/collection/components/xpl-select/selectchoice.js +0 -1
  460. package/dist/custom-elements/index.d.ts +0 -219
  461. package/dist/custom-elements/index.js +0 -20353
  462. package/dist/esm/index-392b5b96.js +0 -1973
  463. package/dist/esm/polyfills/core-js.js +0 -11
  464. package/dist/esm/polyfills/css-shim.js +0 -1
  465. package/dist/esm/polyfills/dom.js +0 -79
  466. package/dist/esm/polyfills/es5-html-element.js +0 -1
  467. package/dist/esm/polyfills/index.js +0 -34
  468. package/dist/esm/polyfills/system.js +0 -6
  469. package/dist/esm/regular-86225e9d.js +0 -16041
  470. package/dist/esm/xpl-avatar_12.entry.js +0 -347
  471. package/dist/esm/xpl-backdrop.entry.js +0 -17
  472. package/dist/esm/xpl-choicelist.entry.js +0 -46
  473. package/dist/esm/xpl-divider.entry.js +0 -15
  474. package/dist/esm/xpl-dropdown-group_3.entry.js +0 -107
  475. package/dist/esm/xpl-dropdown_2.entry.js +0 -116
  476. package/dist/esm/xpl-pagination.entry.js +0 -75
  477. package/dist/esm/xpl-select.entry.js +0 -606
  478. package/dist/stories/application-shell.stories.js +0 -776
  479. package/dist/stories/avatar.stories.js +0 -173
  480. package/dist/stories/backdrop.stories.js +0 -18
  481. package/dist/stories/badge.stories.js +0 -48
  482. package/dist/stories/breadcrumbs.stories.js +0 -117
  483. package/dist/stories/button-row.stories.js +0 -68
  484. package/dist/stories/button.stories.js +0 -122
  485. package/dist/stories/checkbox.stories.js +0 -78
  486. package/dist/stories/choicelist.stories.js +0 -112
  487. package/dist/stories/content-area.stories.js +0 -53
  488. package/dist/stories/divider.stories.js +0 -34
  489. package/dist/stories/dropdown.stories.js +0 -377
  490. package/dist/stories/input.stories.js +0 -268
  491. package/dist/stories/list.stories.js +0 -154
  492. package/dist/stories/main-nav.stories.js +0 -308
  493. package/dist/stories/pagination.stories.js +0 -84
  494. package/dist/stories/radio.stories.js +0 -68
  495. package/dist/stories/secondary-nav.stories.js +0 -76
  496. package/dist/stories/select.stories.js +0 -119
  497. package/dist/stories/table.stories.js +0 -107
  498. package/dist/stories/tabs.stories.js +0 -24
  499. package/dist/stories/toggle.stories.js +0 -84
  500. package/dist/stories/utility-bar.stories.js +0 -94
  501. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/application-shell.stories.d.ts +0 -71
  502. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/avatar.stories.d.ts +0 -91
  503. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/backdrop.stories.d.ts +0 -16
  504. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/badge.stories.d.ts +0 -48
  505. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -53
  506. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/button-row.stories.d.ts +0 -49
  507. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/button.stories.d.ts +0 -91
  508. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/checkbox.stories.d.ts +0 -72
  509. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/choicelist.stories.d.ts +0 -41
  510. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/content-area.stories.d.ts +0 -29
  511. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/divider.stories.d.ts +0 -40
  512. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/dropdown.stories.d.ts +0 -135
  513. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/grid.stories.d.ts +0 -150
  514. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/input.stories.d.ts +0 -190
  515. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/list.stories.d.ts +0 -71
  516. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/main-nav.stories.d.ts +0 -30
  517. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
  518. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/radio.stories.d.ts +0 -64
  519. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -16
  520. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/select.stories.d.ts +0 -74
  521. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/table.stories.d.ts +0 -49
  522. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
  523. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/toggle.stories.d.ts +0 -74
  524. package/dist/types/Users/fernandogelin/Xplor/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -20
  525. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +0 -10
  526. package/dist/types/components/xpl-select/selectchoice.d.ts +0 -4
  527. package/loader/package.json +0 -11
  528. /package/dist/collection/components/xpl-dropdown/{dropdownoption.js → dropdown-option.js} +0 -0
@@ -0,0 +1,2132 @@
1
+ const NAMESPACE = 'apollo-core';
2
+ const BUILD = /* apollo-core */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, shadowDom: false, slotRelocation: true, state: true, updatable: true};
3
+
4
+ /*
5
+ Stencil Client Platform v4.41.3 | MIT Licensed | https://stenciljs.com
6
+ */
7
+
8
+
9
+ // src/utils/constants.ts
10
+ var SVG_NS = "http://www.w3.org/2000/svg";
11
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
12
+ var reWireGetterSetter = (instance, hostRef) => {
13
+ var _a;
14
+ const cmpMeta = hostRef.$cmpMeta$;
15
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
16
+ members.map(([memberName, [memberFlags]]) => {
17
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
18
+ const ogValue = instance[memberName];
19
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
20
+ if (ogDescriptor) {
21
+ Object.defineProperty(instance, memberName, {
22
+ get() {
23
+ return ogDescriptor.get.call(this);
24
+ },
25
+ set(newValue) {
26
+ ogDescriptor.set.call(this, newValue);
27
+ },
28
+ configurable: true,
29
+ enumerable: true
30
+ });
31
+ }
32
+ instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
33
+ }
34
+ });
35
+ };
36
+ function getPropertyDescriptor(obj, memberName) {
37
+ while (obj) {
38
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
39
+ if (desc == null ? void 0 : desc.get) return desc;
40
+ obj = Object.getPrototypeOf(obj);
41
+ }
42
+ return void 0;
43
+ }
44
+
45
+ // src/client/client-host-ref.ts
46
+ var getHostRef = (ref) => {
47
+ if (ref.__stencil__getHostRef) {
48
+ return ref.__stencil__getHostRef();
49
+ }
50
+ return void 0;
51
+ };
52
+ var registerInstance = (lazyInstance, hostRef) => {
53
+ if (!hostRef) return;
54
+ lazyInstance.__stencil__getHostRef = () => hostRef;
55
+ hostRef.$lazyInstance$ = lazyInstance;
56
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
57
+ reWireGetterSetter(lazyInstance, hostRef);
58
+ }
59
+ };
60
+ var registerHost = (hostElement, cmpMeta) => {
61
+ const hostRef = {
62
+ $flags$: 0,
63
+ $hostElement$: hostElement,
64
+ $cmpMeta$: cmpMeta,
65
+ $instanceValues$: /* @__PURE__ */ new Map(),
66
+ $serializerValues$: /* @__PURE__ */ new Map()
67
+ };
68
+ {
69
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
70
+ }
71
+ {
72
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
73
+ hostElement["s-p"] = [];
74
+ hostElement["s-rc"] = [];
75
+ }
76
+ {
77
+ hostRef.$fetchedCbList$ = [];
78
+ }
79
+ const ref = hostRef;
80
+ hostElement.__stencil__getHostRef = () => ref;
81
+ return ref;
82
+ };
83
+ var isMemberInElement = (elm, memberName) => memberName in elm;
84
+ var consoleError = (e, el) => (0, console.error)(e, el);
85
+
86
+ // src/client/client-load-module.ts
87
+ var cmpModules = /* @__PURE__ */ new Map();
88
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
89
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
90
+ const bundleId = cmpMeta.$lazyBundleId$;
91
+ if (!bundleId) {
92
+ return void 0;
93
+ }
94
+ const module = cmpModules.get(bundleId) ;
95
+ if (module) {
96
+ return module[exportName];
97
+ }
98
+
99
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
100
+ const processMod = importedModule => {
101
+ cmpModules.set(bundleId, importedModule);
102
+ return importedModule[exportName];
103
+ }
104
+ switch(bundleId) {
105
+
106
+ case 'xpl-accordion':
107
+ return import(
108
+ /* webpackMode: "lazy" */
109
+ './xpl-accordion.entry.js').then(processMod, consoleError);
110
+ case 'xpl-application-shell':
111
+ return import(
112
+ /* webpackMode: "lazy" */
113
+ './xpl-application-shell.entry.js').then(processMod, consoleError);
114
+ case 'xpl-button-row':
115
+ return import(
116
+ /* webpackMode: "lazy" */
117
+ './xpl-button-row.entry.js').then(processMod, consoleError);
118
+ case 'xpl-calendar':
119
+ return import(
120
+ /* webpackMode: "lazy" */
121
+ './xpl-calendar.entry.js').then(processMod, consoleError);
122
+ case 'xpl-dynamic-table':
123
+ return import(
124
+ /* webpackMode: "lazy" */
125
+ './xpl-dynamic-table.entry.js').then(processMod, consoleError);
126
+ case 'xpl-dynamic-table-cell':
127
+ return import(
128
+ /* webpackMode: "lazy" */
129
+ './xpl-dynamic-table-cell.entry.js').then(processMod, consoleError);
130
+ case 'xpl-dynamic-table-row':
131
+ return import(
132
+ /* webpackMode: "lazy" */
133
+ './xpl-dynamic-table-row.entry.js').then(processMod, consoleError);
134
+ case 'xpl-grid':
135
+ return import(
136
+ /* webpackMode: "lazy" */
137
+ './xpl-grid.entry.js').then(processMod, consoleError);
138
+ case 'xpl-grid-item':
139
+ return import(
140
+ /* webpackMode: "lazy" */
141
+ './xpl-grid-item.entry.js').then(processMod, consoleError);
142
+ case 'xpl-large-card':
143
+ return import(
144
+ /* webpackMode: "lazy" */
145
+ './xpl-large-card.entry.js').then(processMod, consoleError);
146
+ case 'xpl-list':
147
+ return import(
148
+ /* webpackMode: "lazy" */
149
+ './xpl-list.entry.js').then(processMod, consoleError);
150
+ case 'xpl-main-nav':
151
+ return import(
152
+ /* webpackMode: "lazy" */
153
+ './xpl-main-nav.entry.js').then(processMod, consoleError);
154
+ case 'xpl-table-header':
155
+ return import(
156
+ /* webpackMode: "lazy" */
157
+ './xpl-table-header.entry.js').then(processMod, consoleError);
158
+ case 'xpl-table-header-cell':
159
+ return import(
160
+ /* webpackMode: "lazy" */
161
+ './xpl-table-header-cell.entry.js').then(processMod, consoleError);
162
+ case 'xpl-toggle':
163
+ return import(
164
+ /* webpackMode: "lazy" */
165
+ './xpl-toggle.entry.js').then(processMod, consoleError);
166
+ case 'xpl-toolbar':
167
+ return import(
168
+ /* webpackMode: "lazy" */
169
+ './xpl-toolbar.entry.js').then(processMod, consoleError);
170
+ case 'xpl-avatar_41':
171
+ return import(
172
+ /* webpackMode: "lazy" */
173
+ './xpl-avatar_41.entry.js').then(processMod, consoleError);
174
+ }
175
+ }
176
+ return import(
177
+ /* @vite-ignore */
178
+ /* webpackInclude: /\.entry\.js$/ */
179
+ /* webpackExclude: /\.system\.entry\.js$/ */
180
+ /* webpackMode: "lazy" */
181
+ `./${bundleId}.entry.js${""}`
182
+ ).then(
183
+ (importedModule) => {
184
+ {
185
+ cmpModules.set(bundleId, importedModule);
186
+ }
187
+ return importedModule[exportName];
188
+ },
189
+ (e) => {
190
+ consoleError(e, hostRef.$hostElement$);
191
+ }
192
+ );
193
+ };
194
+
195
+ // src/client/client-style.ts
196
+ var styles = /* @__PURE__ */ new Map();
197
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
198
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
199
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
200
+ var win = typeof window !== "undefined" ? window : {};
201
+ var plt = {
202
+ $flags$: 0,
203
+ $resourcesUrl$: "",
204
+ jmp: (h2) => h2(),
205
+ raf: (h2) => requestAnimationFrame(h2),
206
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
207
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
208
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
209
+ };
210
+ var supportsShadow = BUILD.shadowDom;
211
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
212
+ var _a;
213
+ let supportsListenerOptions2 = false;
214
+ try {
215
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
216
+ "e",
217
+ null,
218
+ Object.defineProperty({}, "passive", {
219
+ get() {
220
+ supportsListenerOptions2 = true;
221
+ }
222
+ })
223
+ );
224
+ } catch (e) {
225
+ }
226
+ return supportsListenerOptions2;
227
+ })();
228
+ var promiseResolve = (v) => Promise.resolve(v);
229
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
230
+ try {
231
+ if (!win.document.adoptedStyleSheets) {
232
+ return false;
233
+ }
234
+ new CSSStyleSheet();
235
+ return typeof new CSSStyleSheet().replaceSync === "function";
236
+ } catch (e) {
237
+ }
238
+ return false;
239
+ })() ;
240
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
241
+ var queuePending = false;
242
+ var queueDomReads = [];
243
+ var queueDomWrites = [];
244
+ var queueTask = (queue, write) => (cb) => {
245
+ queue.push(cb);
246
+ if (!queuePending) {
247
+ queuePending = true;
248
+ if (write && plt.$flags$ & 4 /* queueSync */) {
249
+ nextTick(flush);
250
+ } else {
251
+ plt.raf(flush);
252
+ }
253
+ }
254
+ };
255
+ var consume = (queue) => {
256
+ for (let i2 = 0; i2 < queue.length; i2++) {
257
+ try {
258
+ queue[i2](performance.now());
259
+ } catch (e) {
260
+ consoleError(e);
261
+ }
262
+ }
263
+ queue.length = 0;
264
+ };
265
+ var flush = () => {
266
+ consume(queueDomReads);
267
+ {
268
+ consume(queueDomWrites);
269
+ if (queuePending = queueDomReads.length > 0) {
270
+ plt.raf(flush);
271
+ }
272
+ }
273
+ };
274
+ var nextTick = (cb) => promiseResolve().then(cb);
275
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
276
+ var updateFallbackSlotVisibility = (elm) => {
277
+ const childNodes = internalCall(elm, "childNodes");
278
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
279
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
280
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
281
+ if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
282
+ slotNode.hidden = true;
283
+ } else {
284
+ slotNode.hidden = false;
285
+ }
286
+ }
287
+ });
288
+ }
289
+ let i2 = 0;
290
+ for (i2 = 0; i2 < childNodes.length; i2++) {
291
+ const childNode = childNodes[i2];
292
+ if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
293
+ updateFallbackSlotVisibility(childNode);
294
+ }
295
+ }
296
+ };
297
+ var getSlottedChildNodes = (childNodes) => {
298
+ const result = [];
299
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
300
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
301
+ if (slottedNode && slottedNode.isConnected) {
302
+ result.push(slottedNode);
303
+ }
304
+ }
305
+ return result;
306
+ };
307
+ function getHostSlotNodes(childNodes, hostName, slotName) {
308
+ let i2 = 0;
309
+ let slottedNodes = [];
310
+ let childNode;
311
+ for (; i2 < childNodes.length; i2++) {
312
+ childNode = childNodes[i2];
313
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
314
+ slottedNodes.push(childNode);
315
+ if (typeof slotName !== "undefined") return slottedNodes;
316
+ }
317
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
318
+ }
319
+ return slottedNodes;
320
+ }
321
+ var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
322
+ const childNodes = [];
323
+ if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
324
+ let node = slot;
325
+ while (node = node.nextSibling) {
326
+ if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
327
+ }
328
+ return childNodes;
329
+ };
330
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
331
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
332
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
333
+ return true;
334
+ }
335
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
336
+ return true;
337
+ }
338
+ return false;
339
+ }
340
+ if (nodeToRelocate["s-sn"] === slotName) {
341
+ return true;
342
+ }
343
+ return slotName === "";
344
+ };
345
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
346
+ function patchSlotNode(node) {
347
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
348
+ const assignedFactory = (elementsOnly) => (function(opts) {
349
+ const toReturn = [];
350
+ const slotName = this["s-sn"];
351
+ if (opts == null ? void 0 : opts.flatten) {
352
+ console.error(`
353
+ Flattening is not supported for Stencil non-shadow slots.
354
+ You can use \`.childNodes\` to nested slot fallback content.
355
+ If you have a particular use case, please open an issue on the Stencil repo.
356
+ `);
357
+ }
358
+ const parent = this["s-cr"].parentElement;
359
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
360
+ slottedNodes.forEach((n) => {
361
+ if (slotName === getSlotName(n)) {
362
+ toReturn.push(n);
363
+ }
364
+ });
365
+ if (elementsOnly) {
366
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
367
+ }
368
+ return toReturn;
369
+ }).bind(node);
370
+ node.assignedElements = assignedFactory(true);
371
+ node.assignedNodes = assignedFactory(false);
372
+ }
373
+ function dispatchSlotChangeEvent(elm) {
374
+ elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
375
+ }
376
+ function findSlotFromSlottedNode(slottedNode, parentHost) {
377
+ var _a;
378
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
379
+ if (!parentHost) return { slotNode: null, slotName: "" };
380
+ const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
381
+ const childNodes = internalCall(parentHost, "childNodes");
382
+ const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
383
+ return { slotNode, slotName };
384
+ }
385
+ function internalCall(node, method) {
386
+ if ("__" + method in node) {
387
+ const toReturn = node["__" + method];
388
+ if (typeof toReturn !== "function") return toReturn;
389
+ return toReturn.bind(node);
390
+ } else {
391
+ if (typeof node[method] !== "function") return node[method];
392
+ return node[method].bind(node);
393
+ }
394
+ }
395
+ var createTime = (fnName, tagName = "") => {
396
+ {
397
+ return () => {
398
+ return;
399
+ };
400
+ }
401
+ };
402
+ var uniqueTime = (key, measureText) => {
403
+ {
404
+ return () => {
405
+ return;
406
+ };
407
+ }
408
+ };
409
+
410
+ // src/utils/query-nonce-meta-tag-content.ts
411
+ function queryNonceMetaTagContent(doc) {
412
+ var _a, _b, _c;
413
+ 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;
414
+ }
415
+
416
+ // src/runtime/styles.ts
417
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
418
+ var registerStyle = (scopeId2, cssText, allowCS) => {
419
+ let style = styles.get(scopeId2);
420
+ if (supportsConstructableStylesheets && allowCS) {
421
+ style = style || new CSSStyleSheet();
422
+ if (typeof style === "string") {
423
+ style = cssText;
424
+ } else {
425
+ style.replaceSync(cssText);
426
+ }
427
+ } else {
428
+ style = cssText;
429
+ }
430
+ styles.set(scopeId2, style);
431
+ };
432
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
433
+ var _a, _b, _c;
434
+ const scopeId2 = getScopeId(cmpMeta);
435
+ const style = styles.get(scopeId2);
436
+ if (!win.document) {
437
+ return scopeId2;
438
+ }
439
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
440
+ if (style) {
441
+ if (typeof style === "string") {
442
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
443
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
444
+ let styleElm;
445
+ if (!appliedStyles) {
446
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
447
+ }
448
+ if (!appliedStyles.has(scopeId2)) {
449
+ styleElm = win.document.createElement("style");
450
+ styleElm.textContent = style;
451
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
452
+ if (nonce != null) {
453
+ styleElm.setAttribute("nonce", nonce);
454
+ }
455
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
456
+ if (styleContainerNode.nodeName === "HEAD") {
457
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
458
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
459
+ styleContainerNode.insertBefore(
460
+ styleElm,
461
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
462
+ );
463
+ } else if ("host" in styleContainerNode) {
464
+ if (supportsConstructableStylesheets) {
465
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
466
+ const stylesheet = new currentWindow.CSSStyleSheet();
467
+ stylesheet.replaceSync(style);
468
+ if (supportsMutableAdoptedStyleSheets) {
469
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
470
+ } else {
471
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
472
+ }
473
+ } else {
474
+ const existingStyleContainer = styleContainerNode.querySelector("style");
475
+ if (existingStyleContainer) {
476
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
477
+ } else {
478
+ styleContainerNode.prepend(styleElm);
479
+ }
480
+ }
481
+ } else {
482
+ styleContainerNode.append(styleElm);
483
+ }
484
+ }
485
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
486
+ styleContainerNode.insertBefore(styleElm, null);
487
+ }
488
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
489
+ styleElm.textContent += SLOT_FB_CSS;
490
+ }
491
+ if (appliedStyles) {
492
+ appliedStyles.add(scopeId2);
493
+ }
494
+ }
495
+ } else {
496
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
497
+ if (!appliedStyles) {
498
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
499
+ }
500
+ if (!appliedStyles.has(scopeId2)) {
501
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
502
+ let stylesheet;
503
+ if (style.constructor === currentWindow.CSSStyleSheet) {
504
+ stylesheet = style;
505
+ } else {
506
+ stylesheet = new currentWindow.CSSStyleSheet();
507
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
508
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
509
+ }
510
+ }
511
+ if (supportsMutableAdoptedStyleSheets) {
512
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
513
+ } else {
514
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
515
+ }
516
+ appliedStyles.add(scopeId2);
517
+ }
518
+ }
519
+ }
520
+ return scopeId2;
521
+ };
522
+ var attachStyles = (hostRef) => {
523
+ const cmpMeta = hostRef.$cmpMeta$;
524
+ const elm = hostRef.$hostElement$;
525
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
526
+ addStyle(
527
+ elm.getRootNode(),
528
+ cmpMeta);
529
+ endAttachStyles();
530
+ };
531
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
532
+ var isComplexType = (o) => {
533
+ o = typeof o;
534
+ return o === "object" || o === "function";
535
+ };
536
+
537
+ // src/runtime/vdom/h.ts
538
+ var h = (nodeName, vnodeData, ...children) => {
539
+ if (typeof nodeName === "string") {
540
+ nodeName = transformTag(nodeName);
541
+ }
542
+ let child = null;
543
+ let key = null;
544
+ let slotName = null;
545
+ let simple = false;
546
+ let lastSimple = false;
547
+ const vNodeChildren = [];
548
+ const walk = (c) => {
549
+ for (let i2 = 0; i2 < c.length; i2++) {
550
+ child = c[i2];
551
+ if (Array.isArray(child)) {
552
+ walk(child);
553
+ } else if (child != null && typeof child !== "boolean") {
554
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
555
+ child = String(child);
556
+ }
557
+ if (simple && lastSimple) {
558
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
559
+ } else {
560
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
561
+ }
562
+ lastSimple = simple;
563
+ }
564
+ }
565
+ };
566
+ walk(children);
567
+ if (vnodeData) {
568
+ if (vnodeData.key) {
569
+ key = vnodeData.key;
570
+ }
571
+ if (vnodeData.name) {
572
+ slotName = vnodeData.name;
573
+ }
574
+ {
575
+ const classData = vnodeData.className || vnodeData.class;
576
+ if (classData) {
577
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
578
+ }
579
+ }
580
+ }
581
+ if (typeof nodeName === "function") {
582
+ return nodeName(
583
+ vnodeData === null ? {} : vnodeData,
584
+ vNodeChildren,
585
+ vdomFnUtils
586
+ );
587
+ }
588
+ const vnode = newVNode(nodeName, null);
589
+ vnode.$attrs$ = vnodeData;
590
+ if (vNodeChildren.length > 0) {
591
+ vnode.$children$ = vNodeChildren;
592
+ }
593
+ {
594
+ vnode.$key$ = key;
595
+ }
596
+ {
597
+ vnode.$name$ = slotName;
598
+ }
599
+ return vnode;
600
+ };
601
+ var newVNode = (tag, text) => {
602
+ const vnode = {
603
+ $flags$: 0,
604
+ $tag$: tag,
605
+ // Normalize undefined to null to prevent rendering "undefined" as text
606
+ $text$: text != null ? text : null,
607
+ $elm$: null,
608
+ $children$: null
609
+ };
610
+ {
611
+ vnode.$attrs$ = null;
612
+ }
613
+ {
614
+ vnode.$key$ = null;
615
+ }
616
+ {
617
+ vnode.$name$ = null;
618
+ }
619
+ return vnode;
620
+ };
621
+ var Host = {};
622
+ var isHost = (node) => node && node.$tag$ === Host;
623
+ var vdomFnUtils = {
624
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
625
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
626
+ };
627
+ var convertToPublic = (node) => ({
628
+ vattrs: node.$attrs$,
629
+ vchildren: node.$children$,
630
+ vkey: node.$key$,
631
+ vname: node.$name$,
632
+ vtag: node.$tag$,
633
+ vtext: node.$text$
634
+ });
635
+ var convertToPrivate = (node) => {
636
+ if (typeof node.vtag === "function") {
637
+ const vnodeData = { ...node.vattrs };
638
+ if (node.vkey) {
639
+ vnodeData.key = node.vkey;
640
+ }
641
+ if (node.vname) {
642
+ vnodeData.name = node.vname;
643
+ }
644
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
645
+ }
646
+ const vnode = newVNode(node.vtag, node.vtext);
647
+ vnode.$attrs$ = node.vattrs;
648
+ vnode.$children$ = node.vchildren;
649
+ vnode.$key$ = node.vkey;
650
+ vnode.$name$ = node.vname;
651
+ return vnode;
652
+ };
653
+
654
+ // src/runtime/parse-property-value.ts
655
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
656
+ if (propValue != null && !isComplexType(propValue)) {
657
+ if (propType & 4 /* Boolean */) {
658
+ {
659
+ return propValue === "false" ? false : propValue === "" || !!propValue;
660
+ }
661
+ }
662
+ if (propType & 2 /* Number */) {
663
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
664
+ }
665
+ if (propType & 1 /* String */) {
666
+ return String(propValue);
667
+ }
668
+ return propValue;
669
+ }
670
+ return propValue;
671
+ };
672
+ var getElement = (ref) => {
673
+ var _a;
674
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
675
+ };
676
+
677
+ // src/runtime/event-emitter.ts
678
+ var createEvent = (ref, name, flags) => {
679
+ const elm = getElement(ref);
680
+ return {
681
+ emit: (detail) => {
682
+ return emitEvent(elm, name, {
683
+ bubbles: !!(flags & 4 /* Bubbles */),
684
+ composed: !!(flags & 2 /* Composed */),
685
+ cancelable: !!(flags & 1 /* Cancellable */),
686
+ detail
687
+ });
688
+ }
689
+ };
690
+ };
691
+ var emitEvent = (elm, name, opts) => {
692
+ const ev = plt.ce(name, opts);
693
+ elm.dispatchEvent(ev);
694
+ return ev;
695
+ };
696
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
697
+ if (oldValue === newValue) {
698
+ return;
699
+ }
700
+ let isProp = isMemberInElement(elm, memberName);
701
+ let ln = memberName.toLowerCase();
702
+ if (memberName === "class") {
703
+ const classList = elm.classList;
704
+ const oldClasses = parseClassList(oldValue);
705
+ let newClasses = parseClassList(newValue);
706
+ {
707
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
708
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
709
+ }
710
+ } else if (memberName === "style") {
711
+ {
712
+ for (const prop in oldValue) {
713
+ if (!newValue || newValue[prop] == null) {
714
+ if (prop.includes("-")) {
715
+ elm.style.removeProperty(prop);
716
+ } else {
717
+ elm.style[prop] = "";
718
+ }
719
+ }
720
+ }
721
+ }
722
+ for (const prop in newValue) {
723
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
724
+ if (prop.includes("-")) {
725
+ elm.style.setProperty(prop, newValue[prop]);
726
+ } else {
727
+ elm.style[prop] = newValue[prop];
728
+ }
729
+ }
730
+ }
731
+ } else if (memberName === "key") ; else if (memberName === "ref") {
732
+ if (newValue) {
733
+ queueRefAttachment(newValue, elm);
734
+ }
735
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
736
+ if (memberName[2] === "-") {
737
+ memberName = memberName.slice(3);
738
+ } else if (isMemberInElement(win, ln)) {
739
+ memberName = ln.slice(2);
740
+ } else {
741
+ memberName = ln[2] + memberName.slice(3);
742
+ }
743
+ if (oldValue || newValue) {
744
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
745
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
746
+ if (oldValue) {
747
+ plt.rel(elm, memberName, oldValue, capture);
748
+ }
749
+ if (newValue) {
750
+ plt.ael(elm, memberName, newValue, capture);
751
+ }
752
+ }
753
+ } else {
754
+ const isComplex = isComplexType(newValue);
755
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
756
+ try {
757
+ if (!elm.tagName.includes("-")) {
758
+ const n = newValue == null ? "" : newValue;
759
+ if (memberName === "list") {
760
+ isProp = false;
761
+ } else if (oldValue == null || elm[memberName] != n) {
762
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
763
+ elm[memberName] = n;
764
+ } else {
765
+ elm.setAttribute(memberName, n);
766
+ }
767
+ }
768
+ } else if (elm[memberName] !== newValue) {
769
+ elm[memberName] = newValue;
770
+ }
771
+ } catch (e) {
772
+ }
773
+ }
774
+ let xlink = false;
775
+ {
776
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
777
+ memberName = ln;
778
+ xlink = true;
779
+ }
780
+ }
781
+ if (newValue == null || newValue === false) {
782
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
783
+ if (xlink) {
784
+ elm.removeAttributeNS(XLINK_NS, memberName);
785
+ } else {
786
+ elm.removeAttribute(memberName);
787
+ }
788
+ }
789
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
790
+ newValue = newValue === true ? "" : newValue;
791
+ if (xlink) {
792
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
793
+ } else {
794
+ elm.setAttribute(memberName, newValue);
795
+ }
796
+ }
797
+ }
798
+ };
799
+ var parseClassListRegex = /\s/;
800
+ var parseClassList = (value) => {
801
+ if (typeof value === "object" && value && "baseVal" in value) {
802
+ value = value.baseVal;
803
+ }
804
+ if (!value || typeof value !== "string") {
805
+ return [];
806
+ }
807
+ return value.split(parseClassListRegex);
808
+ };
809
+ var CAPTURE_EVENT_SUFFIX = "Capture";
810
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
811
+
812
+ // src/runtime/vdom/update-element.ts
813
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
814
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
815
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
816
+ const newVnodeAttrs = newVnode.$attrs$ || {};
817
+ {
818
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
819
+ if (!(memberName in newVnodeAttrs)) {
820
+ setAccessor(
821
+ elm,
822
+ memberName,
823
+ oldVnodeAttrs[memberName],
824
+ void 0,
825
+ isSvgMode2,
826
+ newVnode.$flags$);
827
+ }
828
+ }
829
+ }
830
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
831
+ setAccessor(
832
+ elm,
833
+ memberName,
834
+ oldVnodeAttrs[memberName],
835
+ newVnodeAttrs[memberName],
836
+ isSvgMode2,
837
+ newVnode.$flags$);
838
+ }
839
+ };
840
+ function sortedAttrNames(attrNames) {
841
+ return attrNames.includes("ref") ? (
842
+ // we need to sort these to ensure that `'ref'` is the last attr
843
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
844
+ ) : (
845
+ // no need to sort, return the original array
846
+ attrNames
847
+ );
848
+ }
849
+ var contentRef;
850
+ var hostTagName;
851
+ var useNativeShadowDom = false;
852
+ var checkSlotFallbackVisibility = false;
853
+ var checkSlotRelocate = false;
854
+ var isSvgMode = false;
855
+ var refCallbacksToRemove = [];
856
+ var refCallbacksToAttach = [];
857
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
858
+ var _a;
859
+ const newVNode2 = newParentVNode.$children$[childIndex];
860
+ let i2 = 0;
861
+ let elm;
862
+ let childNode;
863
+ let oldVNode;
864
+ if (!useNativeShadowDom) {
865
+ checkSlotRelocate = true;
866
+ if (newVNode2.$tag$ === "slot") {
867
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
868
+ // slot element has fallback content
869
+ // still create an element that "mocks" the slot element
870
+ 2 /* isSlotFallback */
871
+ ) : (
872
+ // slot element does not have fallback content
873
+ // create an html comment we'll use to always reference
874
+ // where actual slot content should sit next to
875
+ 1 /* isSlotReference */
876
+ );
877
+ }
878
+ }
879
+ if (newVNode2.$text$ != null) {
880
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
881
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
882
+ elm = newVNode2.$elm$ = win.document.createTextNode("");
883
+ {
884
+ updateElement(null, newVNode2, isSvgMode);
885
+ }
886
+ } else {
887
+ if (!isSvgMode) {
888
+ isSvgMode = newVNode2.$tag$ === "svg";
889
+ }
890
+ if (!win.document) {
891
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
892
+ }
893
+ elm = newVNode2.$elm$ = win.document.createElementNS(
894
+ isSvgMode ? SVG_NS : HTML_NS,
895
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
896
+ ) ;
897
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
898
+ isSvgMode = false;
899
+ }
900
+ {
901
+ updateElement(null, newVNode2, isSvgMode);
902
+ }
903
+ if (newVNode2.$children$) {
904
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
905
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
906
+ childNode = createElm(oldParentVNode, newVNode2, i2);
907
+ if (childNode) {
908
+ appendTarget.appendChild(childNode);
909
+ }
910
+ }
911
+ }
912
+ {
913
+ if (newVNode2.$tag$ === "svg") {
914
+ isSvgMode = false;
915
+ } else if (elm.tagName === "foreignObject") {
916
+ isSvgMode = true;
917
+ }
918
+ }
919
+ }
920
+ elm["s-hn"] = hostTagName;
921
+ {
922
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
923
+ elm["s-sr"] = true;
924
+ elm["s-cr"] = contentRef;
925
+ elm["s-sn"] = newVNode2.$name$ || "";
926
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
927
+ patchSlotNode(elm);
928
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
929
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
930
+ relocateToHostRoot(oldParentVNode.$elm$);
931
+ }
932
+ }
933
+ }
934
+ return elm;
935
+ };
936
+ var relocateToHostRoot = (parentElm) => {
937
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
938
+ const host = parentElm.closest(hostTagName.toLowerCase());
939
+ if (host != null) {
940
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
941
+ (ref) => ref["s-cr"]
942
+ );
943
+ const childNodeArray = Array.from(
944
+ parentElm.__childNodes || parentElm.childNodes
945
+ );
946
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
947
+ if (childNode["s-sh"] != null) {
948
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
949
+ childNode["s-sh"] = void 0;
950
+ checkSlotRelocate = true;
951
+ }
952
+ }
953
+ }
954
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
955
+ };
956
+ var putBackInOriginalLocation = (parentElm, recursive) => {
957
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
958
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
959
+ if (parentElm["s-sr"]) {
960
+ let node = parentElm;
961
+ while (node = node.nextSibling) {
962
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
963
+ oldSlotChildNodes.push(node);
964
+ }
965
+ }
966
+ }
967
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
968
+ const childNode = oldSlotChildNodes[i2];
969
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
970
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
971
+ childNode["s-ol"].remove();
972
+ childNode["s-ol"] = void 0;
973
+ childNode["s-sh"] = void 0;
974
+ checkSlotRelocate = true;
975
+ }
976
+ if (recursive) {
977
+ putBackInOriginalLocation(childNode, recursive);
978
+ }
979
+ }
980
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
981
+ };
982
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
983
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
984
+ let childNode;
985
+ if (parentVNode.$tag$ === "template") {
986
+ containerElm = containerElm.content;
987
+ }
988
+ for (; startIdx <= endIdx; ++startIdx) {
989
+ if (vnodes[startIdx]) {
990
+ childNode = createElm(null, parentVNode, startIdx);
991
+ if (childNode) {
992
+ vnodes[startIdx].$elm$ = childNode;
993
+ insertBefore(containerElm, childNode, referenceNode(before) );
994
+ }
995
+ }
996
+ }
997
+ };
998
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
999
+ for (let index = startIdx; index <= endIdx; ++index) {
1000
+ const vnode = vnodes[index];
1001
+ if (vnode) {
1002
+ const elm = vnode.$elm$;
1003
+ nullifyVNodeRefs(vnode);
1004
+ if (elm) {
1005
+ {
1006
+ checkSlotFallbackVisibility = true;
1007
+ if (elm["s-ol"]) {
1008
+ elm["s-ol"].remove();
1009
+ } else {
1010
+ putBackInOriginalLocation(elm, true);
1011
+ }
1012
+ }
1013
+ elm.remove();
1014
+ }
1015
+ }
1016
+ }
1017
+ };
1018
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1019
+ let oldStartIdx = 0;
1020
+ let newStartIdx = 0;
1021
+ let idxInOld = 0;
1022
+ let i2 = 0;
1023
+ let oldEndIdx = oldCh.length - 1;
1024
+ let oldStartVnode = oldCh[0];
1025
+ let oldEndVnode = oldCh[oldEndIdx];
1026
+ let newEndIdx = newCh.length - 1;
1027
+ let newStartVnode = newCh[0];
1028
+ let newEndVnode = newCh[newEndIdx];
1029
+ let node;
1030
+ let elmToMove;
1031
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
1032
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1033
+ if (oldStartVnode == null) {
1034
+ oldStartVnode = oldCh[++oldStartIdx];
1035
+ } else if (oldEndVnode == null) {
1036
+ oldEndVnode = oldCh[--oldEndIdx];
1037
+ } else if (newStartVnode == null) {
1038
+ newStartVnode = newCh[++newStartIdx];
1039
+ } else if (newEndVnode == null) {
1040
+ newEndVnode = newCh[--newEndIdx];
1041
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1042
+ patch(oldStartVnode, newStartVnode, isInitialRender);
1043
+ oldStartVnode = oldCh[++oldStartIdx];
1044
+ newStartVnode = newCh[++newStartIdx];
1045
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1046
+ patch(oldEndVnode, newEndVnode, isInitialRender);
1047
+ oldEndVnode = oldCh[--oldEndIdx];
1048
+ newEndVnode = newCh[--newEndIdx];
1049
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1050
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1051
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1052
+ }
1053
+ patch(oldStartVnode, newEndVnode, isInitialRender);
1054
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1055
+ oldStartVnode = oldCh[++oldStartIdx];
1056
+ newEndVnode = newCh[--newEndIdx];
1057
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1058
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1059
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1060
+ }
1061
+ patch(oldEndVnode, newStartVnode, isInitialRender);
1062
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1063
+ oldEndVnode = oldCh[--oldEndIdx];
1064
+ newStartVnode = newCh[++newStartIdx];
1065
+ } else {
1066
+ idxInOld = -1;
1067
+ {
1068
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1069
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1070
+ idxInOld = i2;
1071
+ break;
1072
+ }
1073
+ }
1074
+ }
1075
+ if (idxInOld >= 0) {
1076
+ elmToMove = oldCh[idxInOld];
1077
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1078
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
1079
+ } else {
1080
+ patch(elmToMove, newStartVnode, isInitialRender);
1081
+ oldCh[idxInOld] = void 0;
1082
+ node = elmToMove.$elm$;
1083
+ }
1084
+ newStartVnode = newCh[++newStartIdx];
1085
+ } else {
1086
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
1087
+ newStartVnode = newCh[++newStartIdx];
1088
+ }
1089
+ if (node) {
1090
+ {
1091
+ insertBefore(
1092
+ referenceNode(oldStartVnode.$elm$).parentNode,
1093
+ node,
1094
+ referenceNode(oldStartVnode.$elm$)
1095
+ );
1096
+ }
1097
+ }
1098
+ }
1099
+ }
1100
+ if (oldStartIdx > oldEndIdx) {
1101
+ addVnodes(
1102
+ parentElm,
1103
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1104
+ newVNode2,
1105
+ newCh,
1106
+ newStartIdx,
1107
+ newEndIdx
1108
+ );
1109
+ } else if (newStartIdx > newEndIdx) {
1110
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1111
+ }
1112
+ };
1113
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1114
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1115
+ if (leftVNode.$tag$ === "slot") {
1116
+ return leftVNode.$name$ === rightVNode.$name$;
1117
+ }
1118
+ if (!isInitialRender) {
1119
+ return leftVNode.$key$ === rightVNode.$key$;
1120
+ }
1121
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1122
+ leftVNode.$key$ = rightVNode.$key$;
1123
+ }
1124
+ return true;
1125
+ }
1126
+ return false;
1127
+ };
1128
+ var referenceNode = (node) => node && node["s-ol"] || node;
1129
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1130
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
1131
+ const oldChildren = oldVNode.$children$;
1132
+ const newChildren = newVNode2.$children$;
1133
+ const tag = newVNode2.$tag$;
1134
+ const text = newVNode2.$text$;
1135
+ let defaultHolder;
1136
+ if (text == null) {
1137
+ {
1138
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1139
+ }
1140
+ {
1141
+ if (tag === "slot" && !useNativeShadowDom) {
1142
+ if (oldVNode.$name$ !== newVNode2.$name$) {
1143
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1144
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
1145
+ }
1146
+ }
1147
+ updateElement(oldVNode, newVNode2, isSvgMode);
1148
+ }
1149
+ if (oldChildren !== null && newChildren !== null) {
1150
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1151
+ } else if (newChildren !== null) {
1152
+ if (oldVNode.$text$ !== null) {
1153
+ elm.textContent = "";
1154
+ }
1155
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1156
+ } else if (
1157
+ // don't do this on initial render as it can cause non-hydrated content to be removed
1158
+ !isInitialRender && BUILD.updatable && oldChildren !== null
1159
+ ) {
1160
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1161
+ } else ;
1162
+ if (isSvgMode && tag === "svg") {
1163
+ isSvgMode = false;
1164
+ }
1165
+ } else if ((defaultHolder = elm["s-cr"])) {
1166
+ defaultHolder.parentNode.textContent = text;
1167
+ } else if (oldVNode.$text$ !== text) {
1168
+ elm.data = text;
1169
+ }
1170
+ };
1171
+ var relocateNodes = [];
1172
+ var markSlotContentForRelocation = (elm) => {
1173
+ let node;
1174
+ let hostContentNodes;
1175
+ let j;
1176
+ const children = elm.__childNodes || elm.childNodes;
1177
+ for (const childNode of children) {
1178
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1179
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1180
+ const slotName = childNode["s-sn"];
1181
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1182
+ node = hostContentNodes[j];
1183
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
1184
+ if (isNodeLocatedInSlot(node, slotName)) {
1185
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1186
+ checkSlotFallbackVisibility = true;
1187
+ node["s-sn"] = node["s-sn"] || slotName;
1188
+ if (relocateNodeData) {
1189
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1190
+ relocateNodeData.$slotRefNode$ = childNode;
1191
+ } else {
1192
+ node["s-sh"] = childNode["s-hn"];
1193
+ relocateNodes.push({
1194
+ $slotRefNode$: childNode,
1195
+ $nodeToRelocate$: node
1196
+ });
1197
+ }
1198
+ if (node["s-sr"]) {
1199
+ relocateNodes.map((relocateNode) => {
1200
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1201
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1202
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1203
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1204
+ }
1205
+ }
1206
+ });
1207
+ }
1208
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1209
+ relocateNodes.push({
1210
+ $nodeToRelocate$: node
1211
+ });
1212
+ }
1213
+ }
1214
+ }
1215
+ }
1216
+ if (childNode.nodeType === 1 /* ElementNode */) {
1217
+ markSlotContentForRelocation(childNode);
1218
+ }
1219
+ }
1220
+ };
1221
+ var nullifyVNodeRefs = (vNode) => {
1222
+ {
1223
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1224
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1225
+ }
1226
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1227
+ }
1228
+ };
1229
+ var queueRefAttachment = (refCallback, elm) => {
1230
+ {
1231
+ refCallbacksToAttach.push(() => refCallback(elm));
1232
+ }
1233
+ };
1234
+ var flushQueuedRefCallbacks = () => {
1235
+ {
1236
+ refCallbacksToRemove.forEach((cb) => cb());
1237
+ refCallbacksToRemove.length = 0;
1238
+ refCallbacksToAttach.forEach((cb) => cb());
1239
+ refCallbacksToAttach.length = 0;
1240
+ }
1241
+ };
1242
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1243
+ {
1244
+ if (typeof newNode["s-sn"] === "string") {
1245
+ parent.insertBefore(newNode, reference);
1246
+ const { slotNode } = findSlotFromSlottedNode(newNode);
1247
+ if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
1248
+ return newNode;
1249
+ }
1250
+ }
1251
+ if (parent.__insertBefore) {
1252
+ return parent.__insertBefore(newNode, reference);
1253
+ } else {
1254
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1255
+ }
1256
+ };
1257
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1258
+ var _a, _b, _c, _d, _e;
1259
+ const hostElm = hostRef.$hostElement$;
1260
+ const cmpMeta = hostRef.$cmpMeta$;
1261
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1262
+ const isHostElement = isHost(renderFnResults);
1263
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1264
+ hostTagName = hostElm.tagName;
1265
+ if (cmpMeta.$attrsToReflect$) {
1266
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1267
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
1268
+ {
1269
+ rootVnode.$attrs$[attribute] = hostElm[propName];
1270
+ }
1271
+ });
1272
+ }
1273
+ if (isInitialLoad && rootVnode.$attrs$) {
1274
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1275
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1276
+ rootVnode.$attrs$[key] = hostElm[key];
1277
+ }
1278
+ }
1279
+ }
1280
+ rootVnode.$tag$ = null;
1281
+ rootVnode.$flags$ |= 4 /* isHost */;
1282
+ hostRef.$vnode$ = rootVnode;
1283
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
1284
+ useNativeShadowDom = supportsShadow;
1285
+ {
1286
+ contentRef = hostElm["s-cr"];
1287
+ checkSlotFallbackVisibility = false;
1288
+ }
1289
+ patch(oldVNode, rootVnode, isInitialLoad);
1290
+ {
1291
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1292
+ if (checkSlotRelocate) {
1293
+ markSlotContentForRelocation(rootVnode.$elm$);
1294
+ for (const relocateData of relocateNodes) {
1295
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1296
+ if (!nodeToRelocate["s-ol"] && win.document) {
1297
+ const orgLocationNode = win.document.createTextNode("");
1298
+ orgLocationNode["s-nr"] = nodeToRelocate;
1299
+ insertBefore(
1300
+ nodeToRelocate.parentNode,
1301
+ nodeToRelocate["s-ol"] = orgLocationNode,
1302
+ nodeToRelocate,
1303
+ isInitialLoad
1304
+ );
1305
+ }
1306
+ }
1307
+ for (const relocateData of relocateNodes) {
1308
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1309
+ const slotRefNode = relocateData.$slotRefNode$;
1310
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
1311
+ nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
1312
+ }
1313
+ if (slotRefNode) {
1314
+ const parentNodeRef = slotRefNode.parentNode;
1315
+ let insertBeforeNode = slotRefNode.nextSibling;
1316
+ if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1317
+ let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
1318
+ while (orgLocationNode) {
1319
+ let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
1320
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1321
+ refNode = refNode.nextSibling;
1322
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1323
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
1324
+ }
1325
+ if (!refNode || !refNode["s-nr"]) {
1326
+ insertBeforeNode = refNode;
1327
+ break;
1328
+ }
1329
+ }
1330
+ orgLocationNode = orgLocationNode.previousSibling;
1331
+ }
1332
+ }
1333
+ const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1334
+ const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1335
+ if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1336
+ if (nodeToRelocate !== insertBeforeNode) {
1337
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
1338
+ if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
1339
+ const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
1340
+ textNode["s-hn"] = nodeToRelocate["s-hn"];
1341
+ textNode["s-sn"] = nodeToRelocate["s-sn"];
1342
+ textNode["s-sh"] = nodeToRelocate["s-sh"];
1343
+ textNode["s-sr"] = nodeToRelocate["s-sr"];
1344
+ textNode["s-ol"] = nodeToRelocate["s-ol"];
1345
+ textNode["s-ol"]["s-nr"] = textNode;
1346
+ insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
1347
+ nodeToRelocate.parentNode.removeChild(nodeToRelocate);
1348
+ }
1349
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1350
+ nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
1351
+ }
1352
+ }
1353
+ }
1354
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1355
+ } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1356
+ nodeToRelocate.hidden = true;
1357
+ }
1358
+ }
1359
+ }
1360
+ if (checkSlotFallbackVisibility) {
1361
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1362
+ }
1363
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1364
+ relocateNodes.length = 0;
1365
+ }
1366
+ if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
1367
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1368
+ for (const childNode of children) {
1369
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1370
+ if (isInitialLoad && childNode["s-ih"] == null) {
1371
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1372
+ }
1373
+ if (childNode.nodeType === 1 /* ElementNode */) {
1374
+ childNode.hidden = true;
1375
+ } else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
1376
+ const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
1377
+ textCommentNode["s-sn"] = childNode["s-sn"];
1378
+ insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
1379
+ childNode.parentNode.removeChild(childNode);
1380
+ }
1381
+ }
1382
+ }
1383
+ }
1384
+ contentRef = void 0;
1385
+ flushQueuedRefCallbacks();
1386
+ };
1387
+
1388
+ // src/runtime/update-component.ts
1389
+ var attachToAncestor = (hostRef, ancestorComponent) => {
1390
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1391
+ const index = ancestorComponent["s-p"].push(
1392
+ new Promise(
1393
+ (r) => hostRef.$onRenderResolve$ = () => {
1394
+ ancestorComponent["s-p"].splice(index - 1, 1);
1395
+ r();
1396
+ }
1397
+ )
1398
+ );
1399
+ }
1400
+ };
1401
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
1402
+ {
1403
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1404
+ }
1405
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1406
+ hostRef.$flags$ |= 512 /* needsRerender */;
1407
+ return;
1408
+ }
1409
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1410
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1411
+ if (isInitialLoad) {
1412
+ queueMicrotask(() => {
1413
+ dispatch();
1414
+ });
1415
+ return;
1416
+ }
1417
+ return writeTask(dispatch) ;
1418
+ };
1419
+ var dispatchHooks = (hostRef, isInitialLoad) => {
1420
+ const elm = hostRef.$hostElement$;
1421
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1422
+ const instance = hostRef.$lazyInstance$ ;
1423
+ if (!instance) {
1424
+ throw new Error(
1425
+ `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`
1426
+ );
1427
+ }
1428
+ let maybePromise;
1429
+ if (isInitialLoad) {
1430
+ {
1431
+ if (hostRef.$deferredConnectedCallback$) {
1432
+ hostRef.$deferredConnectedCallback$ = false;
1433
+ safeCall(instance, "connectedCallback", void 0, elm);
1434
+ }
1435
+ {
1436
+ hostRef.$flags$ |= 256 /* isListenReady */;
1437
+ if (hostRef.$queuedListeners$) {
1438
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1439
+ hostRef.$queuedListeners$ = void 0;
1440
+ }
1441
+ }
1442
+ if (hostRef.$fetchedCbList$.length) {
1443
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
1444
+ }
1445
+ }
1446
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1447
+ } else {
1448
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
1449
+ }
1450
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
1451
+ endSchedule();
1452
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1453
+ };
1454
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
1455
+ console.error(err);
1456
+ fn();
1457
+ }) : fn();
1458
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1459
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1460
+ var _a;
1461
+ const elm = hostRef.$hostElement$;
1462
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1463
+ const rc = elm["s-rc"];
1464
+ if (isInitialLoad) {
1465
+ attachStyles(hostRef);
1466
+ }
1467
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1468
+ {
1469
+ callRender(hostRef, instance, elm, isInitialLoad);
1470
+ }
1471
+ if (rc) {
1472
+ rc.map((cb) => cb());
1473
+ elm["s-rc"] = void 0;
1474
+ }
1475
+ endRender();
1476
+ endUpdate();
1477
+ {
1478
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1479
+ const postUpdate = () => postUpdateComponent(hostRef);
1480
+ if (childrenPromises.length === 0) {
1481
+ postUpdate();
1482
+ } else {
1483
+ Promise.all(childrenPromises).then(postUpdate);
1484
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1485
+ childrenPromises.length = 0;
1486
+ }
1487
+ }
1488
+ };
1489
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
1490
+ try {
1491
+ instance = instance.render() ;
1492
+ {
1493
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
1494
+ }
1495
+ {
1496
+ hostRef.$flags$ |= 2 /* hasRendered */;
1497
+ }
1498
+ {
1499
+ {
1500
+ {
1501
+ renderVdom(hostRef, instance, isInitialLoad);
1502
+ }
1503
+ }
1504
+ }
1505
+ } catch (e) {
1506
+ consoleError(e, hostRef.$hostElement$);
1507
+ }
1508
+ return null;
1509
+ };
1510
+ var postUpdateComponent = (hostRef) => {
1511
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1512
+ const elm = hostRef.$hostElement$;
1513
+ const endPostUpdate = createTime("postUpdate", tagName);
1514
+ const instance = hostRef.$lazyInstance$ ;
1515
+ const ancestorComponent = hostRef.$ancestorComponent$;
1516
+ safeCall(instance, "componentDidRender", void 0, elm);
1517
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1518
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1519
+ {
1520
+ addHydratedFlag(elm);
1521
+ }
1522
+ safeCall(instance, "componentDidLoad", void 0, elm);
1523
+ endPostUpdate();
1524
+ {
1525
+ hostRef.$onReadyResolve$(elm);
1526
+ if (!ancestorComponent) {
1527
+ appDidLoad();
1528
+ }
1529
+ }
1530
+ } else {
1531
+ safeCall(instance, "componentDidUpdate", void 0, elm);
1532
+ endPostUpdate();
1533
+ }
1534
+ {
1535
+ hostRef.$onInstanceResolve$(elm);
1536
+ }
1537
+ {
1538
+ if (hostRef.$onRenderResolve$) {
1539
+ hostRef.$onRenderResolve$();
1540
+ hostRef.$onRenderResolve$ = void 0;
1541
+ }
1542
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1543
+ nextTick(() => scheduleUpdate(hostRef, false));
1544
+ }
1545
+ hostRef.$flags$ &= -517;
1546
+ }
1547
+ };
1548
+ var appDidLoad = (who) => {
1549
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1550
+ };
1551
+ var safeCall = (instance, method, arg, elm) => {
1552
+ if (instance && instance[method]) {
1553
+ try {
1554
+ return instance[method](arg);
1555
+ } catch (e) {
1556
+ consoleError(e, elm);
1557
+ }
1558
+ }
1559
+ return void 0;
1560
+ };
1561
+ var addHydratedFlag = (elm) => {
1562
+ var _a;
1563
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1564
+ };
1565
+
1566
+ // src/runtime/set-value.ts
1567
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1568
+ var setValue = (ref, propName, newVal, cmpMeta) => {
1569
+ const hostRef = getHostRef(ref);
1570
+ if (!hostRef) {
1571
+ return;
1572
+ }
1573
+ if (!hostRef) {
1574
+ throw new Error(
1575
+ `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).`
1576
+ );
1577
+ }
1578
+ const elm = hostRef.$hostElement$ ;
1579
+ const oldVal = hostRef.$instanceValues$.get(propName);
1580
+ const flags = hostRef.$flags$;
1581
+ const instance = hostRef.$lazyInstance$ ;
1582
+ newVal = parsePropertyValue(
1583
+ newVal,
1584
+ cmpMeta.$members$[propName][0]);
1585
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1586
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1587
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1588
+ hostRef.$instanceValues$.set(propName, newVal);
1589
+ if (cmpMeta.$watchers$) {
1590
+ const watchMethods = cmpMeta.$watchers$[propName];
1591
+ if (watchMethods) {
1592
+ watchMethods.map((watcher) => {
1593
+ try {
1594
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1595
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1596
+ if (!instance) {
1597
+ hostRef.$fetchedCbList$.push(() => {
1598
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1599
+ });
1600
+ } else {
1601
+ instance[watchMethodName](newVal, oldVal, propName);
1602
+ }
1603
+ }
1604
+ } catch (e) {
1605
+ consoleError(e, elm);
1606
+ }
1607
+ });
1608
+ }
1609
+ }
1610
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1611
+ if (instance.componentShouldUpdate) {
1612
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1613
+ return;
1614
+ }
1615
+ }
1616
+ scheduleUpdate(hostRef, false);
1617
+ }
1618
+ }
1619
+ };
1620
+
1621
+ // src/runtime/proxy-component.ts
1622
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
1623
+ var _a, _b;
1624
+ const prototype = Cstr.prototype;
1625
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1626
+ {
1627
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1628
+ cmpMeta.$watchers$ = Cstr.watchers;
1629
+ }
1630
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1631
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1632
+ }
1633
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1634
+ cmpMeta.$serializers$ = Cstr.serializers;
1635
+ }
1636
+ }
1637
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1638
+ members.map(([memberName, [memberFlags]]) => {
1639
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1640
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1641
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1642
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1643
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1644
+ Object.defineProperty(prototype, memberName, {
1645
+ get() {
1646
+ {
1647
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1648
+ return getValue(this, memberName);
1649
+ }
1650
+ const ref = getHostRef(this);
1651
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1652
+ if (!instance) return;
1653
+ return instance[memberName];
1654
+ }
1655
+ },
1656
+ configurable: true,
1657
+ enumerable: true
1658
+ });
1659
+ }
1660
+ Object.defineProperty(prototype, memberName, {
1661
+ set(newValue) {
1662
+ const ref = getHostRef(this);
1663
+ if (!ref) {
1664
+ return;
1665
+ }
1666
+ if (origSetter) {
1667
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1668
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1669
+ newValue = ref.$instanceValues$.get(memberName);
1670
+ }
1671
+ origSetter.apply(this, [
1672
+ parsePropertyValue(
1673
+ newValue,
1674
+ memberFlags)
1675
+ ]);
1676
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1677
+ setValue(this, memberName, newValue, cmpMeta);
1678
+ return;
1679
+ }
1680
+ {
1681
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1682
+ setValue(this, memberName, newValue, cmpMeta);
1683
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1684
+ ref.$fetchedCbList$.push(() => {
1685
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1686
+ ref.$lazyInstance$[memberName] = newValue;
1687
+ }
1688
+ });
1689
+ }
1690
+ return;
1691
+ }
1692
+ const setterSetVal = () => {
1693
+ const currentValue = ref.$lazyInstance$[memberName];
1694
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1695
+ ref.$instanceValues$.set(memberName, currentValue);
1696
+ }
1697
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
1698
+ newValue,
1699
+ memberFlags);
1700
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1701
+ };
1702
+ if (ref.$lazyInstance$) {
1703
+ setterSetVal();
1704
+ } else {
1705
+ ref.$fetchedCbList$.push(() => {
1706
+ setterSetVal();
1707
+ });
1708
+ }
1709
+ }
1710
+ }
1711
+ });
1712
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1713
+ Object.defineProperty(prototype, memberName, {
1714
+ value(...args) {
1715
+ var _a2;
1716
+ const ref = getHostRef(this);
1717
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1718
+ var _a3;
1719
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1720
+ });
1721
+ }
1722
+ });
1723
+ }
1724
+ });
1725
+ if ((flags & 1 /* isElementConstructor */)) {
1726
+ const attrNameToPropName = /* @__PURE__ */ new Map();
1727
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1728
+ plt.jmp(() => {
1729
+ var _a2;
1730
+ const propName = attrNameToPropName.get(attrName);
1731
+ const hostRef = getHostRef(this);
1732
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1733
+ newValue = this[propName];
1734
+ delete this[propName];
1735
+ }
1736
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1737
+ this[propName] == newValue) {
1738
+ return;
1739
+ } else if (propName == null) {
1740
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1741
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1742
+ const instance = hostRef.$lazyInstance$ ;
1743
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1744
+ entry == null ? void 0 : entry.forEach((watcher) => {
1745
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1746
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
1747
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1748
+ }
1749
+ });
1750
+ }
1751
+ return;
1752
+ }
1753
+ const propFlags = members.find(([m]) => m === propName);
1754
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1755
+ newValue = newValue === null || newValue === "false" ? false : true;
1756
+ }
1757
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1758
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1759
+ this[propName] = newValue;
1760
+ }
1761
+ });
1762
+ };
1763
+ Cstr.observedAttributes = Array.from(
1764
+ /* @__PURE__ */ new Set([
1765
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1766
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1767
+ var _a2;
1768
+ const attrName = m[1] || propName;
1769
+ attrNameToPropName.set(attrName, propName);
1770
+ if (m[0] & 512 /* ReflectAttr */) {
1771
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
1772
+ }
1773
+ return attrName;
1774
+ })
1775
+ ])
1776
+ );
1777
+ }
1778
+ }
1779
+ return Cstr;
1780
+ };
1781
+
1782
+ // src/runtime/initialize-component.ts
1783
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1784
+ let Cstr;
1785
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1786
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1787
+ const bundleId = cmpMeta.$lazyBundleId$;
1788
+ if (bundleId) {
1789
+ const CstrImport = loadModule(cmpMeta, hostRef);
1790
+ if (CstrImport && "then" in CstrImport) {
1791
+ const endLoad = uniqueTime();
1792
+ Cstr = await CstrImport;
1793
+ endLoad();
1794
+ } else {
1795
+ Cstr = CstrImport;
1796
+ }
1797
+ if (!Cstr) {
1798
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1799
+ }
1800
+ if (!Cstr.isProxied) {
1801
+ {
1802
+ cmpMeta.$watchers$ = Cstr.watchers;
1803
+ cmpMeta.$serializers$ = Cstr.serializers;
1804
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1805
+ }
1806
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1807
+ Cstr.isProxied = true;
1808
+ }
1809
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1810
+ {
1811
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1812
+ }
1813
+ try {
1814
+ new Cstr(hostRef);
1815
+ } catch (e) {
1816
+ consoleError(e, elm);
1817
+ }
1818
+ {
1819
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
1820
+ }
1821
+ {
1822
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1823
+ }
1824
+ endNewInstance();
1825
+ const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
1826
+ if (!needsDeferredCallback) {
1827
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1828
+ } else {
1829
+ hostRef.$deferredConnectedCallback$ = true;
1830
+ }
1831
+ } else {
1832
+ Cstr = elm.constructor;
1833
+ const cmpTag = elm.localName;
1834
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1835
+ }
1836
+ if (Cstr && Cstr.style) {
1837
+ let style;
1838
+ if (typeof Cstr.style === "string") {
1839
+ style = Cstr.style;
1840
+ }
1841
+ const scopeId2 = getScopeId(cmpMeta);
1842
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
1843
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1844
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1845
+ endRegisterStyles();
1846
+ }
1847
+ }
1848
+ }
1849
+ const ancestorComponent = hostRef.$ancestorComponent$;
1850
+ const schedule = () => scheduleUpdate(hostRef, true);
1851
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
1852
+ ancestorComponent["s-rc"].push(schedule);
1853
+ } else {
1854
+ schedule();
1855
+ }
1856
+ };
1857
+ var fireConnectedCallback = (instance, elm) => {
1858
+ {
1859
+ safeCall(instance, "connectedCallback", void 0, elm);
1860
+ }
1861
+ };
1862
+
1863
+ // src/runtime/connected-callback.ts
1864
+ var connectedCallback = (elm) => {
1865
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1866
+ const hostRef = getHostRef(elm);
1867
+ if (!hostRef) {
1868
+ return;
1869
+ }
1870
+ const cmpMeta = hostRef.$cmpMeta$;
1871
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1872
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1873
+ hostRef.$flags$ |= 1 /* hasConnected */;
1874
+ {
1875
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1876
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
1877
+ setContentReference(elm);
1878
+ }
1879
+ }
1880
+ {
1881
+ let ancestorComponent = elm;
1882
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1883
+ if (ancestorComponent["s-p"]) {
1884
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1885
+ break;
1886
+ }
1887
+ }
1888
+ }
1889
+ if (cmpMeta.$members$) {
1890
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1891
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1892
+ const value = elm[memberName];
1893
+ delete elm[memberName];
1894
+ elm[memberName] = value;
1895
+ }
1896
+ });
1897
+ }
1898
+ {
1899
+ initializeComponent(elm, hostRef, cmpMeta);
1900
+ }
1901
+ } else {
1902
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1903
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1904
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1905
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1906
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1907
+ }
1908
+ }
1909
+ endConnected();
1910
+ }
1911
+ };
1912
+ var setContentReference = (elm) => {
1913
+ if (!win.document) {
1914
+ return;
1915
+ }
1916
+ const contentRefElm = elm["s-cr"] = win.document.createComment(
1917
+ ""
1918
+ );
1919
+ contentRefElm["s-cn"] = true;
1920
+ insertBefore(elm, contentRefElm, elm.firstChild);
1921
+ };
1922
+ var disconnectInstance = (instance, elm) => {
1923
+ {
1924
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1925
+ }
1926
+ };
1927
+ var disconnectedCallback = async (elm) => {
1928
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1929
+ const hostRef = getHostRef(elm);
1930
+ {
1931
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
1932
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1933
+ hostRef.$rmListeners$ = void 0;
1934
+ }
1935
+ }
1936
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1937
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1938
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1939
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1940
+ }
1941
+ }
1942
+ if (rootAppliedStyles.has(elm)) {
1943
+ rootAppliedStyles.delete(elm);
1944
+ }
1945
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1946
+ rootAppliedStyles.delete(elm.shadowRoot);
1947
+ }
1948
+ };
1949
+
1950
+ // src/runtime/bootstrap-lazy.ts
1951
+ var bootstrapLazy = (lazyBundles, options = {}) => {
1952
+ var _a;
1953
+ if (!win.document) {
1954
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1955
+ return;
1956
+ }
1957
+ const endBootstrap = createTime();
1958
+ const cmpTags = [];
1959
+ const exclude = options.exclude || [];
1960
+ const customElements2 = win.customElements;
1961
+ const head = win.document.head;
1962
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1963
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1964
+ const deferredConnectedCallbacks = [];
1965
+ let appLoadFallback;
1966
+ let isBootstrapping = true;
1967
+ Object.assign(plt, options);
1968
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1969
+ let hasSlotRelocation = false;
1970
+ lazyBundles.map((lazyBundle) => {
1971
+ lazyBundle[1].map((compactMeta) => {
1972
+ var _a2, _b, _c;
1973
+ const cmpMeta = {
1974
+ $flags$: compactMeta[0],
1975
+ $tagName$: compactMeta[1],
1976
+ $members$: compactMeta[2],
1977
+ $listeners$: compactMeta[3]
1978
+ };
1979
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1980
+ hasSlotRelocation = true;
1981
+ }
1982
+ {
1983
+ cmpMeta.$members$ = compactMeta[2];
1984
+ }
1985
+ {
1986
+ cmpMeta.$listeners$ = compactMeta[3];
1987
+ }
1988
+ {
1989
+ cmpMeta.$attrsToReflect$ = [];
1990
+ }
1991
+ {
1992
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1993
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1994
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1995
+ }
1996
+ const tagName = transformTag(cmpMeta.$tagName$);
1997
+ const HostElement = class extends HTMLElement {
1998
+ ["s-p"];
1999
+ ["s-rc"];
2000
+ hasRegisteredEventListeners = false;
2001
+ // StencilLazyHost
2002
+ constructor(self) {
2003
+ super(self);
2004
+ self = this;
2005
+ registerHost(self, cmpMeta);
2006
+ }
2007
+ connectedCallback() {
2008
+ const hostRef = getHostRef(this);
2009
+ if (!hostRef) {
2010
+ return;
2011
+ }
2012
+ if (!this.hasRegisteredEventListeners) {
2013
+ this.hasRegisteredEventListeners = true;
2014
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2015
+ }
2016
+ if (appLoadFallback) {
2017
+ clearTimeout(appLoadFallback);
2018
+ appLoadFallback = null;
2019
+ }
2020
+ if (isBootstrapping) {
2021
+ deferredConnectedCallbacks.push(this);
2022
+ } else {
2023
+ plt.jmp(() => connectedCallback(this));
2024
+ }
2025
+ }
2026
+ disconnectedCallback() {
2027
+ plt.jmp(() => disconnectedCallback(this));
2028
+ plt.raf(() => {
2029
+ var _a3;
2030
+ const hostRef = getHostRef(this);
2031
+ if (!hostRef) {
2032
+ return;
2033
+ }
2034
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2035
+ if (i2 > -1) {
2036
+ deferredConnectedCallbacks.splice(i2, 1);
2037
+ }
2038
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
2039
+ delete hostRef.$vnode$.$elm$;
2040
+ }
2041
+ });
2042
+ }
2043
+ componentOnReady() {
2044
+ var _a3;
2045
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2046
+ }
2047
+ };
2048
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
2049
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2050
+ cmpTags.push(tagName);
2051
+ customElements2.define(
2052
+ tagName,
2053
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2054
+ );
2055
+ }
2056
+ });
2057
+ });
2058
+ if (cmpTags.length > 0) {
2059
+ if (hasSlotRelocation) {
2060
+ dataStyles.textContent += SLOT_FB_CSS;
2061
+ }
2062
+ {
2063
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2064
+ }
2065
+ if (dataStyles.innerHTML.length) {
2066
+ dataStyles.setAttribute("data-styles", "");
2067
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2068
+ if (nonce != null) {
2069
+ dataStyles.setAttribute("nonce", nonce);
2070
+ }
2071
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2072
+ }
2073
+ }
2074
+ isBootstrapping = false;
2075
+ if (deferredConnectedCallbacks.length) {
2076
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
2077
+ } else {
2078
+ {
2079
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2080
+ }
2081
+ }
2082
+ endBootstrap();
2083
+ };
2084
+
2085
+ // src/runtime/fragment.ts
2086
+ var Fragment = (_, children) => children;
2087
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2088
+ if (listeners && win.document) {
2089
+ listeners.map(([flags, name, method]) => {
2090
+ const target = getHostListenerTarget(win.document, elm, flags) ;
2091
+ const handler = hostListenerProxy(hostRef, method);
2092
+ const opts = hostListenerOpts(flags);
2093
+ plt.ael(target, name, handler, opts);
2094
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2095
+ });
2096
+ }
2097
+ };
2098
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
2099
+ var _a;
2100
+ try {
2101
+ {
2102
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
2103
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2104
+ } else {
2105
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2106
+ }
2107
+ }
2108
+ } catch (e) {
2109
+ consoleError(e, hostRef.$hostElement$);
2110
+ }
2111
+ };
2112
+ var getHostListenerTarget = (doc, elm, flags) => {
2113
+ if (flags & 4 /* TargetDocument */) {
2114
+ return doc;
2115
+ }
2116
+ if (flags & 8 /* TargetWindow */) {
2117
+ return win;
2118
+ }
2119
+ return elm;
2120
+ };
2121
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2122
+ passive: (flags & 1 /* Passive */) !== 0,
2123
+ capture: (flags & 2 /* Capture */) !== 0
2124
+ } : (flags & 2 /* Capture */) !== 0;
2125
+
2126
+ // src/runtime/nonce.ts
2127
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
2128
+ function transformTag(tag) {
2129
+ return tag;
2130
+ }
2131
+
2132
+ export { Fragment as F, Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };