@esri/solutions-components 0.8.67 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1304) hide show
  1. package/dist/cjs/arcgis-login.cjs.entry.js +3 -2
  2. package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
  3. package/dist/cjs/buffer-tools_3.cjs.entry.js +2 -2
  4. package/dist/cjs/calcite-accordion-item.cjs.entry.js +7 -6
  5. package/dist/cjs/calcite-accordion.cjs.entry.js +4 -3
  6. package/dist/cjs/calcite-action-bar.cjs.entry.js +14 -13
  7. package/dist/cjs/calcite-action-group.cjs.entry.js +11 -10
  8. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
  9. package/dist/cjs/calcite-alert_4.cjs.entry.js +4 -4
  10. package/dist/cjs/calcite-block-section.cjs.entry.js +10 -9
  11. package/dist/cjs/calcite-block_5.cjs.entry.js +7 -7
  12. package/dist/cjs/calcite-button.cjs.entry.js +15 -14
  13. package/dist/cjs/calcite-card-group.cjs.entry.js +8 -7
  14. package/dist/cjs/calcite-card.cjs.entry.js +12 -11
  15. package/dist/cjs/calcite-carousel-item.cjs.entry.js +3 -2
  16. package/dist/cjs/calcite-carousel.cjs.entry.js +12 -11
  17. package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -10
  18. package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -7
  19. package/dist/cjs/calcite-color-picker.cjs.entry.js +23 -23
  20. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +6 -5
  21. package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +2 -2
  22. package/dist/cjs/calcite-fab.cjs.entry.js +8 -7
  23. package/dist/cjs/calcite-flow_6.cjs.entry.js +2 -2
  24. package/dist/cjs/calcite-icon.cjs.entry.js +7 -6
  25. package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -12
  26. package/dist/cjs/calcite-input-number.cjs.entry.js +15 -14
  27. package/dist/cjs/calcite-input-text.cjs.entry.js +15 -14
  28. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +17 -17
  29. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -13
  30. package/dist/cjs/calcite-label.cjs.entry.js +6 -5
  31. package/dist/cjs/calcite-link.cjs.entry.js +8 -7
  32. package/dist/cjs/calcite-list-item-group.cjs.entry.js +5 -4
  33. package/dist/cjs/calcite-menu-item.cjs.entry.js +10 -9
  34. package/dist/cjs/calcite-menu.cjs.entry.js +10 -9
  35. package/dist/cjs/calcite-meter.cjs.entry.js +10 -9
  36. package/dist/cjs/calcite-modal.cjs.entry.js +13 -18
  37. package/dist/cjs/calcite-navigation-logo.cjs.entry.js +5 -4
  38. package/dist/cjs/calcite-navigation.cjs.entry.js +6 -5
  39. package/dist/cjs/calcite-notice.cjs.entry.js +12 -11
  40. package/dist/cjs/calcite-option-group.cjs.entry.js +3 -2
  41. package/dist/cjs/calcite-pagination.cjs.entry.js +10 -202
  42. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +8 -7
  43. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +25 -24
  44. package/dist/cjs/calcite-pick-list.cjs.entry.js +12 -11
  45. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +6 -5
  46. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -9
  47. package/dist/cjs/calcite-rating.cjs.entry.js +14 -15
  48. package/dist/cjs/calcite-sheet.cjs.entry.js +9 -8
  49. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +7 -6
  50. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -2
  51. package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -8
  52. package/dist/cjs/calcite-split-button.cjs.entry.js +6 -5
  53. package/dist/cjs/calcite-stepper-item.cjs.entry.js +12 -11
  54. package/dist/cjs/calcite-stepper.cjs.entry.js +9 -8
  55. package/dist/cjs/calcite-switch.cjs.entry.js +11 -10
  56. package/dist/cjs/calcite-table-row.cjs.entry.js +8 -7
  57. package/dist/cjs/calcite-table.cjs.entry.js +11 -10
  58. package/dist/cjs/calcite-text-area.cjs.entry.js +18 -16
  59. package/dist/cjs/calcite-tile-group.cjs.entry.js +8 -7
  60. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +5 -4
  61. package/dist/cjs/calcite-tile-select.cjs.entry.js +6 -5
  62. package/dist/cjs/calcite-tile.cjs.entry.js +8 -7
  63. package/dist/cjs/calcite-time-picker.cjs.entry.js +11 -10
  64. package/dist/cjs/calcite-tip-group.cjs.entry.js +3 -2
  65. package/dist/cjs/calcite-tip-manager.cjs.entry.js +10 -16
  66. package/dist/cjs/calcite-tip.cjs.entry.js +11 -10
  67. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -8
  68. package/dist/cjs/card-manager_3.cjs.entry.js +3 -3
  69. package/dist/cjs/consent-manager.cjs.entry.js +7 -350
  70. package/dist/cjs/crowdsource-manager.cjs.entry.js +9 -9
  71. package/dist/cjs/crowdsource-reporter.cjs.entry.js +9 -10
  72. package/dist/cjs/deduct-calculator.cjs.entry.js +3 -2
  73. package/dist/cjs/{downloadUtils-737851e4.js → downloadUtils-69c90822.js} +2 -2
  74. package/dist/cjs/feature-comments.cjs.entry.js +3 -2
  75. package/dist/cjs/feature-form-flow-item.cjs.entry.js +3 -2
  76. package/dist/cjs/feature-list.cjs.entry.js +12 -12
  77. package/dist/cjs/features-flow-item.cjs.entry.js +3 -2
  78. package/dist/cjs/{helpers-758e7ae8.js → helpers-3cad996e.js} +1 -1
  79. package/dist/cjs/index.cjs.js +0 -15
  80. package/dist/cjs/{index.es-c00eb740.js → index.es-3bcb5f03.js} +3 -3
  81. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
  82. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +6 -5
  83. package/dist/cjs/instant-apps-create.cjs.entry.js +9 -8
  84. package/dist/cjs/instant-apps-export-views.cjs.entry.js +9 -8
  85. package/dist/cjs/instant-apps-export.cjs.entry.js +9 -8
  86. package/dist/cjs/instant-apps-header.cjs.entry.js +6 -6
  87. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +28 -33
  88. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
  89. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +8 -8
  90. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
  91. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +10 -10
  92. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +8 -7
  93. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +3 -2
  94. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +11 -10
  95. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +11 -10
  96. package/dist/cjs/instant-apps-measurement.cjs.entry.js +8 -7
  97. package/dist/cjs/instant-apps-popover.cjs.entry.js +8 -7
  98. package/dist/cjs/instant-apps-popovers.cjs.entry.js +3 -2
  99. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +8 -7
  100. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +8 -7
  101. package/dist/cjs/instant-apps-splash.cjs.entry.js +8 -7
  102. package/dist/cjs/{languageSwitcher-f0bb94fa.js → languageSwitcher-dc2dd354.js} +1 -1
  103. package/dist/cjs/{languageUtil-f22ce913.js → languageUtil-a3e1eafd.js} +1 -1
  104. package/dist/cjs/layout-manager.cjs.entry.js +6 -6
  105. package/dist/cjs/list-flow-item.cjs.entry.js +3 -2
  106. package/dist/cjs/{loadModules-0a42affb.js → loadModules-8567855e.js} +1 -1
  107. package/dist/cjs/loader.cjs.js +4 -4
  108. package/dist/cjs/{locale-d3582284.js → locale-1d07e942.js} +2 -2
  109. package/dist/cjs/{locale-6c657db5.js → locale-33a0038a.js} +1 -1
  110. package/dist/cjs/location-flow-item.cjs.entry.js +3 -2
  111. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  112. package/dist/cjs/pci-calculator.cjs.entry.js +3 -2
  113. package/dist/cjs/{popupUtils-92b936a2.js → popupUtils-51b6c78d.js} +2 -2
  114. package/dist/cjs/public-notification.cjs.entry.js +13 -13
  115. package/dist/cjs/refine-results-flow-item.cjs.entry.js +3 -2
  116. package/dist/cjs/share-item.cjs.entry.js +3 -2
  117. package/dist/cjs/solution-configuration.cjs.entry.js +1108 -23
  118. package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
  119. package/dist/cjs/solution-item-icon.cjs.entry.js +3 -2
  120. package/dist/cjs/solutions-components.cjs.js +5 -32
  121. package/dist/cjs/spatial-ref.cjs.entry.js +8 -8
  122. package/dist/cjs/store-manager.cjs.entry.js +7 -6
  123. package/dist/cjs/{utils-057900e0.js → utils-8d9c798c.js} +1 -1
  124. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -1
  125. package/dist/components/ExpandToggle.js +8 -8
  126. package/dist/components/_commonjsHelpers.js +0 -23
  127. package/dist/components/action-bar.js +5 -4
  128. package/dist/components/action-group.js +4 -3
  129. package/dist/components/action-menu.js +3 -2
  130. package/dist/components/action-pad.js +3 -2
  131. package/dist/components/action.js +3 -2
  132. package/dist/components/alert.js +4 -3
  133. package/dist/components/arcgis-login.js +3 -2
  134. package/dist/components/avatar.js +3 -2
  135. package/dist/components/basemap-gallery2.js +3 -2
  136. package/dist/components/block.js +3 -2
  137. package/dist/components/buffer-tools2.js +3 -2
  138. package/dist/components/button.js +3 -2
  139. package/dist/components/calcite-accordion-item.js +3 -2
  140. package/dist/components/calcite-accordion.js +3 -2
  141. package/dist/components/calcite-block-section.js +3 -2
  142. package/dist/components/calcite-card-group.js +3 -2
  143. package/dist/components/calcite-card.js +3 -2
  144. package/dist/components/calcite-carousel-item.js +3 -2
  145. package/dist/components/calcite-carousel.js +3 -2
  146. package/dist/components/calcite-chip-group.js +3 -2
  147. package/dist/components/calcite-color-picker.js +20 -19
  148. package/dist/components/calcite-combobox-item-group.js +3 -2
  149. package/dist/components/calcite-fab.js +3 -2
  150. package/dist/components/calcite-inline-editable.js +3 -2
  151. package/dist/components/calcite-input-time-picker.js +4 -7
  152. package/dist/components/calcite-input-time-zone.js +4 -3
  153. package/dist/components/calcite-list-item-group.js +3 -2
  154. package/dist/components/calcite-menu-item.js +3 -2
  155. package/dist/components/calcite-meter.js +3 -2
  156. package/dist/components/calcite-navigation-logo.js +3 -2
  157. package/dist/components/calcite-navigation.js +3 -2
  158. package/dist/components/calcite-option-group.js +3 -2
  159. package/dist/components/calcite-pick-list-group.js +5 -4
  160. package/dist/components/calcite-pick-list.js +3 -2
  161. package/dist/components/calcite-radio-button-group.js +3 -2
  162. package/dist/components/calcite-rating.js +3 -4
  163. package/dist/components/calcite-sheet.js +3 -2
  164. package/dist/components/calcite-shell-center-row.js +3 -2
  165. package/dist/components/calcite-sortable-list.js +3 -2
  166. package/dist/components/calcite-split-button.js +3 -2
  167. package/dist/components/calcite-stepper-item.js +3 -2
  168. package/dist/components/calcite-stepper.js +3 -2
  169. package/dist/components/calcite-table-row.js +3 -2
  170. package/dist/components/calcite-table.js +3 -2
  171. package/dist/components/calcite-text-area.js +4 -3
  172. package/dist/components/calcite-tile-group.js +3 -2
  173. package/dist/components/calcite-tile-select-group.js +3 -2
  174. package/dist/components/calcite-tile-select.js +3 -2
  175. package/dist/components/calcite-tile.js +3 -2
  176. package/dist/components/calcite-tip-group.js +3 -2
  177. package/dist/components/calcite-tip-manager.js +3 -9
  178. package/dist/components/calcite-tip.js +4 -3
  179. package/dist/components/card-manager2.js +3 -2
  180. package/dist/components/checkbox.js +3 -2
  181. package/dist/components/chip.js +3 -2
  182. package/dist/components/color-picker-hex-input.js +12 -11
  183. package/dist/components/color-picker-swatch.js +6 -5
  184. package/dist/components/combobox-item.js +3 -2
  185. package/dist/components/combobox.js +5 -4
  186. package/dist/components/consent-manager.js +4 -346
  187. package/dist/components/core.js +0 -309
  188. package/dist/components/create-feature2.js +3 -2
  189. package/dist/components/create-related-feature2.js +3 -2
  190. package/dist/components/crowdsource-manager.js +6 -3
  191. package/dist/components/crowdsource-reporter.js +3 -2
  192. package/dist/components/date-picker-day.js +3 -2
  193. package/dist/components/date-picker-month-header.js +3 -2
  194. package/dist/components/date-picker-month.js +3 -2
  195. package/dist/components/date-picker.js +3 -2
  196. package/dist/components/deduct-calculator2.js +3 -2
  197. package/dist/components/delete-button2.js +3 -2
  198. package/dist/components/dom.js +0 -27
  199. package/dist/components/downloadUtils.js +96 -1176
  200. package/dist/components/dropdown-group.js +3 -2
  201. package/dist/components/dropdown-item.js +3 -2
  202. package/dist/components/dropdown.js +3 -2
  203. package/dist/components/edit-card2.js +3 -2
  204. package/dist/components/esri-loader.js +6 -11
  205. package/dist/components/feature-comments.js +3 -2
  206. package/dist/components/feature-details2.js +3 -2
  207. package/dist/components/feature-form-flow-item.js +3 -2
  208. package/dist/components/feature-list2.js +3 -2
  209. package/dist/components/features-flow-item.js +3 -2
  210. package/dist/components/filter.js +730 -1
  211. package/dist/components/filter2.js +4 -3
  212. package/dist/components/floating-ui.js +13 -89
  213. package/dist/components/floor-filter2.js +3 -2
  214. package/dist/components/flow-item.js +4 -3
  215. package/dist/components/flow.js +3 -2
  216. package/dist/components/form.js +1 -1
  217. package/dist/components/graph.js +3 -2
  218. package/dist/components/handle.js +3 -2
  219. package/dist/components/helpers.js +2 -6
  220. package/dist/components/html2canvas.js +4 -9
  221. package/dist/components/icon.js +3 -2
  222. package/dist/components/index.es.js +79 -441
  223. package/dist/components/index.js +0 -16
  224. package/dist/components/index2.js +9 -17
  225. package/dist/components/index3.js +1863 -41457
  226. package/dist/components/index4.js +162 -2068
  227. package/dist/components/index5.js +184 -179
  228. package/dist/components/index6.js +55 -188
  229. package/dist/components/info-card2.js +3 -2
  230. package/dist/components/input-date-picker.js +4 -3
  231. package/dist/components/input-message.js +3 -2
  232. package/dist/components/input-number.js +3 -2
  233. package/dist/components/input-text.js +3 -2
  234. package/dist/components/input.js +3 -2
  235. package/dist/components/instant-apps-ckeditor-wrapper2.js +3 -2
  236. package/dist/components/instant-apps-control-panel.js +3 -2
  237. package/dist/components/instant-apps-create.js +3 -2
  238. package/dist/components/instant-apps-export-views.js +3 -2
  239. package/dist/components/instant-apps-export.js +3 -2
  240. package/dist/components/instant-apps-filter-list2.js +6 -6
  241. package/dist/components/instant-apps-header2.js +4 -3
  242. package/dist/components/instant-apps-interactive-legend-classic2.js +13 -17
  243. package/dist/components/instant-apps-interactive-legend-count2.js +4 -3
  244. package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +3 -2
  245. package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +3 -2
  246. package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +3 -2
  247. package/dist/components/instant-apps-interactive-legend-layer-element2.js +3 -2
  248. package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +4 -3
  249. package/dist/components/instant-apps-interactive-legend-legend-element2.js +3 -2
  250. package/dist/components/instant-apps-interactive-legend-relationship2.js +3 -2
  251. package/dist/components/instant-apps-interactive-legend.js +3 -2
  252. package/dist/components/instant-apps-keyboard-shortcuts.js +3 -2
  253. package/dist/components/instant-apps-landing-page.js +3 -2
  254. package/dist/components/instant-apps-language-switcher.js +4 -3
  255. package/dist/components/instant-apps-language-translator-item2.js +3 -2
  256. package/dist/components/instant-apps-language-translator-search2.js +3 -2
  257. package/dist/components/instant-apps-language-translator2.js +3 -2
  258. package/dist/components/instant-apps-measurement-tool2.js +3 -2
  259. package/dist/components/instant-apps-measurement.js +3 -2
  260. package/dist/components/instant-apps-popover.js +3 -2
  261. package/dist/components/instant-apps-popovers.js +3 -2
  262. package/dist/components/instant-apps-scoreboard.js +3 -2
  263. package/dist/components/instant-apps-sign-in2.js +3 -2
  264. package/dist/components/instant-apps-social-share2.js +3 -2
  265. package/dist/components/instant-apps-splash.js +4 -3
  266. package/dist/components/json-editor2.js +3 -2
  267. package/dist/components/key.js +0 -28
  268. package/dist/components/label.js +1 -1
  269. package/dist/components/label2.js +3 -2
  270. package/dist/components/languageUtil.js +1 -22
  271. package/dist/components/layer-list2.js +3 -2
  272. package/dist/components/layer-table2.js +3 -2
  273. package/dist/components/layout-manager.js +3 -2
  274. package/dist/components/link.js +3 -2
  275. package/dist/components/list-flow-item.js +3 -2
  276. package/dist/components/list-item.js +3 -2
  277. package/dist/components/list.js +5 -4
  278. package/dist/components/loader.js +3 -2
  279. package/dist/components/locale.js +0 -12
  280. package/dist/components/locale2.js +1 -2
  281. package/dist/components/location-flow-item.js +3 -2
  282. package/dist/components/map-card2.js +3 -2
  283. package/dist/components/map-draw-tools2.js +3 -2
  284. package/dist/components/map-fullscreen2.js +3 -2
  285. package/dist/components/map-layer-picker2.js +3 -2
  286. package/dist/components/map-legend2.js +3 -2
  287. package/dist/components/map-picker2.js +3 -2
  288. package/dist/components/map-search2.js +3 -2
  289. package/dist/components/map-select-tools2.js +3 -2
  290. package/dist/components/map-tools2.js +3 -4
  291. package/dist/components/menu.js +3 -2
  292. package/dist/components/modal.js +3 -8
  293. package/dist/components/mode.js +0 -8
  294. package/dist/components/navigation-user.js +3 -2
  295. package/dist/components/notice.js +3 -2
  296. package/dist/components/openCloseComponent.js +0 -48
  297. package/dist/components/option.js +3 -2
  298. package/dist/components/pagination.js +3 -195
  299. package/dist/components/panel.js +4 -4
  300. package/dist/components/pci-calculator.js +4 -3
  301. package/dist/components/pdf-download2.js +3 -2
  302. package/dist/components/pick-list-item.js +3 -2
  303. package/dist/components/popover.js +3 -2
  304. package/dist/components/progress.js +3 -2
  305. package/dist/components/public-notification.js +3 -2
  306. package/dist/components/publicNotificationStore.js +1 -1
  307. package/dist/components/purify.js +3 -6
  308. package/dist/components/queryUtils.js +0 -59
  309. package/dist/components/radio-button.js +3 -2
  310. package/dist/components/refine-results-flow-item.js +3 -2
  311. package/dist/components/refine-selection2.js +3 -2
  312. package/dist/components/resources.js +0 -17
  313. package/dist/components/resources5.js +0 -3
  314. package/dist/components/scrim.js +3 -2
  315. package/dist/components/segmented-control-item.js +3 -2
  316. package/dist/components/segmented-control.js +3 -2
  317. package/dist/components/select.js +3 -2
  318. package/dist/components/share-item.js +3 -2
  319. package/dist/components/shared-list-render.js +1 -6
  320. package/dist/components/shell-panel.js +3 -2
  321. package/dist/components/shell.js +3 -2
  322. package/dist/components/slider.js +3 -2
  323. package/dist/components/solution-configuration.js +1090 -3
  324. package/dist/components/solution-contents2.js +3 -2
  325. package/dist/components/solution-item-details2.js +3 -2
  326. package/dist/components/solution-item-icon2.js +3 -2
  327. package/dist/components/solution-item-sharing2.js +3 -2
  328. package/dist/components/solution-item2.js +3 -2
  329. package/dist/components/solution-organization-variables2.js +3 -2
  330. package/dist/components/solution-resource-item2.js +5 -3
  331. package/dist/components/solution-spatial-ref2.js +4 -3
  332. package/dist/components/solution-store.js +767 -2
  333. package/dist/components/solution-template-data2.js +3 -2
  334. package/dist/components/solution-variables2.js +3 -2
  335. package/dist/components/sortableComponent.js +0 -701
  336. package/dist/components/spatial-ref2.js +6 -264
  337. package/dist/components/stack.js +3 -2
  338. package/dist/components/store-manager.js +1 -1
  339. package/dist/components/store.js +1 -2
  340. package/dist/components/switch.js +3 -2
  341. package/dist/components/t9n.js +1 -1
  342. package/dist/components/tab-nav.js +3 -2
  343. package/dist/components/tab-title.js +3 -2
  344. package/dist/components/tab.js +3 -2
  345. package/dist/components/table-cell.js +3 -2
  346. package/dist/components/table-header.js +3 -2
  347. package/dist/components/tabs.js +3 -2
  348. package/dist/components/templates.js +3 -44
  349. package/dist/components/time-picker.js +4 -3
  350. package/dist/components/tooltip.js +3 -2
  351. package/dist/components/tree-item.js +3 -2
  352. package/dist/components/tree.js +3 -2
  353. package/dist/components/utils.js +1 -6
  354. package/dist/components/utils2.js +1 -1
  355. package/dist/components/utils4.js +1 -13
  356. package/dist/components/value-list-item.js +4 -3
  357. package/dist/components/value-list.js +3 -5
  358. package/dist/esm/arcgis-login.entry.js +3 -2
  359. package/dist/esm/basemap-gallery_7.entry.js +2 -2
  360. package/dist/esm/buffer-tools_3.entry.js +2 -2
  361. package/dist/esm/calcite-accordion-item.entry.js +7 -6
  362. package/dist/esm/calcite-accordion.entry.js +4 -3
  363. package/dist/esm/calcite-action-bar.entry.js +13 -12
  364. package/dist/esm/calcite-action-group.entry.js +14 -13
  365. package/dist/esm/calcite-action-pad_2.entry.js +2 -2
  366. package/dist/esm/calcite-alert_4.entry.js +4 -4
  367. package/dist/esm/calcite-block-section.entry.js +10 -9
  368. package/dist/esm/calcite-block_5.entry.js +7 -7
  369. package/dist/esm/calcite-button.entry.js +15 -14
  370. package/dist/esm/calcite-card-group.entry.js +8 -7
  371. package/dist/esm/calcite-card.entry.js +12 -11
  372. package/dist/esm/calcite-carousel-item.entry.js +3 -2
  373. package/dist/esm/calcite-carousel.entry.js +12 -11
  374. package/dist/esm/calcite-checkbox.entry.js +11 -10
  375. package/dist/esm/calcite-chip-group.entry.js +8 -7
  376. package/dist/esm/calcite-color-picker.entry.js +29 -29
  377. package/dist/esm/calcite-combobox-item-group.entry.js +6 -5
  378. package/dist/esm/calcite-dropdown-group_2.entry.js +2 -2
  379. package/dist/esm/calcite-fab.entry.js +8 -7
  380. package/dist/esm/calcite-flow_6.entry.js +2 -2
  381. package/dist/esm/calcite-icon.entry.js +7 -6
  382. package/dist/esm/calcite-inline-editable.entry.js +13 -12
  383. package/dist/esm/calcite-input-number.entry.js +15 -14
  384. package/dist/esm/calcite-input-text.entry.js +15 -14
  385. package/dist/esm/calcite-input-time-picker.entry.js +17 -17
  386. package/dist/esm/calcite-input-time-zone.entry.js +14 -13
  387. package/dist/esm/calcite-label.entry.js +6 -5
  388. package/dist/esm/calcite-link.entry.js +8 -7
  389. package/dist/esm/calcite-list-item-group.entry.js +5 -4
  390. package/dist/esm/calcite-menu-item.entry.js +10 -9
  391. package/dist/esm/calcite-menu.entry.js +10 -9
  392. package/dist/esm/calcite-meter.entry.js +10 -9
  393. package/dist/esm/calcite-modal.entry.js +13 -18
  394. package/dist/esm/calcite-navigation-logo.entry.js +5 -4
  395. package/dist/esm/calcite-navigation.entry.js +6 -5
  396. package/dist/esm/calcite-notice.entry.js +12 -11
  397. package/dist/esm/calcite-option-group.entry.js +3 -2
  398. package/dist/esm/calcite-pagination.entry.js +10 -202
  399. package/dist/esm/calcite-pick-list-group.entry.js +8 -7
  400. package/dist/esm/calcite-pick-list-item.entry.js +15 -14
  401. package/dist/esm/calcite-pick-list.entry.js +12 -11
  402. package/dist/esm/calcite-radio-button-group.entry.js +6 -5
  403. package/dist/esm/calcite-radio-button.entry.js +10 -9
  404. package/dist/esm/calcite-rating.entry.js +14 -15
  405. package/dist/esm/calcite-sheet.entry.js +9 -8
  406. package/dist/esm/calcite-shell-center-row.entry.js +7 -6
  407. package/dist/esm/calcite-shell-panel_14.entry.js +2 -2
  408. package/dist/esm/calcite-sortable-list.entry.js +9 -8
  409. package/dist/esm/calcite-split-button.entry.js +6 -5
  410. package/dist/esm/calcite-stepper-item.entry.js +12 -11
  411. package/dist/esm/calcite-stepper.entry.js +9 -8
  412. package/dist/esm/calcite-switch.entry.js +11 -10
  413. package/dist/esm/calcite-table-row.entry.js +8 -7
  414. package/dist/esm/calcite-table.entry.js +11 -10
  415. package/dist/esm/calcite-text-area.entry.js +17 -15
  416. package/dist/esm/calcite-tile-group.entry.js +8 -7
  417. package/dist/esm/calcite-tile-select-group.entry.js +5 -4
  418. package/dist/esm/calcite-tile-select.entry.js +6 -5
  419. package/dist/esm/calcite-tile.entry.js +8 -7
  420. package/dist/esm/calcite-time-picker.entry.js +11 -10
  421. package/dist/esm/calcite-tip-group.entry.js +3 -2
  422. package/dist/esm/calcite-tip-manager.entry.js +10 -16
  423. package/dist/esm/calcite-tip.entry.js +11 -10
  424. package/dist/esm/calcite-tooltip.entry.js +9 -8
  425. package/dist/esm/card-manager_3.entry.js +3 -3
  426. package/dist/esm/consent-manager.entry.js +7 -350
  427. package/dist/esm/crowdsource-manager.entry.js +9 -9
  428. package/dist/esm/crowdsource-reporter.entry.js +7 -8
  429. package/dist/esm/deduct-calculator.entry.js +3 -2
  430. package/dist/esm/{downloadUtils-78367e33.js → downloadUtils-65947034.js} +2 -2
  431. package/dist/esm/feature-comments.entry.js +3 -2
  432. package/dist/esm/feature-form-flow-item.entry.js +3 -2
  433. package/dist/esm/feature-list.entry.js +11 -11
  434. package/dist/esm/features-flow-item.entry.js +3 -2
  435. package/dist/esm/{helpers-d661d198.js → helpers-ca6fa5a6.js} +1 -1
  436. package/dist/esm/{index.es-2b549b56.js → index.es-8311d3b3.js} +3 -3
  437. package/dist/esm/index.js +0 -15
  438. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
  439. package/dist/esm/instant-apps-control-panel.entry.js +6 -5
  440. package/dist/esm/instant-apps-create.entry.js +9 -8
  441. package/dist/esm/instant-apps-export-views.entry.js +9 -8
  442. package/dist/esm/instant-apps-export.entry.js +9 -8
  443. package/dist/esm/instant-apps-header.entry.js +6 -6
  444. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +16 -21
  445. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
  446. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +8 -8
  447. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
  448. package/dist/esm/instant-apps-interactive-legend.entry.js +10 -10
  449. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +8 -7
  450. package/dist/esm/instant-apps-landing-page.entry.js +3 -2
  451. package/dist/esm/instant-apps-language-switcher.entry.js +11 -10
  452. package/dist/esm/instant-apps-language-translator.entry.js +11 -10
  453. package/dist/esm/instant-apps-measurement.entry.js +8 -7
  454. package/dist/esm/instant-apps-popover.entry.js +8 -7
  455. package/dist/esm/instant-apps-popovers.entry.js +3 -2
  456. package/dist/esm/instant-apps-scoreboard.entry.js +8 -7
  457. package/dist/esm/instant-apps-sign-in.entry.js +8 -7
  458. package/dist/esm/instant-apps-splash.entry.js +8 -7
  459. package/dist/{solutions-components/languageSwitcher-35db9d61.js → esm/languageSwitcher-9db90f1e.js} +1 -1
  460. package/dist/esm/{languageUtil-a3e6adf6.js → languageUtil-2b6e191a.js} +1 -1
  461. package/dist/esm/layout-manager.entry.js +6 -6
  462. package/dist/esm/list-flow-item.entry.js +3 -2
  463. package/dist/{solutions-components/loadModules-4d6cf31f.js → esm/loadModules-03ba7abe.js} +1 -1
  464. package/dist/esm/loader.js +5 -5
  465. package/dist/esm/{locale-4dc2b896.js → locale-7becb9cd.js} +1 -1
  466. package/dist/esm/{locale-b4e7d56f.js → locale-d66155ee.js} +2 -2
  467. package/dist/esm/location-flow-item.entry.js +3 -2
  468. package/dist/esm/map-select-tools_3.entry.js +3 -3
  469. package/dist/esm/pci-calculator.entry.js +3 -2
  470. package/dist/esm/{popupUtils-600a3c69.js → popupUtils-7b7851ca.js} +2 -2
  471. package/dist/esm/public-notification.entry.js +12 -12
  472. package/dist/esm/refine-results-flow-item.entry.js +3 -2
  473. package/dist/esm/share-item.entry.js +3 -2
  474. package/dist/esm/solution-configuration.entry.js +1096 -11
  475. package/dist/esm/solution-contents_3.entry.js +2 -2
  476. package/dist/esm/solution-item-icon.entry.js +3 -2
  477. package/dist/esm/solutions-components.js +6 -33
  478. package/dist/esm/spatial-ref.entry.js +8 -8
  479. package/dist/esm/store-manager.entry.js +7 -6
  480. package/dist/esm/{utils-5ac53499.js → utils-8519a5f7.js} +1 -1
  481. package/dist/solutions-components/index.esm.js +0 -15
  482. package/dist/solutions-components/p-01ac1582.entry.js +6 -0
  483. package/dist/solutions-components/{p-c20f6a4b.entry.js → p-0fce578a.entry.js} +1 -1
  484. package/dist/solutions-components/{p-4cb18849.entry.js → p-16aa396b.entry.js} +1 -1
  485. package/dist/solutions-components/{p-58aca46f.entry.js → p-1977a2f2.entry.js} +1 -1
  486. package/dist/solutions-components/{p-da89f8f3.entry.js → p-1a137b52.entry.js} +1 -1
  487. package/dist/solutions-components/{p-427b4593.js → p-1c64264d.js} +1 -1
  488. package/dist/solutions-components/{p-702a8e9c.entry.js → p-250c058f.entry.js} +1 -1
  489. package/dist/solutions-components/{p-4dc6dcc4.entry.js → p-258356f9.entry.js} +1 -1
  490. package/dist/solutions-components/{p-36eaeb25.entry.js → p-266b0f36.entry.js} +1 -1
  491. package/dist/solutions-components/{p-274f2c44.entry.js → p-268484ad.entry.js} +1 -1
  492. package/dist/solutions-components/{p-4b6b0bcf.entry.js → p-28361110.entry.js} +1 -1
  493. package/dist/solutions-components/{p-c742acd9.js → p-2fc63144.js} +1 -1
  494. package/dist/solutions-components/{p-4b740dbc.entry.js → p-38283c63.entry.js} +1 -1
  495. package/dist/solutions-components/{p-66a59698.entry.js → p-461a5633.entry.js} +1 -1
  496. package/dist/solutions-components/{p-ab24cecd.entry.js → p-46264ced.entry.js} +1 -1
  497. package/dist/solutions-components/{p-65581d83.js → p-4cd4cb85.js} +1 -1
  498. package/dist/solutions-components/{p-37481a7e.js → p-4facfedc.js} +1 -1
  499. package/dist/solutions-components/{p-88ebb067.js → p-596d1177.js} +1 -1
  500. package/dist/solutions-components/{p-d7aa16de.entry.js → p-5f636f70.entry.js} +1 -1
  501. package/dist/solutions-components/{p-6011f232.entry.js → p-6c7aa9b7.entry.js} +1 -1
  502. package/dist/solutions-components/{p-6c822b5a.entry.js → p-71131fea.entry.js} +1 -1
  503. package/dist/solutions-components/{p-09ea5380.entry.js → p-7348871e.entry.js} +1 -1
  504. package/dist/solutions-components/{p-4fb8dbdb.entry.js → p-736dee44.entry.js} +1 -1
  505. package/dist/solutions-components/{p-f1e44c41.js → p-75d5dfad.js} +2 -2
  506. package/dist/solutions-components/{p-cebae8b0.entry.js → p-77d55329.entry.js} +1 -1
  507. package/dist/solutions-components/{p-0b2a84bd.entry.js → p-89333ced.entry.js} +1 -1
  508. package/dist/solutions-components/{p-72268284.entry.js → p-8c1f9b20.entry.js} +1 -1
  509. package/dist/solutions-components/{p-9946b88e.entry.js → p-8db0af91.entry.js} +1 -1
  510. package/dist/solutions-components/{p-0424696b.entry.js → p-8ebe19ed.entry.js} +1 -1
  511. package/dist/solutions-components/{p-f2832661.entry.js → p-90d3eeb2.entry.js} +1 -1
  512. package/dist/solutions-components/{p-1b67b3e2.entry.js → p-9238c1ed.entry.js} +1 -1
  513. package/dist/solutions-components/{p-19f6ceaf.entry.js → p-93d98ebb.entry.js} +1 -1
  514. package/dist/solutions-components/{p-c9c97215.entry.js → p-957d275c.entry.js} +1 -1
  515. package/dist/solutions-components/{p-36ca2014.entry.js → p-9e1c97b0.entry.js} +1 -1
  516. package/dist/solutions-components/{p-30df83ea.js → p-9f2a0621.js} +1 -1
  517. package/dist/solutions-components/{p-cd56bd9d.entry.js → p-a26763d2.entry.js} +1 -1
  518. package/dist/solutions-components/{p-4ffe4d32.entry.js → p-a80c076e.entry.js} +1 -1
  519. package/dist/solutions-components/{p-67e06dfc.js → p-a84590db.js} +1 -1
  520. package/dist/solutions-components/{p-3e84a420.entry.js → p-ab2adcaf.entry.js} +1 -1
  521. package/dist/solutions-components/{p-af2c8aa9.js → p-ac122d9e.js} +1 -1
  522. package/dist/solutions-components/{p-73c535f7.entry.js → p-b2846de4.entry.js} +2 -2
  523. package/dist/solutions-components/{p-6be3c158.entry.js → p-b323bb0e.entry.js} +1 -1
  524. package/dist/solutions-components/{p-24f7ec82.entry.js → p-b65d5c58.entry.js} +1 -1
  525. package/dist/solutions-components/{p-296174a0.entry.js → p-c3d61142.entry.js} +1 -1
  526. package/dist/solutions-components/{p-60b4309f.entry.js → p-ce1b52e7.entry.js} +1 -1
  527. package/dist/solutions-components/{p-f90f7437.js → p-d36fae45.js} +1 -1
  528. package/dist/solutions-components/{p-69fb3157.entry.js → p-e1dbe7cf.entry.js} +1 -1
  529. package/dist/solutions-components/{p-2b430d5f.entry.js → p-edead891.entry.js} +1 -1
  530. package/dist/solutions-components/solutions-components.css +1 -84
  531. package/dist/solutions-components/solutions-components.esm.js +1 -48
  532. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -0
  533. package/dist/types/components.d.ts +8 -0
  534. package/package.json +11 -11
  535. package/dist/cjs/ExpandToggle-4bf8ab4c.js +0 -118
  536. package/dist/cjs/FloatingArrow-0900fae3.js +0 -50
  537. package/dist/cjs/Heading-6f44a694.js +0 -25
  538. package/dist/cjs/InitiativeUiSchemaEdit-108652db.js +0 -28
  539. package/dist/cjs/ProjectUiSchemaCreate-c1cbccc7.js +0 -126
  540. package/dist/cjs/ProjectUiSchemaEdit-d5f11c17.js +0 -178
  541. package/dist/cjs/Validation-080a7842.js +0 -20
  542. package/dist/cjs/_commonjsHelpers-2dd87068.js +0 -43
  543. package/dist/cjs/app-globals-24367c32.js +0 -69
  544. package/dist/cjs/ar-a6ccf8f4.js +0 -105
  545. package/dist/cjs/basemap-gallery.cjs.entry.js +0 -121
  546. package/dist/cjs/bg-e6b1b515.js +0 -83
  547. package/dist/cjs/browser-1bf2a3d9.js +0 -28
  548. package/dist/cjs/bs-4151b94c.js +0 -52
  549. package/dist/cjs/buffer-tools.cjs.entry.js +0 -257
  550. package/dist/cjs/ca-1744d62a.js +0 -72
  551. package/dist/cjs/calcite-action-menu.cjs.entry.js +0 -292
  552. package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -169
  553. package/dist/cjs/calcite-action.cjs.entry.js +0 -191
  554. package/dist/cjs/calcite-alert.cjs.entry.js +0 -322
  555. package/dist/cjs/calcite-avatar.cjs.entry.js +0 -150
  556. package/dist/cjs/calcite-block.cjs.entry.js +0 -214
  557. package/dist/cjs/calcite-chip.cjs.entry.js +0 -282
  558. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +0 -274
  559. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +0 -99
  560. package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -145
  561. package/dist/cjs/calcite-combobox.cjs.entry.js +0 -1141
  562. package/dist/cjs/calcite-date-picker-day.cjs.entry.js +0 -112
  563. package/dist/cjs/calcite-date-picker-month-header.cjs.entry.js +0 -207
  564. package/dist/cjs/calcite-date-picker-month.cjs.entry.js +0 -359
  565. package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -459
  566. package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -85
  567. package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -188
  568. package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -426
  569. package/dist/cjs/calcite-filter.cjs.entry.js +0 -182
  570. package/dist/cjs/calcite-flow-item.cjs.entry.js +0 -198
  571. package/dist/cjs/calcite-flow.cjs.entry.js +0 -153
  572. package/dist/cjs/calcite-graph.cjs.entry.js +0 -226
  573. package/dist/cjs/calcite-handle.cjs.entry.js +0 -206
  574. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -757
  575. package/dist/cjs/calcite-input-message.cjs.entry.js +0 -69
  576. package/dist/cjs/calcite-input-time-picker-f8adb5d5.js +0 -1867
  577. package/dist/cjs/calcite-input.cjs.entry.js +0 -709
  578. package/dist/cjs/calcite-list-item.cjs.entry.js +0 -456
  579. package/dist/cjs/calcite-list.cjs.entry.js +0 -560
  580. package/dist/cjs/calcite-loader.cjs.entry.js +0 -80
  581. package/dist/cjs/calcite-navigation-user.cjs.entry.js +0 -72
  582. package/dist/cjs/calcite-option.cjs.entry.js +0 -88
  583. package/dist/cjs/calcite-panel.cjs.entry.js +0 -270
  584. package/dist/cjs/calcite-popover.cjs.entry.js +0 -419
  585. package/dist/cjs/calcite-progress.cjs.entry.js +0 -41
  586. package/dist/cjs/calcite-scrim.cjs.entry.js +0 -125
  587. package/dist/cjs/calcite-segmented-control-item.cjs.entry.js +0 -70
  588. package/dist/cjs/calcite-segmented-control.cjs.entry.js +0 -258
  589. package/dist/cjs/calcite-select.cjs.entry.js +0 -248
  590. package/dist/cjs/calcite-shell-panel.cjs.entry.js +0 -414
  591. package/dist/cjs/calcite-shell.cjs.entry.js +0 -174
  592. package/dist/cjs/calcite-slider.cjs.entry.js +0 -874
  593. package/dist/cjs/calcite-stack.cjs.entry.js +0 -74
  594. package/dist/cjs/calcite-tab-nav.cjs.entry.js +0 -470
  595. package/dist/cjs/calcite-tab-title.cjs.entry.js +0 -291
  596. package/dist/cjs/calcite-tab.cjs.entry.js +0 -112
  597. package/dist/cjs/calcite-table-cell.cjs.entry.js +0 -166
  598. package/dist/cjs/calcite-table-header.cjs.entry.js +0 -183
  599. package/dist/cjs/calcite-tabs.cjs.entry.js +0 -178
  600. package/dist/cjs/calcite-tree-item.cjs.entry.js +0 -298
  601. package/dist/cjs/calcite-tree.cjs.entry.js +0 -315
  602. package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -157
  603. package/dist/cjs/calcite-value-list.cjs.entry.js +0 -325
  604. package/dist/cjs/card-manager.cjs.entry.js +0 -107
  605. package/dist/cjs/common-f5cf368e.js +0 -297
  606. package/dist/cjs/conditionalSlot-013ea8f1.js +0 -54
  607. package/dist/cjs/core-23721ec5.js +0 -329
  608. package/dist/cjs/create-feature.cjs.entry.js +0 -411
  609. package/dist/cjs/create-related-feature.cjs.entry.js +0 -288
  610. package/dist/cjs/cs-865bf9fc.js +0 -148
  611. package/dist/cjs/da-ec3cbd7d.js +0 -67
  612. package/dist/cjs/date-86802e0d.js +0 -261
  613. package/dist/cjs/de-at-33e63cf4.js +0 -91
  614. package/dist/cjs/de-ch-41c31254.js +0 -91
  615. package/dist/cjs/de-d2010af8.js +0 -92
  616. package/dist/cjs/delete-button.cjs.entry.js +0 -150
  617. package/dist/cjs/dom-3f868a04.js +0 -1174
  618. package/dist/cjs/downloadUtils-3f3ba92b.js +0 -4247
  619. package/dist/cjs/edit-card.cjs.entry.js +0 -228
  620. package/dist/cjs/el-694f3f53.js +0 -67
  621. package/dist/cjs/en-au-ee52aa15.js +0 -67
  622. package/dist/cjs/en-ca-f397253b.js +0 -66
  623. package/dist/cjs/en-gb-e38f2064.js +0 -70
  624. package/dist/cjs/es-1f31784e.js +0 -67
  625. package/dist/cjs/es-mx-e039dd38.js +0 -66
  626. package/dist/cjs/esri-loader-9b0ce1a4.js +0 -310
  627. package/dist/cjs/et-ab75e5bf.js +0 -93
  628. package/dist/cjs/feature-details.cjs.entry.js +0 -385
  629. package/dist/cjs/fi-ac75e6d2.js +0 -116
  630. package/dist/cjs/filter-bafcd70b.js +0 -48
  631. package/dist/cjs/floating-ui-87c9e9ed.js +0 -2377
  632. package/dist/cjs/floor-filter.cjs.entry.js +0 -153
  633. package/dist/cjs/focusTrapComponent-5195d563.js +0 -1028
  634. package/dist/cjs/form-067ee7bc.js +0 -381
  635. package/dist/cjs/fr-a10ffff6.js +0 -69
  636. package/dist/cjs/fr-ch-596ab83d.js +0 -67
  637. package/dist/cjs/he-bce2e0f6.js +0 -106
  638. package/dist/cjs/helpers-d91ad1d6.js +0 -864
  639. package/dist/cjs/hi-22d77acf.js +0 -66
  640. package/dist/cjs/hr-9a468bd9.js +0 -81
  641. package/dist/cjs/html2canvas-06585c20.js +0 -7852
  642. package/dist/cjs/hu-9722b179.js +0 -89
  643. package/dist/cjs/id-426a7d98.js +0 -67
  644. package/dist/cjs/index-25afe4b8.js +0 -1972
  645. package/dist/cjs/index-62dddc18.js +0 -3038
  646. package/dist/cjs/index-bf47f22d.js +0 -41718
  647. package/dist/cjs/index-e6154163.js +0 -201
  648. package/dist/cjs/index.es-bf2a62d8.js +0 -11678
  649. package/dist/cjs/info-card.cjs.entry.js +0 -367
  650. package/dist/cjs/instant-apps-ckeditor-wrapper.cjs.entry.js +0 -125
  651. package/dist/cjs/instant-apps-filter-list.cjs.entry.js +0 -1067
  652. package/dist/cjs/instant-apps-interactive-legend-count.cjs.entry.js +0 -104
  653. package/dist/cjs/instant-apps-interactive-legend-group-legend-element.cjs.entry.js +0 -56
  654. package/dist/cjs/instant-apps-interactive-legend-layer-element-caption.cjs.entry.js +0 -55
  655. package/dist/cjs/instant-apps-interactive-legend-layer-element.cjs.entry.js +0 -57
  656. package/dist/cjs/instant-apps-interactive-legend-legend-element-caption.cjs.entry.js +0 -104
  657. package/dist/cjs/instant-apps-interactive-legend-legend-element.cjs.entry.js +0 -65
  658. package/dist/cjs/instant-apps-interactive-legend-relationship.cjs.entry.js +0 -552
  659. package/dist/cjs/instant-apps-language-translator-item.cjs.entry.js +0 -384
  660. package/dist/cjs/instant-apps-language-translator-search.cjs.entry.js +0 -105
  661. package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +0 -139
  662. package/dist/cjs/instant-apps-social-share.cjs.entry.js +0 -520
  663. package/dist/cjs/interactive-f8825052.js +0 -154
  664. package/dist/cjs/it-b310ed48.js +0 -67
  665. package/dist/cjs/it-ch-804be2a9.js +0 -67
  666. package/dist/cjs/ja-fd61ab26.js +0 -73
  667. package/dist/cjs/json-editor.cjs.entry.js +0 -406
  668. package/dist/cjs/key-620e0822.js +0 -47
  669. package/dist/cjs/ko-a799f42d.js +0 -73
  670. package/dist/cjs/label-f71c85c6.js +0 -186
  671. package/dist/cjs/languageSwitcher-8209c73c.js +0 -60
  672. package/dist/cjs/languageUtil-a615ee13.js +0 -90
  673. package/dist/cjs/layer-list.cjs.entry.js +0 -197
  674. package/dist/cjs/layer-table.cjs.entry.js +0 -1562
  675. package/dist/cjs/loadModules-36d49819.js +0 -23
  676. package/dist/cjs/loadModules-e03cf23a.js +0 -30
  677. package/dist/cjs/loadable-68a22656.js +0 -97
  678. package/dist/cjs/locale-708985a1.js +0 -91
  679. package/dist/cjs/locale-898d043a.js +0 -152
  680. package/dist/cjs/locale-cfa79214.js +0 -585
  681. package/dist/cjs/lodash-7587da9f.js +0 -18030
  682. package/dist/cjs/lt-0508a01d.js +0 -98
  683. package/dist/cjs/lv-d8f83e7a.js +0 -67
  684. package/dist/cjs/map-card.cjs.entry.js +0 -231
  685. package/dist/cjs/map-draw-tools.cjs.entry.js +0 -358
  686. package/dist/cjs/map-fullscreen.cjs.entry.js +0 -116
  687. package/dist/cjs/map-layer-picker.cjs.entry.js +0 -346
  688. package/dist/cjs/map-legend.cjs.entry.js +0 -109
  689. package/dist/cjs/map-picker.cjs.entry.js +0 -174
  690. package/dist/cjs/map-search.cjs.entry.js +0 -184
  691. package/dist/cjs/map-select-tools.cjs.entry.js +0 -798
  692. package/dist/cjs/map-tools.cjs.entry.js +0 -375
  693. package/dist/cjs/mapViewUtils-83bc7d78.js +0 -295
  694. package/dist/cjs/mk-475a7a99.js +0 -67
  695. package/dist/cjs/mode-a52277fc.js +0 -27
  696. package/dist/cjs/nb-92a9acc8.js +0 -68
  697. package/dist/cjs/nl-ea0f033c.js +0 -68
  698. package/dist/cjs/observers-682136dc.js +0 -58
  699. package/dist/cjs/openCloseComponent-2fdcb310.js +0 -140
  700. package/dist/cjs/parser-08a36734.js +0 -1648
  701. package/dist/cjs/pdf-download.cjs.entry.js +0 -359
  702. package/dist/cjs/pl-05a4b5a1.js +0 -115
  703. package/dist/cjs/popupUtils-e6a2131f.js +0 -111
  704. package/dist/cjs/pt-8fe24b18.js +0 -68
  705. package/dist/cjs/pt-br-eba3aab9.js +0 -66
  706. package/dist/cjs/publicNotificationStore-ce215887.js +0 -47
  707. package/dist/cjs/purify-d00d4598.js +0 -1719
  708. package/dist/cjs/queryUtils-ad516c97.js +0 -283
  709. package/dist/cjs/refine-selection.cjs.entry.js +0 -412
  710. package/dist/cjs/resources-09a78a36.js +0 -30
  711. package/dist/cjs/resources-13ca5745.js +0 -116
  712. package/dist/cjs/resources-3855f743.js +0 -53
  713. package/dist/cjs/resources-921affcb.js +0 -49
  714. package/dist/cjs/resources-c241718f.js +0 -29
  715. package/dist/cjs/ro-c92cb77e.js +0 -67
  716. package/dist/cjs/ru-273dc1dc.js +0 -127
  717. package/dist/cjs/shadow-css-64ff22a6.js +0 -363
  718. package/dist/cjs/shared-list-render-a3a4e5db.js +0 -370
  719. package/dist/cjs/sk-f0fb5cd7.js +0 -149
  720. package/dist/cjs/sl-3bc46f93.js +0 -169
  721. package/dist/cjs/solution-contents.cjs.entry.js +0 -84
  722. package/dist/cjs/solution-item-details.cjs.entry.js +0 -199
  723. package/dist/cjs/solution-item-sharing.cjs.entry.js +0 -139
  724. package/dist/cjs/solution-item.cjs.entry.js +0 -106
  725. package/dist/cjs/solution-organization-variables.cjs.entry.js +0 -95
  726. package/dist/cjs/solution-resource-item.cjs.entry.js +0 -284
  727. package/dist/cjs/solution-spatial-ref.cjs.entry.js +0 -168
  728. package/dist/cjs/solution-store-cef42401.js +0 -587
  729. package/dist/cjs/solution-template-data.cjs.entry.js +0 -119
  730. package/dist/cjs/solution-variables.cjs.entry.js +0 -107
  731. package/dist/cjs/sortableComponent-b1be22c5.js +0 -3444
  732. package/dist/cjs/sr-ae040dc3.js +0 -102
  733. package/dist/cjs/store-3ba88099.js +0 -91
  734. package/dist/cjs/sv-769838ef.js +0 -72
  735. package/dist/cjs/t9n-0f4446d0.js +0 -103
  736. package/dist/cjs/templates-19d0e370.js +0 -442
  737. package/dist/cjs/th-9b569ee1.js +0 -66
  738. package/dist/cjs/time-5eec06fe.js +0 -289
  739. package/dist/cjs/tr-9cc6c813.js +0 -67
  740. package/dist/cjs/uk-c549303a.js +0 -105
  741. package/dist/cjs/utils-05355ba0.js +0 -64
  742. package/dist/cjs/utils-3128e748.js +0 -226
  743. package/dist/cjs/utils-4ad2f4f2.js +0 -68
  744. package/dist/cjs/utils-589c9301.js +0 -142
  745. package/dist/cjs/utils-70b0604a.js +0 -52
  746. package/dist/cjs/vi-e4806300.js +0 -71
  747. package/dist/cjs/zh-cn-e13c7902.js +0 -95
  748. package/dist/cjs/zh-hk-2d4440e3.js +0 -72
  749. package/dist/cjs/zh-tw-d9c5da28.js +0 -93
  750. package/dist/components/InitiativeUiSchemaEdit.js +0 -26
  751. package/dist/components/ProjectUiSchemaCreate.js +0 -122
  752. package/dist/components/ProjectUiSchemaEdit.js +0 -176
  753. package/dist/components/index7.js +0 -71
  754. package/dist/components/lodash.js +0 -18025
  755. package/dist/components/parser.js +0 -1646
  756. package/dist/esm/ExpandToggle-cb895a2c.js +0 -110
  757. package/dist/esm/FloatingArrow-636ce2ee.js +0 -48
  758. package/dist/esm/Heading-baf4a991.js +0 -22
  759. package/dist/esm/InitiativeUiSchemaEdit-8ddacfe8.js +0 -26
  760. package/dist/esm/ProjectUiSchemaCreate-9fb110ea.js +0 -124
  761. package/dist/esm/ProjectUiSchemaEdit-fbfdf6e4.js +0 -176
  762. package/dist/esm/Validation-b3331c79.js +0 -18
  763. package/dist/esm/_commonjsHelpers-9cd17aec.js +0 -39
  764. package/dist/esm/app-globals-97f5814f.js +0 -67
  765. package/dist/esm/ar-6236d364.js +0 -103
  766. package/dist/esm/basemap-gallery.entry.js +0 -117
  767. package/dist/esm/bg-498492ff.js +0 -81
  768. package/dist/esm/browser-920df963.js +0 -26
  769. package/dist/esm/bs-60412b06.js +0 -50
  770. package/dist/esm/buffer-tools.entry.js +0 -253
  771. package/dist/esm/ca-7844b785.js +0 -70
  772. package/dist/esm/calcite-action-menu.entry.js +0 -288
  773. package/dist/esm/calcite-action-pad.entry.js +0 -165
  774. package/dist/esm/calcite-action.entry.js +0 -187
  775. package/dist/esm/calcite-alert.entry.js +0 -318
  776. package/dist/esm/calcite-avatar.entry.js +0 -146
  777. package/dist/esm/calcite-block.entry.js +0 -210
  778. package/dist/esm/calcite-chip.entry.js +0 -278
  779. package/dist/esm/calcite-color-picker-hex-input.entry.js +0 -270
  780. package/dist/esm/calcite-color-picker-swatch.entry.js +0 -95
  781. package/dist/esm/calcite-combobox-item.entry.js +0 -141
  782. package/dist/esm/calcite-combobox.entry.js +0 -1137
  783. package/dist/esm/calcite-date-picker-day.entry.js +0 -108
  784. package/dist/esm/calcite-date-picker-month-header.entry.js +0 -203
  785. package/dist/esm/calcite-date-picker-month.entry.js +0 -355
  786. package/dist/esm/calcite-date-picker.entry.js +0 -455
  787. package/dist/esm/calcite-dropdown-group.entry.js +0 -81
  788. package/dist/esm/calcite-dropdown-item.entry.js +0 -184
  789. package/dist/esm/calcite-dropdown.entry.js +0 -422
  790. package/dist/esm/calcite-filter.entry.js +0 -178
  791. package/dist/esm/calcite-flow-item.entry.js +0 -194
  792. package/dist/esm/calcite-flow.entry.js +0 -149
  793. package/dist/esm/calcite-graph.entry.js +0 -222
  794. package/dist/esm/calcite-handle.entry.js +0 -202
  795. package/dist/esm/calcite-input-date-picker.entry.js +0 -753
  796. package/dist/esm/calcite-input-message.entry.js +0 -65
  797. package/dist/esm/calcite-input-time-picker-c336a83c.js +0 -1864
  798. package/dist/esm/calcite-input.entry.js +0 -705
  799. package/dist/esm/calcite-list-item.entry.js +0 -452
  800. package/dist/esm/calcite-list.entry.js +0 -556
  801. package/dist/esm/calcite-loader.entry.js +0 -76
  802. package/dist/esm/calcite-navigation-user.entry.js +0 -68
  803. package/dist/esm/calcite-option.entry.js +0 -84
  804. package/dist/esm/calcite-panel.entry.js +0 -266
  805. package/dist/esm/calcite-popover.entry.js +0 -415
  806. package/dist/esm/calcite-progress.entry.js +0 -37
  807. package/dist/esm/calcite-scrim.entry.js +0 -121
  808. package/dist/esm/calcite-segmented-control-item.entry.js +0 -66
  809. package/dist/esm/calcite-segmented-control.entry.js +0 -254
  810. package/dist/esm/calcite-select.entry.js +0 -244
  811. package/dist/esm/calcite-shell-panel.entry.js +0 -410
  812. package/dist/esm/calcite-shell.entry.js +0 -170
  813. package/dist/esm/calcite-slider.entry.js +0 -870
  814. package/dist/esm/calcite-stack.entry.js +0 -70
  815. package/dist/esm/calcite-tab-nav.entry.js +0 -466
  816. package/dist/esm/calcite-tab-title.entry.js +0 -287
  817. package/dist/esm/calcite-tab.entry.js +0 -108
  818. package/dist/esm/calcite-table-cell.entry.js +0 -162
  819. package/dist/esm/calcite-table-header.entry.js +0 -179
  820. package/dist/esm/calcite-tabs.entry.js +0 -174
  821. package/dist/esm/calcite-tree-item.entry.js +0 -294
  822. package/dist/esm/calcite-tree.entry.js +0 -311
  823. package/dist/esm/calcite-value-list-item.entry.js +0 -153
  824. package/dist/esm/calcite-value-list.entry.js +0 -321
  825. package/dist/esm/card-manager.entry.js +0 -103
  826. package/dist/esm/common-17d5568a.js +0 -295
  827. package/dist/esm/conditionalSlot-937057aa.js +0 -51
  828. package/dist/esm/core-a0d3cc0e.js +0 -324
  829. package/dist/esm/create-feature.entry.js +0 -407
  830. package/dist/esm/create-related-feature.entry.js +0 -284
  831. package/dist/esm/cs-be3aa1ae.js +0 -146
  832. package/dist/esm/da-5a58f3f2.js +0 -65
  833. package/dist/esm/date-a63e8e28.js +0 -245
  834. package/dist/esm/de-at-780d22a4.js +0 -89
  835. package/dist/esm/de-ch-5cf4813a.js +0 -89
  836. package/dist/esm/de-d041f0a0.js +0 -90
  837. package/dist/esm/delete-button.entry.js +0 -146
  838. package/dist/esm/dom-1f06a111.js +0 -1141
  839. package/dist/esm/downloadUtils-238038d2.js +0 -4240
  840. package/dist/esm/edit-card.entry.js +0 -224
  841. package/dist/esm/el-7c6af41a.js +0 -65
  842. package/dist/esm/en-au-dd7a3ee4.js +0 -65
  843. package/dist/esm/en-ca-4b21b3cd.js +0 -64
  844. package/dist/esm/en-gb-6ab000e3.js +0 -68
  845. package/dist/esm/es-1fd84773.js +0 -65
  846. package/dist/esm/es-mx-b82367c3.js +0 -64
  847. package/dist/esm/esri-loader-5bf2f164.js +0 -308
  848. package/dist/esm/et-08a0e4a8.js +0 -91
  849. package/dist/esm/feature-details.entry.js +0 -381
  850. package/dist/esm/fi-fe995ecb.js +0 -114
  851. package/dist/esm/filter-e3e2b01f.js +0 -46
  852. package/dist/esm/floating-ui-112e26aa.js +0 -2369
  853. package/dist/esm/floor-filter.entry.js +0 -149
  854. package/dist/esm/focusTrapComponent-fb975f9c.js +0 -1023
  855. package/dist/esm/form-cd789357.js +0 -372
  856. package/dist/esm/fr-aed06af0.js +0 -67
  857. package/dist/esm/fr-ch-a9d10a0f.js +0 -65
  858. package/dist/esm/he-a0a1731e.js +0 -104
  859. package/dist/esm/helpers-457bbf66.js +0 -840
  860. package/dist/esm/hi-ae48041a.js +0 -64
  861. package/dist/esm/hr-2ae1f998.js +0 -79
  862. package/dist/esm/html2canvas-88d6eded.js +0 -7850
  863. package/dist/esm/hu-2615f261.js +0 -87
  864. package/dist/esm/id-598e1355.js +0 -65
  865. package/dist/esm/index-0eecd45f.js +0 -2998
  866. package/dist/esm/index-8b8db9ba.js +0 -1970
  867. package/dist/esm/index-a879e1d6.js +0 -41699
  868. package/dist/esm/index-b1418e2a.js +0 -199
  869. package/dist/esm/index.es-e2310dbf.js +0 -11591
  870. package/dist/esm/info-card.entry.js +0 -363
  871. package/dist/esm/instant-apps-ckeditor-wrapper.entry.js +0 -121
  872. package/dist/esm/instant-apps-filter-list.entry.js +0 -1063
  873. package/dist/esm/instant-apps-interactive-legend-count.entry.js +0 -100
  874. package/dist/esm/instant-apps-interactive-legend-group-legend-element.entry.js +0 -52
  875. package/dist/esm/instant-apps-interactive-legend-layer-element-caption.entry.js +0 -51
  876. package/dist/esm/instant-apps-interactive-legend-layer-element.entry.js +0 -53
  877. package/dist/esm/instant-apps-interactive-legend-legend-element-caption.entry.js +0 -100
  878. package/dist/esm/instant-apps-interactive-legend-legend-element.entry.js +0 -61
  879. package/dist/esm/instant-apps-interactive-legend-relationship.entry.js +0 -548
  880. package/dist/esm/instant-apps-language-translator-item.entry.js +0 -380
  881. package/dist/esm/instant-apps-language-translator-search.entry.js +0 -101
  882. package/dist/esm/instant-apps-measurement-tool.entry.js +0 -135
  883. package/dist/esm/instant-apps-social-share.entry.js +0 -516
  884. package/dist/esm/interactive-179483f5.js +0 -149
  885. package/dist/esm/it-56a44209.js +0 -65
  886. package/dist/esm/it-ch-8fd9abf4.js +0 -65
  887. package/dist/esm/ja-66007f4d.js +0 -71
  888. package/dist/esm/json-editor.entry.js +0 -402
  889. package/dist/esm/key-15222297.js +0 -44
  890. package/dist/esm/ko-2e3b9aa8.js +0 -71
  891. package/dist/esm/label-c34ec0cf.js +0 -179
  892. package/dist/esm/languageSwitcher-35db9d61.js +0 -57
  893. package/dist/esm/languageSwitcher-b665499d.js +0 -57
  894. package/dist/esm/languageUtil-83ed2742.js +0 -87
  895. package/dist/esm/layer-list.entry.js +0 -193
  896. package/dist/esm/layer-table.entry.js +0 -1558
  897. package/dist/esm/loadModules-18662c29.js +0 -28
  898. package/dist/esm/loadModules-4d6cf31f.js +0 -21
  899. package/dist/esm/loadModules-9c062d08.js +0 -21
  900. package/dist/esm/loadable-5f2ac40f.js +0 -92
  901. package/dist/esm/locale-1b4d548e.js +0 -572
  902. package/dist/esm/locale-448ea937.js +0 -148
  903. package/dist/esm/locale-f1dd2532.js +0 -86
  904. package/dist/esm/lodash-98e4b7d0.js +0 -18025
  905. package/dist/esm/lt-2a6a8e94.js +0 -96
  906. package/dist/esm/lv-8b3c01bb.js +0 -65
  907. package/dist/esm/map-card.entry.js +0 -227
  908. package/dist/esm/map-draw-tools.entry.js +0 -354
  909. package/dist/esm/map-fullscreen.entry.js +0 -112
  910. package/dist/esm/map-layer-picker.entry.js +0 -342
  911. package/dist/esm/map-legend.entry.js +0 -105
  912. package/dist/esm/map-picker.entry.js +0 -170
  913. package/dist/esm/map-search.entry.js +0 -180
  914. package/dist/esm/map-select-tools.entry.js +0 -794
  915. package/dist/esm/map-tools.entry.js +0 -371
  916. package/dist/esm/mapViewUtils-d4946a31.js +0 -284
  917. package/dist/esm/mk-428c21bd.js +0 -65
  918. package/dist/esm/mode-e7b9fabb.js +0 -25
  919. package/dist/esm/nb-67929ffe.js +0 -66
  920. package/dist/esm/nl-954b9062.js +0 -66
  921. package/dist/esm/observers-81ed4977.js +0 -56
  922. package/dist/esm/openCloseComponent-739f40b7.js +0 -138
  923. package/dist/esm/parser-a682fcdf.js +0 -1646
  924. package/dist/esm/pdf-download.entry.js +0 -355
  925. package/dist/esm/pl-eba736c7.js +0 -113
  926. package/dist/esm/popupUtils-c60ca656.js +0 -109
  927. package/dist/esm/pt-br-ed6f0302.js +0 -64
  928. package/dist/esm/pt-e6518f49.js +0 -66
  929. package/dist/esm/publicNotificationStore-59732134.js +0 -45
  930. package/dist/esm/purify-ed095e80.js +0 -1717
  931. package/dist/esm/queryUtils-2ee0f383.js +0 -274
  932. package/dist/esm/refine-selection.entry.js +0 -408
  933. package/dist/esm/resources-092fef68.js +0 -106
  934. package/dist/esm/resources-66978311.js +0 -26
  935. package/dist/esm/resources-be0262db.js +0 -45
  936. package/dist/esm/resources-be5a6557.js +0 -26
  937. package/dist/esm/resources-ec5198da.js +0 -49
  938. package/dist/esm/ro-cb3c8995.js +0 -65
  939. package/dist/esm/ru-dd440634.js +0 -125
  940. package/dist/esm/shadow-css-15628d22.js +0 -361
  941. package/dist/esm/shared-list-render-a787615a.js +0 -348
  942. package/dist/esm/sk-a8db2217.js +0 -147
  943. package/dist/esm/sl-f798a76e.js +0 -167
  944. package/dist/esm/solution-contents.entry.js +0 -80
  945. package/dist/esm/solution-item-details.entry.js +0 -195
  946. package/dist/esm/solution-item-sharing.entry.js +0 -135
  947. package/dist/esm/solution-item.entry.js +0 -102
  948. package/dist/esm/solution-organization-variables.entry.js +0 -91
  949. package/dist/esm/solution-resource-item.entry.js +0 -280
  950. package/dist/esm/solution-spatial-ref.entry.js +0 -164
  951. package/dist/esm/solution-store-5a6cf181.js +0 -585
  952. package/dist/esm/solution-template-data.entry.js +0 -115
  953. package/dist/esm/solution-variables.entry.js +0 -103
  954. package/dist/esm/sortableComponent-ee74aef6.js +0 -3440
  955. package/dist/esm/sr-342a663a.js +0 -100
  956. package/dist/esm/store-b2b2565a.js +0 -87
  957. package/dist/esm/sv-84670dbd.js +0 -70
  958. package/dist/esm/t9n-2df2d559.js +0 -98
  959. package/dist/esm/templates-335c6b6f.js +0 -436
  960. package/dist/esm/th-a9c8533d.js +0 -64
  961. package/dist/esm/time-d753f161.js +0 -274
  962. package/dist/esm/tr-c2cc2873.js +0 -65
  963. package/dist/esm/uk-906a1eb0.js +0 -103
  964. package/dist/esm/utils-2c8108af.js +0 -133
  965. package/dist/esm/utils-580e77c3.js +0 -208
  966. package/dist/esm/utils-9aa96070.js +0 -61
  967. package/dist/esm/utils-ab48a0d6.js +0 -47
  968. package/dist/esm/utils-f96adae4.js +0 -57
  969. package/dist/esm/vi-7b43fafd.js +0 -69
  970. package/dist/esm/zh-cn-c19f2858.js +0 -93
  971. package/dist/esm/zh-hk-f212412d.js +0 -70
  972. package/dist/esm/zh-tw-be3a4302.js +0 -91
  973. package/dist/solutions-components/ExpandToggle-cb895a2c.js +0 -110
  974. package/dist/solutions-components/FloatingArrow-636ce2ee.js +0 -48
  975. package/dist/solutions-components/Heading-baf4a991.js +0 -22
  976. package/dist/solutions-components/InitiativeUiSchemaEdit-8ddacfe8.js +0 -26
  977. package/dist/solutions-components/ProjectUiSchemaCreate-9fb110ea.js +0 -124
  978. package/dist/solutions-components/ProjectUiSchemaEdit-fbfdf6e4.js +0 -176
  979. package/dist/solutions-components/Validation-b3331c79.js +0 -18
  980. package/dist/solutions-components/_commonjsHelpers-9cd17aec.js +0 -39
  981. package/dist/solutions-components/app-globals-97f5814f.js +0 -67
  982. package/dist/solutions-components/ar-6236d364.js +0 -103
  983. package/dist/solutions-components/arcgis-login.entry.js +0 -56
  984. package/dist/solutions-components/array-2604a55d.js +0 -15
  985. package/dist/solutions-components/basemap-gallery.entry.js +0 -117
  986. package/dist/solutions-components/bg-498492ff.js +0 -81
  987. package/dist/solutions-components/breakpoints-3afa0fd9.js +0 -15
  988. package/dist/solutions-components/browser-920df963.js +0 -26
  989. package/dist/solutions-components/bs-60412b06.js +0 -50
  990. package/dist/solutions-components/buffer-tools.entry.js +0 -253
  991. package/dist/solutions-components/ca-7844b785.js +0 -70
  992. package/dist/solutions-components/calcite-accordion-item.entry.js +0 -176
  993. package/dist/solutions-components/calcite-accordion.entry.js +0 -81
  994. package/dist/solutions-components/calcite-action-bar.entry.js +0 -252
  995. package/dist/solutions-components/calcite-action-group.entry.js +0 -112
  996. package/dist/solutions-components/calcite-action-menu.entry.js +0 -288
  997. package/dist/solutions-components/calcite-action-pad.entry.js +0 -165
  998. package/dist/solutions-components/calcite-action.entry.js +0 -187
  999. package/dist/solutions-components/calcite-alert.entry.js +0 -318
  1000. package/dist/solutions-components/calcite-avatar.entry.js +0 -146
  1001. package/dist/solutions-components/calcite-block-section.entry.js +0 -162
  1002. package/dist/solutions-components/calcite-block.entry.js +0 -210
  1003. package/dist/solutions-components/calcite-button.entry.js +0 -230
  1004. package/dist/solutions-components/calcite-card-group.entry.js +0 -164
  1005. package/dist/solutions-components/calcite-card.entry.js +0 -227
  1006. package/dist/solutions-components/calcite-carousel-item.entry.js +0 -41
  1007. package/dist/solutions-components/calcite-carousel.entry.js +0 -462
  1008. package/dist/solutions-components/calcite-checkbox.entry.js +0 -147
  1009. package/dist/solutions-components/calcite-chip-group.entry.js +0 -197
  1010. package/dist/solutions-components/calcite-chip.entry.js +0 -278
  1011. package/dist/solutions-components/calcite-color-picker-hex-input.entry.js +0 -270
  1012. package/dist/solutions-components/calcite-color-picker-swatch.entry.js +0 -95
  1013. package/dist/solutions-components/calcite-color-picker.entry.js +0 -923
  1014. package/dist/solutions-components/calcite-combobox-item-group.entry.js +0 -56
  1015. package/dist/solutions-components/calcite-combobox-item.entry.js +0 -141
  1016. package/dist/solutions-components/calcite-combobox.entry.js +0 -1137
  1017. package/dist/solutions-components/calcite-date-picker-day.entry.js +0 -108
  1018. package/dist/solutions-components/calcite-date-picker-month-header.entry.js +0 -203
  1019. package/dist/solutions-components/calcite-date-picker-month.entry.js +0 -355
  1020. package/dist/solutions-components/calcite-date-picker.entry.js +0 -455
  1021. package/dist/solutions-components/calcite-dropdown-group.entry.js +0 -81
  1022. package/dist/solutions-components/calcite-dropdown-item.entry.js +0 -184
  1023. package/dist/solutions-components/calcite-dropdown.entry.js +0 -422
  1024. package/dist/solutions-components/calcite-fab.entry.js +0 -90
  1025. package/dist/solutions-components/calcite-filter.entry.js +0 -178
  1026. package/dist/solutions-components/calcite-flow-item.entry.js +0 -194
  1027. package/dist/solutions-components/calcite-flow.entry.js +0 -149
  1028. package/dist/solutions-components/calcite-graph.entry.js +0 -222
  1029. package/dist/solutions-components/calcite-handle.entry.js +0 -202
  1030. package/dist/solutions-components/calcite-icon.entry.js +0 -179
  1031. package/dist/solutions-components/calcite-inline-editable.entry.js +0 -253
  1032. package/dist/solutions-components/calcite-input-date-picker.entry.js +0 -753
  1033. package/dist/solutions-components/calcite-input-message.entry.js +0 -65
  1034. package/dist/solutions-components/calcite-input-number.entry.js +0 -632
  1035. package/dist/solutions-components/calcite-input-text.entry.js +0 -369
  1036. package/dist/solutions-components/calcite-input-time-picker-c336a83c.js +0 -1864
  1037. package/dist/solutions-components/calcite-input-time-picker.entry.js +0 -25
  1038. package/dist/solutions-components/calcite-input-time-zone.entry.js +0 -373
  1039. package/dist/solutions-components/calcite-input.entry.js +0 -705
  1040. package/dist/solutions-components/calcite-label.entry.js +0 -67
  1041. package/dist/solutions-components/calcite-link.entry.js +0 -108
  1042. package/dist/solutions-components/calcite-list-item-group.entry.js +0 -66
  1043. package/dist/solutions-components/calcite-list-item.entry.js +0 -452
  1044. package/dist/solutions-components/calcite-list.entry.js +0 -556
  1045. package/dist/solutions-components/calcite-loader.entry.js +0 -76
  1046. package/dist/solutions-components/calcite-menu-item.entry.js +0 -284
  1047. package/dist/solutions-components/calcite-menu.entry.js +0 -180
  1048. package/dist/solutions-components/calcite-meter.entry.js +0 -332
  1049. package/dist/solutions-components/calcite-modal.entry.js +0 -394
  1050. package/dist/solutions-components/calcite-navigation-logo.entry.js +0 -92
  1051. package/dist/solutions-components/calcite-navigation-user.entry.js +0 -68
  1052. package/dist/solutions-components/calcite-navigation.entry.js +0 -166
  1053. package/dist/solutions-components/calcite-notice.entry.js +0 -163
  1054. package/dist/solutions-components/calcite-option-group.entry.js +0 -35
  1055. package/dist/solutions-components/calcite-option.entry.js +0 -84
  1056. package/dist/solutions-components/calcite-pagination.entry.js +0 -580
  1057. package/dist/solutions-components/calcite-panel.entry.js +0 -266
  1058. package/dist/solutions-components/calcite-pick-list-group.entry.js +0 -57
  1059. package/dist/solutions-components/calcite-pick-list-item.entry.js +0 -193
  1060. package/dist/solutions-components/calcite-pick-list.entry.js +0 -142
  1061. package/dist/solutions-components/calcite-popover.entry.js +0 -415
  1062. package/dist/solutions-components/calcite-progress.entry.js +0 -37
  1063. package/dist/solutions-components/calcite-radio-button-group.entry.js +0 -141
  1064. package/dist/solutions-components/calcite-radio-button.entry.js +0 -318
  1065. package/dist/solutions-components/calcite-rating.entry.js +0 -261
  1066. package/dist/solutions-components/calcite-scrim.entry.js +0 -121
  1067. package/dist/solutions-components/calcite-segmented-control-item.entry.js +0 -66
  1068. package/dist/solutions-components/calcite-segmented-control.entry.js +0 -254
  1069. package/dist/solutions-components/calcite-select.entry.js +0 -244
  1070. package/dist/solutions-components/calcite-sheet.entry.js +0 -223
  1071. package/dist/solutions-components/calcite-shell-center-row.entry.js +0 -66
  1072. package/dist/solutions-components/calcite-shell-panel.entry.js +0 -410
  1073. package/dist/solutions-components/calcite-shell.entry.js +0 -170
  1074. package/dist/solutions-components/calcite-slider.entry.js +0 -870
  1075. package/dist/solutions-components/calcite-sortable-list.entry.js +0 -166
  1076. package/dist/solutions-components/calcite-split-button.entry.js +0 -112
  1077. package/dist/solutions-components/calcite-stack.entry.js +0 -70
  1078. package/dist/solutions-components/calcite-stepper-item.entry.js +0 -237
  1079. package/dist/solutions-components/calcite-stepper.entry.js +0 -336
  1080. package/dist/solutions-components/calcite-switch.entry.js +0 -113
  1081. package/dist/solutions-components/calcite-tab-nav.entry.js +0 -466
  1082. package/dist/solutions-components/calcite-tab-title.entry.js +0 -287
  1083. package/dist/solutions-components/calcite-tab.entry.js +0 -108
  1084. package/dist/solutions-components/calcite-table-cell.entry.js +0 -162
  1085. package/dist/solutions-components/calcite-table-header.entry.js +0 -179
  1086. package/dist/solutions-components/calcite-table-row.entry.js +0 -259
  1087. package/dist/solutions-components/calcite-table.entry.js +0 -323
  1088. package/dist/solutions-components/calcite-tabs.entry.js +0 -174
  1089. package/dist/solutions-components/calcite-text-area.entry.js +0 -302
  1090. package/dist/solutions-components/calcite-tile-group.entry.js +0 -170
  1091. package/dist/solutions-components/calcite-tile-select-group.entry.js +0 -39
  1092. package/dist/solutions-components/calcite-tile-select.entry.js +0 -225
  1093. package/dist/solutions-components/calcite-tile.entry.js +0 -197
  1094. package/dist/solutions-components/calcite-time-picker.entry.js +0 -839
  1095. package/dist/solutions-components/calcite-tip-group.entry.js +0 -21
  1096. package/dist/solutions-components/calcite-tip-manager.entry.js +0 -227
  1097. package/dist/solutions-components/calcite-tip.entry.js +0 -126
  1098. package/dist/solutions-components/calcite-tooltip.entry.js +0 -431
  1099. package/dist/solutions-components/calcite-tree-item.entry.js +0 -294
  1100. package/dist/solutions-components/calcite-tree.entry.js +0 -311
  1101. package/dist/solutions-components/calcite-value-list-item.entry.js +0 -153
  1102. package/dist/solutions-components/calcite-value-list.entry.js +0 -321
  1103. package/dist/solutions-components/card-manager.entry.js +0 -103
  1104. package/dist/solutions-components/common-17d5568a.js +0 -295
  1105. package/dist/solutions-components/component-960ddabf.js +0 -30
  1106. package/dist/solutions-components/conditionalSlot-937057aa.js +0 -51
  1107. package/dist/solutions-components/consent-manager.entry.js +0 -1099
  1108. package/dist/solutions-components/core-a0d3cc0e.js +0 -324
  1109. package/dist/solutions-components/create-feature.entry.js +0 -407
  1110. package/dist/solutions-components/create-related-feature.entry.js +0 -284
  1111. package/dist/solutions-components/crowdsource-manager.entry.js +0 -539
  1112. package/dist/solutions-components/crowdsource-reporter.entry.js +0 -913
  1113. package/dist/solutions-components/cs-be3aa1ae.js +0 -146
  1114. package/dist/solutions-components/da-5a58f3f2.js +0 -65
  1115. package/dist/solutions-components/date-a63e8e28.js +0 -245
  1116. package/dist/solutions-components/de-at-780d22a4.js +0 -89
  1117. package/dist/solutions-components/de-ch-5cf4813a.js +0 -89
  1118. package/dist/solutions-components/de-d041f0a0.js +0 -90
  1119. package/dist/solutions-components/deduct-calculator.entry.js +0 -101
  1120. package/dist/solutions-components/delete-button.entry.js +0 -146
  1121. package/dist/solutions-components/dom-1f06a111.js +0 -1141
  1122. package/dist/solutions-components/downloadUtils-238038d2.js +0 -4240
  1123. package/dist/solutions-components/edit-card.entry.js +0 -224
  1124. package/dist/solutions-components/el-7c6af41a.js +0 -65
  1125. package/dist/solutions-components/en-au-dd7a3ee4.js +0 -65
  1126. package/dist/solutions-components/en-ca-4b21b3cd.js +0 -64
  1127. package/dist/solutions-components/en-gb-6ab000e3.js +0 -68
  1128. package/dist/solutions-components/es-1fd84773.js +0 -65
  1129. package/dist/solutions-components/es-mx-b82367c3.js +0 -64
  1130. package/dist/solutions-components/esri-loader-5bf2f164.js +0 -308
  1131. package/dist/solutions-components/et-08a0e4a8.js +0 -91
  1132. package/dist/solutions-components/feature-comments.entry.js +0 -56
  1133. package/dist/solutions-components/feature-details.entry.js +0 -381
  1134. package/dist/solutions-components/feature-form-flow-item.entry.js +0 -56
  1135. package/dist/solutions-components/feature-list.entry.js +0 -301
  1136. package/dist/solutions-components/features-flow-item.entry.js +0 -56
  1137. package/dist/solutions-components/fi-fe995ecb.js +0 -114
  1138. package/dist/solutions-components/filter-e3e2b01f.js +0 -46
  1139. package/dist/solutions-components/floating-ui-112e26aa.js +0 -2369
  1140. package/dist/solutions-components/floor-filter.entry.js +0 -149
  1141. package/dist/solutions-components/focusTrapComponent-fb975f9c.js +0 -1023
  1142. package/dist/solutions-components/form-cd789357.js +0 -372
  1143. package/dist/solutions-components/fr-aed06af0.js +0 -67
  1144. package/dist/solutions-components/fr-ch-a9d10a0f.js +0 -65
  1145. package/dist/solutions-components/guid-f05d01d5.js +0 -24
  1146. package/dist/solutions-components/he-a0a1731e.js +0 -104
  1147. package/dist/solutions-components/helpers-457bbf66.js +0 -840
  1148. package/dist/solutions-components/hi-ae48041a.js +0 -64
  1149. package/dist/solutions-components/hr-2ae1f998.js +0 -79
  1150. package/dist/solutions-components/html2canvas-88d6eded.js +0 -7850
  1151. package/dist/solutions-components/hu-2615f261.js +0 -87
  1152. package/dist/solutions-components/id-598e1355.js +0 -65
  1153. package/dist/solutions-components/index-0eecd45f.js +0 -2998
  1154. package/dist/solutions-components/index-5110a27a.js +0 -71
  1155. package/dist/solutions-components/index-8b8db9ba.js +0 -1970
  1156. package/dist/solutions-components/index-a1e91462.js +0 -2105
  1157. package/dist/solutions-components/index-a879e1d6.js +0 -41699
  1158. package/dist/solutions-components/index-b1418e2a.js +0 -199
  1159. package/dist/solutions-components/index-d8ff08ed.js +0 -204
  1160. package/dist/solutions-components/index.es-e2310dbf.js +0 -11591
  1161. package/dist/solutions-components/info-card.entry.js +0 -363
  1162. package/dist/solutions-components/input-96cf61a2.js +0 -58
  1163. package/dist/solutions-components/instant-apps-ckeditor-wrapper.entry.js +0 -121
  1164. package/dist/solutions-components/instant-apps-control-panel.entry.js +0 -92
  1165. package/dist/solutions-components/instant-apps-create.entry.js +0 -264
  1166. package/dist/solutions-components/instant-apps-export-views.entry.js +0 -722
  1167. package/dist/solutions-components/instant-apps-export.entry.js +0 -903
  1168. package/dist/solutions-components/instant-apps-filter-list.entry.js +0 -1063
  1169. package/dist/solutions-components/instant-apps-header.entry.js +0 -125
  1170. package/dist/solutions-components/instant-apps-interactive-legend-classic.entry.js +0 -1616
  1171. package/dist/solutions-components/instant-apps-interactive-legend-count.entry.js +0 -100
  1172. package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element-caption.entry.js +0 -53
  1173. package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element.entry.js +0 -52
  1174. package/dist/solutions-components/instant-apps-interactive-legend-layer-element-caption.entry.js +0 -51
  1175. package/dist/solutions-components/instant-apps-interactive-legend-layer-element.entry.js +0 -53
  1176. package/dist/solutions-components/instant-apps-interactive-legend-legend-element-caption.entry.js +0 -100
  1177. package/dist/solutions-components/instant-apps-interactive-legend-legend-element.entry.js +0 -61
  1178. package/dist/solutions-components/instant-apps-interactive-legend-relationship.entry.js +0 -548
  1179. package/dist/solutions-components/instant-apps-interactive-legend.entry.js +0 -112
  1180. package/dist/solutions-components/instant-apps-keyboard-shortcuts.entry.js +0 -139
  1181. package/dist/solutions-components/instant-apps-landing-page.entry.js +0 -150
  1182. package/dist/solutions-components/instant-apps-language-switcher.entry.js +0 -173
  1183. package/dist/solutions-components/instant-apps-language-translator-item.entry.js +0 -380
  1184. package/dist/solutions-components/instant-apps-language-translator-search.entry.js +0 -101
  1185. package/dist/solutions-components/instant-apps-language-translator.entry.js +0 -286
  1186. package/dist/solutions-components/instant-apps-measurement-tool.entry.js +0 -135
  1187. package/dist/solutions-components/instant-apps-measurement.entry.js +0 -66
  1188. package/dist/solutions-components/instant-apps-popover.entry.js +0 -74
  1189. package/dist/solutions-components/instant-apps-popovers.entry.js +0 -88
  1190. package/dist/solutions-components/instant-apps-scoreboard.entry.js +0 -463
  1191. package/dist/solutions-components/instant-apps-sign-in.entry.js +0 -164
  1192. package/dist/solutions-components/instant-apps-social-share.entry.js +0 -516
  1193. package/dist/solutions-components/instant-apps-splash.entry.js +0 -144
  1194. package/dist/solutions-components/interactive-179483f5.js +0 -149
  1195. package/dist/solutions-components/interfaces-586e863c.js +0 -80
  1196. package/dist/solutions-components/it-56a44209.js +0 -65
  1197. package/dist/solutions-components/it-ch-8fd9abf4.js +0 -65
  1198. package/dist/solutions-components/ja-66007f4d.js +0 -71
  1199. package/dist/solutions-components/json-editor.entry.js +0 -402
  1200. package/dist/solutions-components/key-15222297.js +0 -44
  1201. package/dist/solutions-components/ko-2e3b9aa8.js +0 -71
  1202. package/dist/solutions-components/label-c34ec0cf.js +0 -179
  1203. package/dist/solutions-components/languageUtil-83ed2742.js +0 -87
  1204. package/dist/solutions-components/layer-list.entry.js +0 -193
  1205. package/dist/solutions-components/layer-table.entry.js +0 -1558
  1206. package/dist/solutions-components/layout-manager.entry.js +0 -91
  1207. package/dist/solutions-components/list-flow-item.entry.js +0 -56
  1208. package/dist/solutions-components/loadModules-18662c29.js +0 -28
  1209. package/dist/solutions-components/loadable-5f2ac40f.js +0 -92
  1210. package/dist/solutions-components/locale-1b4d548e.js +0 -572
  1211. package/dist/solutions-components/locale-448ea937.js +0 -148
  1212. package/dist/solutions-components/locale-f1dd2532.js +0 -86
  1213. package/dist/solutions-components/location-flow-item.entry.js +0 -56
  1214. package/dist/solutions-components/lodash-98e4b7d0.js +0 -18025
  1215. package/dist/solutions-components/lt-2a6a8e94.js +0 -96
  1216. package/dist/solutions-components/lv-8b3c01bb.js +0 -65
  1217. package/dist/solutions-components/map-card.entry.js +0 -227
  1218. package/dist/solutions-components/map-draw-tools.entry.js +0 -354
  1219. package/dist/solutions-components/map-fullscreen.entry.js +0 -112
  1220. package/dist/solutions-components/map-layer-picker.entry.js +0 -342
  1221. package/dist/solutions-components/map-legend.entry.js +0 -105
  1222. package/dist/solutions-components/map-picker.entry.js +0 -170
  1223. package/dist/solutions-components/map-search.entry.js +0 -180
  1224. package/dist/solutions-components/map-select-tools.entry.js +0 -794
  1225. package/dist/solutions-components/map-tools.entry.js +0 -371
  1226. package/dist/solutions-components/mapViewUtils-d4946a31.js +0 -284
  1227. package/dist/solutions-components/math-81650811.js +0 -54
  1228. package/dist/solutions-components/mk-428c21bd.js +0 -65
  1229. package/dist/solutions-components/mode-e7b9fabb.js +0 -25
  1230. package/dist/solutions-components/nb-67929ffe.js +0 -66
  1231. package/dist/solutions-components/nl-954b9062.js +0 -66
  1232. package/dist/solutions-components/observers-81ed4977.js +0 -56
  1233. package/dist/solutions-components/openCloseComponent-739f40b7.js +0 -138
  1234. package/dist/solutions-components/p-1a12761f.entry.js +0 -6
  1235. package/dist/solutions-components/parser-a682fcdf.js +0 -1646
  1236. package/dist/solutions-components/pci-calculator.entry.js +0 -113
  1237. package/dist/solutions-components/pciUtils-986ddad9.js +0 -844
  1238. package/dist/solutions-components/pdf-download.entry.js +0 -355
  1239. package/dist/solutions-components/pl-eba736c7.js +0 -113
  1240. package/dist/solutions-components/popupUtils-c60ca656.js +0 -109
  1241. package/dist/solutions-components/pt-br-ed6f0302.js +0 -64
  1242. package/dist/solutions-components/pt-e6518f49.js +0 -66
  1243. package/dist/solutions-components/public-notification.entry.js +0 -1005
  1244. package/dist/solutions-components/publicNotificationStore-59732134.js +0 -45
  1245. package/dist/solutions-components/purify-ed095e80.js +0 -1717
  1246. package/dist/solutions-components/queryUtils-2ee0f383.js +0 -274
  1247. package/dist/solutions-components/refine-results-flow-item.entry.js +0 -56
  1248. package/dist/solutions-components/refine-selection.entry.js +0 -408
  1249. package/dist/solutions-components/resources-092fef68.js +0 -106
  1250. package/dist/solutions-components/resources-16800cce.js +0 -24
  1251. package/dist/solutions-components/resources-3587e9a5.js +0 -20
  1252. package/dist/solutions-components/resources-66978311.js +0 -26
  1253. package/dist/solutions-components/resources-7c4efc5e.js +0 -22
  1254. package/dist/solutions-components/resources-7c61fbec.js +0 -62
  1255. package/dist/solutions-components/resources-7d202c09.js +0 -24
  1256. package/dist/solutions-components/resources-ae36eaff.js +0 -19
  1257. package/dist/solutions-components/resources-be0262db.js +0 -45
  1258. package/dist/solutions-components/resources-be5a6557.js +0 -26
  1259. package/dist/solutions-components/resources-dd68a4aa.js +0 -35
  1260. package/dist/solutions-components/resources-ec5198da.js +0 -49
  1261. package/dist/solutions-components/ro-cb3c8995.js +0 -65
  1262. package/dist/solutions-components/ru-dd440634.js +0 -125
  1263. package/dist/solutions-components/shadow-css-15628d22.js +0 -361
  1264. package/dist/solutions-components/share-item.entry.js +0 -56
  1265. package/dist/solutions-components/shared-list-render-a787615a.js +0 -348
  1266. package/dist/solutions-components/sk-a8db2217.js +0 -147
  1267. package/dist/solutions-components/sl-f798a76e.js +0 -167
  1268. package/dist/solutions-components/solution-configuration.entry.js +0 -565
  1269. package/dist/solutions-components/solution-contents.entry.js +0 -80
  1270. package/dist/solutions-components/solution-item-details.entry.js +0 -195
  1271. package/dist/solutions-components/solution-item-icon.entry.js +0 -323
  1272. package/dist/solutions-components/solution-item-sharing.entry.js +0 -135
  1273. package/dist/solutions-components/solution-item.entry.js +0 -102
  1274. package/dist/solutions-components/solution-organization-variables.entry.js +0 -91
  1275. package/dist/solutions-components/solution-resource-item.entry.js +0 -280
  1276. package/dist/solutions-components/solution-spatial-ref.entry.js +0 -164
  1277. package/dist/solutions-components/solution-store-5a6cf181.js +0 -585
  1278. package/dist/solutions-components/solution-template-data.entry.js +0 -115
  1279. package/dist/solutions-components/solution-variables.entry.js +0 -103
  1280. package/dist/solutions-components/sortableComponent-ee74aef6.js +0 -3440
  1281. package/dist/solutions-components/spatial-ref.entry.js +0 -21296
  1282. package/dist/solutions-components/sr-342a663a.js +0 -100
  1283. package/dist/solutions-components/store-b2b2565a.js +0 -87
  1284. package/dist/solutions-components/store-manager.entry.js +0 -75
  1285. package/dist/solutions-components/styles-b3492d9f.js +0 -11
  1286. package/dist/solutions-components/sv-84670dbd.js +0 -70
  1287. package/dist/solutions-components/t9n-2df2d559.js +0 -98
  1288. package/dist/solutions-components/templates-335c6b6f.js +0 -436
  1289. package/dist/solutions-components/th-a9c8533d.js +0 -64
  1290. package/dist/solutions-components/time-d753f161.js +0 -274
  1291. package/dist/solutions-components/tr-c2cc2873.js +0 -65
  1292. package/dist/solutions-components/uk-906a1eb0.js +0 -103
  1293. package/dist/solutions-components/utils-2c8108af.js +0 -133
  1294. package/dist/solutions-components/utils-580e77c3.js +0 -208
  1295. package/dist/solutions-components/utils-9aa96070.js +0 -61
  1296. package/dist/solutions-components/utils-ab48a0d6.js +0 -47
  1297. package/dist/solutions-components/utils-f96adae4.js +0 -57
  1298. package/dist/solutions-components/vi-7b43fafd.js +0 -69
  1299. package/dist/solutions-components/zh-cn-c19f2858.js +0 -93
  1300. package/dist/solutions-components/zh-hk-f212412d.js +0 -70
  1301. package/dist/solutions-components/zh-tw-be3a4302.js +0 -91
  1302. /package/dist/cjs/{esri-loader-a56cbcbe.js → esri-loader-08dc41bd.js} +0 -0
  1303. /package/dist/esm/{esri-loader-781d738a.js → esri-loader-c6842c6b.js} +0 -0
  1304. /package/dist/solutions-components/{p-6a68306c.js → p-0a24ad5f.js} +0 -0
