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