@@ -1,3038 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- 'use strict';
7
-
8
- function _interopNamespace(e) {
9
- if (e && e.__esModule) return e;
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () {
18
- return e[k];
19
- }
20
- });
21
- }
22
- });
23
- }
24
- n['default'] = e;
25
- return Object.freeze(n);
26
- }
27
-
28
- const NAMESPACE = 'solutions-components';
29
- const BUILD = /* solutions-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: true, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: true, isTesting: true, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: true, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
30
- const Env = /* solutions-components */ {};
31
-
32
- /*
33
- Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
34
- */
35
- var __defProp = Object.defineProperty;
36
- var __export = (target, all) => {
37
- for (var name in all)
38
- __defProp(target, name, { get: all[name], enumerable: true });
39
- };
40
- var Build = {
41
- isDev: BUILD.isDev ? true : false,
42
- isBrowser: true,
43
- isServer: false,
44
- isTesting: BUILD.isTesting ? true : false
45
- };
46
- var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
47
- var getHostRef = (ref) => hostRefs.get(ref);
48
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
49
- var registerHost = (hostElement, cmpMeta) => {
50
- const hostRef = {
51
- $flags$: 0,
52
- $hostElement$: hostElement,
53
- $cmpMeta$: cmpMeta,
54
- $instanceValues$: /* @__PURE__ */ new Map()
55
- };
56
- if (BUILD.isDev) {
57
- hostRef.$renderCount$ = 0;
58
- }
59
- if (BUILD.method && BUILD.lazyLoad) {
60
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
61
- }
62
- if (BUILD.asyncLoading) {
63
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
64
- hostElement["s-p"] = [];
65
- hostElement["s-rc"] = [];
66
- }
67
- return hostRefs.set(hostElement, hostRef);
68
- };
69
- var isMemberInElement = (elm, memberName) => memberName in elm;
70
- var customError;
71
- var consoleError = (e, el) => (customError || console.error)(e, el);
72
- var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
73
- "%cstencil",
74
- "color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
75
- ];
76
- var consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m);
77
- var consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m);
78
- var consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m);
79
- var setErrorHandler = (handler) => customError = handler;
80
-
81
- // src/client/client-load-module.ts
82
- var cmpModules = /* @__PURE__ */ new Map();
83
- var MODULE_IMPORT_PREFIX = "./";
84
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
85
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
86
- const bundleId = cmpMeta.$lazyBundleId$;
87
- if (BUILD.isDev && typeof bundleId !== "string") {
88
- consoleDevError(
89
- `Trying to lazily load component <${cmpMeta.$tagName$}> with style mode "${hostRef.$modeName$}", but it does not exist.`
90
- );
91
- return void 0;
92
- } else if (!bundleId) {
93
- return void 0;
94
- }
95
- const module = !BUILD.hotModuleReplacement ? cmpModules.get(bundleId) : false;
96
- if (module) {
97
- return module[exportName];
98
- }
99
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
100
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
101
- /* @vite-ignore */
102
- /* webpackInclude: /\.entry\.js$/ */
103
- /* webpackExclude: /\.system\.entry\.js$/ */
104
- /* webpackMode: "lazy" */
105
- `./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? "?s-hmr=" + hmrVersionId : ""}`
106
- )); }).then((importedModule) => {
107
- if (!BUILD.hotModuleReplacement) {
108
- cmpModules.set(bundleId, importedModule);
109
- }
110
- return importedModule[exportName];
111
- }, consoleError);
112
- };
113
-
114
- // src/client/client-style.ts
115
- var styles = /* @__PURE__ */ new Map();
116
- var modeResolutionChain = [];
117
-
118
- // src/runtime/runtime-constants.ts
119
- var CONTENT_REF_ID = "r";
120
- var ORG_LOCATION_ID = "o";
121
- var SLOT_NODE_ID = "s";
122
- var TEXT_NODE_ID = "t";
123
- var HYDRATE_ID = "s-id";
124
- var HYDRATED_STYLE_ID = "sty-id";
125
- var HYDRATE_CHILD_ID = "c-id";
126
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
127
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
128
- var XLINK_NS = "http://www.w3.org/1999/xlink";
129
- var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
130
- "formAssociatedCallback",
131
- "formResetCallback",
132
- "formDisabledCallback",
133
- "formStateRestoreCallback"
134
- ];
135
- var win = typeof window !== "undefined" ? window : {};
136
- var doc = win.document || { head: {} };
137
- var H = win.HTMLElement || class {
138
- };
139
- var plt = {
140
- $flags$: 0,
141
- $resourcesUrl$: "",
142
- jmp: (h2) => h2(),
143
- raf: (h2) => requestAnimationFrame(h2),
144
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
145
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
146
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
147
- };
148
- var setPlatformHelpers = (helpers) => {
149
- Object.assign(plt, helpers);
150
- };
151
- var supportsShadow = BUILD.shadowDom;
152
- var supportsListenerOptions = /* @__PURE__ */ (() => {
153
- let supportsListenerOptions2 = false;
154
- try {
155
- doc.addEventListener(
156
- "e",
157
- null,
158
- Object.defineProperty({}, "passive", {
159
- get() {
160
- supportsListenerOptions2 = true;
161
- }
162
- })
163
- );
164
- } catch (e) {
165
- }
166
- return supportsListenerOptions2;
167
- })();
168
- var promiseResolve = (v) => Promise.resolve(v);
169
- var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
170
- try {
171
- new CSSStyleSheet();
172
- return typeof new CSSStyleSheet().replaceSync === "function";
173
- } catch (e) {
174
- }
175
- return false;
176
- })() : false;
177
-
178
- // src/client/client-task-queue.ts
179
- var queueCongestion = 0;
180
- var queuePending = false;
181
- var queueDomReads = [];
182
- var queueDomWrites = [];
183
- var queueDomWritesLow = [];
184
- var queueTask = (queue, write) => (cb) => {
185
- queue.push(cb);
186
- if (!queuePending) {
187
- queuePending = true;
188
- if (write && plt.$flags$ & 4 /* queueSync */) {
189
- nextTick(flush);
190
- } else {
191
- plt.raf(flush);
192
- }
193
- }
194
- };
195
- var consume = (queue) => {
196
- for (let i2 = 0; i2 < queue.length; i2++) {
197
- try {
198
- queue[i2](performance.now());
199
- } catch (e) {
200
- consoleError(e);
201
- }
202
- }
203
- queue.length = 0;
204
- };
205
- var consumeTimeout = (queue, timeout) => {
206
- let i2 = 0;
207
- let ts = 0;
208
- while (i2 < queue.length && (ts = performance.now()) < timeout) {
209
- try {
210
- queue[i2++](ts);
211
- } catch (e) {
212
- consoleError(e);
213
- }
214
- }
215
- if (i2 === queue.length) {
216
- queue.length = 0;
217
- } else if (i2 !== 0) {
218
- queue.splice(0, i2);
219
- }
220
- };
221
- var flush = () => {
222
- if (BUILD.asyncQueue) {
223
- queueCongestion++;
224
- }
225
- consume(queueDomReads);
226
- if (BUILD.asyncQueue) {
227
- const timeout = (plt.$flags$ & 6 /* queueMask */) === 2 /* appLoaded */ ? performance.now() + 14 * Math.ceil(queueCongestion * (1 / 10)) : Infinity;
228
- consumeTimeout(queueDomWrites, timeout);
229
- consumeTimeout(queueDomWritesLow, timeout);
230
- if (queueDomWrites.length > 0) {
231
- queueDomWritesLow.push(...queueDomWrites);
232
- queueDomWrites.length = 0;
233
- }
234
- if (queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0) {
235
- plt.raf(flush);
236
- } else {
237
- queueCongestion = 0;
238
- }
239
- } else {
240
- consume(queueDomWrites);
241
- if (queuePending = queueDomReads.length > 0) {
242
- plt.raf(flush);
243
- }
244
- }
245
- };
246
- var nextTick = (cb) => promiseResolve().then(cb);
247
- var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
248
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
249
-
250
- // src/runtime/asset-path.ts
251
- var getAssetPath = (path) => {
252
- const assetUrl = new URL(path, plt.$resourcesUrl$);
253
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
254
- };
255
- var setAssetPath = (path) => plt.$resourcesUrl$ = path;
256
-
257
- // src/utils/constants.ts
258
- var EMPTY_OBJ = {};
259
- var SVG_NS = "http://www.w3.org/2000/svg";
260
- var HTML_NS = "http://www.w3.org/1999/xhtml";
261
-
262
- // src/utils/helpers.ts
263
- var isDef = (v) => v != null;
264
- var isComplexType = (o) => {
265
- o = typeof o;
266
- return o === "object" || o === "function";
267
- };
268
-
269
- // src/utils/query-nonce-meta-tag-content.ts
270
- function queryNonceMetaTagContent(doc2) {
271
- var _a, _b, _c;
272
- return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
273
- }
274
-
275
- // src/utils/result.ts
276
- var result_exports = {};
277
- __export(result_exports, {
278
- err: () => err,
279
- map: () => map,
280
- ok: () => ok,
281
- unwrap: () => unwrap,
282
- unwrapErr: () => unwrapErr
283
- });
284
- var ok = (value) => ({
285
- isOk: true,
286
- isErr: false,
287
- value
288
- });
289
- var err = (value) => ({
290
- isOk: false,
291
- isErr: true,
292
- value
293
- });
294
- function map(result, fn) {
295
- if (result.isOk) {
296
- const val = fn(result.value);
297
- if (val instanceof Promise) {
298
- return val.then((newVal) => ok(newVal));
299
- } else {
300
- return ok(val);
301
- }
302
- }
303
- if (result.isErr) {
304
- const value = result.value;
305
- return err(value);
306
- }
307
- throw "should never get here";
308
- }
309
- var unwrap = (result) => {
310
- if (result.isOk) {
311
- return result.value;
312
- } else {
313
- throw result.value;
314
- }
315
- };
316
- var unwrapErr = (result) => {
317
- if (result.isErr) {
318
- return result.value;
319
- } else {
320
- throw result.value;
321
- }
322
- };
323
- var i = 0;
324
- var createTime = (fnName, tagName = "") => {
325
- if (BUILD.profile && performance.mark) {
326
- const key = `st:${fnName}:${tagName}:${i++}`;
327
- performance.mark(key);
328
- return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);
329
- } else {
330
- return () => {
331
- return;
332
- };
333
- }
334
- };
335
- var uniqueTime = (key, measureText) => {
336
- if (BUILD.profile && performance.mark) {
337
- if (performance.getEntriesByName(key, "mark").length === 0) {
338
- performance.mark(key);
339
- }
340
- return () => {
341
- if (performance.getEntriesByName(measureText, "measure").length === 0) {
342
- performance.measure(measureText, key);
343
- }
344
- };
345
- } else {
346
- return () => {
347
- return;
348
- };
349
- }
350
- };
351
- var inspect = (ref) => {
352
- const hostRef = getHostRef(ref);
353
- if (!hostRef) {
354
- return void 0;
355
- }
356
- const flags = hostRef.$flags$;
357
- const hostElement = hostRef.$hostElement$;
358
- return {
359
- renderCount: hostRef.$renderCount$,
360
- flags: {
361
- hasRendered: !!(flags & 2 /* hasRendered */),
362
- hasConnected: !!(flags & 1 /* hasConnected */),
363
- isWaitingForChildren: !!(flags & 4 /* isWaitingForChildren */),
364
- isConstructingInstance: !!(flags & 8 /* isConstructingInstance */),
365
- isQueuedForUpdate: !!(flags & 16 /* isQueuedForUpdate */),
366
- hasInitializedComponent: !!(flags & 32 /* hasInitializedComponent */),
367
- hasLoadedComponent: !!(flags & 64 /* hasLoadedComponent */),
368
- isWatchReady: !!(flags & 128 /* isWatchReady */),
369
- isListenReady: !!(flags & 256 /* isListenReady */),
370
- needsRerender: !!(flags & 512 /* needsRerender */)
371
- },
372
- instanceValues: hostRef.$instanceValues$,
373
- ancestorComponent: hostRef.$ancestorComponent$,
374
- hostElement,
375
- lazyInstance: hostRef.$lazyInstance$,
376
- vnode: hostRef.$vnode$,
377
- modeName: hostRef.$modeName$,
378
- onReadyPromise: hostRef.$onReadyPromise$,
379
- onReadyResolve: hostRef.$onReadyResolve$,
380
- onInstancePromise: hostRef.$onInstancePromise$,
381
- onInstanceResolve: hostRef.$onInstanceResolve$,
382
- onRenderResolve: hostRef.$onRenderResolve$,
383
- queuedListeners: hostRef.$queuedListeners$,
384
- rmListeners: hostRef.$rmListeners$,
385
- ["s-id"]: hostElement["s-id"],
386
- ["s-cr"]: hostElement["s-cr"],
387
- ["s-lr"]: hostElement["s-lr"],
388
- ["s-p"]: hostElement["s-p"],
389
- ["s-rc"]: hostElement["s-rc"],
390
- ["s-sc"]: hostElement["s-sc"]
391
- };
392
- };
393
- var installDevTools = () => {
394
- if (BUILD.devTools) {
395
- const stencil = win.stencil = win.stencil || {};
396
- const originalInspect = stencil.inspect;
397
- stencil.inspect = (ref) => {
398
- let result = inspect(ref);
399
- if (!result && typeof originalInspect === "function") {
400
- result = originalInspect(ref);
401
- }
402
- return result;
403
- };
404
- }
405
- };
406
- var h = (nodeName, vnodeData, ...children) => {
407
- let child = null;
408
- let key = null;
409
- let slotName = null;
410
- let simple = false;
411
- let lastSimple = false;
412
- const vNodeChildren = [];
413
- const walk = (c) => {
414
- for (let i2 = 0; i2 < c.length; i2++) {
415
- child = c[i2];
416
- if (Array.isArray(child)) {
417
- walk(child);
418
- } else if (child != null && typeof child !== "boolean") {
419
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
420
- child = String(child);
421
- } else if (BUILD.isDev && typeof nodeName !== "function" && child.$flags$ === void 0) {
422
- consoleDevError(`vNode passed as children has unexpected type.
423
- Make sure it's using the correct h() function.
424
- Empty objects can also be the cause, look for JSX comments that became objects.`);
425
- }
426
- if (simple && lastSimple) {
427
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
428
- } else {
429
- vNodeChildren.push(simple ? newVNode(null, child) : child);
430
- }
431
- lastSimple = simple;
432
- }
433
- }
434
- };
435
- walk(children);
436
- if (vnodeData) {
437
- if (BUILD.isDev && nodeName === "input") {
438
- validateInputProperties(vnodeData);
439
- }
440
- if (BUILD.vdomKey && vnodeData.key) {
441
- key = vnodeData.key;
442
- }
443
- if (BUILD.slotRelocation && vnodeData.name) {
444
- slotName = vnodeData.name;
445
- }
446
- if (BUILD.vdomClass) {
447
- const classData = vnodeData.className || vnodeData.class;
448
- if (classData) {
449
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
450
- }
451
- }
452
- }
453
- if (BUILD.isDev && vNodeChildren.some(isHost)) {
454
- consoleDevError(`The <Host> must be the single root component. Make sure:
455
- - You are NOT using hostData() and <Host> in the same component.
456
- - <Host> is used once, and it's the single root component of the render() function.`);
457
- }
458
- if (BUILD.vdomFunctional && typeof nodeName === "function") {
459
- return nodeName(
460
- vnodeData === null ? {} : vnodeData,
461
- vNodeChildren,
462
- vdomFnUtils
463
- );
464
- }
465
- const vnode = newVNode(nodeName, null);
466
- vnode.$attrs$ = vnodeData;
467
- if (vNodeChildren.length > 0) {
468
- vnode.$children$ = vNodeChildren;
469
- }
470
- if (BUILD.vdomKey) {
471
- vnode.$key$ = key;
472
- }
473
- if (BUILD.slotRelocation) {
474
- vnode.$name$ = slotName;
475
- }
476
- return vnode;
477
- };
478
- var newVNode = (tag, text) => {
479
- const vnode = {
480
- $flags$: 0,
481
- $tag$: tag,
482
- $text$: text,
483
- $elm$: null,
484
- $children$: null
485
- };
486
- if (BUILD.vdomAttribute) {
487
- vnode.$attrs$ = null;
488
- }
489
- if (BUILD.vdomKey) {
490
- vnode.$key$ = null;
491
- }
492
- if (BUILD.slotRelocation) {
493
- vnode.$name$ = null;
494
- }
495
- return vnode;
496
- };
497
- var Host = {};
498
- var isHost = (node) => node && node.$tag$ === Host;
499
- var vdomFnUtils = {
500
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
501
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
502
- };
503
- var convertToPublic = (node) => ({
504
- vattrs: node.$attrs$,
505
- vchildren: node.$children$,
506
- vkey: node.$key$,
507
- vname: node.$name$,
508
- vtag: node.$tag$,
509
- vtext: node.$text$
510
- });
511
- var convertToPrivate = (node) => {
512
- if (typeof node.vtag === "function") {
513
- const vnodeData = { ...node.vattrs };
514
- if (node.vkey) {
515
- vnodeData.key = node.vkey;
516
- }
517
- if (node.vname) {
518
- vnodeData.name = node.vname;
519
- }
520
- return h(node.vtag, vnodeData, ...node.vchildren || []);
521
- }
522
- const vnode = newVNode(node.vtag, node.vtext);
523
- vnode.$attrs$ = node.vattrs;
524
- vnode.$children$ = node.vchildren;
525
- vnode.$key$ = node.vkey;
526
- vnode.$name$ = node.vname;
527
- return vnode;
528
- };
529
- var validateInputProperties = (inputElm) => {
530
- const props = Object.keys(inputElm);
531
- const value = props.indexOf("value");
532
- if (value === -1) {
533
- return;
534
- }
535
- const typeIndex = props.indexOf("type");
536
- const minIndex = props.indexOf("min");
537
- const maxIndex = props.indexOf("max");
538
- const stepIndex = props.indexOf("step");
539
- if (value < typeIndex || value < minIndex || value < maxIndex || value < stepIndex) {
540
- consoleDevWarn(`The "value" prop of <input> should be set after "min", "max", "type" and "step"`);
541
- }
542
- };
543
-
544
- // src/runtime/client-hydrate.ts
545
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
546
- const endHydrate = createTime("hydrateClient", tagName);
547
- const shadowRoot = hostElm.shadowRoot;
548
- const childRenderNodes = [];
549
- const slotNodes = [];
550
- const shadowRootNodes = BUILD.shadowDom && shadowRoot ? [] : null;
551
- const vnode = hostRef.$vnode$ = newVNode(tagName, null);
552
- if (!plt.$orgLocNodes$) {
553
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
554
- }
555
- hostElm[HYDRATE_ID] = hostId;
556
- hostElm.removeAttribute(HYDRATE_ID);
557
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
558
- childRenderNodes.map((c) => {
559
- const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
560
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
561
- const node = c.$elm$;
562
- if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
563
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
564
- }
565
- if (!shadowRoot) {
566
- node["s-hn"] = tagName;
567
- if (orgLocationNode) {
568
- node["s-ol"] = orgLocationNode;
569
- node["s-ol"]["s-nr"] = node;
570
- }
571
- }
572
- plt.$orgLocNodes$.delete(orgLocationId);
573
- });
574
- if (BUILD.shadowDom && shadowRoot) {
575
- shadowRootNodes.map((shadowRootNode) => {
576
- if (shadowRootNode) {
577
- shadowRoot.appendChild(shadowRootNode);
578
- }
579
- });
580
- }
581
- endHydrate();
582
- };
583
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
584
- let childNodeType;
585
- let childIdSplt;
586
- let childVNode;
587
- let i2;
588
- if (node.nodeType === 1 /* ElementNode */) {
589
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
590
- if (childNodeType) {
591
- childIdSplt = childNodeType.split(".");
592
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
593
- childVNode = {
594
- $flags$: 0,
595
- $hostId$: childIdSplt[0],
596
- $nodeId$: childIdSplt[1],
597
- $depth$: childIdSplt[2],
598
- $index$: childIdSplt[3],
599
- $tag$: node.tagName.toLowerCase(),
600
- $elm$: node,
601
- $attrs$: null,
602
- $children$: null,
603
- $key$: null,
604
- $name$: null,
605
- $text$: null
606
- };
607
- childRenderNodes.push(childVNode);
608
- node.removeAttribute(HYDRATE_CHILD_ID);
609
- if (!parentVNode.$children$) {
610
- parentVNode.$children$ = [];
611
- }
612
- parentVNode.$children$[childVNode.$index$] = childVNode;
613
- parentVNode = childVNode;
614
- if (shadowRootNodes && childVNode.$depth$ === "0") {
615
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
616
- }
617
- }
618
- }
619
- for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
620
- clientHydrate(
621
- parentVNode,
622
- childRenderNodes,
623
- slotNodes,
624
- shadowRootNodes,
625
- hostElm,
626
- node.childNodes[i2],
627
- hostId
628
- );
629
- }
630
- if (node.shadowRoot) {
631
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
632
- clientHydrate(
633
- parentVNode,
634
- childRenderNodes,
635
- slotNodes,
636
- shadowRootNodes,
637
- hostElm,
638
- node.shadowRoot.childNodes[i2],
639
- hostId
640
- );
641
- }
642
- }
643
- } else if (node.nodeType === 8 /* CommentNode */) {
644
- childIdSplt = node.nodeValue.split(".");
645
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
646
- childNodeType = childIdSplt[0];
647
- childVNode = {
648
- $flags$: 0,
649
- $hostId$: childIdSplt[1],
650
- $nodeId$: childIdSplt[2],
651
- $depth$: childIdSplt[3],
652
- $index$: childIdSplt[4],
653
- $elm$: node,
654
- $attrs$: null,
655
- $children$: null,
656
- $key$: null,
657
- $name$: null,
658
- $tag$: null,
659
- $text$: null
660
- };
661
- if (childNodeType === TEXT_NODE_ID) {
662
- childVNode.$elm$ = node.nextSibling;
663
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
664
- childVNode.$text$ = childVNode.$elm$.textContent;
665
- childRenderNodes.push(childVNode);
666
- node.remove();
667
- if (!parentVNode.$children$) {
668
- parentVNode.$children$ = [];
669
- }
670
- parentVNode.$children$[childVNode.$index$] = childVNode;
671
- if (shadowRootNodes && childVNode.$depth$ === "0") {
672
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
673
- }
674
- }
675
- } else if (childVNode.$hostId$ === hostId) {
676
- if (childNodeType === SLOT_NODE_ID) {
677
- childVNode.$tag$ = "slot";
678
- if (childIdSplt[5]) {
679
- node["s-sn"] = childVNode.$name$ = childIdSplt[5];
680
- } else {
681
- node["s-sn"] = "";
682
- }
683
- node["s-sr"] = true;
684
- if (BUILD.shadowDom && shadowRootNodes) {
685
- childVNode.$elm$ = doc.createElement(childVNode.$tag$);
686
- if (childVNode.$name$) {
687
- childVNode.$elm$.setAttribute("name", childVNode.$name$);
688
- }
689
- node.parentNode.insertBefore(childVNode.$elm$, node);
690
- node.remove();
691
- if (childVNode.$depth$ === "0") {
692
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
693
- }
694
- }
695
- slotNodes.push(childVNode);
696
- if (!parentVNode.$children$) {
697
- parentVNode.$children$ = [];
698
- }
699
- parentVNode.$children$[childVNode.$index$] = childVNode;
700
- } else if (childNodeType === CONTENT_REF_ID) {
701
- if (BUILD.shadowDom && shadowRootNodes) {
702
- node.remove();
703
- } else if (BUILD.slotRelocation) {
704
- hostElm["s-cr"] = node;
705
- node["s-cn"] = true;
706
- }
707
- }
708
- }
709
- }
710
- } else if (parentVNode && parentVNode.$tag$ === "style") {
711
- const vnode = newVNode(null, node.textContent);
712
- vnode.$elm$ = node;
713
- vnode.$index$ = "0";
714
- parentVNode.$children$ = [vnode];
715
- }
716
- };
717
- var initializeDocumentHydrate = (node, orgLocNodes) => {
718
- if (node.nodeType === 1 /* ElementNode */) {
719
- let i2 = 0;
720
- for (; i2 < node.childNodes.length; i2++) {
721
- initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
722
- }
723
- if (node.shadowRoot) {
724
- for (i2 = 0; i2 < node.shadowRoot.childNodes.length; i2++) {
725
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
726
- }
727
- }
728
- } else if (node.nodeType === 8 /* CommentNode */) {
729
- const childIdSplt = node.nodeValue.split(".");
730
- if (childIdSplt[0] === ORG_LOCATION_ID) {
731
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
732
- node.nodeValue = "";
733
- node["s-en"] = childIdSplt[3];
734
- }
735
- }
736
- };
737
-
738
- // src/runtime/mode.ts
739
- var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
740
- var setMode = (handler) => modeResolutionChain.push(handler);
741
- var getMode = (ref) => getHostRef(ref).$modeName$;
742
- var parsePropertyValue = (propValue, propType) => {
743
- if (propValue != null && !isComplexType(propValue)) {
744
- if (BUILD.propBoolean && propType & 4 /* Boolean */) {
745
- return propValue === "false" ? false : propValue === "" || !!propValue;
746
- }
747
- if (BUILD.propNumber && propType & 2 /* Number */) {
748
- return parseFloat(propValue);
749
- }
750
- if (BUILD.propString && propType & 1 /* String */) {
751
- return String(propValue);
752
- }
753
- return propValue;
754
- }
755
- return propValue;
756
- };
757
- var getElement = (ref) => BUILD.lazyLoad ? getHostRef(ref).$hostElement$ : ref;
758
-
759
- // src/runtime/event-emitter.ts
760
- var createEvent = (ref, name, flags) => {
761
- const elm = getElement(ref);
762
- return {
763
- emit: (detail) => {
764
- if (BUILD.isDev && !elm.isConnected) {
765
- consoleDevWarn(`The "${name}" event was emitted, but the dispatcher node is no longer connected to the dom.`);
766
- }
767
- return emitEvent(elm, name, {
768
- bubbles: !!(flags & 4 /* Bubbles */),
769
- composed: !!(flags & 2 /* Composed */),
770
- cancelable: !!(flags & 1 /* Cancellable */),
771
- detail
772
- });
773
- }
774
- };
775
- };
776
- var emitEvent = (elm, name, opts) => {
777
- const ev = plt.ce(name, opts);
778
- elm.dispatchEvent(ev);
779
- return ev;
780
- };
781
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
782
- var registerStyle = (scopeId2, cssText, allowCS) => {
783
- let style = styles.get(scopeId2);
784
- if (supportsConstructableStylesheets && allowCS) {
785
- style = style || new CSSStyleSheet();
786
- if (typeof style === "string") {
787
- style = cssText;
788
- } else {
789
- style.replaceSync(cssText);
790
- }
791
- } else {
792
- style = cssText;
793
- }
794
- styles.set(scopeId2, style);
795
- };
796
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
797
- var _a;
798
- const scopeId2 = getScopeId(cmpMeta, mode);
799
- const style = styles.get(scopeId2);
800
- if (!BUILD.attachStyles) {
801
- return scopeId2;
802
- }
803
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
804
- if (style) {
805
- if (typeof style === "string") {
806
- styleContainerNode = styleContainerNode.head || styleContainerNode;
807
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
808
- let styleElm;
809
- if (!appliedStyles) {
810
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
811
- }
812
- if (!appliedStyles.has(scopeId2)) {
813
- if (BUILD.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
814
- styleElm.innerHTML = style;
815
- } else {
816
- styleElm = doc.createElement("style");
817
- styleElm.innerHTML = style;
818
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
819
- if (nonce != null) {
820
- styleElm.setAttribute("nonce", nonce);
821
- }
822
- if (BUILD.hydrateServerSide || BUILD.hotModuleReplacement) {
823
- styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
824
- }
825
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
826
- }
827
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
828
- styleElm.innerHTML += SLOT_FB_CSS;
829
- }
830
- if (appliedStyles) {
831
- appliedStyles.add(scopeId2);
832
- }
833
- }
834
- } else if (BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
835
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
836
- }
837
- }
838
- return scopeId2;
839
- };
840
- var attachStyles = (hostRef) => {
841
- const cmpMeta = hostRef.$cmpMeta$;
842
- const elm = hostRef.$hostElement$;
843
- const flags = cmpMeta.$flags$;
844
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
845
- const scopeId2 = addStyle(
846
- BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
847
- cmpMeta,
848
- hostRef.$modeName$
849
- );
850
- if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {
851
- elm["s-sc"] = scopeId2;
852
- elm.classList.add(scopeId2 + "-h");
853
- if (BUILD.scoped && flags & 2 /* scopedCssEncapsulation */) {
854
- elm.classList.add(scopeId2 + "-s");
855
- }
856
- }
857
- endAttachStyles();
858
- };
859
- var getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
860
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
861
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
862
- if (oldValue !== newValue) {
863
- let isProp = isMemberInElement(elm, memberName);
864
- let ln = memberName.toLowerCase();
865
- if (BUILD.vdomClass && memberName === "class") {
866
- const classList = elm.classList;
867
- const oldClasses = parseClassList(oldValue);
868
- const newClasses = parseClassList(newValue);
869
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
870
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
871
- } else if (BUILD.vdomStyle && memberName === "style") {
872
- if (BUILD.updatable) {
873
- for (const prop in oldValue) {
874
- if (!newValue || newValue[prop] == null) {
875
- if (!BUILD.hydrateServerSide && prop.includes("-")) {
876
- elm.style.removeProperty(prop);
877
- } else {
878
- elm.style[prop] = "";
879
- }
880
- }
881
- }
882
- }
883
- for (const prop in newValue) {
884
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
885
- if (!BUILD.hydrateServerSide && prop.includes("-")) {
886
- elm.style.setProperty(prop, newValue[prop]);
887
- } else {
888
- elm.style[prop] = newValue[prop];
889
- }
890
- }
891
- }
892
- } else if (BUILD.vdomKey && memberName === "key") {
893
- } else if (BUILD.vdomRef && memberName === "ref") {
894
- if (newValue) {
895
- newValue(elm);
896
- }
897
- } else if (BUILD.vdomListener && (BUILD.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
898
- if (memberName[2] === "-") {
899
- memberName = memberName.slice(3);
900
- } else if (isMemberInElement(win, ln)) {
901
- memberName = ln.slice(2);
902
- } else {
903
- memberName = ln[2] + memberName.slice(3);
904
- }
905
- if (oldValue || newValue) {
906
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
907
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
908
- if (oldValue) {
909
- plt.rel(elm, memberName, oldValue, capture);
910
- }
911
- if (newValue) {
912
- plt.ael(elm, memberName, newValue, capture);
913
- }
914
- }
915
- } else if (BUILD.vdomPropOrAttr) {
916
- const isComplex = isComplexType(newValue);
917
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
918
- try {
919
- if (!elm.tagName.includes("-")) {
920
- const n = newValue == null ? "" : newValue;
921
- if (memberName === "list") {
922
- isProp = false;
923
- } else if (oldValue == null || elm[memberName] != n) {
924
- elm[memberName] = n;
925
- }
926
- } else {
927
- elm[memberName] = newValue;
928
- }
929
- } catch (e) {
930
- }
931
- }
932
- let xlink = false;
933
- if (BUILD.vdomXlink) {
934
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
935
- memberName = ln;
936
- xlink = true;
937
- }
938
- }
939
- if (newValue == null || newValue === false) {
940
- if (newValue !== false || elm.getAttribute(memberName) === "") {
941
- if (BUILD.vdomXlink && xlink) {
942
- elm.removeAttributeNS(XLINK_NS, memberName);
943
- } else {
944
- elm.removeAttribute(memberName);
945
- }
946
- }
947
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
948
- newValue = newValue === true ? "" : newValue;
949
- if (BUILD.vdomXlink && xlink) {
950
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
951
- } else {
952
- elm.setAttribute(memberName, newValue);
953
- }
954
- }
955
- }
956
- }
957
- };
958
- var parseClassListRegex = /\s/;
959
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
960
- var CAPTURE_EVENT_SUFFIX = "Capture";
961
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
962
-
963
- // src/runtime/vdom/update-element.ts
964
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
965
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
966
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
967
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
968
- if (BUILD.updatable) {
969
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
970
- if (!(memberName in newVnodeAttrs)) {
971
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
972
- }
973
- }
974
- }
975
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
976
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
977
- }
978
- };
979
- function sortedAttrNames(attrNames) {
980
- return attrNames.includes("ref") ? (
981
- // we need to sort these to ensure that `'ref'` is the last attr
982
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
983
- ) : (
984
- // no need to sort, return the original array
985
- attrNames
986
- );
987
- }
988
-
989
- // src/runtime/vdom/vdom-render.ts
990
- var scopeId;
991
- var contentRef;
992
- var hostTagName;
993
- var useNativeShadowDom = false;
994
- var checkSlotFallbackVisibility = false;
995
- var checkSlotRelocate = false;
996
- var isSvgMode = false;
997
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
998
- var _a;
999
- const newVNode2 = newParentVNode.$children$[childIndex];
1000
- let i2 = 0;
1001
- let elm;
1002
- let childNode;
1003
- let oldVNode;
1004
- if (BUILD.slotRelocation && !useNativeShadowDom) {
1005
- checkSlotRelocate = true;
1006
- if (newVNode2.$tag$ === "slot") {
1007
- if (scopeId) {
1008
- parentElm.classList.add(scopeId + "-s");
1009
- }
1010
- newVNode2.$flags$ |= newVNode2.$children$ ? (
1011
- // slot element has fallback content
1012
- // still create an element that "mocks" the slot element
1013
- 2 /* isSlotFallback */
1014
- ) : (
1015
- // slot element does not have fallback content
1016
- // create an html comment we'll use to always reference
1017
- // where actual slot content should sit next to
1018
- 1 /* isSlotReference */
1019
- );
1020
- }
1021
- }
1022
- if (BUILD.isDev && newVNode2.$elm$) {
1023
- consoleDevError(
1024
- `The JSX ${newVNode2.$text$ !== null ? `"${newVNode2.$text$}" text` : `"${newVNode2.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`
1025
- );
1026
- }
1027
- if (BUILD.vdomText && newVNode2.$text$ !== null) {
1028
- elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
1029
- } else if (BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
1030
- elm = newVNode2.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : doc.createTextNode("");
1031
- } else {
1032
- if (BUILD.svg && !isSvgMode) {
1033
- isSvgMode = newVNode2.$tag$ === "svg";
1034
- }
1035
- elm = newVNode2.$elm$ = BUILD.svg ? doc.createElementNS(
1036
- isSvgMode ? SVG_NS : HTML_NS,
1037
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1038
- ) : doc.createElement(
1039
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1040
- );
1041
- if (BUILD.svg && isSvgMode && newVNode2.$tag$ === "foreignObject") {
1042
- isSvgMode = false;
1043
- }
1044
- if (BUILD.vdomAttribute) {
1045
- updateElement(null, newVNode2, isSvgMode);
1046
- }
1047
- if ((BUILD.shadowDom || BUILD.scoped) && isDef(scopeId) && elm["s-si"] !== scopeId) {
1048
- elm.classList.add(elm["s-si"] = scopeId);
1049
- }
1050
- if (BUILD.scoped) {
1051
- updateElementScopeIds(elm, parentElm);
1052
- }
1053
- if (newVNode2.$children$) {
1054
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1055
- childNode = createElm(oldParentVNode, newVNode2, i2, elm);
1056
- if (childNode) {
1057
- elm.appendChild(childNode);
1058
- }
1059
- }
1060
- }
1061
- if (BUILD.svg) {
1062
- if (newVNode2.$tag$ === "svg") {
1063
- isSvgMode = false;
1064
- } else if (elm.tagName === "foreignObject") {
1065
- isSvgMode = true;
1066
- }
1067
- }
1068
- }
1069
- elm["s-hn"] = hostTagName;
1070
- if (BUILD.slotRelocation) {
1071
- if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
1072
- elm["s-sr"] = true;
1073
- elm["s-cr"] = contentRef;
1074
- elm["s-sn"] = newVNode2.$name$ || "";
1075
- elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
1076
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
1077
- if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
1078
- if (BUILD.experimentalSlotFixes) {
1079
- relocateToHostRoot(oldParentVNode.$elm$);
1080
- } else {
1081
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
1082
- }
1083
- }
1084
- }
1085
- }
1086
- return elm;
1087
- };
1088
- var relocateToHostRoot = (parentElm) => {
1089
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1090
- const host = parentElm.closest(hostTagName.toLowerCase());
1091
- if (host != null) {
1092
- const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
1093
- const childNodeArray = Array.from(parentElm.childNodes);
1094
- for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1095
- if (childNode["s-sh"] != null) {
1096
- insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1097
- childNode["s-sh"] = void 0;
1098
- checkSlotRelocate = true;
1099
- }
1100
- }
1101
- }
1102
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1103
- };
1104
- var putBackInOriginalLocation = (parentElm, recursive) => {
1105
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1106
- const oldSlotChildNodes = Array.from(parentElm.childNodes);
1107
- if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
1108
- let node = parentElm;
1109
- while (node = node.nextSibling) {
1110
- if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
1111
- oldSlotChildNodes.push(node);
1112
- }
1113
- }
1114
- }
1115
- for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1116
- const childNode = oldSlotChildNodes[i2];
1117
- if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1118
- insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
1119
- childNode["s-ol"].remove();
1120
- childNode["s-ol"] = void 0;
1121
- childNode["s-sh"] = void 0;
1122
- checkSlotRelocate = true;
1123
- }
1124
- if (recursive) {
1125
- putBackInOriginalLocation(childNode, recursive);
1126
- }
1127
- }
1128
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1129
- };
1130
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1131
- let containerElm = BUILD.slotRelocation && parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
1132
- let childNode;
1133
- if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1134
- containerElm = containerElm.shadowRoot;
1135
- }
1136
- for (; startIdx <= endIdx; ++startIdx) {
1137
- if (vnodes[startIdx]) {
1138
- childNode = createElm(null, parentVNode, startIdx, parentElm);
1139
- if (childNode) {
1140
- vnodes[startIdx].$elm$ = childNode;
1141
- insertBefore(containerElm, childNode, BUILD.slotRelocation ? referenceNode(before) : before);
1142
- }
1143
- }
1144
- }
1145
- };
1146
- var removeVnodes = (vnodes, startIdx, endIdx) => {
1147
- for (let index = startIdx; index <= endIdx; ++index) {
1148
- const vnode = vnodes[index];
1149
- if (vnode) {
1150
- const elm = vnode.$elm$;
1151
- nullifyVNodeRefs(vnode);
1152
- if (elm) {
1153
- if (BUILD.slotRelocation) {
1154
- checkSlotFallbackVisibility = true;
1155
- if (elm["s-ol"]) {
1156
- elm["s-ol"].remove();
1157
- } else {
1158
- putBackInOriginalLocation(elm, true);
1159
- }
1160
- }
1161
- elm.remove();
1162
- }
1163
- }
1164
- }
1165
- };
1166
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1167
- let oldStartIdx = 0;
1168
- let newStartIdx = 0;
1169
- let idxInOld = 0;
1170
- let i2 = 0;
1171
- let oldEndIdx = oldCh.length - 1;
1172
- let oldStartVnode = oldCh[0];
1173
- let oldEndVnode = oldCh[oldEndIdx];
1174
- let newEndIdx = newCh.length - 1;
1175
- let newStartVnode = newCh[0];
1176
- let newEndVnode = newCh[newEndIdx];
1177
- let node;
1178
- let elmToMove;
1179
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1180
- if (oldStartVnode == null) {
1181
- oldStartVnode = oldCh[++oldStartIdx];
1182
- } else if (oldEndVnode == null) {
1183
- oldEndVnode = oldCh[--oldEndIdx];
1184
- } else if (newStartVnode == null) {
1185
- newStartVnode = newCh[++newStartIdx];
1186
- } else if (newEndVnode == null) {
1187
- newEndVnode = newCh[--newEndIdx];
1188
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1189
- patch(oldStartVnode, newStartVnode, isInitialRender);
1190
- oldStartVnode = oldCh[++oldStartIdx];
1191
- newStartVnode = newCh[++newStartIdx];
1192
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1193
- patch(oldEndVnode, newEndVnode, isInitialRender);
1194
- oldEndVnode = oldCh[--oldEndIdx];
1195
- newEndVnode = newCh[--newEndIdx];
1196
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1197
- if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1198
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1199
- }
1200
- patch(oldStartVnode, newEndVnode, isInitialRender);
1201
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1202
- oldStartVnode = oldCh[++oldStartIdx];
1203
- newEndVnode = newCh[--newEndIdx];
1204
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1205
- if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1206
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1207
- }
1208
- patch(oldEndVnode, newStartVnode, isInitialRender);
1209
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1210
- oldEndVnode = oldCh[--oldEndIdx];
1211
- newStartVnode = newCh[++newStartIdx];
1212
- } else {
1213
- idxInOld = -1;
1214
- if (BUILD.vdomKey) {
1215
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1216
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1217
- idxInOld = i2;
1218
- break;
1219
- }
1220
- }
1221
- }
1222
- if (BUILD.vdomKey && idxInOld >= 0) {
1223
- elmToMove = oldCh[idxInOld];
1224
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1225
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
1226
- } else {
1227
- patch(elmToMove, newStartVnode, isInitialRender);
1228
- oldCh[idxInOld] = void 0;
1229
- node = elmToMove.$elm$;
1230
- }
1231
- newStartVnode = newCh[++newStartIdx];
1232
- } else {
1233
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
1234
- newStartVnode = newCh[++newStartIdx];
1235
- }
1236
- if (node) {
1237
- if (BUILD.slotRelocation) {
1238
- insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
1239
- } else {
1240
- insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
1241
- }
1242
- }
1243
- }
1244
- }
1245
- if (oldStartIdx > oldEndIdx) {
1246
- addVnodes(
1247
- parentElm,
1248
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1249
- newVNode2,
1250
- newCh,
1251
- newStartIdx,
1252
- newEndIdx
1253
- );
1254
- } else if (BUILD.updatable && newStartIdx > newEndIdx) {
1255
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1256
- }
1257
- };
1258
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1259
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1260
- if (BUILD.slotRelocation && leftVNode.$tag$ === "slot") {
1261
- return leftVNode.$name$ === rightVNode.$name$;
1262
- }
1263
- if (BUILD.vdomKey && !isInitialRender) {
1264
- return leftVNode.$key$ === rightVNode.$key$;
1265
- }
1266
- return true;
1267
- }
1268
- return false;
1269
- };
1270
- var referenceNode = (node) => {
1271
- return node && node["s-ol"] || node;
1272
- };
1273
- var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
1274
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1275
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
1276
- const oldChildren = oldVNode.$children$;
1277
- const newChildren = newVNode2.$children$;
1278
- const tag = newVNode2.$tag$;
1279
- const text = newVNode2.$text$;
1280
- let defaultHolder;
1281
- if (!BUILD.vdomText || text === null) {
1282
- if (BUILD.svg) {
1283
- isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1284
- }
1285
- if (BUILD.vdomAttribute || BUILD.reflect) {
1286
- if (BUILD.slot && tag === "slot" && !useNativeShadowDom) {
1287
- if (BUILD.experimentalSlotFixes && oldVNode.$name$ !== newVNode2.$name$) {
1288
- newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1289
- relocateToHostRoot(newVNode2.$elm$.parentElement);
1290
- }
1291
- } else {
1292
- updateElement(oldVNode, newVNode2, isSvgMode);
1293
- }
1294
- }
1295
- if (BUILD.updatable && oldChildren !== null && newChildren !== null) {
1296
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1297
- } else if (newChildren !== null) {
1298
- if (BUILD.updatable && BUILD.vdomText && oldVNode.$text$ !== null) {
1299
- elm.textContent = "";
1300
- }
1301
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1302
- } else if (BUILD.updatable && oldChildren !== null) {
1303
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1304
- }
1305
- if (BUILD.svg && isSvgMode && tag === "svg") {
1306
- isSvgMode = false;
1307
- }
1308
- } else if (BUILD.vdomText && BUILD.slotRelocation && (defaultHolder = elm["s-cr"])) {
1309
- defaultHolder.parentNode.textContent = text;
1310
- } else if (BUILD.vdomText && oldVNode.$text$ !== text) {
1311
- elm.data = text;
1312
- }
1313
- };
1314
- var updateFallbackSlotVisibility = (elm) => {
1315
- const childNodes = elm.childNodes;
1316
- for (const childNode of childNodes) {
1317
- if (childNode.nodeType === 1 /* ElementNode */) {
1318
- if (childNode["s-sr"]) {
1319
- const slotName = childNode["s-sn"];
1320
- childNode.hidden = false;
1321
- for (const siblingNode of childNodes) {
1322
- if (siblingNode !== childNode) {
1323
- if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
1324
- if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
1325
- childNode.hidden = true;
1326
- break;
1327
- }
1328
- } else {
1329
- if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
1330
- childNode.hidden = true;
1331
- break;
1332
- }
1333
- }
1334
- }
1335
- }
1336
- }
1337
- updateFallbackSlotVisibility(childNode);
1338
- }
1339
- }
1340
- };
1341
- var relocateNodes = [];
1342
- var markSlotContentForRelocation = (elm) => {
1343
- let node;
1344
- let hostContentNodes;
1345
- let j;
1346
- for (const childNode of elm.childNodes) {
1347
- if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1348
- hostContentNodes = node.parentNode.childNodes;
1349
- const slotName = childNode["s-sn"];
1350
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
1351
- node = hostContentNodes[j];
1352
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes || !node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
1353
- if (isNodeLocatedInSlot(node, slotName)) {
1354
- let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1355
- checkSlotFallbackVisibility = true;
1356
- node["s-sn"] = node["s-sn"] || slotName;
1357
- if (relocateNodeData) {
1358
- relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1359
- relocateNodeData.$slotRefNode$ = childNode;
1360
- } else {
1361
- node["s-sh"] = childNode["s-hn"];
1362
- relocateNodes.push({
1363
- $slotRefNode$: childNode,
1364
- $nodeToRelocate$: node
1365
- });
1366
- }
1367
- if (node["s-sr"]) {
1368
- relocateNodes.map((relocateNode) => {
1369
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1370
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1371
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
1372
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1373
- }
1374
- }
1375
- });
1376
- }
1377
- } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1378
- relocateNodes.push({
1379
- $nodeToRelocate$: node
1380
- });
1381
- }
1382
- }
1383
- }
1384
- }
1385
- if (childNode.nodeType === 1 /* ElementNode */) {
1386
- markSlotContentForRelocation(childNode);
1387
- }
1388
- }
1389
- };
1390
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1391
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1392
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
1393
- return true;
1394
- }
1395
- if (nodeToRelocate.getAttribute("slot") === slotName) {
1396
- return true;
1397
- }
1398
- return false;
1399
- }
1400
- if (nodeToRelocate["s-sn"] === slotName) {
1401
- return true;
1402
- }
1403
- return slotName === "";
1404
- };
1405
- var nullifyVNodeRefs = (vNode) => {
1406
- if (BUILD.vdomRef) {
1407
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1408
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1409
- }
1410
- };
1411
- var insertBefore = (parent, newNode, reference) => {
1412
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
1413
- if (BUILD.scoped) {
1414
- updateElementScopeIds(newNode, parent);
1415
- }
1416
- return inserted;
1417
- };
1418
- var findScopeIds = (element) => {
1419
- const scopeIds = [];
1420
- if (element) {
1421
- scopeIds.push(
1422
- ...element["s-scs"] || [],
1423
- element["s-si"],
1424
- element["s-sc"],
1425
- ...findScopeIds(element.parentElement)
1426
- );
1427
- }
1428
- return scopeIds;
1429
- };
1430
- var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
1431
- var _a;
1432
- if (element && parent && element.nodeType === 1 /* ElementNode */) {
1433
- const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
1434
- if (scopeIds.size) {
1435
- (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
1436
- if (element["s-ol"] || iterateChildNodes) {
1437
- for (const childNode of Array.from(element.childNodes)) {
1438
- updateElementScopeIds(childNode, element, true);
1439
- }
1440
- }
1441
- }
1442
- }
1443
- };
1444
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1445
- var _a, _b, _c, _d, _e;
1446
- const hostElm = hostRef.$hostElement$;
1447
- const cmpMeta = hostRef.$cmpMeta$;
1448
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1449
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1450
- hostTagName = hostElm.tagName;
1451
- if (BUILD.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {
1452
- throw new Error(`The <Host> must be the single root component.
1453
- Looks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.
1454
-
1455
- The render() function should look like this instead:
1456
-
1457
- render() {
1458
- // Do not return an array
1459
- return (
1460
- <Host>{content}</Host>
1461
- );
1462
- }
1463
- `);
1464
- }
1465
- if (BUILD.reflect && cmpMeta.$attrsToReflect$) {
1466
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1467
- cmpMeta.$attrsToReflect$.map(
1468
- ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
1469
- );
1470
- }
1471
- if (isInitialLoad && rootVnode.$attrs$) {
1472
- for (const key of Object.keys(rootVnode.$attrs$)) {
1473
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1474
- rootVnode.$attrs$[key] = hostElm[key];
1475
- }
1476
- }
1477
- }
1478
- rootVnode.$tag$ = null;
1479
- rootVnode.$flags$ |= 4 /* isHost */;
1480
- hostRef.$vnode$ = rootVnode;
1481
- rootVnode.$elm$ = oldVNode.$elm$ = BUILD.shadowDom ? hostElm.shadowRoot || hostElm : hostElm;
1482
- if (BUILD.scoped || BUILD.shadowDom) {
1483
- scopeId = hostElm["s-sc"];
1484
- }
1485
- useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1486
- if (BUILD.slotRelocation) {
1487
- contentRef = hostElm["s-cr"];
1488
- checkSlotFallbackVisibility = false;
1489
- }
1490
- patch(oldVNode, rootVnode, isInitialLoad);
1491
- if (BUILD.slotRelocation) {
1492
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1493
- if (checkSlotRelocate) {
1494
- markSlotContentForRelocation(rootVnode.$elm$);
1495
- for (const relocateData of relocateNodes) {
1496
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1497
- if (!nodeToRelocate["s-ol"]) {
1498
- const orgLocationNode = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : doc.createTextNode("");
1499
- orgLocationNode["s-nr"] = nodeToRelocate;
1500
- insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1501
- }
1502
- }
1503
- for (const relocateData of relocateNodes) {
1504
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1505
- const slotRefNode = relocateData.$slotRefNode$;
1506
- if (slotRefNode) {
1507
- const parentNodeRef = slotRefNode.parentNode;
1508
- let insertBeforeNode = slotRefNode.nextSibling;
1509
- if (!BUILD.experimentalSlotFixes || insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1510
- let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1511
- while (orgLocationNode) {
1512
- let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1513
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
1514
- refNode = refNode.nextSibling;
1515
- while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1516
- refNode = refNode == null ? void 0 : refNode.nextSibling;
1517
- }
1518
- if (!refNode || !refNode["s-nr"]) {
1519
- insertBeforeNode = refNode;
1520
- break;
1521
- }
1522
- }
1523
- orgLocationNode = orgLocationNode.previousSibling;
1524
- }
1525
- }
1526
- if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1527
- if (nodeToRelocate !== insertBeforeNode) {
1528
- if (!BUILD.experimentalSlotFixes && !nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1529
- nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1530
- }
1531
- insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1532
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1533
- nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1534
- }
1535
- }
1536
- }
1537
- nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
1538
- } else {
1539
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1540
- if (isInitialLoad) {
1541
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1542
- }
1543
- nodeToRelocate.hidden = true;
1544
- }
1545
- }
1546
- }
1547
- }
1548
- if (checkSlotFallbackVisibility) {
1549
- updateFallbackSlotVisibility(rootVnode.$elm$);
1550
- }
1551
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1552
- relocateNodes.length = 0;
1553
- }
1554
- if (BUILD.experimentalScopedSlotChanges && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1555
- for (const childNode of rootVnode.$elm$.childNodes) {
1556
- if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1557
- if (isInitialLoad && childNode["s-ih"] == null) {
1558
- childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1559
- }
1560
- childNode.hidden = true;
1561
- }
1562
- }
1563
- }
1564
- contentRef = void 0;
1565
- };
1566
- var slotReferenceDebugNode = (slotVNode) => doc.createComment(
1567
- `<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
1568
- );
1569
- var originalLocationDebugNode = (nodeToRelocate) => doc.createComment(
1570
- `org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
1571
- );
1572
-
1573
- // src/runtime/update-component.ts
1574
- var attachToAncestor = (hostRef, ancestorComponent) => {
1575
- if (BUILD.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1576
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
1577
- }
1578
- };
1579
- var scheduleUpdate = (hostRef, isInitialLoad) => {
1580
- if (BUILD.taskQueue && BUILD.updatable) {
1581
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1582
- }
1583
- if (BUILD.asyncLoading && hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1584
- hostRef.$flags$ |= 512 /* needsRerender */;
1585
- return;
1586
- }
1587
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1588
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1589
- return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
1590
- };
1591
- var dispatchHooks = (hostRef, isInitialLoad) => {
1592
- const elm = hostRef.$hostElement$;
1593
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1594
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1595
- if (!instance) {
1596
- throw new Error(
1597
- `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`
1598
- );
1599
- }
1600
- let maybePromise;
1601
- if (isInitialLoad) {
1602
- if (BUILD.lazyLoad && BUILD.hostListener) {
1603
- hostRef.$flags$ |= 256 /* isListenReady */;
1604
- if (hostRef.$queuedListeners$) {
1605
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1606
- hostRef.$queuedListeners$ = void 0;
1607
- }
1608
- }
1609
- emitLifecycleEvent(elm, "componentWillLoad");
1610
- if (BUILD.cmpWillLoad) {
1611
- maybePromise = safeCall(instance, "componentWillLoad");
1612
- }
1613
- } else {
1614
- emitLifecycleEvent(elm, "componentWillUpdate");
1615
- if (BUILD.cmpWillUpdate) {
1616
- maybePromise = safeCall(instance, "componentWillUpdate");
1617
- }
1618
- }
1619
- emitLifecycleEvent(elm, "componentWillRender");
1620
- if (BUILD.cmpWillRender) {
1621
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
1622
- }
1623
- endSchedule();
1624
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1625
- };
1626
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1627
- console.error(err2);
1628
- fn();
1629
- }) : fn();
1630
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1631
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
1632
- var _a;
1633
- const elm = hostRef.$hostElement$;
1634
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1635
- const rc = elm["s-rc"];
1636
- if (BUILD.style && isInitialLoad) {
1637
- attachStyles(hostRef);
1638
- }
1639
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1640
- if (BUILD.isDev) {
1641
- hostRef.$flags$ |= 1024 /* devOnRender */;
1642
- }
1643
- if (BUILD.hydrateServerSide) {
1644
- await callRender(hostRef, instance, elm, isInitialLoad);
1645
- } else {
1646
- callRender(hostRef, instance, elm, isInitialLoad);
1647
- }
1648
- if (BUILD.isDev) {
1649
- hostRef.$renderCount$ = hostRef.$renderCount$ === void 0 ? 1 : hostRef.$renderCount$ + 1;
1650
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1651
- }
1652
- if (BUILD.hydrateServerSide) {
1653
- try {
1654
- serverSideConnected(elm);
1655
- if (isInitialLoad) {
1656
- if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
1657
- elm["s-en"] = "";
1658
- } else if (hostRef.$cmpMeta$.$flags$ & 2 /* scopedCssEncapsulation */) {
1659
- elm["s-en"] = "c";
1660
- }
1661
- }
1662
- } catch (e) {
1663
- consoleError(e, elm);
1664
- }
1665
- }
1666
- if (BUILD.asyncLoading && rc) {
1667
- rc.map((cb) => cb());
1668
- elm["s-rc"] = void 0;
1669
- }
1670
- endRender();
1671
- endUpdate();
1672
- if (BUILD.asyncLoading) {
1673
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1674
- const postUpdate = () => postUpdateComponent(hostRef);
1675
- if (childrenPromises.length === 0) {
1676
- postUpdate();
1677
- } else {
1678
- Promise.all(childrenPromises).then(postUpdate);
1679
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1680
- childrenPromises.length = 0;
1681
- }
1682
- } else {
1683
- postUpdateComponent(hostRef);
1684
- }
1685
- };
1686
- var renderingRef = null;
1687
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
1688
- const allRenderFn = BUILD.allRenderFn ? true : false;
1689
- const lazyLoad = BUILD.lazyLoad ? true : false;
1690
- const taskQueue = BUILD.taskQueue ? true : false;
1691
- const updatable = BUILD.updatable ? true : false;
1692
- try {
1693
- renderingRef = instance;
1694
- instance = allRenderFn ? instance.render() : instance.render && instance.render();
1695
- if (updatable && taskQueue) {
1696
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1697
- }
1698
- if (updatable || lazyLoad) {
1699
- hostRef.$flags$ |= 2 /* hasRendered */;
1700
- }
1701
- if (BUILD.hasRenderFn || BUILD.reflect) {
1702
- if (BUILD.vdomRender || BUILD.reflect) {
1703
- if (BUILD.hydrateServerSide) {
1704
- return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
1705
- } else {
1706
- renderVdom(hostRef, instance, isInitialLoad);
1707
- }
1708
- } else {
1709
- const shadowRoot = elm.shadowRoot;
1710
- if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
1711
- shadowRoot.textContent = instance;
1712
- } else {
1713
- elm.textContent = instance;
1714
- }
1715
- }
1716
- }
1717
- } catch (e) {
1718
- consoleError(e, hostRef.$hostElement$);
1719
- }
1720
- renderingRef = null;
1721
- return null;
1722
- };
1723
- var getRenderingRef = () => renderingRef;
1724
- var postUpdateComponent = (hostRef) => {
1725
- const tagName = hostRef.$cmpMeta$.$tagName$;
1726
- const elm = hostRef.$hostElement$;
1727
- const endPostUpdate = createTime("postUpdate", tagName);
1728
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1729
- const ancestorComponent = hostRef.$ancestorComponent$;
1730
- if (BUILD.cmpDidRender) {
1731
- if (BUILD.isDev) {
1732
- hostRef.$flags$ |= 1024 /* devOnRender */;
1733
- }
1734
- safeCall(instance, "componentDidRender");
1735
- if (BUILD.isDev) {
1736
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1737
- }
1738
- }
1739
- emitLifecycleEvent(elm, "componentDidRender");
1740
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1741
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1742
- if (BUILD.asyncLoading && BUILD.cssAnnotations) {
1743
- addHydratedFlag(elm);
1744
- }
1745
- if (BUILD.cmpDidLoad) {
1746
- if (BUILD.isDev) {
1747
- hostRef.$flags$ |= 2048 /* devOnDidLoad */;
1748
- }
1749
- safeCall(instance, "componentDidLoad");
1750
- if (BUILD.isDev) {
1751
- hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
1752
- }
1753
- }
1754
- emitLifecycleEvent(elm, "componentDidLoad");
1755
- endPostUpdate();
1756
- if (BUILD.asyncLoading) {
1757
- hostRef.$onReadyResolve$(elm);
1758
- if (!ancestorComponent) {
1759
- appDidLoad(tagName);
1760
- }
1761
- }
1762
- } else {
1763
- if (BUILD.cmpDidUpdate) {
1764
- if (BUILD.isDev) {
1765
- hostRef.$flags$ |= 1024 /* devOnRender */;
1766
- }
1767
- safeCall(instance, "componentDidUpdate");
1768
- if (BUILD.isDev) {
1769
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1770
- }
1771
- }
1772
- emitLifecycleEvent(elm, "componentDidUpdate");
1773
- endPostUpdate();
1774
- }
1775
- if (BUILD.method && BUILD.lazyLoad) {
1776
- hostRef.$onInstanceResolve$(elm);
1777
- }
1778
- if (BUILD.asyncLoading) {
1779
- if (hostRef.$onRenderResolve$) {
1780
- hostRef.$onRenderResolve$();
1781
- hostRef.$onRenderResolve$ = void 0;
1782
- }
1783
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1784
- nextTick(() => scheduleUpdate(hostRef, false));
1785
- }
1786
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1787
- }
1788
- };
1789
- var forceUpdate = (ref) => {
1790
- if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
1791
- const hostRef = getHostRef(ref);
1792
- const isConnected = hostRef.$hostElement$.isConnected;
1793
- if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1794
- scheduleUpdate(hostRef, false);
1795
- }
1796
- return isConnected;
1797
- }
1798
- return false;
1799
- };
1800
- var appDidLoad = (who) => {
1801
- if (BUILD.cssAnnotations) {
1802
- addHydratedFlag(doc.documentElement);
1803
- }
1804
- if (BUILD.asyncQueue) {
1805
- plt.$flags$ |= 2 /* appLoaded */;
1806
- }
1807
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1808
- if (BUILD.profile && performance.measure) {
1809
- performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, "st:app:start");
1810
- }
1811
- };
1812
- var safeCall = (instance, method, arg) => {
1813
- if (instance && instance[method]) {
1814
- try {
1815
- return instance[method](arg);
1816
- } catch (e) {
1817
- consoleError(e);
1818
- }
1819
- }
1820
- return void 0;
1821
- };
1822
- var emitLifecycleEvent = (elm, lifecycleName) => {
1823
- if (BUILD.lifecycleDOMEvents) {
1824
- emitEvent(elm, "stencil_" + lifecycleName, {
1825
- bubbles: true,
1826
- composed: true,
1827
- detail: {
1828
- namespace: NAMESPACE
1829
- }
1830
- });
1831
- }
1832
- };
1833
- var addHydratedFlag = (elm) => {
1834
- var _a, _b;
1835
- return BUILD.hydratedClass ? elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") : BUILD.hydratedAttribute ? elm.setAttribute((_b = BUILD.hydratedSelectorName) != null ? _b : "hydrated", "") : void 0;
1836
- };
1837
- var serverSideConnected = (elm) => {
1838
- const children = elm.children;
1839
- if (children != null) {
1840
- for (let i2 = 0, ii = children.length; i2 < ii; i2++) {
1841
- const childElm = children[i2];
1842
- if (typeof childElm.connectedCallback === "function") {
1843
- childElm.connectedCallback();
1844
- }
1845
- serverSideConnected(childElm);
1846
- }
1847
- }
1848
- };
1849
-
1850
- // src/runtime/set-value.ts
1851
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1852
- var setValue = (ref, propName, newVal, cmpMeta) => {
1853
- const hostRef = getHostRef(ref);
1854
- if (BUILD.lazyLoad && !hostRef) {
1855
- throw new Error(
1856
- `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/ionic-team/stencil/issues/5457).`
1857
- );
1858
- }
1859
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
1860
- const oldVal = hostRef.$instanceValues$.get(propName);
1861
- const flags = hostRef.$flags$;
1862
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1863
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1864
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1865
- const didValueChange = newVal !== oldVal && !areBothNaN;
1866
- if ((!BUILD.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1867
- hostRef.$instanceValues$.set(propName, newVal);
1868
- if (BUILD.isDev) {
1869
- if (hostRef.$flags$ & 1024 /* devOnRender */) {
1870
- consoleDevWarn(
1871
- `The state/prop "${propName}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,
1872
- "\nElement",
1873
- elm,
1874
- "\nNew value",
1875
- newVal,
1876
- "\nOld value",
1877
- oldVal
1878
- );
1879
- } else if (hostRef.$flags$ & 2048 /* devOnDidLoad */) {
1880
- consoleDevWarn(
1881
- `The state/prop "${propName}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,
1882
- "\nElement",
1883
- elm,
1884
- "\nNew value",
1885
- newVal,
1886
- "\nOld value",
1887
- oldVal
1888
- );
1889
- }
1890
- }
1891
- if (!BUILD.lazyLoad || instance) {
1892
- if (BUILD.watchCallback && cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1893
- const watchMethods = cmpMeta.$watchers$[propName];
1894
- if (watchMethods) {
1895
- watchMethods.map((watchMethodName) => {
1896
- try {
1897
- instance[watchMethodName](newVal, oldVal, propName);
1898
- } catch (e) {
1899
- consoleError(e, elm);
1900
- }
1901
- });
1902
- }
1903
- }
1904
- if (BUILD.updatable && (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1905
- if (BUILD.cmpShouldUpdate && instance.componentShouldUpdate) {
1906
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1907
- return;
1908
- }
1909
- }
1910
- scheduleUpdate(hostRef, false);
1911
- }
1912
- }
1913
- }
1914
- };
1915
-
1916
- // src/runtime/proxy-component.ts
1917
- var proxyComponent = (Cstr, cmpMeta, flags) => {
1918
- var _a, _b;
1919
- const prototype = Cstr.prototype;
1920
- if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
1921
- FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach(
1922
- (cbName) => Object.defineProperty(prototype, cbName, {
1923
- value(...args) {
1924
- const hostRef = getHostRef(this);
1925
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
1926
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1927
- if (!instance) {
1928
- hostRef.$onReadyPromise$.then((instance2) => {
1929
- const cb = instance2[cbName];
1930
- typeof cb === "function" && cb.call(instance2, ...args);
1931
- });
1932
- } else {
1933
- const cb = instance[cbName];
1934
- typeof cb === "function" && cb.call(instance, ...args);
1935
- }
1936
- }
1937
- })
1938
- );
1939
- }
1940
- if (BUILD.member && cmpMeta.$members$ || BUILD.watchCallback && (cmpMeta.$watchers$ || Cstr.watchers)) {
1941
- if (BUILD.watchCallback && Cstr.watchers && !cmpMeta.$watchers$) {
1942
- cmpMeta.$watchers$ = Cstr.watchers;
1943
- }
1944
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1945
- members.map(([memberName, [memberFlags]]) => {
1946
- if ((BUILD.prop || BUILD.state) && (memberFlags & 31 /* Prop */ || (!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1947
- Object.defineProperty(prototype, memberName, {
1948
- get() {
1949
- return getValue(this, memberName);
1950
- },
1951
- set(newValue) {
1952
- if (BUILD.isDev) {
1953
- const ref = getHostRef(this);
1954
- if (
1955
- // we are proxying the instance (not element)
1956
- (flags & 1 /* isElementConstructor */) === 0 && // the element is not constructing
1957
- (ref && ref.$flags$ & 8 /* isConstructingInstance */) === 0 && // the member is a prop
1958
- (memberFlags & 31 /* Prop */) !== 0 && // the member is not mutable
1959
- (memberFlags & 1024 /* Mutable */) === 0
1960
- ) {
1961
- consoleDevWarn(
1962
- `@Prop() "${memberName}" on <${cmpMeta.$tagName$}> is immutable but was modified from within the component.
1963
- More information: https://stenciljs.com/docs/properties#prop-mutability`
1964
- );
1965
- }
1966
- }
1967
- setValue(this, memberName, newValue, cmpMeta);
1968
- },
1969
- configurable: true,
1970
- enumerable: true
1971
- });
1972
- } else if (BUILD.lazyLoad && BUILD.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1973
- Object.defineProperty(prototype, memberName, {
1974
- value(...args) {
1975
- var _a2;
1976
- const ref = getHostRef(this);
1977
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1978
- var _a3;
1979
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1980
- });
1981
- }
1982
- });
1983
- }
1984
- });
1985
- if (BUILD.observeAttribute && (!BUILD.lazyLoad || flags & 1 /* isElementConstructor */)) {
1986
- const attrNameToPropName = /* @__PURE__ */ new Map();
1987
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1988
- plt.jmp(() => {
1989
- var _a2;
1990
- const propName = attrNameToPropName.get(attrName);
1991
- if (this.hasOwnProperty(propName)) {
1992
- newValue = this[propName];
1993
- delete this[propName];
1994
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1995
- return;
1996
- } else if (propName == null) {
1997
- const hostRef = getHostRef(this);
1998
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1999
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
2000
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
2001
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
2002
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2003
- entry == null ? void 0 : entry.forEach((callbackName) => {
2004
- if (instance[callbackName] != null) {
2005
- instance[callbackName].call(instance, newValue, oldValue, attrName);
2006
- }
2007
- });
2008
- }
2009
- return;
2010
- }
2011
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2012
- });
2013
- };
2014
- Cstr.observedAttributes = Array.from(
2015
- /* @__PURE__ */ new Set([
2016
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2017
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
2018
- var _a2;
2019
- const attrName = m[1] || propName;
2020
- attrNameToPropName.set(attrName, propName);
2021
- if (BUILD.reflect && m[0] & 512 /* ReflectAttr */) {
2022
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2023
- }
2024
- return attrName;
2025
- })
2026
- ])
2027
- );
2028
- }
2029
- }
2030
- return Cstr;
2031
- };
2032
-
2033
- // src/runtime/initialize-component.ts
2034
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2035
- let Cstr;
2036
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2037
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2038
- const bundleId = cmpMeta.$lazyBundleId$;
2039
- if ((BUILD.lazyLoad || BUILD.hydrateClientSide) && bundleId) {
2040
- const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
2041
- if (CstrImport && "then" in CstrImport) {
2042
- const endLoad = uniqueTime(
2043
- `st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,
2044
- `[Stencil] Load module for <${cmpMeta.$tagName$}>`
2045
- );
2046
- Cstr = await CstrImport;
2047
- endLoad();
2048
- } else {
2049
- Cstr = CstrImport;
2050
- }
2051
- if (!Cstr) {
2052
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2053
- }
2054
- if (BUILD.member && !Cstr.isProxied) {
2055
- if (BUILD.watchCallback) {
2056
- cmpMeta.$watchers$ = Cstr.watchers;
2057
- }
2058
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2059
- Cstr.isProxied = true;
2060
- }
2061
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2062
- if (BUILD.member) {
2063
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
2064
- }
2065
- try {
2066
- new Cstr(hostRef);
2067
- } catch (e) {
2068
- consoleError(e);
2069
- }
2070
- if (BUILD.member) {
2071
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
2072
- }
2073
- if (BUILD.watchCallback) {
2074
- hostRef.$flags$ |= 128 /* isWatchReady */;
2075
- }
2076
- endNewInstance();
2077
- fireConnectedCallback(hostRef.$lazyInstance$);
2078
- } else {
2079
- Cstr = elm.constructor;
2080
- const cmpTag = elm.localName;
2081
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2082
- }
2083
- if (BUILD.style && Cstr && Cstr.style) {
2084
- let style;
2085
- if (typeof Cstr.style === "string") {
2086
- style = Cstr.style;
2087
- } else if (BUILD.mode && typeof Cstr.style !== "string") {
2088
- hostRef.$modeName$ = computeMode(elm);
2089
- if (hostRef.$modeName$) {
2090
- style = Cstr.style[hostRef.$modeName$];
2091
- }
2092
- if (BUILD.hydrateServerSide && hostRef.$modeName$) {
2093
- elm.setAttribute("s-mode", hostRef.$modeName$);
2094
- }
2095
- }
2096
- const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
2097
- if (!styles.has(scopeId2)) {
2098
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2099
- if (!BUILD.hydrateServerSide && BUILD.shadowDom && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2100
- BUILD.shadowDomShim && cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2101
- style = await Promise.resolve().then(function () { return require('./shadow-css-64ff22a6.js'); }).then((m) => m.scopeCss(style, scopeId2, false));
2102
- }
2103
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2104
- endRegisterStyles();
2105
- }
2106
- }
2107
- }
2108
- const ancestorComponent = hostRef.$ancestorComponent$;
2109
- const schedule = () => scheduleUpdate(hostRef, true);
2110
- if (BUILD.asyncLoading && ancestorComponent && ancestorComponent["s-rc"]) {
2111
- ancestorComponent["s-rc"].push(schedule);
2112
- } else {
2113
- schedule();
2114
- }
2115
- };
2116
- var fireConnectedCallback = (instance) => {
2117
- if (BUILD.lazyLoad && BUILD.connectedCallback) {
2118
- safeCall(instance, "connectedCallback");
2119
- }
2120
- };
2121
-
2122
- // src/runtime/connected-callback.ts
2123
- var connectedCallback = (elm) => {
2124
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2125
- const hostRef = getHostRef(elm);
2126
- const cmpMeta = hostRef.$cmpMeta$;
2127
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2128
- if (BUILD.hostListenerTargetParent) {
2129
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
2130
- }
2131
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2132
- hostRef.$flags$ |= 1 /* hasConnected */;
2133
- let hostId;
2134
- if (BUILD.hydrateClientSide) {
2135
- hostId = elm.getAttribute(HYDRATE_ID);
2136
- if (hostId) {
2137
- if (BUILD.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2138
- const scopeId2 = BUILD.mode ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) : addStyle(elm.shadowRoot, cmpMeta);
2139
- elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2140
- }
2141
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2142
- }
2143
- }
2144
- if (BUILD.slotRelocation && !hostId) {
2145
- if (BUILD.hydrateServerSide || (BUILD.slot || BUILD.shadowDom) && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2146
- cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2147
- setContentReference(elm);
2148
- }
2149
- }
2150
- if (BUILD.asyncLoading) {
2151
- let ancestorComponent = elm;
2152
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2153
- if (BUILD.hydrateClientSide && ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2154
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2155
- break;
2156
- }
2157
- }
2158
- }
2159
- if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
2160
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2161
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
2162
- const value = elm[memberName];
2163
- delete elm[memberName];
2164
- elm[memberName] = value;
2165
- }
2166
- });
2167
- }
2168
- if (BUILD.initializeNextTick) {
2169
- nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
2170
- } else {
2171
- initializeComponent(elm, hostRef, cmpMeta);
2172
- }
2173
- } else {
2174
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
2175
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2176
- fireConnectedCallback(hostRef.$lazyInstance$);
2177
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2178
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
2179
- }
2180
- }
2181
- endConnected();
2182
- }
2183
- };
2184
- var setContentReference = (elm) => {
2185
- const contentRefElm = elm["s-cr"] = doc.createComment(
2186
- BUILD.isDebug ? `content-ref (host=${elm.localName})` : ""
2187
- );
2188
- contentRefElm["s-cn"] = true;
2189
- insertBefore(elm, contentRefElm, elm.firstChild);
2190
- };
2191
- var disconnectInstance = (instance) => {
2192
- if (BUILD.lazyLoad && BUILD.disconnectedCallback) {
2193
- safeCall(instance, "disconnectedCallback");
2194
- }
2195
- if (BUILD.cmpDidUnload) {
2196
- safeCall(instance, "componentDidUnload");
2197
- }
2198
- };
2199
- var disconnectedCallback = async (elm) => {
2200
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2201
- const hostRef = getHostRef(elm);
2202
- if (BUILD.hostListener) {
2203
- if (hostRef.$rmListeners$) {
2204
- hostRef.$rmListeners$.map((rmListener) => rmListener());
2205
- hostRef.$rmListeners$ = void 0;
2206
- }
2207
- }
2208
- if (!BUILD.lazyLoad) {
2209
- disconnectInstance(elm);
2210
- } else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2211
- disconnectInstance(hostRef.$lazyInstance$);
2212
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2213
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2214
- }
2215
- }
2216
- };
2217
- var patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
2218
- patchCloneNode(hostElementPrototype);
2219
- patchSlotAppendChild(hostElementPrototype);
2220
- patchSlotAppend(hostElementPrototype);
2221
- patchSlotPrepend(hostElementPrototype);
2222
- patchSlotInsertAdjacentElement(hostElementPrototype);
2223
- patchSlotInsertAdjacentHTML(hostElementPrototype);
2224
- patchSlotInsertAdjacentText(hostElementPrototype);
2225
- patchTextContent(hostElementPrototype);
2226
- patchChildSlotNodes(hostElementPrototype, descriptorPrototype);
2227
- patchSlotRemoveChild(hostElementPrototype);
2228
- };
2229
- var patchCloneNode = (HostElementPrototype) => {
2230
- const orgCloneNode = HostElementPrototype.cloneNode;
2231
- HostElementPrototype.cloneNode = function(deep) {
2232
- const srcNode = this;
2233
- const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;
2234
- const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
2235
- if (BUILD.slot && !isShadowDom && deep) {
2236
- let i2 = 0;
2237
- let slotted, nonStencilNode;
2238
- const stencilPrivates = [
2239
- "s-id",
2240
- "s-cr",
2241
- "s-lr",
2242
- "s-rc",
2243
- "s-sc",
2244
- "s-p",
2245
- "s-cn",
2246
- "s-sr",
2247
- "s-sn",
2248
- "s-hn",
2249
- "s-ol",
2250
- "s-nr",
2251
- "s-si",
2252
- "s-rf",
2253
- "s-scs"
2254
- ];
2255
- for (; i2 < srcNode.childNodes.length; i2++) {
2256
- slotted = srcNode.childNodes[i2]["s-nr"];
2257
- nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
2258
- if (slotted) {
2259
- if (BUILD.appendChildSlotFix && clonedNode.__appendChild) {
2260
- clonedNode.__appendChild(slotted.cloneNode(true));
2261
- } else {
2262
- clonedNode.appendChild(slotted.cloneNode(true));
2263
- }
2264
- }
2265
- if (nonStencilNode) {
2266
- clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
2267
- }
2268
- }
2269
- }
2270
- return clonedNode;
2271
- };
2272
- };
2273
- var patchSlotAppendChild = (HostElementPrototype) => {
2274
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
2275
- HostElementPrototype.appendChild = function(newChild) {
2276
- const slotName = newChild["s-sn"] = getSlotName(newChild);
2277
- const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
2278
- if (slotNode) {
2279
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
2280
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
2281
- const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
2282
- updateFallbackSlotVisibility(this);
2283
- return insertedNode;
2284
- }
2285
- return this.__appendChild(newChild);
2286
- };
2287
- };
2288
- var patchSlotRemoveChild = (ElementPrototype) => {
2289
- ElementPrototype.__removeChild = ElementPrototype.removeChild;
2290
- ElementPrototype.removeChild = function(toRemove) {
2291
- if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
2292
- const slotNode = getHostSlotNode(this.childNodes, toRemove["s-sn"], this.tagName);
2293
- if (slotNode) {
2294
- const slotChildNodes = getHostSlotChildNodes(slotNode, toRemove["s-sn"]);
2295
- const existingNode = slotChildNodes.find((n) => n === toRemove);
2296
- if (existingNode) {
2297
- existingNode.remove();
2298
- updateFallbackSlotVisibility(this);
2299
- return;
2300
- }
2301
- }
2302
- }
2303
- return this.__removeChild(toRemove);
2304
- };
2305
- };
2306
- var patchSlotPrepend = (HostElementPrototype) => {
2307
- const originalPrepend = HostElementPrototype.prepend;
2308
- HostElementPrototype.prepend = function(...newChildren) {
2309
- newChildren.forEach((newChild) => {
2310
- if (typeof newChild === "string") {
2311
- newChild = this.ownerDocument.createTextNode(newChild);
2312
- }
2313
- const slotName = newChild["s-sn"] = getSlotName(newChild);
2314
- const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
2315
- if (slotNode) {
2316
- const slotPlaceholder = document.createTextNode("");
2317
- slotPlaceholder["s-nr"] = newChild;
2318
- slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
2319
- newChild["s-ol"] = slotPlaceholder;
2320
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
2321
- const appendAfter = slotChildNodes[0];
2322
- return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
2323
- }
2324
- if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
2325
- newChild.hidden = true;
2326
- }
2327
- return originalPrepend.call(this, newChild);
2328
- });
2329
- };
2330
- };
2331
- var patchSlotAppend = (HostElementPrototype) => {
2332
- HostElementPrototype.append = function(...newChildren) {
2333
- newChildren.forEach((newChild) => {
2334
- if (typeof newChild === "string") {
2335
- newChild = this.ownerDocument.createTextNode(newChild);
2336
- }
2337
- this.appendChild(newChild);
2338
- });
2339
- };
2340
- };
2341
- var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
2342
- const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
2343
- HostElementPrototype.insertAdjacentHTML = function(position, text) {
2344
- if (position !== "afterbegin" && position !== "beforeend") {
2345
- return originalInsertAdjacentHtml.call(this, position, text);
2346
- }
2347
- const container = this.ownerDocument.createElement("_");
2348
- let node;
2349
- container.innerHTML = text;
2350
- if (position === "afterbegin") {
2351
- while (node = container.firstChild) {
2352
- this.prepend(node);
2353
- }
2354
- } else if (position === "beforeend") {
2355
- while (node = container.firstChild) {
2356
- this.append(node);
2357
- }
2358
- }
2359
- };
2360
- };
2361
- var patchSlotInsertAdjacentText = (HostElementPrototype) => {
2362
- HostElementPrototype.insertAdjacentText = function(position, text) {
2363
- this.insertAdjacentHTML(position, text);
2364
- };
2365
- };
2366
- var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
2367
- const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
2368
- HostElementPrototype.insertAdjacentElement = function(position, element) {
2369
- if (position !== "afterbegin" && position !== "beforeend") {
2370
- return originalInsertAdjacentElement.call(this, position, element);
2371
- }
2372
- if (position === "afterbegin") {
2373
- this.prepend(element);
2374
- return element;
2375
- } else if (position === "beforeend") {
2376
- this.append(element);
2377
- return element;
2378
- }
2379
- return element;
2380
- };
2381
- };
2382
- var patchTextContent = (hostElementPrototype) => {
2383
- const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
2384
- Object.defineProperty(hostElementPrototype, "__textContent", descriptor);
2385
- if (BUILD.experimentalScopedSlotChanges) {
2386
- Object.defineProperty(hostElementPrototype, "textContent", {
2387
- // To mimic shadow root behavior, we need to return the text content of all
2388
- // nodes in a slot reference node
2389
- get() {
2390
- const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2391
- const textContent = slotRefNodes.map((node) => {
2392
- var _a, _b;
2393
- const text = [];
2394
- let slotContent = node.nextSibling;
2395
- while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2396
- if (slotContent.nodeType === 3 /* TEXT_NODE */ || slotContent.nodeType === 1 /* ELEMENT_NODE */) {
2397
- text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
2398
- }
2399
- slotContent = slotContent.nextSibling;
2400
- }
2401
- return text.filter((ref) => ref !== "").join(" ");
2402
- }).filter((text) => text !== "").join(" ");
2403
- return " " + textContent + " ";
2404
- },
2405
- // To mimic shadow root behavior, we need to overwrite all nodes in a slot
2406
- // reference node. If a default slot reference node exists, the text content will be
2407
- // placed there. Otherwise, the new text node will be hidden
2408
- set(value) {
2409
- const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2410
- slotRefNodes.forEach((node) => {
2411
- let slotContent = node.nextSibling;
2412
- while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2413
- const tmp = slotContent;
2414
- slotContent = slotContent.nextSibling;
2415
- tmp.remove();
2416
- }
2417
- if (node["s-sn"] === "") {
2418
- const textNode = this.ownerDocument.createTextNode(value);
2419
- textNode["s-sn"] = "";
2420
- insertBefore(node.parentElement, textNode, node.nextSibling);
2421
- } else {
2422
- node.remove();
2423
- }
2424
- });
2425
- }
2426
- });
2427
- } else {
2428
- Object.defineProperty(hostElementPrototype, "textContent", {
2429
- get() {
2430
- var _a;
2431
- const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
2432
- if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
2433
- return slotNode.nextSibling.textContent;
2434
- } else if (slotNode) {
2435
- return slotNode.textContent;
2436
- } else {
2437
- return this.__textContent;
2438
- }
2439
- },
2440
- set(value) {
2441
- var _a;
2442
- const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
2443
- if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
2444
- slotNode.nextSibling.textContent = value;
2445
- } else if (slotNode) {
2446
- slotNode.textContent = value;
2447
- } else {
2448
- this.__textContent = value;
2449
- const contentRefElm = this["s-cr"];
2450
- if (contentRefElm) {
2451
- insertBefore(this, contentRefElm, this.firstChild);
2452
- }
2453
- }
2454
- }
2455
- });
2456
- }
2457
- };
2458
- var patchChildSlotNodes = (elm, cmpMeta) => {
2459
- class FakeNodeList extends Array {
2460
- item(n) {
2461
- return this[n];
2462
- }
2463
- }
2464
- if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2465
- const childNodesFn = elm.__lookupGetter__("childNodes");
2466
- Object.defineProperty(elm, "children", {
2467
- get() {
2468
- return this.childNodes.map((n) => n.nodeType === 1);
2469
- }
2470
- });
2471
- Object.defineProperty(elm, "childElementCount", {
2472
- get() {
2473
- return elm.children.length;
2474
- }
2475
- });
2476
- Object.defineProperty(elm, "childNodes", {
2477
- get() {
2478
- const childNodes = childNodesFn.call(this);
2479
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
2480
- const result = new FakeNodeList();
2481
- for (let i2 = 0; i2 < childNodes.length; i2++) {
2482
- const slot = childNodes[i2]["s-nr"];
2483
- if (slot) {
2484
- result.push(slot);
2485
- }
2486
- }
2487
- return result;
2488
- }
2489
- return FakeNodeList.from(childNodes);
2490
- }
2491
- });
2492
- }
2493
- };
2494
- var getAllChildSlotNodes = (childNodes) => {
2495
- const slotRefNodes = [];
2496
- for (const childNode of Array.from(childNodes)) {
2497
- if (childNode["s-sr"]) {
2498
- slotRefNodes.push(childNode);
2499
- }
2500
- slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));
2501
- }
2502
- return slotRefNodes;
2503
- };
2504
- var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
2505
- var getHostSlotNode = (childNodes, slotName, hostName) => {
2506
- let i2 = 0;
2507
- let childNode;
2508
- for (; i2 < childNodes.length; i2++) {
2509
- childNode = childNodes[i2];
2510
- if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
2511
- return childNode;
2512
- }
2513
- childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
2514
- if (childNode) {
2515
- return childNode;
2516
- }
2517
- }
2518
- return null;
2519
- };
2520
- var getHostSlotChildNodes = (n, slotName) => {
2521
- const childNodes = [n];
2522
- while ((n = n.nextSibling) && n["s-sn"] === slotName) {
2523
- childNodes.push(n);
2524
- }
2525
- return childNodes;
2526
- };
2527
-
2528
- // src/runtime/bootstrap-custom-element.ts
2529
- var defineCustomElement = (Cstr, compactMeta) => {
2530
- customElements.define(compactMeta[1], proxyCustomElement(Cstr, compactMeta));
2531
- };
2532
- var proxyCustomElement = (Cstr, compactMeta) => {
2533
- const cmpMeta = {
2534
- $flags$: compactMeta[0],
2535
- $tagName$: compactMeta[1]
2536
- };
2537
- if (BUILD.member) {
2538
- cmpMeta.$members$ = compactMeta[2];
2539
- }
2540
- if (BUILD.hostListener) {
2541
- cmpMeta.$listeners$ = compactMeta[3];
2542
- }
2543
- if (BUILD.watchCallback) {
2544
- cmpMeta.$watchers$ = Cstr.$watchers$;
2545
- }
2546
- if (BUILD.reflect) {
2547
- cmpMeta.$attrsToReflect$ = [];
2548
- }
2549
- if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2550
- cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
2551
- }
2552
- if (BUILD.experimentalSlotFixes) {
2553
- if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2554
- patchPseudoShadowDom(Cstr.prototype, cmpMeta);
2555
- }
2556
- } else {
2557
- if (BUILD.slotChildNodesFix) {
2558
- patchChildSlotNodes(Cstr.prototype, cmpMeta);
2559
- }
2560
- if (BUILD.cloneNodeFix) {
2561
- patchCloneNode(Cstr.prototype);
2562
- }
2563
- if (BUILD.appendChildSlotFix) {
2564
- patchSlotAppendChild(Cstr.prototype);
2565
- }
2566
- if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2567
- patchTextContent(Cstr.prototype);
2568
- }
2569
- }
2570
- const originalConnectedCallback = Cstr.prototype.connectedCallback;
2571
- const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
2572
- Object.assign(Cstr.prototype, {
2573
- __registerHost() {
2574
- registerHost(this, cmpMeta);
2575
- },
2576
- connectedCallback() {
2577
- const hostRef = getHostRef(this);
2578
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
2579
- connectedCallback(this);
2580
- if (BUILD.connectedCallback && originalConnectedCallback) {
2581
- originalConnectedCallback.call(this);
2582
- }
2583
- },
2584
- disconnectedCallback() {
2585
- disconnectedCallback(this);
2586
- if (BUILD.disconnectedCallback && originalDisconnectedCallback) {
2587
- originalDisconnectedCallback.call(this);
2588
- }
2589
- },
2590
- __attachShadow() {
2591
- if (supportsShadow) {
2592
- if (!this.shadowRoot) {
2593
- if (BUILD.shadowDelegatesFocus) {
2594
- this.attachShadow({
2595
- mode: "open",
2596
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
2597
- });
2598
- } else {
2599
- this.attachShadow({ mode: "open" });
2600
- }
2601
- } else {
2602
- if (this.shadowRoot.mode !== "open") {
2603
- throw new Error(
2604
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
2605
- );
2606
- }
2607
- }
2608
- } else {
2609
- this.shadowRoot = this;
2610
- }
2611
- }
2612
- });
2613
- Cstr.is = cmpMeta.$tagName$;
2614
- return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
2615
- };
2616
- var forceModeUpdate = (elm) => {
2617
- if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
2618
- const mode = computeMode(elm);
2619
- const hostRef = getHostRef(elm);
2620
- if (hostRef.$modeName$ !== mode) {
2621
- const cmpMeta = hostRef.$cmpMeta$;
2622
- const oldScopeId = elm["s-sc"];
2623
- const scopeId2 = getScopeId(cmpMeta, mode);
2624
- const style = elm.constructor.style[mode];
2625
- const flags = cmpMeta.$flags$;
2626
- if (style) {
2627
- if (!styles.has(scopeId2)) {
2628
- registerStyle(scopeId2, style, !!(flags & 1 /* shadowDomEncapsulation */));
2629
- }
2630
- hostRef.$modeName$ = mode;
2631
- elm.classList.remove(oldScopeId + "-h", oldScopeId + "-s");
2632
- attachStyles(hostRef);
2633
- forceUpdate(elm);
2634
- }
2635
- }
2636
- }
2637
- };
2638
-
2639
- // src/runtime/hmr-component.ts
2640
- var hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
2641
- const hostRef = getHostRef(hostElement);
2642
- hostRef.$flags$ = 1 /* hasConnected */;
2643
- initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);
2644
- };
2645
-
2646
- // src/runtime/bootstrap-lazy.ts
2647
- var bootstrapLazy = (lazyBundles, options = {}) => {
2648
- var _a;
2649
- if (BUILD.profile && performance.mark) {
2650
- performance.mark("st:app:start");
2651
- }
2652
- installDevTools();
2653
- const endBootstrap = createTime("bootstrapLazy");
2654
- const cmpTags = [];
2655
- const exclude = options.exclude || [];
2656
- const customElements2 = win.customElements;
2657
- const head = doc.head;
2658
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2659
- const dataStyles = /* @__PURE__ */ doc.createElement("style");
2660
- const deferredConnectedCallbacks = [];
2661
- const styles2 = /* @__PURE__ */ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
2662
- let appLoadFallback;
2663
- let isBootstrapping = true;
2664
- let i2 = 0;
2665
- Object.assign(plt, options);
2666
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
2667
- if (BUILD.asyncQueue) {
2668
- if (options.syncQueue) {
2669
- plt.$flags$ |= 4 /* queueSync */;
2670
- }
2671
- }
2672
- if (BUILD.hydrateClientSide) {
2673
- plt.$flags$ |= 2 /* appLoaded */;
2674
- }
2675
- if (BUILD.hydrateClientSide && BUILD.shadowDom) {
2676
- for (; i2 < styles2.length; i2++) {
2677
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
2678
- }
2679
- }
2680
- let hasSlotRelocation = false;
2681
- lazyBundles.map((lazyBundle) => {
2682
- lazyBundle[1].map((compactMeta) => {
2683
- var _a2;
2684
- const cmpMeta = {
2685
- $flags$: compactMeta[0],
2686
- $tagName$: compactMeta[1],
2687
- $members$: compactMeta[2],
2688
- $listeners$: compactMeta[3]
2689
- };
2690
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2691
- hasSlotRelocation = true;
2692
- }
2693
- if (BUILD.member) {
2694
- cmpMeta.$members$ = compactMeta[2];
2695
- }
2696
- if (BUILD.hostListener) {
2697
- cmpMeta.$listeners$ = compactMeta[3];
2698
- }
2699
- if (BUILD.reflect) {
2700
- cmpMeta.$attrsToReflect$ = [];
2701
- }
2702
- if (BUILD.watchCallback) {
2703
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
2704
- }
2705
- if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2706
- cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
2707
- }
2708
- const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : cmpMeta.$tagName$;
2709
- const HostElement = class extends HTMLElement {
2710
- // StencilLazyHost
2711
- constructor(self) {
2712
- super(self);
2713
- this.hasRegisteredEventListeners = false;
2714
- self = this;
2715
- registerHost(self, cmpMeta);
2716
- if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2717
- if (supportsShadow) {
2718
- if (!self.shadowRoot) {
2719
- if (BUILD.shadowDelegatesFocus) {
2720
- self.attachShadow({
2721
- mode: "open",
2722
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
2723
- });
2724
- } else {
2725
- self.attachShadow({ mode: "open" });
2726
- }
2727
- } else {
2728
- if (self.shadowRoot.mode !== "open") {
2729
- throw new Error(
2730
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2731
- );
2732
- }
2733
- }
2734
- } else if (!BUILD.hydrateServerSide && !("shadowRoot" in self)) {
2735
- self.shadowRoot = self;
2736
- }
2737
- }
2738
- }
2739
- connectedCallback() {
2740
- const hostRef = getHostRef(this);
2741
- if (!this.hasRegisteredEventListeners) {
2742
- this.hasRegisteredEventListeners = true;
2743
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
2744
- }
2745
- if (appLoadFallback) {
2746
- clearTimeout(appLoadFallback);
2747
- appLoadFallback = null;
2748
- }
2749
- if (isBootstrapping) {
2750
- deferredConnectedCallbacks.push(this);
2751
- } else {
2752
- plt.jmp(() => connectedCallback(this));
2753
- }
2754
- }
2755
- disconnectedCallback() {
2756
- plt.jmp(() => disconnectedCallback(this));
2757
- }
2758
- componentOnReady() {
2759
- return getHostRef(this).$onReadyPromise$;
2760
- }
2761
- };
2762
- if (BUILD.experimentalSlotFixes) {
2763
- if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2764
- patchPseudoShadowDom(HostElement.prototype, cmpMeta);
2765
- }
2766
- } else {
2767
- if (BUILD.slotChildNodesFix) {
2768
- patchChildSlotNodes(HostElement.prototype, cmpMeta);
2769
- }
2770
- if (BUILD.cloneNodeFix) {
2771
- patchCloneNode(HostElement.prototype);
2772
- }
2773
- if (BUILD.appendChildSlotFix) {
2774
- patchSlotAppendChild(HostElement.prototype);
2775
- }
2776
- if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2777
- patchTextContent(HostElement.prototype);
2778
- }
2779
- }
2780
- if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */) {
2781
- HostElement.formAssociated = true;
2782
- }
2783
- if (BUILD.hotModuleReplacement) {
2784
- HostElement.prototype["s-hmr"] = function(hmrVersionId) {
2785
- hmrStart(this, cmpMeta, hmrVersionId);
2786
- };
2787
- }
2788
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
2789
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2790
- cmpTags.push(tagName);
2791
- customElements2.define(
2792
- tagName,
2793
- proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2794
- );
2795
- }
2796
- });
2797
- });
2798
- if (cmpTags.length > 0) {
2799
- if (hasSlotRelocation) {
2800
- dataStyles.textContent += SLOT_FB_CSS;
2801
- }
2802
- if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
2803
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2804
- }
2805
- if (dataStyles.innerHTML.length) {
2806
- dataStyles.setAttribute("data-styles", "");
2807
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
2808
- if (nonce != null) {
2809
- dataStyles.setAttribute("nonce", nonce);
2810
- }
2811
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2812
- }
2813
- }
2814
- isBootstrapping = false;
2815
- if (deferredConnectedCallbacks.length) {
2816
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
2817
- } else {
2818
- if (BUILD.profile) {
2819
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30, "timeout"));
2820
- } else {
2821
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2822
- }
2823
- }
2824
- endBootstrap();
2825
- };
2826
-
2827
- // src/runtime/fragment.ts
2828
- var Fragment = (_, children) => children;
2829
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2830
- if (BUILD.hostListener && listeners) {
2831
- if (BUILD.hostListenerTargetParent) {
2832
- if (attachParentListeners) {
2833
- listeners = listeners.filter(([flags]) => flags & 32 /* TargetParent */);
2834
- } else {
2835
- listeners = listeners.filter(([flags]) => !(flags & 32 /* TargetParent */));
2836
- }
2837
- }
2838
- listeners.map(([flags, name, method]) => {
2839
- const target = BUILD.hostListenerTarget ? getHostListenerTarget(elm, flags) : elm;
2840
- const handler = hostListenerProxy(hostRef, method);
2841
- const opts = hostListenerOpts(flags);
2842
- plt.ael(target, name, handler, opts);
2843
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2844
- });
2845
- }
2846
- };
2847
- var hostListenerProxy = (hostRef, methodName) => (ev) => {
2848
- var _a;
2849
- try {
2850
- if (BUILD.lazyLoad) {
2851
- if (hostRef.$flags$ & 256 /* isListenReady */) {
2852
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2853
- } else {
2854
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2855
- }
2856
- } else {
2857
- hostRef.$hostElement$[methodName](ev);
2858
- }
2859
- } catch (e) {
2860
- consoleError(e);
2861
- }
2862
- };
2863
- var getHostListenerTarget = (elm, flags) => {
2864
- if (BUILD.hostListenerTargetDocument && flags & 4 /* TargetDocument */) return doc;
2865
- if (BUILD.hostListenerTargetWindow && flags & 8 /* TargetWindow */) return win;
2866
- if (BUILD.hostListenerTargetBody && flags & 16 /* TargetBody */) return doc.body;
2867
- if (BUILD.hostListenerTargetParent && flags & 32 /* TargetParent */ && elm.parentElement)
2868
- return elm.parentElement;
2869
- return elm;
2870
- };
2871
- var hostListenerOpts = (flags) => supportsListenerOptions ? {
2872
- passive: (flags & 1 /* Passive */) !== 0,
2873
- capture: (flags & 2 /* Capture */) !== 0
2874
- } : (flags & 2 /* Capture */) !== 0;
2875
-
2876
- // src/runtime/nonce.ts
2877
- var setNonce = (nonce) => plt.$nonce$ = nonce;
2878
-
2879
- // src/runtime/platform-options.ts
2880
- var setPlatformOptions = (opts) => Object.assign(plt, opts);
2881
-
2882
- // src/runtime/vdom/vdom-annotations.ts
2883
- var insertVdomAnnotations = (doc2, staticComponents) => {
2884
- if (doc2 != null) {
2885
- const docData = {
2886
- hostIds: 0,
2887
- rootLevelIds: 0,
2888
- staticComponents: new Set(staticComponents)
2889
- };
2890
- const orgLocationNodes = [];
2891
- parseVNodeAnnotations(doc2, doc2.body, docData, orgLocationNodes);
2892
- orgLocationNodes.forEach((orgLocationNode) => {
2893
- var _a;
2894
- if (orgLocationNode != null && orgLocationNode["s-nr"]) {
2895
- const nodeRef = orgLocationNode["s-nr"];
2896
- let hostId = nodeRef["s-host-id"];
2897
- let nodeId = nodeRef["s-node-id"];
2898
- let childId = `${hostId}.${nodeId}`;
2899
- if (hostId == null) {
2900
- hostId = 0;
2901
- docData.rootLevelIds++;
2902
- nodeId = docData.rootLevelIds;
2903
- childId = `${hostId}.${nodeId}`;
2904
- if (nodeRef.nodeType === 1 /* ElementNode */) {
2905
- nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);
2906
- } else if (nodeRef.nodeType === 3 /* TextNode */) {
2907
- if (hostId === 0) {
2908
- const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
2909
- if (textContent === "") {
2910
- orgLocationNode.remove();
2911
- return;
2912
- }
2913
- }
2914
- const commentBeforeTextNode = doc2.createComment(childId);
2915
- commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
2916
- insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
2917
- }
2918
- }
2919
- let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;
2920
- const orgLocationParentNode = orgLocationNode.parentElement;
2921
- if (orgLocationParentNode) {
2922
- if (orgLocationParentNode["s-en"] === "") {
2923
- orgLocationNodeId += `.`;
2924
- } else if (orgLocationParentNode["s-en"] === "c") {
2925
- orgLocationNodeId += `.c`;
2926
- }
2927
- }
2928
- orgLocationNode.nodeValue = orgLocationNodeId;
2929
- }
2930
- });
2931
- }
2932
- };
2933
- var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
2934
- var _a;
2935
- if (node == null) {
2936
- return;
2937
- }
2938
- if (node["s-nr"] != null) {
2939
- orgLocationNodes.push(node);
2940
- }
2941
- if (node.nodeType === 1 /* ElementNode */) {
2942
- const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];
2943
- childNodes.forEach((childNode) => {
2944
- const hostRef = getHostRef(childNode);
2945
- if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
2946
- const cmpData = {
2947
- nodeIds: 0
2948
- };
2949
- insertVNodeAnnotations(doc2, childNode, hostRef.$vnode$, docData, cmpData);
2950
- }
2951
- parseVNodeAnnotations(doc2, childNode, docData, orgLocationNodes);
2952
- });
2953
- }
2954
- };
2955
- var insertVNodeAnnotations = (doc2, hostElm, vnode, docData, cmpData) => {
2956
- if (vnode != null) {
2957
- const hostId = ++docData.hostIds;
2958
- hostElm.setAttribute(HYDRATE_ID, hostId);
2959
- if (hostElm["s-cr"] != null) {
2960
- hostElm["s-cr"].nodeValue = `${CONTENT_REF_ID}.${hostId}`;
2961
- }
2962
- if (vnode.$children$ != null) {
2963
- const depth = 0;
2964
- vnode.$children$.forEach((vnodeChild, index) => {
2965
- insertChildVNodeAnnotations(doc2, vnodeChild, cmpData, hostId, depth, index);
2966
- });
2967
- }
2968
- if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {
2969
- const parent = hostElm.parentElement;
2970
- if (parent && parent.childNodes) {
2971
- const parentChildNodes = Array.from(parent.childNodes);
2972
- const comment = parentChildNodes.find(
2973
- (node) => node.nodeType === 8 /* CommentNode */ && node["s-sr"]
2974
- );
2975
- if (comment) {
2976
- const index = parentChildNodes.indexOf(hostElm) - 1;
2977
- vnode.$elm$.setAttribute(
2978
- HYDRATE_CHILD_ID,
2979
- `${comment["s-host-id"]}.${comment["s-node-id"]}.0.${index}`
2980
- );
2981
- }
2982
- }
2983
- }
2984
- }
2985
- };
2986
- var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, index) => {
2987
- const childElm = vnodeChild.$elm$;
2988
- if (childElm == null) {
2989
- return;
2990
- }
2991
- const nodeId = cmpData.nodeIds++;
2992
- const childId = `${hostId}.${nodeId}.${depth}.${index}`;
2993
- childElm["s-host-id"] = hostId;
2994
- childElm["s-node-id"] = nodeId;
2995
- if (childElm.nodeType === 1 /* ElementNode */) {
2996
- childElm.setAttribute(HYDRATE_CHILD_ID, childId);
2997
- } else if (childElm.nodeType === 3 /* TextNode */) {
2998
- const parentNode = childElm.parentNode;
2999
- const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
3000
- if (nodeName !== "STYLE" && nodeName !== "SCRIPT") {
3001
- const textNodeId = `${TEXT_NODE_ID}.${childId}`;
3002
- const commentBeforeTextNode = doc2.createComment(textNodeId);
3003
- insertBefore(parentNode, commentBeforeTextNode, childElm);
3004
- }
3005
- } else if (childElm.nodeType === 8 /* CommentNode */) {
3006
- if (childElm["s-sr"]) {
3007
- const slotName = childElm["s-sn"] || "";
3008
- const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`;
3009
- childElm.nodeValue = slotNodeId;
3010
- }
3011
- }
3012
- if (vnodeChild.$children$ != null) {
3013
- const childDepth = depth + 1;
3014
- vnodeChild.$children$.forEach((vnode, index2) => {
3015
- insertChildVNodeAnnotations(doc2, vnode, cmpData, hostId, childDepth, index2);
3016
- });
3017
- }
3018
- };
3019
-
3020
- exports.BUILD = BUILD;
3021
- exports.Build = Build;
3022
- exports.Fragment = Fragment;
3023
- exports.H = H;
3024
- exports.Host = Host;
3025
- exports.NAMESPACE = NAMESPACE;
3026
- exports.bootstrapLazy = bootstrapLazy;
3027
- exports.consoleDevInfo = consoleDevInfo;
3028
- exports.createEvent = createEvent;
3029
- exports.doc = doc;
3030
- exports.forceUpdate = forceUpdate;
3031
- exports.getAssetPath = getAssetPath;
3032
- exports.getElement = getElement;
3033
- exports.getRenderingRef = getRenderingRef;
3034
- exports.h = h;
3035
- exports.promiseResolve = promiseResolve;
3036
- exports.readTask = readTask;
3037
- exports.registerInstance = registerInstance;
3038
- exports.setNonce = setNonce;