@gov-design-system-ce/components 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1209) hide show
  1. package/dist/cjs/constants-02ecd1c7.js +21 -0
  2. package/dist/cjs/constants-02ecd1c7.js.map +1 -0
  3. package/dist/cjs/constants-1d5ec4c5.js +15 -0
  4. package/dist/cjs/constants-1d5ec4c5.js.map +1 -0
  5. package/dist/cjs/constants-3248a281.js +29 -0
  6. package/dist/cjs/constants-3248a281.js.map +1 -0
  7. package/dist/cjs/constants-404ee283.js +21 -0
  8. package/dist/cjs/constants-404ee283.js.map +1 -0
  9. package/dist/cjs/constants-4a012eff.js +22 -0
  10. package/dist/cjs/constants-4a012eff.js.map +1 -0
  11. package/dist/cjs/constants-57e09cb3.js +21 -0
  12. package/dist/cjs/constants-57e09cb3.js.map +1 -0
  13. package/dist/cjs/constants-736bf980.js +10 -0
  14. package/dist/cjs/constants-736bf980.js.map +1 -0
  15. package/dist/cjs/constants-aba7a597.js +23 -0
  16. package/dist/cjs/constants-aba7a597.js.map +1 -0
  17. package/dist/cjs/constants-bd1db896.js +18 -0
  18. package/dist/cjs/constants-bd1db896.js.map +1 -0
  19. package/dist/cjs/constants-c3c9f325.js +21 -0
  20. package/dist/cjs/constants-c3c9f325.js.map +1 -0
  21. package/dist/cjs/constants-e0d4a186.js +22 -0
  22. package/dist/cjs/constants-e0d4a186.js.map +1 -0
  23. package/dist/cjs/constants-e47694c4.js +19 -0
  24. package/dist/cjs/constants-e47694c4.js.map +1 -0
  25. package/dist/cjs/constants-ed8f3212.js +25 -0
  26. package/dist/cjs/constants-ed8f3212.js.map +1 -0
  27. package/dist/cjs/core.cjs.js +21 -0
  28. package/dist/cjs/core.cjs.js.map +1 -0
  29. package/dist/cjs/form-9ab2ace1.js +93 -0
  30. package/dist/cjs/form-9ab2ace1.js.map +1 -0
  31. package/dist/cjs/gov-accordion-item.cjs.entry.js +106 -0
  32. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -0
  33. package/dist/cjs/gov-accordion.cjs.entry.js +71 -0
  34. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -0
  35. package/dist/cjs/gov-alert.cjs.entry.js +52 -0
  36. package/dist/cjs/gov-alert.cjs.entry.js.map +1 -0
  37. package/dist/cjs/gov-app.cjs.entry.js +7178 -0
  38. package/dist/cjs/gov-app.cjs.entry.js.map +1 -0
  39. package/dist/cjs/gov-attachments_3.cjs.entry.js +114 -0
  40. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -0
  41. package/dist/cjs/gov-backdrop.cjs.entry.js +47 -0
  42. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -0
  43. package/dist/cjs/gov-badge.cjs.entry.js +83 -0
  44. package/dist/cjs/gov-badge.cjs.entry.js.map +1 -0
  45. package/dist/cjs/gov-button.cjs.entry.js +151 -0
  46. package/dist/cjs/gov-button.cjs.entry.js.map +1 -0
  47. package/dist/cjs/gov-card.cjs.entry.js +110 -0
  48. package/dist/cjs/gov-card.cjs.entry.js.map +1 -0
  49. package/dist/cjs/gov-container.cjs.entry.js +30 -0
  50. package/dist/cjs/gov-container.cjs.entry.js.map +1 -0
  51. package/dist/cjs/gov-cookiebar.cjs.entry.js +33 -0
  52. package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -0
  53. package/dist/cjs/gov-empty.cjs.entry.js +31 -0
  54. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -0
  55. package/dist/cjs/gov-error-code.cjs.entry.js +31 -0
  56. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -0
  57. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +177 -0
  58. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -0
  59. package/dist/cjs/gov-form-checkbox.cjs.entry.js +100 -0
  60. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -0
  61. package/dist/cjs/gov-form-control.cjs.entry.js +87 -0
  62. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -0
  63. package/dist/cjs/gov-form-dropdown.cjs.entry.js +21 -0
  64. package/dist/cjs/gov-form-dropdown.cjs.entry.js.map +1 -0
  65. package/dist/cjs/gov-form-file.cjs.entry.js +179 -0
  66. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -0
  67. package/dist/cjs/gov-form-group.cjs.entry.js +25 -0
  68. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -0
  69. package/dist/cjs/gov-form-input.cjs.entry.js +150 -0
  70. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -0
  71. package/dist/cjs/gov-form-label.cjs.entry.js +24 -0
  72. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -0
  73. package/dist/cjs/gov-form-multi-select.cjs.entry.js +186 -0
  74. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -0
  75. package/dist/cjs/gov-form-radio.cjs.entry.js +100 -0
  76. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -0
  77. package/dist/cjs/gov-form-search.cjs.entry.js +61 -0
  78. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -0
  79. package/dist/cjs/gov-form-select.cjs.entry.js +121 -0
  80. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -0
  81. package/dist/cjs/gov-form-switch.cjs.entry.js +97 -0
  82. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -0
  83. package/dist/cjs/gov-grid.cjs.entry.js +35 -0
  84. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -0
  85. package/dist/cjs/gov-icon.cjs.entry.js +111 -0
  86. package/dist/cjs/gov-icon.cjs.entry.js.map +1 -0
  87. package/dist/cjs/gov-message.cjs.entry.js +41 -0
  88. package/dist/cjs/gov-message.cjs.entry.js.map +1 -0
  89. package/dist/cjs/gov-modal.cjs.entry.js +99 -0
  90. package/dist/cjs/gov-modal.cjs.entry.js.map +1 -0
  91. package/dist/cjs/gov-pagination.cjs.entry.js +145 -0
  92. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -0
  93. package/dist/cjs/gov-prompt.cjs.entry.js +99 -0
  94. package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -0
  95. package/dist/cjs/gov-side-nav-item.cjs.entry.js +94 -0
  96. package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -0
  97. package/dist/cjs/gov-side-nav.cjs.entry.js +56 -0
  98. package/dist/cjs/gov-side-nav.cjs.entry.js.map +1 -0
  99. package/dist/cjs/gov-spacer.cjs.entry.js +56 -0
  100. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -0
  101. package/dist/cjs/gov-statsbar-item.cjs.entry.js +37 -0
  102. package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -0
  103. package/dist/cjs/gov-statsbar.cjs.entry.js +49 -0
  104. package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -0
  105. package/dist/cjs/gov-stepper-item.cjs.entry.js +75 -0
  106. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -0
  107. package/dist/cjs/gov-stepper.cjs.entry.js +47 -0
  108. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -0
  109. package/dist/cjs/gov-tabs-item.cjs.entry.js +52 -0
  110. package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -0
  111. package/dist/cjs/gov-tabs.cjs.entry.js +188 -0
  112. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -0
  113. package/dist/cjs/gov-tile.cjs.entry.js +48 -0
  114. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -0
  115. package/dist/cjs/gov-toast.cjs.entry.js +88 -0
  116. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -0
  117. package/dist/cjs/gov-tooltip-content.cjs.entry.js +41 -0
  118. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -0
  119. package/dist/cjs/gov-tooltip.cjs.entry.js +157 -0
  120. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -0
  121. package/dist/cjs/gov-wizzard-item.cjs.entry.js +108 -0
  122. package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +1 -0
  123. package/dist/cjs/gov-wizzard.cjs.entry.js +66 -0
  124. package/dist/cjs/gov-wizzard.cjs.entry.js.map +1 -0
  125. package/dist/cjs/gov.log-4527e960.js +27 -0
  126. package/dist/cjs/gov.log-4527e960.js.map +1 -0
  127. package/dist/cjs/index-f0dd3088.js +2285 -0
  128. package/dist/cjs/index-f0dd3088.js.map +1 -0
  129. package/dist/cjs/index.cjs.js +4 -0
  130. package/dist/cjs/index.cjs.js.map +1 -0
  131. package/dist/cjs/loader.cjs.js +23 -0
  132. package/dist/cjs/loader.cjs.js.map +1 -0
  133. package/dist/cjs/props-bb89fb59.js +16 -0
  134. package/dist/cjs/props-bb89fb59.js.map +1 -0
  135. package/dist/cjs/sizes-79872c2a.js +18 -0
  136. package/dist/cjs/sizes-79872c2a.js.map +1 -0
  137. package/dist/cjs/string.utils-f9b3501b.js +24 -0
  138. package/dist/cjs/string.utils-f9b3501b.js.map +1 -0
  139. package/dist/cjs/template-26608353.js +118 -0
  140. package/dist/cjs/template-26608353.js.map +1 -0
  141. package/dist/cjs/utils-a51135ab.js +17 -0
  142. package/dist/cjs/utils-a51135ab.js.map +1 -0
  143. package/dist/cjs/variants-04113a72.js +13 -0
  144. package/dist/cjs/variants-04113a72.js.map +1 -0
  145. package/dist/cjs/win-aa54b884.js +68 -0
  146. package/dist/cjs/win-aa54b884.js.map +1 -0
  147. package/dist/collection/collection-manifest.json +60 -0
  148. package/dist/collection/components/gov-accordion/constants.js +15 -0
  149. package/dist/collection/components/gov-accordion/constants.js.map +1 -0
  150. package/dist/collection/components/gov-accordion/gov-accordion-item.css +385 -0
  151. package/dist/collection/components/gov-accordion/gov-accordion-item.d.js +2 -0
  152. package/dist/collection/components/gov-accordion/gov-accordion-item.d.js.map +1 -0
  153. package/dist/collection/components/gov-accordion/gov-accordion-item.js +346 -0
  154. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -0
  155. package/dist/collection/components/gov-accordion/gov-accordion.css +183 -0
  156. package/dist/collection/components/gov-accordion/gov-accordion.js +195 -0
  157. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -0
  158. package/dist/collection/components/gov-accordion/gov-accordion.stories.js +74 -0
  159. package/dist/collection/components/gov-accordion/gov-accordion.stories.js.map +1 -0
  160. package/dist/collection/components/gov-alert/constants.js +10 -0
  161. package/dist/collection/components/gov-alert/constants.js.map +1 -0
  162. package/dist/collection/components/gov-alert/gov-alert.css +334 -0
  163. package/dist/collection/components/gov-alert/gov-alert.js +147 -0
  164. package/dist/collection/components/gov-alert/gov-alert.js.map +1 -0
  165. package/dist/collection/components/gov-alert/gov-alert.stories.js +78 -0
  166. package/dist/collection/components/gov-alert/gov-alert.stories.js.map +1 -0
  167. package/dist/collection/components/gov-app/gov-app.css +195 -0
  168. package/dist/collection/components/gov-app/gov-app.js +80 -0
  169. package/dist/collection/components/gov-app/gov-app.js.map +1 -0
  170. package/dist/collection/components/gov-attachments/constants.js +9 -0
  171. package/dist/collection/components/gov-attachments/constants.js.map +1 -0
  172. package/dist/collection/components/gov-attachments/gov-attachments-item.css +202 -0
  173. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js +2 -0
  174. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -0
  175. package/dist/collection/components/gov-attachments/gov-attachments-item.js +115 -0
  176. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -0
  177. package/dist/collection/components/gov-attachments/gov-attachments.css +189 -0
  178. package/dist/collection/components/gov-attachments/gov-attachments.js +97 -0
  179. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -0
  180. package/dist/collection/components/gov-backdrop/constants.js +4 -0
  181. package/dist/collection/components/gov-backdrop/constants.js.map +1 -0
  182. package/dist/collection/components/gov-backdrop/gov-backdrop.css +193 -0
  183. package/dist/collection/components/gov-backdrop/gov-backdrop.js +139 -0
  184. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -0
  185. package/dist/collection/components/gov-badge/constants.js +11 -0
  186. package/dist/collection/components/gov-badge/constants.js.map +1 -0
  187. package/dist/collection/components/gov-badge/gov-badge.css +996 -0
  188. package/dist/collection/components/gov-badge/gov-badge.js +307 -0
  189. package/dist/collection/components/gov-badge/gov-badge.js.map +1 -0
  190. package/dist/collection/components/gov-badge/gov-badge.stories.js +75 -0
  191. package/dist/collection/components/gov-badge/gov-badge.stories.js.map +1 -0
  192. package/dist/collection/components/gov-button/constants.js +17 -0
  193. package/dist/collection/components/gov-button/constants.js.map +1 -0
  194. package/dist/collection/components/gov-button/gov-button.css +988 -0
  195. package/dist/collection/components/gov-button/gov-button.js +762 -0
  196. package/dist/collection/components/gov-button/gov-button.js.map +1 -0
  197. package/dist/collection/components/gov-button/gov-button.stories.js +108 -0
  198. package/dist/collection/components/gov-button/gov-button.stories.js.map +1 -0
  199. package/dist/collection/components/gov-card/constants.js +13 -0
  200. package/dist/collection/components/gov-card/constants.js.map +1 -0
  201. package/dist/collection/components/gov-card/gov-card.css +319 -0
  202. package/dist/collection/components/gov-card/gov-card.d.js +2 -0
  203. package/dist/collection/components/gov-card/gov-card.d.js.map +1 -0
  204. package/dist/collection/components/gov-card/gov-card.js +302 -0
  205. package/dist/collection/components/gov-card/gov-card.js.map +1 -0
  206. package/dist/collection/components/gov-card/gov-card.stories.js +109 -0
  207. package/dist/collection/components/gov-card/gov-card.stories.js.map +1 -0
  208. package/dist/collection/components/gov-container/constants.js +4 -0
  209. package/dist/collection/components/gov-container/constants.js.map +1 -0
  210. package/dist/collection/components/gov-container/gov-container.css +193 -0
  211. package/dist/collection/components/gov-container/gov-container.js +47 -0
  212. package/dist/collection/components/gov-container/gov-container.js.map +1 -0
  213. package/dist/collection/components/gov-container/gov-container.stories.js +8 -0
  214. package/dist/collection/components/gov-container/gov-container.stories.js.map +1 -0
  215. package/dist/collection/components/gov-cookiebar/constants.js +9 -0
  216. package/dist/collection/components/gov-cookiebar/constants.js.map +1 -0
  217. package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +235 -0
  218. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +24 -0
  219. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -0
  220. package/dist/collection/components/gov-empty/constants.js +7 -0
  221. package/dist/collection/components/gov-empty/constants.js.map +1 -0
  222. package/dist/collection/components/gov-empty/gov-empty.css +200 -0
  223. package/dist/collection/components/gov-empty/gov-empty.js +24 -0
  224. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -0
  225. package/dist/collection/components/gov-empty/gov-empty.stories.js +53 -0
  226. package/dist/collection/components/gov-empty/gov-empty.stories.js.map +1 -0
  227. package/dist/collection/components/gov-error-code/constants.js +7 -0
  228. package/dist/collection/components/gov-error-code/constants.js.map +1 -0
  229. package/dist/collection/components/gov-error-code/gov-error-code.css +215 -0
  230. package/dist/collection/components/gov-error-code/gov-error-code.js +24 -0
  231. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -0
  232. package/dist/collection/components/gov-error-code/gov-error-code.stories.js +49 -0
  233. package/dist/collection/components/gov-error-code/gov-error-code.stories.js.map +1 -0
  234. package/dist/collection/components/gov-form/autocomplete/constants.js +10 -0
  235. package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -0
  236. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +228 -0
  237. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +658 -0
  238. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -0
  239. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.stories.js +131 -0
  240. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.stories.js.map +1 -0
  241. package/dist/collection/components/gov-form/checkbox/constants.js +7 -0
  242. package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -0
  243. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +333 -0
  244. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +362 -0
  245. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -0
  246. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.stories.js +78 -0
  247. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.stories.js.map +1 -0
  248. package/dist/collection/components/gov-form/control/constants.js +7 -0
  249. package/dist/collection/components/gov-form/control/constants.js.map +1 -0
  250. package/dist/collection/components/gov-form/control/gov-form-control.css +235 -0
  251. package/dist/collection/components/gov-form/control/gov-form-control.js +184 -0
  252. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -0
  253. package/dist/collection/components/gov-form/file/constants.js +10 -0
  254. package/dist/collection/components/gov-form/file/constants.js.map +1 -0
  255. package/dist/collection/components/gov-form/file/gov-form-file.css +240 -0
  256. package/dist/collection/components/gov-form/file/gov-form-file.js +552 -0
  257. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -0
  258. package/dist/collection/components/gov-form/gov-form-dropdown.css +199 -0
  259. package/dist/collection/components/gov-form/gov-form-dropdown.js +19 -0
  260. package/dist/collection/components/gov-form/gov-form-dropdown.js.map +1 -0
  261. package/dist/collection/components/gov-form/group/constants.js +4 -0
  262. package/dist/collection/components/gov-form/group/constants.js.map +1 -0
  263. package/dist/collection/components/gov-form/group/gov-form-group.css +178 -0
  264. package/dist/collection/components/gov-form/group/gov-form-group.js +19 -0
  265. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -0
  266. package/dist/collection/components/gov-form/input/constants.js +10 -0
  267. package/dist/collection/components/gov-form/input/constants.js.map +1 -0
  268. package/dist/collection/components/gov-form/input/gov-form-input.css +400 -0
  269. package/dist/collection/components/gov-form/input/gov-form-input.js +800 -0
  270. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -0
  271. package/dist/collection/components/gov-form/input/gov-form-input.stories.js +101 -0
  272. package/dist/collection/components/gov-form/input/gov-form-input.stories.js.map +1 -0
  273. package/dist/collection/components/gov-form/label/constants.js +5 -0
  274. package/dist/collection/components/gov-form/label/constants.js.map +1 -0
  275. package/dist/collection/components/gov-form/label/gov-form-label.css +222 -0
  276. package/dist/collection/components/gov-form/label/gov-form-label.js +65 -0
  277. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -0
  278. package/dist/collection/components/gov-form/message/constants.js +8 -0
  279. package/dist/collection/components/gov-form/message/constants.js.map +1 -0
  280. package/dist/collection/components/gov-form/message/gov-form-message.css +208 -0
  281. package/dist/collection/components/gov-form/message/gov-form-message.js +94 -0
  282. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -0
  283. package/dist/collection/components/gov-form/message/gov-form-message.stories.js +48 -0
  284. package/dist/collection/components/gov-form/message/gov-form-message.stories.js.map +1 -0
  285. package/dist/collection/components/gov-form/radio/constants.js +9 -0
  286. package/dist/collection/components/gov-form/radio/constants.js.map +1 -0
  287. package/dist/collection/components/gov-form/radio/gov-form-radio.css +332 -0
  288. package/dist/collection/components/gov-form/radio/gov-form-radio.js +362 -0
  289. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -0
  290. package/dist/collection/components/gov-form/search/constants.js +10 -0
  291. package/dist/collection/components/gov-form/search/constants.js.map +1 -0
  292. package/dist/collection/components/gov-form/search/gov-form-search.css +208 -0
  293. package/dist/collection/components/gov-form/search/gov-form-search.js +108 -0
  294. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -0
  295. package/dist/collection/components/gov-form/select/constants.js +15 -0
  296. package/dist/collection/components/gov-form/select/constants.js.map +1 -0
  297. package/dist/collection/components/gov-form/select/gov-form-multi-select.css +460 -0
  298. package/dist/collection/components/gov-form/select/gov-form-multi-select.js +535 -0
  299. package/dist/collection/components/gov-form/select/gov-form-multi-select.js.map +1 -0
  300. package/dist/collection/components/gov-form/select/gov-form-multi-select.stories.js +90 -0
  301. package/dist/collection/components/gov-form/select/gov-form-multi-select.stories.js.map +1 -0
  302. package/dist/collection/components/gov-form/select/gov-form-select.css +419 -0
  303. package/dist/collection/components/gov-form/select/gov-form-select.js +498 -0
  304. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -0
  305. package/dist/collection/components/gov-form/select/gov-form-select.stories.js +90 -0
  306. package/dist/collection/components/gov-form/select/gov-form-select.stories.js.map +1 -0
  307. package/dist/collection/components/gov-form/switch/constants.js +9 -0
  308. package/dist/collection/components/gov-form/switch/constants.js.map +1 -0
  309. package/dist/collection/components/gov-form/switch/gov-form-switch.css +354 -0
  310. package/dist/collection/components/gov-form/switch/gov-form-switch.js +359 -0
  311. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -0
  312. package/dist/collection/components/gov-form/switch/gov-form-switch.stories.js +78 -0
  313. package/dist/collection/components/gov-form/switch/gov-form-switch.stories.js.map +1 -0
  314. package/dist/collection/components/gov-grid/constants.js +4 -0
  315. package/dist/collection/components/gov-grid/constants.js.map +1 -0
  316. package/dist/collection/components/gov-grid/gov-grid.css +262 -0
  317. package/dist/collection/components/gov-grid/gov-grid.js +55 -0
  318. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -0
  319. package/dist/collection/components/gov-icon/constants.js +6 -0
  320. package/dist/collection/components/gov-icon/constants.js.map +1 -0
  321. package/dist/collection/components/gov-icon/gov-icon.css +187 -0
  322. package/dist/collection/components/gov-icon/gov-icon.js +133 -0
  323. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -0
  324. package/dist/collection/components/gov-icon/list.js +103 -0
  325. package/dist/collection/components/gov-icon/list.js.map +1 -0
  326. package/dist/collection/components/gov-message/constants.js +9 -0
  327. package/dist/collection/components/gov-message/constants.js.map +1 -0
  328. package/dist/collection/components/gov-message/gov-message.css +262 -0
  329. package/dist/collection/components/gov-message/gov-message.js +63 -0
  330. package/dist/collection/components/gov-message/gov-message.js.map +1 -0
  331. package/dist/collection/components/gov-message/gov-message.stories.js +70 -0
  332. package/dist/collection/components/gov-message/gov-message.stories.js.map +1 -0
  333. package/dist/collection/components/gov-modal/constants.js +14 -0
  334. package/dist/collection/components/gov-modal/constants.js.map +1 -0
  335. package/dist/collection/components/gov-modal/gov-modal.css +290 -0
  336. package/dist/collection/components/gov-modal/gov-modal.js +319 -0
  337. package/dist/collection/components/gov-modal/gov-modal.js.map +1 -0
  338. package/dist/collection/components/gov-modal/gov-modal.stories.js +55 -0
  339. package/dist/collection/components/gov-modal/gov-modal.stories.js.map +1 -0
  340. package/dist/collection/components/gov-pagination/constants.js +9 -0
  341. package/dist/collection/components/gov-pagination/constants.js.map +1 -0
  342. package/dist/collection/components/gov-pagination/gov-pagination.css +281 -0
  343. package/dist/collection/components/gov-pagination/gov-pagination.js +292 -0
  344. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -0
  345. package/dist/collection/components/gov-pagination/pagination.js +55 -0
  346. package/dist/collection/components/gov-pagination/pagination.js.map +1 -0
  347. package/dist/collection/components/gov-promp/constants.js +12 -0
  348. package/dist/collection/components/gov-promp/constants.js.map +1 -0
  349. package/dist/collection/components/gov-promp/gov-prompt.css +293 -0
  350. package/dist/collection/components/gov-promp/gov-prompt.js +319 -0
  351. package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -0
  352. package/dist/collection/components/gov-side-nav/constants.js +15 -0
  353. package/dist/collection/components/gov-side-nav/constants.js.map +1 -0
  354. package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +328 -0
  355. package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js +2 -0
  356. package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js.map +1 -0
  357. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +340 -0
  358. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -0
  359. package/dist/collection/components/gov-side-nav/gov-side-nav.css +183 -0
  360. package/dist/collection/components/gov-side-nav/gov-side-nav.js +165 -0
  361. package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -0
  362. package/dist/collection/components/gov-spacer/constants.js +9 -0
  363. package/dist/collection/components/gov-spacer/constants.js.map +1 -0
  364. package/dist/collection/components/gov-spacer/gov-spacer.css +247 -0
  365. package/dist/collection/components/gov-spacer/gov-spacer.js +93 -0
  366. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -0
  367. package/dist/collection/components/gov-spacer/gov-spacer.stories.js +19 -0
  368. package/dist/collection/components/gov-spacer/gov-spacer.stories.js.map +1 -0
  369. package/dist/collection/components/gov-statsbar/constants.js +13 -0
  370. package/dist/collection/components/gov-statsbar/constants.js.map +1 -0
  371. package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +242 -0
  372. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +65 -0
  373. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -0
  374. package/dist/collection/components/gov-statsbar/gov-statsbar.css +225 -0
  375. package/dist/collection/components/gov-statsbar/gov-statsbar.js +102 -0
  376. package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -0
  377. package/dist/collection/components/gov-statsbar/gov-statsbar.stories.js +71 -0
  378. package/dist/collection/components/gov-statsbar/gov-statsbar.stories.js.map +1 -0
  379. package/dist/collection/components/gov-stepper/constants.js +16 -0
  380. package/dist/collection/components/gov-stepper/constants.js.map +1 -0
  381. package/dist/collection/components/gov-stepper/gov-stepper-item.css +329 -0
  382. package/dist/collection/components/gov-stepper/gov-stepper-item.d.js +2 -0
  383. package/dist/collection/components/gov-stepper/gov-stepper-item.d.js.map +1 -0
  384. package/dist/collection/components/gov-stepper/gov-stepper-item.js +206 -0
  385. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -0
  386. package/dist/collection/components/gov-stepper/gov-stepper.css +183 -0
  387. package/dist/collection/components/gov-stepper/gov-stepper.js +91 -0
  388. package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -0
  389. package/dist/collection/components/gov-tabs/constants.js +17 -0
  390. package/dist/collection/components/gov-tabs/constants.js.map +1 -0
  391. package/dist/collection/components/gov-tabs/gov-tabs-item.css +184 -0
  392. package/dist/collection/components/gov-tabs/gov-tabs-item.js +182 -0
  393. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -0
  394. package/dist/collection/components/gov-tabs/gov-tabs.css +308 -0
  395. package/dist/collection/components/gov-tabs/gov-tabs.js +391 -0
  396. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -0
  397. package/dist/collection/components/gov-tabs/gov-tabs.stories.js +29 -0
  398. package/dist/collection/components/gov-tabs/gov-tabs.stories.js.map +1 -0
  399. package/dist/collection/components/gov-tile/constants.js +8 -0
  400. package/dist/collection/components/gov-tile/constants.js.map +1 -0
  401. package/dist/collection/components/gov-tile/gov-tile.css +277 -0
  402. package/dist/collection/components/gov-tile/gov-tile.js +102 -0
  403. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -0
  404. package/dist/collection/components/gov-toast/constants.js +10 -0
  405. package/dist/collection/components/gov-toast/constants.js.map +1 -0
  406. package/dist/collection/components/gov-toast/gov-toast.css +280 -0
  407. package/dist/collection/components/gov-toast/gov-toast.js +220 -0
  408. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -0
  409. package/dist/collection/components/gov-toast/gov-toast.stories.js +83 -0
  410. package/dist/collection/components/gov-toast/gov-toast.stories.js.map +1 -0
  411. package/dist/collection/components/gov-tooltip/constants.js +19 -0
  412. package/dist/collection/components/gov-tooltip/constants.js.map +1 -0
  413. package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +279 -0
  414. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +63 -0
  415. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -0
  416. package/dist/collection/components/gov-tooltip/gov-tooltip.css +208 -0
  417. package/dist/collection/components/gov-tooltip/gov-tooltip.js +324 -0
  418. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -0
  419. package/dist/collection/components/gov-tooltip/gov-tooltip.stories.js +54 -0
  420. package/dist/collection/components/gov-tooltip/gov-tooltip.stories.js.map +1 -0
  421. package/dist/collection/components/gov-wizzard/constants.js +16 -0
  422. package/dist/collection/components/gov-wizzard/constants.js.map +1 -0
  423. package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +354 -0
  424. package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js +2 -0
  425. package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js.map +1 -0
  426. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +341 -0
  427. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -0
  428. package/dist/collection/components/gov-wizzard/gov-wizzard.css +183 -0
  429. package/dist/collection/components/gov-wizzard/gov-wizzard.js +164 -0
  430. package/dist/collection/components/gov-wizzard/gov-wizzard.js.map +1 -0
  431. package/dist/collection/components/gov-wizzard/gov-wizzard.stories.js +109 -0
  432. package/dist/collection/components/gov-wizzard/gov-wizzard.stories.js.map +1 -0
  433. package/dist/collection/core/constants/breakpoint.js +9 -0
  434. package/dist/collection/core/constants/breakpoint.js.map +1 -0
  435. package/dist/collection/core/constants/sizes.js +15 -0
  436. package/dist/collection/core/constants/sizes.js.map +1 -0
  437. package/dist/collection/core/constants/variants.js +10 -0
  438. package/dist/collection/core/constants/variants.js.map +1 -0
  439. package/dist/collection/helpers/Dom/form.js +55 -0
  440. package/dist/collection/helpers/Dom/form.js.map +1 -0
  441. package/dist/collection/helpers/Dom/template.js +107 -0
  442. package/dist/collection/helpers/Dom/template.js.map +1 -0
  443. package/dist/collection/helpers/Dom/win.js +5 -0
  444. package/dist/collection/helpers/Dom/win.js.map +1 -0
  445. package/dist/collection/helpers/Log/gov.log.js +21 -0
  446. package/dist/collection/helpers/Log/gov.log.js.map +1 -0
  447. package/dist/collection/helpers/Validate/props.js +10 -0
  448. package/dist/collection/helpers/Validate/props.js.map +1 -0
  449. package/dist/collection/helpers/Validate/wcag.js +53 -0
  450. package/dist/collection/helpers/Validate/wcag.js.map +1 -0
  451. package/dist/collection/index.js +2 -0
  452. package/dist/collection/index.js.map +1 -0
  453. package/dist/collection/pages/Accordion.js +254 -0
  454. package/dist/collection/pages/Accordion.js.map +1 -0
  455. package/dist/collection/pages/Alert.js +83 -0
  456. package/dist/collection/pages/Alert.js.map +1 -0
  457. package/dist/collection/pages/Badge.js +279 -0
  458. package/dist/collection/pages/Badge.js.map +1 -0
  459. package/dist/collection/pages/Button.js +958 -0
  460. package/dist/collection/pages/Button.js.map +1 -0
  461. package/dist/collection/pages/Card.js +102 -0
  462. package/dist/collection/pages/Card.js.map +1 -0
  463. package/dist/collection/pages/Cookiebar.js +29 -0
  464. package/dist/collection/pages/Cookiebar.js.map +1 -0
  465. package/dist/collection/pages/Empty.js +43 -0
  466. package/dist/collection/pages/Empty.js.map +1 -0
  467. package/dist/collection/pages/Error.js +16 -0
  468. package/dist/collection/pages/Error.js.map +1 -0
  469. package/dist/collection/pages/FormLabel.js +13 -0
  470. package/dist/collection/pages/FormLabel.js.map +1 -0
  471. package/dist/collection/pages/FormMessage.js +82 -0
  472. package/dist/collection/pages/FormMessage.js.map +1 -0
  473. package/dist/collection/pages/Forms.js +1099 -0
  474. package/dist/collection/pages/Forms.js.map +1 -0
  475. package/dist/collection/pages/FormsRestructure.js +13 -0
  476. package/dist/collection/pages/FormsRestructure.js.map +1 -0
  477. package/dist/collection/pages/Home.js +9 -0
  478. package/dist/collection/pages/Home.js.map +1 -0
  479. package/dist/collection/pages/Message.js +94 -0
  480. package/dist/collection/pages/Message.js.map +1 -0
  481. package/dist/collection/pages/Modal.js +57 -0
  482. package/dist/collection/pages/Modal.js.map +1 -0
  483. package/dist/collection/pages/Pagination.js +24 -0
  484. package/dist/collection/pages/Pagination.js.map +1 -0
  485. package/dist/collection/pages/Prompt.js +48 -0
  486. package/dist/collection/pages/Prompt.js.map +1 -0
  487. package/dist/collection/pages/SideNav.js +117 -0
  488. package/dist/collection/pages/SideNav.js.map +1 -0
  489. package/dist/collection/pages/Spacer.js +19 -0
  490. package/dist/collection/pages/Spacer.js.map +1 -0
  491. package/dist/collection/pages/Statsbar.js +202 -0
  492. package/dist/collection/pages/Statsbar.js.map +1 -0
  493. package/dist/collection/pages/Stepper.js +55 -0
  494. package/dist/collection/pages/Stepper.js.map +1 -0
  495. package/dist/collection/pages/Tabs.js +233 -0
  496. package/dist/collection/pages/Tabs.js.map +1 -0
  497. package/dist/collection/pages/Tile.js +80 -0
  498. package/dist/collection/pages/Tile.js.map +1 -0
  499. package/dist/collection/pages/ToastMessage.js +47 -0
  500. package/dist/collection/pages/ToastMessage.js.map +1 -0
  501. package/dist/collection/pages/Tooltip.js +137 -0
  502. package/dist/collection/pages/Tooltip.js.map +1 -0
  503. package/dist/collection/pages/Typography.js +75 -0
  504. package/dist/collection/pages/Typography.js.map +1 -0
  505. package/dist/collection/pages/Wizzard.js +63 -0
  506. package/dist/collection/pages/Wizzard.js.map +1 -0
  507. package/dist/collection/utils/bool.utils.js +15 -0
  508. package/dist/collection/utils/bool.utils.js.map +1 -0
  509. package/dist/collection/utils/ds.utils.js +6 -0
  510. package/dist/collection/utils/ds.utils.js.map +1 -0
  511. package/dist/collection/utils/file.utils.js +23 -0
  512. package/dist/collection/utils/file.utils.js.map +1 -0
  513. package/dist/collection/utils/icon.utils.js +24 -0
  514. package/dist/collection/utils/icon.utils.js.map +1 -0
  515. package/dist/collection/utils/number.utils.js +4 -0
  516. package/dist/collection/utils/number.utils.js.map +1 -0
  517. package/dist/collection/utils/string.utils.js +17 -0
  518. package/dist/collection/utils/string.utils.js.map +1 -0
  519. package/dist/collection/utils/utils.js +14 -0
  520. package/dist/collection/utils/utils.js.map +1 -0
  521. package/dist/components/constants.js +18 -0
  522. package/dist/components/constants.js.map +1 -0
  523. package/dist/components/constants10.js +19 -0
  524. package/dist/components/constants10.js.map +1 -0
  525. package/dist/components/constants11.js +23 -0
  526. package/dist/components/constants11.js.map +1 -0
  527. package/dist/components/constants12.js +18 -0
  528. package/dist/components/constants12.js.map +1 -0
  529. package/dist/components/constants2.js +12 -0
  530. package/dist/components/constants2.js.map +1 -0
  531. package/dist/components/constants3.js +20 -0
  532. package/dist/components/constants3.js.map +1 -0
  533. package/dist/components/constants4.js +8 -0
  534. package/dist/components/constants4.js.map +1 -0
  535. package/dist/components/constants5.js +12 -0
  536. package/dist/components/constants5.js.map +1 -0
  537. package/dist/components/constants6.js +17 -0
  538. package/dist/components/constants6.js.map +1 -0
  539. package/dist/components/constants7.js +18 -0
  540. package/dist/components/constants7.js.map +1 -0
  541. package/dist/components/constants8.js +16 -0
  542. package/dist/components/constants8.js.map +1 -0
  543. package/dist/components/constants9.js +18 -0
  544. package/dist/components/constants9.js.map +1 -0
  545. package/dist/components/form.js +103 -0
  546. package/dist/components/form.js.map +1 -0
  547. package/dist/components/gov-accordion-item.d.ts +11 -0
  548. package/dist/components/gov-accordion-item.js +138 -0
  549. package/dist/components/gov-accordion-item.js.map +1 -0
  550. package/dist/components/gov-accordion.d.ts +11 -0
  551. package/dist/components/gov-accordion.js +88 -0
  552. package/dist/components/gov-accordion.js.map +1 -0
  553. package/dist/components/gov-alert.d.ts +11 -0
  554. package/dist/components/gov-alert.js +82 -0
  555. package/dist/components/gov-alert.js.map +1 -0
  556. package/dist/components/gov-app.d.ts +11 -0
  557. package/dist/components/gov-app.js +7192 -0
  558. package/dist/components/gov-app.js.map +1 -0
  559. package/dist/components/gov-attachments-item.d.ts +11 -0
  560. package/dist/components/gov-attachments-item.js +8 -0
  561. package/dist/components/gov-attachments-item.js.map +1 -0
  562. package/dist/components/gov-attachments-item2.js +66 -0
  563. package/dist/components/gov-attachments-item2.js.map +1 -0
  564. package/dist/components/gov-attachments.d.ts +11 -0
  565. package/dist/components/gov-attachments.js +8 -0
  566. package/dist/components/gov-attachments.js.map +1 -0
  567. package/dist/components/gov-attachments2.js +53 -0
  568. package/dist/components/gov-attachments2.js.map +1 -0
  569. package/dist/components/gov-backdrop.d.ts +11 -0
  570. package/dist/components/gov-backdrop.js +8 -0
  571. package/dist/components/gov-backdrop.js.map +1 -0
  572. package/dist/components/gov-backdrop2.js +60 -0
  573. package/dist/components/gov-backdrop2.js.map +1 -0
  574. package/dist/components/gov-badge.d.ts +11 -0
  575. package/dist/components/gov-badge.js +8 -0
  576. package/dist/components/gov-badge.js.map +1 -0
  577. package/dist/components/gov-badge2.js +104 -0
  578. package/dist/components/gov-badge2.js.map +1 -0
  579. package/dist/components/gov-button.d.ts +11 -0
  580. package/dist/components/gov-button.js +8 -0
  581. package/dist/components/gov-button.js.map +1 -0
  582. package/dist/components/gov-button2.js +196 -0
  583. package/dist/components/gov-button2.js.map +1 -0
  584. package/dist/components/gov-card.d.ts +11 -0
  585. package/dist/components/gov-card.js +141 -0
  586. package/dist/components/gov-card.js.map +1 -0
  587. package/dist/components/gov-container.d.ts +11 -0
  588. package/dist/components/gov-container.js +46 -0
  589. package/dist/components/gov-container.js.map +1 -0
  590. package/dist/components/gov-cookiebar.d.ts +11 -0
  591. package/dist/components/gov-cookiebar.js +47 -0
  592. package/dist/components/gov-cookiebar.js.map +1 -0
  593. package/dist/components/gov-empty.d.ts +11 -0
  594. package/dist/components/gov-empty.js +45 -0
  595. package/dist/components/gov-empty.js.map +1 -0
  596. package/dist/components/gov-error-code.d.ts +11 -0
  597. package/dist/components/gov-error-code.js +45 -0
  598. package/dist/components/gov-error-code.js.map +1 -0
  599. package/dist/components/gov-form-autocomplete.d.ts +11 -0
  600. package/dist/components/gov-form-autocomplete.js +8 -0
  601. package/dist/components/gov-form-autocomplete.js.map +1 -0
  602. package/dist/components/gov-form-autocomplete2.js +224 -0
  603. package/dist/components/gov-form-autocomplete2.js.map +1 -0
  604. package/dist/components/gov-form-checkbox.d.ts +11 -0
  605. package/dist/components/gov-form-checkbox.js +127 -0
  606. package/dist/components/gov-form-checkbox.js.map +1 -0
  607. package/dist/components/gov-form-control.d.ts +11 -0
  608. package/dist/components/gov-form-control.js +103 -0
  609. package/dist/components/gov-form-control.js.map +1 -0
  610. package/dist/components/gov-form-dropdown.d.ts +11 -0
  611. package/dist/components/gov-form-dropdown.js +36 -0
  612. package/dist/components/gov-form-dropdown.js.map +1 -0
  613. package/dist/components/gov-form-file.d.ts +11 -0
  614. package/dist/components/gov-form-file.js +235 -0
  615. package/dist/components/gov-form-file.js.map +1 -0
  616. package/dist/components/gov-form-group.d.ts +11 -0
  617. package/dist/components/gov-form-group.js +39 -0
  618. package/dist/components/gov-form-group.js.map +1 -0
  619. package/dist/components/gov-form-input.d.ts +11 -0
  620. package/dist/components/gov-form-input.js +8 -0
  621. package/dist/components/gov-form-input.js.map +1 -0
  622. package/dist/components/gov-form-input2.js +194 -0
  623. package/dist/components/gov-form-input2.js.map +1 -0
  624. package/dist/components/gov-form-label.d.ts +11 -0
  625. package/dist/components/gov-form-label.js +40 -0
  626. package/dist/components/gov-form-label.js.map +1 -0
  627. package/dist/components/gov-form-message.d.ts +11 -0
  628. package/dist/components/gov-form-message.js +8 -0
  629. package/dist/components/gov-form-message.js.map +1 -0
  630. package/dist/components/gov-form-message2.js +59 -0
  631. package/dist/components/gov-form-message2.js.map +1 -0
  632. package/dist/components/gov-form-multi-select.d.ts +11 -0
  633. package/dist/components/gov-form-multi-select.js +240 -0
  634. package/dist/components/gov-form-multi-select.js.map +1 -0
  635. package/dist/components/gov-form-radio.d.ts +11 -0
  636. package/dist/components/gov-form-radio.js +121 -0
  637. package/dist/components/gov-form-radio.js.map +1 -0
  638. package/dist/components/gov-form-search.d.ts +11 -0
  639. package/dist/components/gov-form-search.js +89 -0
  640. package/dist/components/gov-form-search.js.map +1 -0
  641. package/dist/components/gov-form-select.d.ts +11 -0
  642. package/dist/components/gov-form-select.js +8 -0
  643. package/dist/components/gov-form-select.js.map +1 -0
  644. package/dist/components/gov-form-select2.js +151 -0
  645. package/dist/components/gov-form-select2.js.map +1 -0
  646. package/dist/components/gov-form-switch.d.ts +11 -0
  647. package/dist/components/gov-form-switch.js +118 -0
  648. package/dist/components/gov-form-switch.js.map +1 -0
  649. package/dist/components/gov-grid.d.ts +11 -0
  650. package/dist/components/gov-grid.js +51 -0
  651. package/dist/components/gov-grid.js.map +1 -0
  652. package/dist/components/gov-icon.d.ts +11 -0
  653. package/dist/components/gov-icon.js +8 -0
  654. package/dist/components/gov-icon.js.map +1 -0
  655. package/dist/components/gov-icon2.js +128 -0
  656. package/dist/components/gov-icon2.js.map +1 -0
  657. package/dist/components/gov-message.d.ts +11 -0
  658. package/dist/components/gov-message.js +56 -0
  659. package/dist/components/gov-message.js.map +1 -0
  660. package/dist/components/gov-modal.d.ts +11 -0
  661. package/dist/components/gov-modal.js +142 -0
  662. package/dist/components/gov-modal.js.map +1 -0
  663. package/dist/components/gov-pagination.d.ts +11 -0
  664. package/dist/components/gov-pagination.js +181 -0
  665. package/dist/components/gov-pagination.js.map +1 -0
  666. package/dist/components/gov-prompt.d.ts +11 -0
  667. package/dist/components/gov-prompt.js +130 -0
  668. package/dist/components/gov-prompt.js.map +1 -0
  669. package/dist/components/gov-side-nav-item.d.ts +11 -0
  670. package/dist/components/gov-side-nav-item.js +134 -0
  671. package/dist/components/gov-side-nav-item.js.map +1 -0
  672. package/dist/components/gov-side-nav.d.ts +11 -0
  673. package/dist/components/gov-side-nav.js +73 -0
  674. package/dist/components/gov-side-nav.js.map +1 -0
  675. package/dist/components/gov-spacer.d.ts +11 -0
  676. package/dist/components/gov-spacer.js +72 -0
  677. package/dist/components/gov-spacer.js.map +1 -0
  678. package/dist/components/gov-statsbar-item.d.ts +11 -0
  679. package/dist/components/gov-statsbar-item.js +52 -0
  680. package/dist/components/gov-statsbar-item.js.map +1 -0
  681. package/dist/components/gov-statsbar.d.ts +11 -0
  682. package/dist/components/gov-statsbar.js +65 -0
  683. package/dist/components/gov-statsbar.js.map +1 -0
  684. package/dist/components/gov-stepper-item.d.ts +11 -0
  685. package/dist/components/gov-stepper-item.js +95 -0
  686. package/dist/components/gov-stepper-item.js.map +1 -0
  687. package/dist/components/gov-stepper.d.ts +11 -0
  688. package/dist/components/gov-stepper.js +61 -0
  689. package/dist/components/gov-stepper.js.map +1 -0
  690. package/dist/components/gov-tabs-item.d.ts +11 -0
  691. package/dist/components/gov-tabs-item.js +73 -0
  692. package/dist/components/gov-tabs-item.js.map +1 -0
  693. package/dist/components/gov-tabs.d.ts +11 -0
  694. package/dist/components/gov-tabs.js +230 -0
  695. package/dist/components/gov-tabs.js.map +1 -0
  696. package/dist/components/gov-tile.d.ts +11 -0
  697. package/dist/components/gov-tile.js +72 -0
  698. package/dist/components/gov-tile.js.map +1 -0
  699. package/dist/components/gov-toast.d.ts +11 -0
  700. package/dist/components/gov-toast.js +120 -0
  701. package/dist/components/gov-toast.js.map +1 -0
  702. package/dist/components/gov-tooltip-content.d.ts +11 -0
  703. package/dist/components/gov-tooltip-content.js +55 -0
  704. package/dist/components/gov-tooltip-content.js.map +1 -0
  705. package/dist/components/gov-tooltip.d.ts +11 -0
  706. package/dist/components/gov-tooltip.js +179 -0
  707. package/dist/components/gov-tooltip.js.map +1 -0
  708. package/dist/components/gov-wizzard-item.d.ts +11 -0
  709. package/dist/components/gov-wizzard-item.js +140 -0
  710. package/dist/components/gov-wizzard-item.js.map +1 -0
  711. package/dist/components/gov-wizzard.d.ts +11 -0
  712. package/dist/components/gov-wizzard.js +81 -0
  713. package/dist/components/gov-wizzard.js.map +1 -0
  714. package/dist/components/gov.log.js +24 -0
  715. package/dist/components/gov.log.js.map +1 -0
  716. package/dist/components/index.d.ts +70 -0
  717. package/dist/components/index.js +52 -0
  718. package/dist/components/index.js.map +1 -0
  719. package/dist/components/props.js +14 -0
  720. package/dist/components/props.js.map +1 -0
  721. package/dist/components/sizes.js +18 -0
  722. package/dist/components/sizes.js.map +1 -0
  723. package/dist/components/string.utils.js +20 -0
  724. package/dist/components/string.utils.js.map +1 -0
  725. package/dist/components/template.js +110 -0
  726. package/dist/components/template.js.map +1 -0
  727. package/dist/components/utils.js +73 -0
  728. package/dist/components/utils.js.map +1 -0
  729. package/dist/components/variants.js +13 -0
  730. package/dist/components/variants.js.map +1 -0
  731. package/dist/core/core.css +2 -0
  732. package/dist/core/core.esm.js +2 -0
  733. package/dist/core/core.esm.js.map +1 -0
  734. package/dist/core/index.esm.js +2 -0
  735. package/dist/core/index.esm.js.map +1 -0
  736. package/dist/core/p-04354bad.entry.js +2 -0
  737. package/dist/core/p-04354bad.entry.js.map +1 -0
  738. package/dist/core/p-089c220d.js +2 -0
  739. package/dist/core/p-089c220d.js.map +1 -0
  740. package/dist/core/p-0956d80f.js +2 -0
  741. package/dist/core/p-0956d80f.js.map +1 -0
  742. package/dist/core/p-15591728.js +2 -0
  743. package/dist/core/p-15591728.js.map +1 -0
  744. package/dist/core/p-1613841c.entry.js +2 -0
  745. package/dist/core/p-1613841c.entry.js.map +1 -0
  746. package/dist/core/p-176a5828.js +2 -0
  747. package/dist/core/p-176a5828.js.map +1 -0
  748. package/dist/core/p-1e70ab4e.js +2 -0
  749. package/dist/core/p-1e70ab4e.js.map +1 -0
  750. package/dist/core/p-203f5b10.js +2 -0
  751. package/dist/core/p-203f5b10.js.map +1 -0
  752. package/dist/core/p-21d55718.entry.js +2 -0
  753. package/dist/core/p-21d55718.entry.js.map +1 -0
  754. package/dist/core/p-2474a77a.js +2 -0
  755. package/dist/core/p-2474a77a.js.map +1 -0
  756. package/dist/core/p-27977727.js +2 -0
  757. package/dist/core/p-27977727.js.map +1 -0
  758. package/dist/core/p-2a3b91e8.entry.js +2 -0
  759. package/dist/core/p-2a3b91e8.entry.js.map +1 -0
  760. package/dist/core/p-300a45d2.entry.js +2 -0
  761. package/dist/core/p-300a45d2.entry.js.map +1 -0
  762. package/dist/core/p-32dc0fab.entry.js +2 -0
  763. package/dist/core/p-32dc0fab.entry.js.map +1 -0
  764. package/dist/core/p-3a72b75e.entry.js +2 -0
  765. package/dist/core/p-3a72b75e.entry.js.map +1 -0
  766. package/dist/core/p-3b39c3f4.entry.js +2 -0
  767. package/dist/core/p-3b39c3f4.entry.js.map +1 -0
  768. package/dist/core/p-3ef69b36.entry.js +2 -0
  769. package/dist/core/p-3ef69b36.entry.js.map +1 -0
  770. package/dist/core/p-42367e53.js +2 -0
  771. package/dist/core/p-42367e53.js.map +1 -0
  772. package/dist/core/p-45485d1c.js +2 -0
  773. package/dist/core/p-45485d1c.js.map +1 -0
  774. package/dist/core/p-468af26f.entry.js +2 -0
  775. package/dist/core/p-468af26f.entry.js.map +1 -0
  776. package/dist/core/p-487665c0.entry.js +2 -0
  777. package/dist/core/p-487665c0.entry.js.map +1 -0
  778. package/dist/core/p-4a7fff28.entry.js +2 -0
  779. package/dist/core/p-4a7fff28.entry.js.map +1 -0
  780. package/dist/core/p-5548d2ac.entry.js +2 -0
  781. package/dist/core/p-5548d2ac.entry.js.map +1 -0
  782. package/dist/core/p-55500e5a.js +2 -0
  783. package/dist/core/p-55500e5a.js.map +1 -0
  784. package/dist/core/p-55f49f1d.js +2 -0
  785. package/dist/core/p-55f49f1d.js.map +1 -0
  786. package/dist/core/p-5fbc2292.entry.js +2 -0
  787. package/dist/core/p-5fbc2292.entry.js.map +1 -0
  788. package/dist/core/p-6797db03.entry.js +2 -0
  789. package/dist/core/p-6797db03.entry.js.map +1 -0
  790. package/dist/core/p-732167df.entry.js +2 -0
  791. package/dist/core/p-732167df.entry.js.map +1 -0
  792. package/dist/core/p-75c62141.js +3 -0
  793. package/dist/core/p-75c62141.js.map +1 -0
  794. package/dist/core/p-805fd311.entry.js +2 -0
  795. package/dist/core/p-805fd311.entry.js.map +1 -0
  796. package/dist/core/p-81584adc.entry.js +2 -0
  797. package/dist/core/p-81584adc.entry.js.map +1 -0
  798. package/dist/core/p-84ec0533.entry.js +2 -0
  799. package/dist/core/p-84ec0533.entry.js.map +1 -0
  800. package/dist/core/p-899eff0b.entry.js +2 -0
  801. package/dist/core/p-899eff0b.entry.js.map +1 -0
  802. package/dist/core/p-8ffd33d7.entry.js +2 -0
  803. package/dist/core/p-8ffd33d7.entry.js.map +1 -0
  804. package/dist/core/p-9077d6f6.js +2 -0
  805. package/dist/core/p-9077d6f6.js.map +1 -0
  806. package/dist/core/p-930e20e9.entry.js +2 -0
  807. package/dist/core/p-930e20e9.entry.js.map +1 -0
  808. package/dist/core/p-97b6e139.entry.js +2 -0
  809. package/dist/core/p-97b6e139.entry.js.map +1 -0
  810. package/dist/core/p-98d0c03d.entry.js +2 -0
  811. package/dist/core/p-98d0c03d.entry.js.map +1 -0
  812. package/dist/core/p-9db35e06.js +2 -0
  813. package/dist/core/p-9db35e06.js.map +1 -0
  814. package/dist/core/p-a24dc455.js +2 -0
  815. package/dist/core/p-a24dc455.js.map +1 -0
  816. package/dist/core/p-a5dd376d.entry.js +2 -0
  817. package/dist/core/p-a5dd376d.entry.js.map +1 -0
  818. package/dist/core/p-a8320dd3.entry.js +2 -0
  819. package/dist/core/p-a8320dd3.entry.js.map +1 -0
  820. package/dist/core/p-a870e7db.entry.js +2 -0
  821. package/dist/core/p-a870e7db.entry.js.map +1 -0
  822. package/dist/core/p-aa54d288.entry.js +2 -0
  823. package/dist/core/p-aa54d288.entry.js.map +1 -0
  824. package/dist/core/p-ab33947a.entry.js +2 -0
  825. package/dist/core/p-ab33947a.entry.js.map +1 -0
  826. package/dist/core/p-b4a749e8.js +2 -0
  827. package/dist/core/p-b4a749e8.js.map +1 -0
  828. package/dist/core/p-bc13b48c.entry.js +2 -0
  829. package/dist/core/p-bc13b48c.entry.js.map +1 -0
  830. package/dist/core/p-bed96a18.entry.js +2 -0
  831. package/dist/core/p-bed96a18.entry.js.map +1 -0
  832. package/dist/core/p-c2bb9d74.entry.js +2 -0
  833. package/dist/core/p-c2bb9d74.entry.js.map +1 -0
  834. package/dist/core/p-c351eeab.entry.js +2 -0
  835. package/dist/core/p-c351eeab.entry.js.map +1 -0
  836. package/dist/core/p-c7723675.entry.js +2 -0
  837. package/dist/core/p-c7723675.entry.js.map +1 -0
  838. package/dist/core/p-d3714547.js +2 -0
  839. package/dist/core/p-d3714547.js.map +1 -0
  840. package/dist/core/p-d4aaff74.js +2 -0
  841. package/dist/core/p-d4aaff74.js.map +1 -0
  842. package/dist/core/p-d622559e.entry.js +2 -0
  843. package/dist/core/p-d622559e.entry.js.map +1 -0
  844. package/dist/core/p-daa82340.entry.js +2 -0
  845. package/dist/core/p-daa82340.entry.js.map +1 -0
  846. package/dist/core/p-e1b02f22.entry.js +2 -0
  847. package/dist/core/p-e1b02f22.entry.js.map +1 -0
  848. package/dist/core/p-e29a195b.js +2 -0
  849. package/dist/core/p-e29a195b.js.map +1 -0
  850. package/dist/core/p-e454c6a2.entry.js +2 -0
  851. package/dist/core/p-e454c6a2.entry.js.map +1 -0
  852. package/dist/core/p-e875b974.entry.js +2 -0
  853. package/dist/core/p-e875b974.entry.js.map +1 -0
  854. package/dist/core/p-ebd98b2d.entry.js +2 -0
  855. package/dist/core/p-ebd98b2d.entry.js.map +1 -0
  856. package/dist/core/p-ecf9700e.entry.js +2 -0
  857. package/dist/core/p-ecf9700e.entry.js.map +1 -0
  858. package/dist/core/p-ee0bfc25.js +2 -0
  859. package/dist/core/p-ee0bfc25.js.map +1 -0
  860. package/dist/core/p-f1ccdb26.entry.js +2 -0
  861. package/dist/core/p-f1ccdb26.entry.js.map +1 -0
  862. package/dist/core/p-f2debcea.entry.js +2 -0
  863. package/dist/core/p-f2debcea.entry.js.map +1 -0
  864. package/dist/core/p-f5aabaaf.entry.js +2 -0
  865. package/dist/core/p-f5aabaaf.entry.js.map +1 -0
  866. package/dist/core/p-f6f34f80.js +2 -0
  867. package/dist/core/p-f6f34f80.js.map +1 -0
  868. package/dist/core/p-f7283930.entry.js +2 -0
  869. package/dist/core/p-f7283930.entry.js.map +1 -0
  870. package/dist/core/p-f9320f1e.js +2 -0
  871. package/dist/core/p-f9320f1e.js.map +1 -0
  872. package/dist/core/p-fc243d75.entry.js +2 -0
  873. package/dist/core/p-fc243d75.entry.js.map +1 -0
  874. package/dist/core/p-feba699a.entry.js +2 -0
  875. package/dist/core/p-feba699a.entry.js.map +1 -0
  876. package/dist/custom-elements/index.d.ts +333 -0
  877. package/dist/custom-elements/index.js +2 -0
  878. package/dist/custom-elements/index.js.map +1 -0
  879. package/dist/esm/constants-0072cbed.js +18 -0
  880. package/dist/esm/constants-0072cbed.js.map +1 -0
  881. package/dist/esm/constants-050bd135.js +14 -0
  882. package/dist/esm/constants-050bd135.js.map +1 -0
  883. package/dist/esm/constants-0ba692b3.js +23 -0
  884. package/dist/esm/constants-0ba692b3.js.map +1 -0
  885. package/dist/esm/constants-1f1d1d3e.js +16 -0
  886. package/dist/esm/constants-1f1d1d3e.js.map +1 -0
  887. package/dist/esm/constants-3ca24227.js +18 -0
  888. package/dist/esm/constants-3ca24227.js.map +1 -0
  889. package/dist/esm/constants-49dc75e2.js +18 -0
  890. package/dist/esm/constants-49dc75e2.js.map +1 -0
  891. package/dist/esm/constants-5c1382a4.js +8 -0
  892. package/dist/esm/constants-5c1382a4.js.map +1 -0
  893. package/dist/esm/constants-7a8adcd1.js +20 -0
  894. package/dist/esm/constants-7a8adcd1.js.map +1 -0
  895. package/dist/esm/constants-8729f0c0.js +18 -0
  896. package/dist/esm/constants-8729f0c0.js.map +1 -0
  897. package/dist/esm/constants-9aaa1aa0.js +12 -0
  898. package/dist/esm/constants-9aaa1aa0.js.map +1 -0
  899. package/dist/esm/constants-b5974ead.js +18 -0
  900. package/dist/esm/constants-b5974ead.js.map +1 -0
  901. package/dist/esm/constants-ba13b28f.js +17 -0
  902. package/dist/esm/constants-ba13b28f.js.map +1 -0
  903. package/dist/esm/constants-fcd1143c.js +19 -0
  904. package/dist/esm/constants-fcd1143c.js.map +1 -0
  905. package/dist/esm/core.js +19 -0
  906. package/dist/esm/core.js.map +1 -0
  907. package/dist/esm/form-16cd7ae0.js +85 -0
  908. package/dist/esm/form-16cd7ae0.js.map +1 -0
  909. package/dist/esm/gov-accordion-item.entry.js +102 -0
  910. package/dist/esm/gov-accordion-item.entry.js.map +1 -0
  911. package/dist/esm/gov-accordion.entry.js +67 -0
  912. package/dist/esm/gov-accordion.entry.js.map +1 -0
  913. package/dist/esm/gov-alert.entry.js +48 -0
  914. package/dist/esm/gov-alert.entry.js.map +1 -0
  915. package/dist/esm/gov-app.entry.js +7174 -0
  916. package/dist/esm/gov-app.entry.js.map +1 -0
  917. package/dist/esm/gov-attachments_3.entry.js +108 -0
  918. package/dist/esm/gov-attachments_3.entry.js.map +1 -0
  919. package/dist/esm/gov-backdrop.entry.js +43 -0
  920. package/dist/esm/gov-backdrop.entry.js.map +1 -0
  921. package/dist/esm/gov-badge.entry.js +79 -0
  922. package/dist/esm/gov-badge.entry.js.map +1 -0
  923. package/dist/esm/gov-button.entry.js +147 -0
  924. package/dist/esm/gov-button.entry.js.map +1 -0
  925. package/dist/esm/gov-card.entry.js +106 -0
  926. package/dist/esm/gov-card.entry.js.map +1 -0
  927. package/dist/esm/gov-container.entry.js +26 -0
  928. package/dist/esm/gov-container.entry.js.map +1 -0
  929. package/dist/esm/gov-cookiebar.entry.js +29 -0
  930. package/dist/esm/gov-cookiebar.entry.js.map +1 -0
  931. package/dist/esm/gov-empty.entry.js +27 -0
  932. package/dist/esm/gov-empty.entry.js.map +1 -0
  933. package/dist/esm/gov-error-code.entry.js +27 -0
  934. package/dist/esm/gov-error-code.entry.js.map +1 -0
  935. package/dist/esm/gov-form-autocomplete.entry.js +173 -0
  936. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -0
  937. package/dist/esm/gov-form-checkbox.entry.js +96 -0
  938. package/dist/esm/gov-form-checkbox.entry.js.map +1 -0
  939. package/dist/esm/gov-form-control.entry.js +83 -0
  940. package/dist/esm/gov-form-control.entry.js.map +1 -0
  941. package/dist/esm/gov-form-dropdown.entry.js +17 -0
  942. package/dist/esm/gov-form-dropdown.entry.js.map +1 -0
  943. package/dist/esm/gov-form-file.entry.js +175 -0
  944. package/dist/esm/gov-form-file.entry.js.map +1 -0
  945. package/dist/esm/gov-form-group.entry.js +21 -0
  946. package/dist/esm/gov-form-group.entry.js.map +1 -0
  947. package/dist/esm/gov-form-input.entry.js +146 -0
  948. package/dist/esm/gov-form-input.entry.js.map +1 -0
  949. package/dist/esm/gov-form-label.entry.js +20 -0
  950. package/dist/esm/gov-form-label.entry.js.map +1 -0
  951. package/dist/esm/gov-form-multi-select.entry.js +182 -0
  952. package/dist/esm/gov-form-multi-select.entry.js.map +1 -0
  953. package/dist/esm/gov-form-radio.entry.js +96 -0
  954. package/dist/esm/gov-form-radio.entry.js.map +1 -0
  955. package/dist/esm/gov-form-search.entry.js +57 -0
  956. package/dist/esm/gov-form-search.entry.js.map +1 -0
  957. package/dist/esm/gov-form-select.entry.js +117 -0
  958. package/dist/esm/gov-form-select.entry.js.map +1 -0
  959. package/dist/esm/gov-form-switch.entry.js +93 -0
  960. package/dist/esm/gov-form-switch.entry.js.map +1 -0
  961. package/dist/esm/gov-grid.entry.js +31 -0
  962. package/dist/esm/gov-grid.entry.js.map +1 -0
  963. package/dist/esm/gov-icon.entry.js +107 -0
  964. package/dist/esm/gov-icon.entry.js.map +1 -0
  965. package/dist/esm/gov-message.entry.js +37 -0
  966. package/dist/esm/gov-message.entry.js.map +1 -0
  967. package/dist/esm/gov-modal.entry.js +95 -0
  968. package/dist/esm/gov-modal.entry.js.map +1 -0
  969. package/dist/esm/gov-pagination.entry.js +141 -0
  970. package/dist/esm/gov-pagination.entry.js.map +1 -0
  971. package/dist/esm/gov-prompt.entry.js +95 -0
  972. package/dist/esm/gov-prompt.entry.js.map +1 -0
  973. package/dist/esm/gov-side-nav-item.entry.js +90 -0
  974. package/dist/esm/gov-side-nav-item.entry.js.map +1 -0
  975. package/dist/esm/gov-side-nav.entry.js +52 -0
  976. package/dist/esm/gov-side-nav.entry.js.map +1 -0
  977. package/dist/esm/gov-spacer.entry.js +52 -0
  978. package/dist/esm/gov-spacer.entry.js.map +1 -0
  979. package/dist/esm/gov-statsbar-item.entry.js +33 -0
  980. package/dist/esm/gov-statsbar-item.entry.js.map +1 -0
  981. package/dist/esm/gov-statsbar.entry.js +45 -0
  982. package/dist/esm/gov-statsbar.entry.js.map +1 -0
  983. package/dist/esm/gov-stepper-item.entry.js +71 -0
  984. package/dist/esm/gov-stepper-item.entry.js.map +1 -0
  985. package/dist/esm/gov-stepper.entry.js +43 -0
  986. package/dist/esm/gov-stepper.entry.js.map +1 -0
  987. package/dist/esm/gov-tabs-item.entry.js +48 -0
  988. package/dist/esm/gov-tabs-item.entry.js.map +1 -0
  989. package/dist/esm/gov-tabs.entry.js +184 -0
  990. package/dist/esm/gov-tabs.entry.js.map +1 -0
  991. package/dist/esm/gov-tile.entry.js +44 -0
  992. package/dist/esm/gov-tile.entry.js.map +1 -0
  993. package/dist/esm/gov-toast.entry.js +84 -0
  994. package/dist/esm/gov-toast.entry.js.map +1 -0
  995. package/dist/esm/gov-tooltip-content.entry.js +37 -0
  996. package/dist/esm/gov-tooltip-content.entry.js.map +1 -0
  997. package/dist/esm/gov-tooltip.entry.js +153 -0
  998. package/dist/esm/gov-tooltip.entry.js.map +1 -0
  999. package/dist/esm/gov-wizzard-item.entry.js +104 -0
  1000. package/dist/esm/gov-wizzard-item.entry.js.map +1 -0
  1001. package/dist/esm/gov-wizzard.entry.js +62 -0
  1002. package/dist/esm/gov-wizzard.entry.js.map +1 -0
  1003. package/dist/esm/gov.log-3b6eb67c.js +24 -0
  1004. package/dist/esm/gov.log-3b6eb67c.js.map +1 -0
  1005. package/dist/esm/index-e498b7fa.js +2256 -0
  1006. package/dist/esm/index-e498b7fa.js.map +1 -0
  1007. package/dist/esm/index.js +3 -0
  1008. package/dist/esm/index.js.map +1 -0
  1009. package/dist/esm/loader.js +19 -0
  1010. package/dist/esm/loader.js.map +1 -0
  1011. package/dist/esm/polyfills/core-js.js +11 -0
  1012. package/dist/esm/polyfills/css-shim.js +1 -0
  1013. package/dist/esm/polyfills/dom.js +79 -0
  1014. package/dist/esm/polyfills/es5-html-element.js +1 -0
  1015. package/dist/esm/polyfills/index.js +34 -0
  1016. package/dist/esm/polyfills/system.js +6 -0
  1017. package/dist/esm/props-5a1380a0.js +14 -0
  1018. package/dist/esm/props-5a1380a0.js.map +1 -0
  1019. package/dist/esm/sizes-6c5943b4.js +18 -0
  1020. package/dist/esm/sizes-6c5943b4.js.map +1 -0
  1021. package/dist/esm/string.utils-858e1565.js +20 -0
  1022. package/dist/esm/string.utils-858e1565.js.map +1 -0
  1023. package/dist/esm/template-c616c14f.js +110 -0
  1024. package/dist/esm/template-c616c14f.js.map +1 -0
  1025. package/dist/esm/utils-43789c71.js +14 -0
  1026. package/dist/esm/utils-43789c71.js.map +1 -0
  1027. package/dist/esm/variants-3bade035.js +13 -0
  1028. package/dist/esm/variants-3bade035.js.map +1 -0
  1029. package/dist/esm/win-fe20a39d.js +62 -0
  1030. package/dist/esm/win-fe20a39d.js.map +1 -0
  1031. package/dist/hydrate/index.d.ts +217 -0
  1032. package/dist/hydrate/index.js +18167 -0
  1033. package/dist/hydrate/package.json +6 -0
  1034. package/dist/index.cjs.js +1 -0
  1035. package/dist/index.js +1 -0
  1036. package/dist/stencil.config.js +61 -0
  1037. package/dist/stencil.config.js.map +1 -0
  1038. package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
  1039. package/dist/types/components/gov-accordion/constants.d.ts +16 -0
  1040. package/dist/types/components/gov-accordion/gov-accordion-item.d.d.ts +4 -0
  1041. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +66 -0
  1042. package/dist/types/components/gov-accordion/gov-accordion.d.ts +35 -0
  1043. package/dist/types/components/gov-accordion/gov-accordion.stories.d.ts +43 -0
  1044. package/dist/types/components/gov-alert/constants.d.ts +10 -0
  1045. package/dist/types/components/gov-alert/gov-alert.d.ts +30 -0
  1046. package/dist/types/components/gov-alert/gov-alert.stories.d.ts +38 -0
  1047. package/dist/types/components/gov-app/gov-app.d.ts +31 -0
  1048. package/dist/types/components/gov-attachments/constants.d.ts +8 -0
  1049. package/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
  1050. package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +22 -0
  1051. package/dist/types/components/gov-attachments/gov-attachments.d.ts +17 -0
  1052. package/dist/types/components/gov-backdrop/constants.d.ts +3 -0
  1053. package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +25 -0
  1054. package/dist/types/components/gov-badge/constants.d.ts +10 -0
  1055. package/dist/types/components/gov-badge/gov-badge.d.ts +63 -0
  1056. package/dist/types/components/gov-badge/gov-badge.stories.d.ts +48 -0
  1057. package/dist/types/components/gov-button/constants.d.ts +19 -0
  1058. package/dist/types/components/gov-button/gov-button.d.ts +161 -0
  1059. package/dist/types/components/gov-button/gov-button.stories.d.ts +65 -0
  1060. package/dist/types/components/gov-card/constants.d.ts +12 -0
  1061. package/dist/types/components/gov-card/gov-card.d.d.ts +4 -0
  1062. package/dist/types/components/gov-card/gov-card.d.ts +59 -0
  1063. package/dist/types/components/gov-card/gov-card.stories.d.ts +45 -0
  1064. package/dist/types/components/gov-container/constants.d.ts +3 -0
  1065. package/dist/types/components/gov-container/gov-container.d.ts +5 -0
  1066. package/dist/types/components/gov-container/gov-container.stories.d.ts +5 -0
  1067. package/dist/types/components/gov-cookiebar/constants.d.ts +8 -0
  1068. package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
  1069. package/dist/types/components/gov-empty/constants.d.ts +6 -0
  1070. package/dist/types/components/gov-empty/gov-empty.d.ts +6 -0
  1071. package/dist/types/components/gov-empty/gov-empty.stories.d.ts +26 -0
  1072. package/dist/types/components/gov-error-code/constants.d.ts +6 -0
  1073. package/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
  1074. package/dist/types/components/gov-error-code/gov-error-code.stories.d.ts +21 -0
  1075. package/dist/types/components/gov-form/autocomplete/constants.d.ts +11 -0
  1076. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +132 -0
  1077. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.stories.d.ts +37 -0
  1078. package/dist/types/components/gov-form/checkbox/constants.d.ts +7 -0
  1079. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +76 -0
  1080. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.stories.d.ts +29 -0
  1081. package/dist/types/components/gov-form/control/constants.d.ts +7 -0
  1082. package/dist/types/components/gov-form/control/gov-form-control.d.ts +38 -0
  1083. package/dist/types/components/gov-form/file/constants.d.ts +9 -0
  1084. package/dist/types/components/gov-form/file/gov-form-file.d.ts +113 -0
  1085. package/dist/types/components/gov-form/gov-form-dropdown.d.ts +3 -0
  1086. package/dist/types/components/gov-form/group/constants.d.ts +3 -0
  1087. package/dist/types/components/gov-form/group/gov-form-group.d.ts +3 -0
  1088. package/dist/types/components/gov-form/input/constants.d.ts +13 -0
  1089. package/dist/types/components/gov-form/input/gov-form-input.d.ts +165 -0
  1090. package/dist/types/components/gov-form/input/gov-form-input.stories.d.ts +42 -0
  1091. package/dist/types/components/gov-form/label/constants.d.ts +4 -0
  1092. package/dist/types/components/gov-form/label/gov-form-label.d.ts +12 -0
  1093. package/dist/types/components/gov-form/message/constants.d.ts +8 -0
  1094. package/dist/types/components/gov-form/message/gov-form-message.d.ts +19 -0
  1095. package/dist/types/components/gov-form/message/gov-form-message.stories.d.ts +24 -0
  1096. package/dist/types/components/gov-form/radio/constants.d.ts +9 -0
  1097. package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +76 -0
  1098. package/dist/types/components/gov-form/search/constants.d.ts +11 -0
  1099. package/dist/types/components/gov-form/search/gov-form-search.d.ts +16 -0
  1100. package/dist/types/components/gov-form/select/constants.d.ts +16 -0
  1101. package/dist/types/components/gov-form/select/gov-form-multi-select.d.ts +105 -0
  1102. package/dist/types/components/gov-form/select/gov-form-multi-select.stories.d.ts +31 -0
  1103. package/dist/types/components/gov-form/select/gov-form-select.d.ts +101 -0
  1104. package/dist/types/components/gov-form/select/gov-form-select.stories.d.ts +31 -0
  1105. package/dist/types/components/gov-form/switch/constants.d.ts +9 -0
  1106. package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +75 -0
  1107. package/dist/types/components/gov-form/switch/gov-form-switch.stories.d.ts +29 -0
  1108. package/dist/types/components/gov-grid/constants.d.ts +3 -0
  1109. package/dist/types/components/gov-grid/gov-grid.d.ts +10 -0
  1110. package/dist/types/components/gov-icon/constants.d.ts +6 -0
  1111. package/dist/types/components/gov-icon/gov-icon.d.ts +22 -0
  1112. package/dist/types/components/gov-icon/list.d.ts +3 -0
  1113. package/dist/types/components/gov-message/constants.d.ts +9 -0
  1114. package/dist/types/components/gov-message/gov-message.d.ts +12 -0
  1115. package/dist/types/components/gov-message/gov-message.stories.d.ts +33 -0
  1116. package/dist/types/components/gov-modal/constants.d.ts +13 -0
  1117. package/dist/types/components/gov-modal/gov-modal.d.ts +63 -0
  1118. package/dist/types/components/gov-modal/gov-modal.stories.d.ts +25 -0
  1119. package/dist/types/components/gov-pagination/constants.d.ts +8 -0
  1120. package/dist/types/components/gov-pagination/gov-pagination.d.ts +57 -0
  1121. package/dist/types/components/gov-pagination/pagination.d.ts +12 -0
  1122. package/dist/types/components/gov-promp/constants.d.ts +11 -0
  1123. package/dist/types/components/gov-promp/gov-prompt.d.ts +63 -0
  1124. package/dist/types/components/gov-side-nav/constants.d.ts +14 -0
  1125. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.d.ts +4 -0
  1126. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +67 -0
  1127. package/dist/types/components/gov-side-nav/gov-side-nav.d.ts +31 -0
  1128. package/dist/types/components/gov-spacer/constants.d.ts +8 -0
  1129. package/dist/types/components/gov-spacer/gov-spacer.d.ts +9 -0
  1130. package/dist/types/components/gov-spacer/gov-spacer.stories.d.ts +15 -0
  1131. package/dist/types/components/gov-statsbar/constants.d.ts +14 -0
  1132. package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +11 -0
  1133. package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +11 -0
  1134. package/dist/types/components/gov-statsbar/gov-statsbar.stories.d.ts +31 -0
  1135. package/dist/types/components/gov-stepper/constants.d.ts +17 -0
  1136. package/dist/types/components/gov-stepper/gov-stepper-item.d.d.ts +4 -0
  1137. package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +40 -0
  1138. package/dist/types/components/gov-stepper/gov-stepper.d.ts +17 -0
  1139. package/dist/types/components/gov-tabs/constants.d.ts +19 -0
  1140. package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +36 -0
  1141. package/dist/types/components/gov-tabs/gov-tabs.d.ts +67 -0
  1142. package/dist/types/components/gov-tabs/gov-tabs.stories.d.ts +10 -0
  1143. package/dist/types/components/gov-tile/constants.d.ts +7 -0
  1144. package/dist/types/components/gov-tile/gov-tile.d.ts +21 -0
  1145. package/dist/types/components/gov-toast/constants.d.ts +10 -0
  1146. package/dist/types/components/gov-toast/gov-toast.d.ts +34 -0
  1147. package/dist/types/components/gov-toast/gov-toast.stories.d.ts +47 -0
  1148. package/dist/types/components/gov-tooltip/constants.d.ts +20 -0
  1149. package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +10 -0
  1150. package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +50 -0
  1151. package/dist/types/components/gov-tooltip/gov-tooltip.stories.d.ts +38 -0
  1152. package/dist/types/components/gov-wizzard/constants.d.ts +17 -0
  1153. package/dist/types/components/gov-wizzard/gov-wizzard-item.d.d.ts +4 -0
  1154. package/dist/types/components/gov-wizzard/gov-wizzard-item.d.ts +65 -0
  1155. package/dist/types/components/gov-wizzard/gov-wizzard.d.ts +32 -0
  1156. package/dist/types/components/gov-wizzard/gov-wizzard.stories.d.ts +52 -0
  1157. package/dist/types/components.d.ts +3422 -0
  1158. package/dist/types/core/constants/breakpoint.d.ts +8 -0
  1159. package/dist/types/core/constants/sizes.d.ts +13 -0
  1160. package/dist/types/core/constants/variants.d.ts +8 -0
  1161. package/dist/types/helpers/Dom/form.d.ts +3 -0
  1162. package/dist/types/helpers/Dom/template.d.ts +10 -0
  1163. package/dist/types/helpers/Dom/win.d.ts +1 -0
  1164. package/dist/types/helpers/Log/gov.log.d.ts +8 -0
  1165. package/dist/types/helpers/Validate/props.d.ts +1 -0
  1166. package/dist/types/helpers/Validate/wcag.d.ts +4 -0
  1167. package/dist/types/index.d.ts +1 -0
  1168. package/dist/types/pages/Accordion.d.ts +3 -0
  1169. package/dist/types/pages/Alert.d.ts +3 -0
  1170. package/dist/types/pages/Badge.d.ts +3 -0
  1171. package/dist/types/pages/Button.d.ts +3 -0
  1172. package/dist/types/pages/Card.d.ts +3 -0
  1173. package/dist/types/pages/Cookiebar.d.ts +3 -0
  1174. package/dist/types/pages/Empty.d.ts +3 -0
  1175. package/dist/types/pages/Error.d.ts +3 -0
  1176. package/dist/types/pages/FormLabel.d.ts +3 -0
  1177. package/dist/types/pages/FormMessage.d.ts +3 -0
  1178. package/dist/types/pages/Forms.d.ts +3 -0
  1179. package/dist/types/pages/FormsRestructure.d.ts +3 -0
  1180. package/dist/types/pages/Home.d.ts +3 -0
  1181. package/dist/types/pages/Message.d.ts +3 -0
  1182. package/dist/types/pages/Modal.d.ts +3 -0
  1183. package/dist/types/pages/Pagination.d.ts +3 -0
  1184. package/dist/types/pages/Prompt.d.ts +3 -0
  1185. package/dist/types/pages/SideNav.d.ts +3 -0
  1186. package/dist/types/pages/Spacer.d.ts +3 -0
  1187. package/dist/types/pages/Statsbar.d.ts +3 -0
  1188. package/dist/types/pages/Stepper.d.ts +3 -0
  1189. package/dist/types/pages/Tabs.d.ts +3 -0
  1190. package/dist/types/pages/Tile.d.ts +3 -0
  1191. package/dist/types/pages/ToastMessage.d.ts +3 -0
  1192. package/dist/types/pages/Tooltip.d.ts +3 -0
  1193. package/dist/types/pages/Typography.d.ts +3 -0
  1194. package/dist/types/pages/Wizzard.d.ts +3 -0
  1195. package/dist/types/stencil-public-runtime.d.ts +1581 -0
  1196. package/dist/types/utils/bool.utils.d.ts +1 -0
  1197. package/dist/types/utils/ds.utils.d.ts +1 -0
  1198. package/dist/types/utils/file.utils.d.ts +3 -0
  1199. package/dist/types/utils/icon.utils.d.ts +4 -0
  1200. package/dist/types/utils/number.utils.d.ts +1 -0
  1201. package/dist/types/utils/string.utils.d.ts +3 -0
  1202. package/dist/types/utils/utils.d.ts +3 -0
  1203. package/loader/cdn.js +3 -0
  1204. package/loader/index.cjs.js +3 -0
  1205. package/loader/index.d.ts +12 -0
  1206. package/loader/index.es2017.js +3 -0
  1207. package/loader/index.js +4 -0
  1208. package/loader/package.json +11 -0
  1209. package/package.json +25 -0
@@ -0,0 +1,2256 @@
1
+ const NAMESPACE = 'core';
2
+
3
+ /**
4
+ * Virtual DOM patching algorithm based on Snabbdom by
5
+ * Simon Friis Vindum (@paldepind)
6
+ * Licensed under the MIT License
7
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
+ *
9
+ * Modified for Stencil's renderer and slot projection
10
+ */
11
+ let scopeId;
12
+ let contentRef;
13
+ let hostTagName;
14
+ let useNativeShadowDom = false;
15
+ let checkSlotFallbackVisibility = false;
16
+ let checkSlotRelocate = false;
17
+ let isSvgMode = false;
18
+ let queuePending = false;
19
+ const getAssetPath = (path) => {
20
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
21
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
22
+ };
23
+ const createTime = (fnName, tagName = '') => {
24
+ {
25
+ return () => {
26
+ return;
27
+ };
28
+ }
29
+ };
30
+ const uniqueTime = (key, measureText) => {
31
+ {
32
+ return () => {
33
+ return;
34
+ };
35
+ }
36
+ };
37
+ const CONTENT_REF_ID = 'r';
38
+ const ORG_LOCATION_ID = 'o';
39
+ const SLOT_NODE_ID = 's';
40
+ const TEXT_NODE_ID = 't';
41
+ const HYDRATE_ID = 's-id';
42
+ const HYDRATED_STYLE_ID = 'sty-id';
43
+ const HYDRATE_CHILD_ID = 'c-id';
44
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
45
+ /**
46
+ * Default style mode id
47
+ */
48
+ /**
49
+ * Reusable empty obj/array
50
+ * Don't add values to these!!
51
+ */
52
+ const EMPTY_OBJ = {};
53
+ const isDef = (v) => v != null;
54
+ const isComplexType = (o) => {
55
+ // https://jsperf.com/typeof-fn-object/5
56
+ o = typeof o;
57
+ return o === 'object' || o === 'function';
58
+ };
59
+ /**
60
+ * Production h() function based on Preact by
61
+ * Jason Miller (@developit)
62
+ * Licensed under the MIT License
63
+ * https://github.com/developit/preact/blob/master/LICENSE
64
+ *
65
+ * Modified for Stencil's compiler and vdom
66
+ */
67
+ // const stack: any[] = [];
68
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
69
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
70
+ const h = (nodeName, vnodeData, ...children) => {
71
+ let child = null;
72
+ let slotName = null;
73
+ let simple = false;
74
+ let lastSimple = false;
75
+ const vNodeChildren = [];
76
+ const walk = (c) => {
77
+ for (let i = 0; i < c.length; i++) {
78
+ child = c[i];
79
+ if (Array.isArray(child)) {
80
+ walk(child);
81
+ }
82
+ else if (child != null && typeof child !== 'boolean') {
83
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
84
+ child = String(child);
85
+ }
86
+ if (simple && lastSimple) {
87
+ // If the previous child was simple (string), we merge both
88
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
89
+ }
90
+ else {
91
+ // Append a new vNode, if it's text, we create a text vNode
92
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
93
+ }
94
+ lastSimple = simple;
95
+ }
96
+ }
97
+ };
98
+ walk(children);
99
+ if (vnodeData) {
100
+ if (vnodeData.name) {
101
+ slotName = vnodeData.name;
102
+ }
103
+ {
104
+ const classData = vnodeData.className || vnodeData.class;
105
+ if (classData) {
106
+ vnodeData.class =
107
+ typeof classData !== 'object'
108
+ ? classData
109
+ : Object.keys(classData)
110
+ .filter((k) => classData[k])
111
+ .join(' ');
112
+ }
113
+ }
114
+ }
115
+ if (typeof nodeName === 'function') {
116
+ // nodeName is a functional component
117
+ return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
118
+ }
119
+ const vnode = newVNode(nodeName, null);
120
+ vnode.$attrs$ = vnodeData;
121
+ if (vNodeChildren.length > 0) {
122
+ vnode.$children$ = vNodeChildren;
123
+ }
124
+ {
125
+ vnode.$name$ = slotName;
126
+ }
127
+ return vnode;
128
+ };
129
+ const newVNode = (tag, text) => {
130
+ const vnode = {
131
+ $flags$: 0,
132
+ $tag$: tag,
133
+ $text$: text,
134
+ $elm$: null,
135
+ $children$: null,
136
+ };
137
+ {
138
+ vnode.$attrs$ = null;
139
+ }
140
+ {
141
+ vnode.$name$ = null;
142
+ }
143
+ return vnode;
144
+ };
145
+ const Host = {};
146
+ const isHost = (node) => node && node.$tag$ === Host;
147
+ const vdomFnUtils = {
148
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
149
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
150
+ };
151
+ const convertToPublic = (node) => ({
152
+ vattrs: node.$attrs$,
153
+ vchildren: node.$children$,
154
+ vkey: node.$key$,
155
+ vname: node.$name$,
156
+ vtag: node.$tag$,
157
+ vtext: node.$text$,
158
+ });
159
+ const convertToPrivate = (node) => {
160
+ if (typeof node.vtag === 'function') {
161
+ const vnodeData = Object.assign({}, node.vattrs);
162
+ if (node.vkey) {
163
+ vnodeData.key = node.vkey;
164
+ }
165
+ if (node.vname) {
166
+ vnodeData.name = node.vname;
167
+ }
168
+ return h(node.vtag, vnodeData, ...(node.vchildren || []));
169
+ }
170
+ const vnode = newVNode(node.vtag, node.vtext);
171
+ vnode.$attrs$ = node.vattrs;
172
+ vnode.$children$ = node.vchildren;
173
+ vnode.$key$ = node.vkey;
174
+ vnode.$name$ = node.vname;
175
+ return vnode;
176
+ };
177
+ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
178
+ const endHydrate = createTime('hydrateClient', tagName);
179
+ const shadowRoot = hostElm.shadowRoot;
180
+ const childRenderNodes = [];
181
+ const slotNodes = [];
182
+ const shadowRootNodes = shadowRoot ? [] : null;
183
+ const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
184
+ if (!plt.$orgLocNodes$) {
185
+ initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
186
+ }
187
+ hostElm[HYDRATE_ID] = hostId;
188
+ hostElm.removeAttribute(HYDRATE_ID);
189
+ clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
190
+ childRenderNodes.map((c) => {
191
+ const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
192
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
193
+ const node = c.$elm$;
194
+ if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
195
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
196
+ }
197
+ if (!shadowRoot) {
198
+ node['s-hn'] = tagName;
199
+ if (orgLocationNode) {
200
+ node['s-ol'] = orgLocationNode;
201
+ node['s-ol']['s-nr'] = node;
202
+ }
203
+ }
204
+ plt.$orgLocNodes$.delete(orgLocationId);
205
+ });
206
+ if (shadowRoot) {
207
+ shadowRootNodes.map((shadowRootNode) => {
208
+ if (shadowRootNode) {
209
+ shadowRoot.appendChild(shadowRootNode);
210
+ }
211
+ });
212
+ }
213
+ endHydrate();
214
+ };
215
+ const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
216
+ let childNodeType;
217
+ let childIdSplt;
218
+ let childVNode;
219
+ let i;
220
+ if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
221
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
222
+ if (childNodeType) {
223
+ // got the node data from the element's attribute
224
+ // `${hostId}.${nodeId}.${depth}.${index}`
225
+ childIdSplt = childNodeType.split('.');
226
+ if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
227
+ childVNode = {
228
+ $flags$: 0,
229
+ $hostId$: childIdSplt[0],
230
+ $nodeId$: childIdSplt[1],
231
+ $depth$: childIdSplt[2],
232
+ $index$: childIdSplt[3],
233
+ $tag$: node.tagName.toLowerCase(),
234
+ $elm$: node,
235
+ $attrs$: null,
236
+ $children$: null,
237
+ $key$: null,
238
+ $name$: null,
239
+ $text$: null,
240
+ };
241
+ childRenderNodes.push(childVNode);
242
+ node.removeAttribute(HYDRATE_CHILD_ID);
243
+ // this is a new child vnode
244
+ // so ensure its parent vnode has the vchildren array
245
+ if (!parentVNode.$children$) {
246
+ parentVNode.$children$ = [];
247
+ }
248
+ // add our child vnode to a specific index of the vnode's children
249
+ parentVNode.$children$[childVNode.$index$] = childVNode;
250
+ // this is now the new parent vnode for all the next child checks
251
+ parentVNode = childVNode;
252
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
253
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
254
+ }
255
+ }
256
+ }
257
+ // recursively drill down, end to start so we can remove nodes
258
+ for (i = node.childNodes.length - 1; i >= 0; i--) {
259
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
260
+ }
261
+ if (node.shadowRoot) {
262
+ // keep drilling down through the shadow root nodes
263
+ for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
264
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
265
+ }
266
+ }
267
+ }
268
+ else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
269
+ // `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
270
+ childIdSplt = node.nodeValue.split('.');
271
+ if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
272
+ // comment node for either the host id or a 0 host id
273
+ childNodeType = childIdSplt[0];
274
+ childVNode = {
275
+ $flags$: 0,
276
+ $hostId$: childIdSplt[1],
277
+ $nodeId$: childIdSplt[2],
278
+ $depth$: childIdSplt[3],
279
+ $index$: childIdSplt[4],
280
+ $elm$: node,
281
+ $attrs$: null,
282
+ $children$: null,
283
+ $key$: null,
284
+ $name$: null,
285
+ $tag$: null,
286
+ $text$: null,
287
+ };
288
+ if (childNodeType === TEXT_NODE_ID) {
289
+ childVNode.$elm$ = node.nextSibling;
290
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* NODE_TYPE.TextNode */) {
291
+ childVNode.$text$ = childVNode.$elm$.textContent;
292
+ childRenderNodes.push(childVNode);
293
+ // remove the text comment since it's no longer needed
294
+ node.remove();
295
+ if (!parentVNode.$children$) {
296
+ parentVNode.$children$ = [];
297
+ }
298
+ parentVNode.$children$[childVNode.$index$] = childVNode;
299
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
300
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
301
+ }
302
+ }
303
+ }
304
+ else if (childVNode.$hostId$ === hostId) {
305
+ // this comment node is specifcally for this host id
306
+ if (childNodeType === SLOT_NODE_ID) {
307
+ // `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
308
+ childVNode.$tag$ = 'slot';
309
+ if (childIdSplt[5]) {
310
+ node['s-sn'] = childVNode.$name$ = childIdSplt[5];
311
+ }
312
+ else {
313
+ node['s-sn'] = '';
314
+ }
315
+ node['s-sr'] = true;
316
+ if (shadowRootNodes) {
317
+ // browser support shadowRoot and this is a shadow dom component
318
+ // create an actual slot element
319
+ childVNode.$elm$ = doc.createElement(childVNode.$tag$);
320
+ if (childVNode.$name$) {
321
+ // add the slot name attribute
322
+ childVNode.$elm$.setAttribute('name', childVNode.$name$);
323
+ }
324
+ // insert the new slot element before the slot comment
325
+ node.parentNode.insertBefore(childVNode.$elm$, node);
326
+ // remove the slot comment since it's not needed for shadow
327
+ node.remove();
328
+ if (childVNode.$depth$ === '0') {
329
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
330
+ }
331
+ }
332
+ slotNodes.push(childVNode);
333
+ if (!parentVNode.$children$) {
334
+ parentVNode.$children$ = [];
335
+ }
336
+ parentVNode.$children$[childVNode.$index$] = childVNode;
337
+ }
338
+ else if (childNodeType === CONTENT_REF_ID) {
339
+ // `${CONTENT_REF_ID}.${hostId}`;
340
+ if (shadowRootNodes) {
341
+ // remove the content ref comment since it's not needed for shadow
342
+ node.remove();
343
+ }
344
+ else {
345
+ hostElm['s-cr'] = node;
346
+ node['s-cn'] = true;
347
+ }
348
+ }
349
+ }
350
+ }
351
+ }
352
+ else if (parentVNode && parentVNode.$tag$ === 'style') {
353
+ const vnode = newVNode(null, node.textContent);
354
+ vnode.$elm$ = node;
355
+ vnode.$index$ = '0';
356
+ parentVNode.$children$ = [vnode];
357
+ }
358
+ };
359
+ const initializeDocumentHydrate = (node, orgLocNodes) => {
360
+ if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
361
+ let i = 0;
362
+ for (; i < node.childNodes.length; i++) {
363
+ initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
364
+ }
365
+ if (node.shadowRoot) {
366
+ for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
367
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
368
+ }
369
+ }
370
+ }
371
+ else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
372
+ const childIdSplt = node.nodeValue.split('.');
373
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
374
+ orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
375
+ node.nodeValue = '';
376
+ // useful to know if the original location is
377
+ // the root light-dom of a shadow dom component
378
+ node['s-en'] = childIdSplt[3];
379
+ }
380
+ }
381
+ };
382
+ /**
383
+ * Parse a new property value for a given property type.
384
+ *
385
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
386
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
387
+ * 1. `any`, the type given to `propValue` in the function signature
388
+ * 2. the type stored from `propType`.
389
+ *
390
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
391
+ *
392
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
393
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
394
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
395
+ * ```tsx
396
+ * <my-cmp prop-val={0}></my-cmp>
397
+ * ```
398
+ *
399
+ * HTML prop values on the other hand, will always a string
400
+ *
401
+ * @param propValue the new value to coerce to some type
402
+ * @param propType the type of the prop, expressed as a binary number
403
+ * @returns the parsed/coerced value
404
+ */
405
+ const parsePropertyValue = (propValue, propType) => {
406
+ // ensure this value is of the correct prop type
407
+ if (propValue != null && !isComplexType(propValue)) {
408
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
409
+ // per the HTML spec, any string value means it is a boolean true value
410
+ // but we'll cheat here and say that the string "false" is the boolean false
411
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
412
+ }
413
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
414
+ // force it to be a number
415
+ return parseFloat(propValue);
416
+ }
417
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
418
+ // could have been passed as a number or boolean
419
+ // but we still want it as a string
420
+ return String(propValue);
421
+ }
422
+ // redundant return here for better minification
423
+ return propValue;
424
+ }
425
+ // not sure exactly what type we want
426
+ // so no need to change to a different type
427
+ return propValue;
428
+ };
429
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
430
+ const createEvent = (ref, name, flags) => {
431
+ const elm = getElement(ref);
432
+ return {
433
+ emit: (detail) => {
434
+ return emitEvent(elm, name, {
435
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
436
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
437
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
438
+ detail,
439
+ });
440
+ },
441
+ };
442
+ };
443
+ /**
444
+ * Helper function to create & dispatch a custom Event on a provided target
445
+ * @param elm the target of the Event
446
+ * @param name the name to give the custom Event
447
+ * @param opts options for configuring a custom Event
448
+ * @returns the custom Event
449
+ */
450
+ const emitEvent = (elm, name, opts) => {
451
+ const ev = plt.ce(name, opts);
452
+ elm.dispatchEvent(ev);
453
+ return ev;
454
+ };
455
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
456
+ const registerStyle = (scopeId, cssText, allowCS) => {
457
+ let style = styles.get(scopeId);
458
+ if (supportsConstructableStylesheets && allowCS) {
459
+ style = (style || new CSSStyleSheet());
460
+ if (typeof style === 'string') {
461
+ style = cssText;
462
+ }
463
+ else {
464
+ style.replaceSync(cssText);
465
+ }
466
+ }
467
+ else {
468
+ style = cssText;
469
+ }
470
+ styles.set(scopeId, style);
471
+ };
472
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
473
+ let scopeId = getScopeId(cmpMeta);
474
+ const style = styles.get(scopeId);
475
+ // if an element is NOT connected then getRootNode() will return the wrong root node
476
+ // so the fallback is to always use the document for the root node in those cases
477
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
478
+ if (style) {
479
+ if (typeof style === 'string') {
480
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
481
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
482
+ let styleElm;
483
+ if (!appliedStyles) {
484
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
485
+ }
486
+ if (!appliedStyles.has(scopeId)) {
487
+ if (styleContainerNode.host &&
488
+ (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
489
+ // This is only happening on native shadow-dom, do not needs CSS var shim
490
+ styleElm.innerHTML = style;
491
+ }
492
+ else {
493
+ {
494
+ styleElm = doc.createElement('style');
495
+ styleElm.innerHTML = style;
496
+ }
497
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
498
+ }
499
+ if (appliedStyles) {
500
+ appliedStyles.add(scopeId);
501
+ }
502
+ }
503
+ }
504
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
505
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
506
+ }
507
+ }
508
+ return scopeId;
509
+ };
510
+ const attachStyles = (hostRef) => {
511
+ const cmpMeta = hostRef.$cmpMeta$;
512
+ const elm = hostRef.$hostElement$;
513
+ const flags = cmpMeta.$flags$;
514
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
515
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
516
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
517
+ // only required when we're NOT using native shadow dom (slot)
518
+ // or this browser doesn't support native shadow dom
519
+ // and this host element was NOT created with SSR
520
+ // let's pick out the inner content for slot projection
521
+ // create a node to represent where the original
522
+ // content was first placed, which is useful later on
523
+ // DOM WRITE!!
524
+ elm['s-sc'] = scopeId;
525
+ elm.classList.add(scopeId + '-h');
526
+ }
527
+ endAttachStyles();
528
+ };
529
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
530
+ const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, '$1{');
531
+ /**
532
+ * Production setAccessor() function based on Preact by
533
+ * Jason Miller (@developit)
534
+ * Licensed under the MIT License
535
+ * https://github.com/developit/preact/blob/master/LICENSE
536
+ *
537
+ * Modified for Stencil's compiler and vdom
538
+ */
539
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
540
+ if (oldValue !== newValue) {
541
+ let isProp = isMemberInElement(elm, memberName);
542
+ let ln = memberName.toLowerCase();
543
+ if (memberName === 'class') {
544
+ const classList = elm.classList;
545
+ const oldClasses = parseClassList(oldValue);
546
+ const newClasses = parseClassList(newValue);
547
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
548
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
549
+ }
550
+ else if (memberName === 'ref') {
551
+ // minifier will clean this up
552
+ if (newValue) {
553
+ newValue(elm);
554
+ }
555
+ }
556
+ else if ((!isProp ) &&
557
+ memberName[0] === 'o' &&
558
+ memberName[1] === 'n') {
559
+ // Event Handlers
560
+ // so if the member name starts with "on" and the 3rd characters is
561
+ // a capital letter, and it's not already a member on the element,
562
+ // then we're assuming it's an event listener
563
+ if (memberName[2] === '-') {
564
+ // on- prefixed events
565
+ // allows to be explicit about the dom event to listen without any magic
566
+ // under the hood:
567
+ // <my-cmp on-click> // listens for "click"
568
+ // <my-cmp on-Click> // listens for "Click"
569
+ // <my-cmp on-ionChange> // listens for "ionChange"
570
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
571
+ memberName = memberName.slice(3);
572
+ }
573
+ else if (isMemberInElement(win, ln)) {
574
+ // standard event
575
+ // the JSX attribute could have been "onMouseOver" and the
576
+ // member name "onmouseover" is on the window's prototype
577
+ // so let's add the listener "mouseover", which is all lowercased
578
+ memberName = ln.slice(2);
579
+ }
580
+ else {
581
+ // custom event
582
+ // the JSX attribute could have been "onMyCustomEvent"
583
+ // so let's trim off the "on" prefix and lowercase the first character
584
+ // and add the listener "myCustomEvent"
585
+ // except for the first character, we keep the event name case
586
+ memberName = ln[2] + memberName.slice(3);
587
+ }
588
+ if (oldValue) {
589
+ plt.rel(elm, memberName, oldValue, false);
590
+ }
591
+ if (newValue) {
592
+ plt.ael(elm, memberName, newValue, false);
593
+ }
594
+ }
595
+ else {
596
+ // Set property if it exists and it's not a SVG
597
+ const isComplex = isComplexType(newValue);
598
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
599
+ try {
600
+ if (!elm.tagName.includes('-')) {
601
+ const n = newValue == null ? '' : newValue;
602
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
603
+ if (memberName === 'list') {
604
+ isProp = false;
605
+ }
606
+ else if (oldValue == null || elm[memberName] != n) {
607
+ elm[memberName] = n;
608
+ }
609
+ }
610
+ else {
611
+ elm[memberName] = newValue;
612
+ }
613
+ }
614
+ catch (e) { }
615
+ }
616
+ if (newValue == null || newValue === false) {
617
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
618
+ {
619
+ elm.removeAttribute(memberName);
620
+ }
621
+ }
622
+ }
623
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
624
+ newValue = newValue === true ? '' : newValue;
625
+ {
626
+ elm.setAttribute(memberName, newValue);
627
+ }
628
+ }
629
+ }
630
+ }
631
+ };
632
+ const parseClassListRegex = /\s/;
633
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
634
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
635
+ // if the element passed in is a shadow root, which is a document fragment
636
+ // then we want to be adding attrs/props to the shadow root's "host" element
637
+ // if it's not a shadow root, then we add attrs/props to the same element
638
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
639
+ ? newVnode.$elm$.host
640
+ : newVnode.$elm$;
641
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
642
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
643
+ {
644
+ // remove attributes no longer present on the vnode by setting them to undefined
645
+ for (memberName in oldVnodeAttrs) {
646
+ if (!(memberName in newVnodeAttrs)) {
647
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
648
+ }
649
+ }
650
+ }
651
+ // add new & update changed attributes
652
+ for (memberName in newVnodeAttrs) {
653
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
654
+ }
655
+ };
656
+ /**
657
+ * Create a DOM Node corresponding to one of the children of a given VNode.
658
+ *
659
+ * @param oldParentVNode the parent VNode from the previous render
660
+ * @param newParentVNode the parent VNode from the current render
661
+ * @param childIndex the index of the VNode, in the _new_ parent node's
662
+ * children, for which we will create a new DOM node
663
+ * @param parentElm the parent DOM node which our new node will be a child of
664
+ * @returns the newly created node
665
+ */
666
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
667
+ // tslint:disable-next-line: prefer-const
668
+ const newVNode = newParentVNode.$children$[childIndex];
669
+ let i = 0;
670
+ let elm;
671
+ let childNode;
672
+ let oldVNode;
673
+ if (!useNativeShadowDom) {
674
+ // remember for later we need to check to relocate nodes
675
+ checkSlotRelocate = true;
676
+ if (newVNode.$tag$ === 'slot') {
677
+ if (scopeId) {
678
+ // scoped css needs to add its scoped id to the parent element
679
+ parentElm.classList.add(scopeId + '-s');
680
+ }
681
+ newVNode.$flags$ |= newVNode.$children$
682
+ ? // slot element has fallback content
683
+ 2 /* VNODE_FLAGS.isSlotFallback */
684
+ : // slot element does not have fallback content
685
+ 1 /* VNODE_FLAGS.isSlotReference */;
686
+ }
687
+ }
688
+ if (newVNode.$text$ !== null) {
689
+ // create text node
690
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
691
+ }
692
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
693
+ // create a slot reference node
694
+ elm = newVNode.$elm$ =
695
+ doc.createTextNode('');
696
+ }
697
+ else {
698
+ // create element
699
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
700
+ ? 'slot-fb'
701
+ : newVNode.$tag$));
702
+ // add css classes, attrs, props, listeners, etc.
703
+ {
704
+ updateElement(null, newVNode, isSvgMode);
705
+ }
706
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
707
+ // if there is a scopeId and this is the initial render
708
+ // then let's add the scopeId as a css class
709
+ elm.classList.add((elm['s-si'] = scopeId));
710
+ }
711
+ if (newVNode.$children$) {
712
+ for (i = 0; i < newVNode.$children$.length; ++i) {
713
+ // create the node
714
+ childNode = createElm(oldParentVNode, newVNode, i, elm);
715
+ // return node could have been null
716
+ if (childNode) {
717
+ // append our new node
718
+ elm.appendChild(childNode);
719
+ }
720
+ }
721
+ }
722
+ }
723
+ {
724
+ elm['s-hn'] = hostTagName;
725
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
726
+ // remember the content reference comment
727
+ elm['s-sr'] = true;
728
+ // remember the content reference comment
729
+ elm['s-cr'] = contentRef;
730
+ // remember the slot name, or empty string for default slot
731
+ elm['s-sn'] = newVNode.$name$ || '';
732
+ // check if we've got an old vnode for this slot
733
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
734
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
735
+ // we've got an old slot vnode and the wrapper is being replaced
736
+ // so let's move the old slot content back to it's original location
737
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
738
+ }
739
+ }
740
+ }
741
+ return elm;
742
+ };
743
+ const putBackInOriginalLocation = (parentElm, recursive) => {
744
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
745
+ const oldSlotChildNodes = parentElm.childNodes;
746
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
747
+ const childNode = oldSlotChildNodes[i];
748
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
749
+ // // this child node in the old element is from another component
750
+ // // remove this node from the old slot's parent
751
+ // childNode.remove();
752
+ // and relocate it back to it's original location
753
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
754
+ // remove the old original location comment entirely
755
+ // later on the patch function will know what to do
756
+ // and move this to the correct spot in need be
757
+ childNode['s-ol'].remove();
758
+ childNode['s-ol'] = undefined;
759
+ checkSlotRelocate = true;
760
+ }
761
+ if (recursive) {
762
+ putBackInOriginalLocation(childNode, recursive);
763
+ }
764
+ }
765
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
766
+ };
767
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
768
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
769
+ let childNode;
770
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
771
+ containerElm = containerElm.shadowRoot;
772
+ }
773
+ for (; startIdx <= endIdx; ++startIdx) {
774
+ if (vnodes[startIdx]) {
775
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
776
+ if (childNode) {
777
+ vnodes[startIdx].$elm$ = childNode;
778
+ containerElm.insertBefore(childNode, referenceNode(before) );
779
+ }
780
+ }
781
+ }
782
+ };
783
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
784
+ for (; startIdx <= endIdx; ++startIdx) {
785
+ if ((vnode = vnodes[startIdx])) {
786
+ elm = vnode.$elm$;
787
+ callNodeRefs(vnode);
788
+ {
789
+ // we're removing this element
790
+ // so it's possible we need to show slot fallback content now
791
+ checkSlotFallbackVisibility = true;
792
+ if (elm['s-ol']) {
793
+ // remove the original location comment
794
+ elm['s-ol'].remove();
795
+ }
796
+ else {
797
+ // it's possible that child nodes of the node
798
+ // that's being removed are slot nodes
799
+ putBackInOriginalLocation(elm, true);
800
+ }
801
+ }
802
+ // remove the vnode's element from the dom
803
+ elm.remove();
804
+ }
805
+ }
806
+ };
807
+ /**
808
+ * Reconcile the children of a new VNode with the children of an old VNode by
809
+ * traversing the two collections of children, identifying nodes that are
810
+ * conserved or changed, calling out to `patch` to make any necessary
811
+ * updates to the DOM, and rearranging DOM nodes as needed.
812
+ *
813
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
814
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
815
+ * 'windows' by storing start and end indices and references to the
816
+ * corresponding array entries. Initially the two 'windows' are basically equal
817
+ * to the entire array, but we progressively narrow the windows until there are
818
+ * no children left to update by doing the following:
819
+ *
820
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
821
+ * that if we have an initial array like the following we'll end up dealing
822
+ * only with a window bounded by the highlighted elements:
823
+ *
824
+ * [null, null, VNode1 , ... , VNode2, null, null]
825
+ * ^^^^^^ ^^^^^^
826
+ *
827
+ * 2. Check to see if the elements at the head and tail positions are equal
828
+ * across the windows. This will basically detect elements which haven't
829
+ * been added, removed, or changed position, i.e. if you had the following
830
+ * VNode elements (represented as HTML):
831
+ *
832
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
833
+ * newVNode: `<div><p><span>THERE</span></p></div>`
834
+ *
835
+ * Then when comparing the children of the `<div>` tag we check the equality
836
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
837
+ * same tag in the same position, we'd be able to avoid completely
838
+ * re-rendering the subtree under them with a new DOM element and would just
839
+ * call out to `patch` to handle reconciling their children and so on.
840
+ *
841
+ * 3. Check, for both windows, to see if the element at the beginning of the
842
+ * window corresponds to the element at the end of the other window. This is
843
+ * a heuristic which will let us identify _some_ situations in which
844
+ * elements have changed position, for instance it _should_ detect that the
845
+ * children nodes themselves have not changed but merely moved in the
846
+ * following example:
847
+ *
848
+ * oldVNode: `<div><element-one /><element-two /></div>`
849
+ * newVNode: `<div><element-two /><element-one /></div>`
850
+ *
851
+ * If we find cases like this then we also need to move the concrete DOM
852
+ * elements corresponding to the moved children to write the re-order to the
853
+ * DOM.
854
+ *
855
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
856
+ * nodes in the old children which have the same key as the first element in
857
+ * our window on the new children. If we find such a node we handle calling
858
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
859
+ * what we find.
860
+ *
861
+ * Finally, once we've narrowed our 'windows' to the point that either of them
862
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
863
+ * insertion or deletion that needs to happen to get a DOM state that correctly
864
+ * reflects the new child VNodes. If, for instance, after our window on the old
865
+ * children has collapsed we still have more nodes on the new children that
866
+ * we haven't dealt with yet then we need to add them, or if the new children
867
+ * collapse but we still have unhandled _old_ children then we need to make
868
+ * sure the corresponding DOM nodes are removed.
869
+ *
870
+ * @param parentElm the node into which the parent VNode is rendered
871
+ * @param oldCh the old children of the parent node
872
+ * @param newVNode the new VNode which will replace the parent
873
+ * @param newCh the new children of the parent node
874
+ */
875
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
876
+ let oldStartIdx = 0;
877
+ let newStartIdx = 0;
878
+ let oldEndIdx = oldCh.length - 1;
879
+ let oldStartVnode = oldCh[0];
880
+ let oldEndVnode = oldCh[oldEndIdx];
881
+ let newEndIdx = newCh.length - 1;
882
+ let newStartVnode = newCh[0];
883
+ let newEndVnode = newCh[newEndIdx];
884
+ let node;
885
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
886
+ if (oldStartVnode == null) {
887
+ // VNode might have been moved left
888
+ oldStartVnode = oldCh[++oldStartIdx];
889
+ }
890
+ else if (oldEndVnode == null) {
891
+ oldEndVnode = oldCh[--oldEndIdx];
892
+ }
893
+ else if (newStartVnode == null) {
894
+ newStartVnode = newCh[++newStartIdx];
895
+ }
896
+ else if (newEndVnode == null) {
897
+ newEndVnode = newCh[--newEndIdx];
898
+ }
899
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
900
+ // if the start nodes are the same then we should patch the new VNode
901
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
902
+ // indices to reflect that. We don't need to move any DOM Nodes around
903
+ // since things are matched up in order.
904
+ patch(oldStartVnode, newStartVnode);
905
+ oldStartVnode = oldCh[++oldStartIdx];
906
+ newStartVnode = newCh[++newStartIdx];
907
+ }
908
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
909
+ // likewise, if the end nodes are the same we patch new onto old and
910
+ // decrement our end indices, and also likewise in this case we don't
911
+ // need to move any DOM Nodes.
912
+ patch(oldEndVnode, newEndVnode);
913
+ oldEndVnode = oldCh[--oldEndIdx];
914
+ newEndVnode = newCh[--newEndIdx];
915
+ }
916
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
917
+ // case: "Vnode moved right"
918
+ //
919
+ // We've found that the last node in our window on the new children is
920
+ // the same VNode as the _first_ node in our window on the old children
921
+ // we're dealing with now. Visually, this is the layout of these two
922
+ // nodes:
923
+ //
924
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
925
+ // ^^^^^^^^^^^
926
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
927
+ // ^^^^^^^^^^^^^
928
+ //
929
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
930
+ // and move the DOM element for `oldStartVnode`.
931
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
932
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
933
+ }
934
+ patch(oldStartVnode, newEndVnode);
935
+ // We need to move the element for `oldStartVnode` into a position which
936
+ // will be appropriate for `newEndVnode`. For this we can use
937
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
938
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
939
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
940
+ //
941
+ // <old-start-node />
942
+ // <some-intervening-node />
943
+ // <old-end-node />
944
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
945
+ // <next-sibling />
946
+ //
947
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
948
+ // the node for `oldStartVnode` at the end of the children of
949
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
950
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
951
+ // append it to the children of the parent element.
952
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
953
+ oldStartVnode = oldCh[++oldStartIdx];
954
+ newEndVnode = newCh[--newEndIdx];
955
+ }
956
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
957
+ // case: "Vnode moved left"
958
+ //
959
+ // We've found that the first node in our window on the new children is
960
+ // the same VNode as the _last_ node in our window on the old children.
961
+ // Visually, this is the layout of these two nodes:
962
+ //
963
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
964
+ // ^^^^^^^^^^^^^
965
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
966
+ // ^^^^^^^^^^^
967
+ //
968
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
969
+ // (which will handle updating any changed attributes, reconciling their
970
+ // children etc) but we also need to move the DOM node to which
971
+ // `oldEndVnode` corresponds.
972
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
973
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
974
+ }
975
+ patch(oldEndVnode, newStartVnode);
976
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
977
+ // the same node, so since we're here we know that they are not. Thus we
978
+ // can move the element for `oldEndVnode` _before_ the element for
979
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
980
+ // future.
981
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
982
+ oldEndVnode = oldCh[--oldEndIdx];
983
+ newStartVnode = newCh[++newStartIdx];
984
+ }
985
+ else {
986
+ {
987
+ // We either didn't find an element in the old children that matches
988
+ // the key of the first new child OR the build is not using `key`
989
+ // attributes at all. In either case we need to create a new element
990
+ // for the new node.
991
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
992
+ newStartVnode = newCh[++newStartIdx];
993
+ }
994
+ if (node) {
995
+ // if we created a new node then handle inserting it to the DOM
996
+ {
997
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
998
+ }
999
+ }
1000
+ }
1001
+ }
1002
+ if (oldStartIdx > oldEndIdx) {
1003
+ // we have some more new nodes to add which don't match up with old nodes
1004
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
1005
+ }
1006
+ else if (newStartIdx > newEndIdx) {
1007
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
1008
+ // in the new array, so lets remove them (which entails cleaning up the
1009
+ // relevant DOM nodes)
1010
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1011
+ }
1012
+ };
1013
+ /**
1014
+ * Compare two VNodes to determine if they are the same
1015
+ *
1016
+ * **NB**: This function is an equality _heuristic_ based on the available
1017
+ * information set on the two VNodes and can be misleading under certain
1018
+ * circumstances. In particular, if the two nodes do not have `key` attrs
1019
+ * (available under `$key$` on VNodes) then the function falls back on merely
1020
+ * checking that they have the same tag.
1021
+ *
1022
+ * So, in other words, if `key` attrs are not set on VNodes which may be
1023
+ * changing order within a `children` array or something along those lines then
1024
+ * we could obtain a false positive and then have to do needless re-rendering.
1025
+ *
1026
+ * @param leftVNode the first VNode to check
1027
+ * @param rightVNode the second VNode to check
1028
+ * @returns whether they're equal or not
1029
+ */
1030
+ const isSameVnode = (leftVNode, rightVNode) => {
1031
+ // compare if two vnode to see if they're "technically" the same
1032
+ // need to have the same element tag, and same key to be the same
1033
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1034
+ if (leftVNode.$tag$ === 'slot') {
1035
+ return leftVNode.$name$ === rightVNode.$name$;
1036
+ }
1037
+ return true;
1038
+ }
1039
+ return false;
1040
+ };
1041
+ const referenceNode = (node) => {
1042
+ // this node was relocated to a new location in the dom
1043
+ // because of some other component's slot
1044
+ // but we still have an html comment in place of where
1045
+ // it's original location was according to it's original vdom
1046
+ return (node && node['s-ol']) || node;
1047
+ };
1048
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1049
+ /**
1050
+ * Handle reconciling an outdated VNode with a new one which corresponds to
1051
+ * it. This function handles flushing updates to the DOM and reconciling the
1052
+ * children of the two nodes (if any).
1053
+ *
1054
+ * @param oldVNode an old VNode whose DOM element and children we want to update
1055
+ * @param newVNode a new VNode representing an updated version of the old one
1056
+ */
1057
+ const patch = (oldVNode, newVNode) => {
1058
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
1059
+ const oldChildren = oldVNode.$children$;
1060
+ const newChildren = newVNode.$children$;
1061
+ const tag = newVNode.$tag$;
1062
+ const text = newVNode.$text$;
1063
+ let defaultHolder;
1064
+ if (text === null) {
1065
+ {
1066
+ if (tag === 'slot')
1067
+ ;
1068
+ else {
1069
+ // either this is the first render of an element OR it's an update
1070
+ // AND we already know it's possible it could have changed
1071
+ // this updates the element's css classes, attrs, props, listeners, etc.
1072
+ updateElement(oldVNode, newVNode, isSvgMode);
1073
+ }
1074
+ }
1075
+ if (oldChildren !== null && newChildren !== null) {
1076
+ // looks like there's child vnodes for both the old and new vnodes
1077
+ // so we need to call `updateChildren` to reconcile them
1078
+ updateChildren(elm, oldChildren, newVNode, newChildren);
1079
+ }
1080
+ else if (newChildren !== null) {
1081
+ // no old child vnodes, but there are new child vnodes to add
1082
+ if (oldVNode.$text$ !== null) {
1083
+ // the old vnode was text, so be sure to clear it out
1084
+ elm.textContent = '';
1085
+ }
1086
+ // add the new vnode children
1087
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1088
+ }
1089
+ else if (oldChildren !== null) {
1090
+ // no new child vnodes, but there are old child vnodes to remove
1091
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1092
+ }
1093
+ }
1094
+ else if ((defaultHolder = elm['s-cr'])) {
1095
+ // this element has slotted content
1096
+ defaultHolder.parentNode.textContent = text;
1097
+ }
1098
+ else if (oldVNode.$text$ !== text) {
1099
+ // update the text content for the text only vnode
1100
+ // and also only if the text is different than before
1101
+ elm.data = text;
1102
+ }
1103
+ };
1104
+ const updateFallbackSlotVisibility = (elm) => {
1105
+ // tslint:disable-next-line: prefer-const
1106
+ const childNodes = elm.childNodes;
1107
+ let childNode;
1108
+ let i;
1109
+ let ilen;
1110
+ let j;
1111
+ let slotNameAttr;
1112
+ let nodeType;
1113
+ for (i = 0, ilen = childNodes.length; i < ilen; i++) {
1114
+ childNode = childNodes[i];
1115
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1116
+ if (childNode['s-sr']) {
1117
+ // this is a slot fallback node
1118
+ // get the slot name for this slot reference node
1119
+ slotNameAttr = childNode['s-sn'];
1120
+ // by default always show a fallback slot node
1121
+ // then hide it if there are other slots in the light dom
1122
+ childNode.hidden = false;
1123
+ for (j = 0; j < ilen; j++) {
1124
+ nodeType = childNodes[j].nodeType;
1125
+ if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1126
+ // this sibling node is from a different component OR is a named fallback slot node
1127
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1128
+ childNode.hidden = true;
1129
+ break;
1130
+ }
1131
+ }
1132
+ else {
1133
+ // this is a default fallback slot node
1134
+ // any element or text node (with content)
1135
+ // should hide the default fallback slot node
1136
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1137
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1138
+ childNode.hidden = true;
1139
+ break;
1140
+ }
1141
+ }
1142
+ }
1143
+ }
1144
+ // keep drilling down
1145
+ updateFallbackSlotVisibility(childNode);
1146
+ }
1147
+ }
1148
+ };
1149
+ const relocateNodes = [];
1150
+ const relocateSlotContent = (elm) => {
1151
+ // tslint:disable-next-line: prefer-const
1152
+ let childNode;
1153
+ let node;
1154
+ let hostContentNodes;
1155
+ let slotNameAttr;
1156
+ let relocateNodeData;
1157
+ let j;
1158
+ let i = 0;
1159
+ const childNodes = elm.childNodes;
1160
+ const ilen = childNodes.length;
1161
+ for (; i < ilen; i++) {
1162
+ childNode = childNodes[i];
1163
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1164
+ // first got the content reference comment node
1165
+ // then we got it's parent, which is where all the host content is in now
1166
+ hostContentNodes = node.parentNode.childNodes;
1167
+ slotNameAttr = childNode['s-sn'];
1168
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1169
+ node = hostContentNodes[j];
1170
+ if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1171
+ // let's do some relocating to its new home
1172
+ // but never relocate a content reference node
1173
+ // that is suppose to always represent the original content location
1174
+ if (isNodeLocatedInSlot(node, slotNameAttr)) {
1175
+ // it's possible we've already decided to relocate this node
1176
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1177
+ // made some changes to slots
1178
+ // let's make sure we also double check
1179
+ // fallbacks are correctly hidden or shown
1180
+ checkSlotFallbackVisibility = true;
1181
+ node['s-sn'] = node['s-sn'] || slotNameAttr;
1182
+ if (relocateNodeData) {
1183
+ // previously we never found a slot home for this node
1184
+ // but turns out we did, so let's remember it now
1185
+ relocateNodeData.$slotRefNode$ = childNode;
1186
+ }
1187
+ else {
1188
+ // add to our list of nodes to relocate
1189
+ relocateNodes.push({
1190
+ $slotRefNode$: childNode,
1191
+ $nodeToRelocate$: node,
1192
+ });
1193
+ }
1194
+ if (node['s-sr']) {
1195
+ relocateNodes.map((relocateNode) => {
1196
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1197
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1198
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1199
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1200
+ }
1201
+ }
1202
+ });
1203
+ }
1204
+ }
1205
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1206
+ // so far this element does not have a slot home, not setting slotRefNode on purpose
1207
+ // if we never find a home for this element then we'll need to hide it
1208
+ relocateNodes.push({
1209
+ $nodeToRelocate$: node,
1210
+ });
1211
+ }
1212
+ }
1213
+ }
1214
+ }
1215
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1216
+ relocateSlotContent(childNode);
1217
+ }
1218
+ }
1219
+ };
1220
+ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1221
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1222
+ if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1223
+ return true;
1224
+ }
1225
+ if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1226
+ return true;
1227
+ }
1228
+ return false;
1229
+ }
1230
+ if (nodeToRelocate['s-sn'] === slotNameAttr) {
1231
+ return true;
1232
+ }
1233
+ return slotNameAttr === '';
1234
+ };
1235
+ const callNodeRefs = (vNode) => {
1236
+ {
1237
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1238
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
1239
+ }
1240
+ };
1241
+ const renderVdom = (hostRef, renderFnResults) => {
1242
+ const hostElm = hostRef.$hostElement$;
1243
+ const cmpMeta = hostRef.$cmpMeta$;
1244
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1245
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1246
+ hostTagName = hostElm.tagName;
1247
+ if (cmpMeta.$attrsToReflect$) {
1248
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1249
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1250
+ }
1251
+ rootVnode.$tag$ = null;
1252
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1253
+ hostRef.$vnode$ = rootVnode;
1254
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1255
+ {
1256
+ scopeId = hostElm['s-sc'];
1257
+ }
1258
+ {
1259
+ contentRef = hostElm['s-cr'];
1260
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1261
+ // always reset
1262
+ checkSlotFallbackVisibility = false;
1263
+ }
1264
+ // synchronous patch
1265
+ patch(oldVNode, rootVnode);
1266
+ {
1267
+ // while we're moving nodes around existing nodes, temporarily disable
1268
+ // the disconnectCallback from working
1269
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1270
+ if (checkSlotRelocate) {
1271
+ relocateSlotContent(rootVnode.$elm$);
1272
+ let relocateData;
1273
+ let nodeToRelocate;
1274
+ let orgLocationNode;
1275
+ let parentNodeRef;
1276
+ let insertBeforeNode;
1277
+ let refNode;
1278
+ let i = 0;
1279
+ for (; i < relocateNodes.length; i++) {
1280
+ relocateData = relocateNodes[i];
1281
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1282
+ if (!nodeToRelocate['s-ol']) {
1283
+ // add a reference node marking this node's original location
1284
+ // keep a reference to this node for later lookups
1285
+ orgLocationNode =
1286
+ doc.createTextNode('');
1287
+ orgLocationNode['s-nr'] = nodeToRelocate;
1288
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1289
+ }
1290
+ }
1291
+ for (i = 0; i < relocateNodes.length; i++) {
1292
+ relocateData = relocateNodes[i];
1293
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1294
+ if (relocateData.$slotRefNode$) {
1295
+ // by default we're just going to insert it directly
1296
+ // after the slot reference node
1297
+ parentNodeRef = relocateData.$slotRefNode$.parentNode;
1298
+ insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1299
+ orgLocationNode = nodeToRelocate['s-ol'];
1300
+ while ((orgLocationNode = orgLocationNode.previousSibling)) {
1301
+ refNode = orgLocationNode['s-nr'];
1302
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1303
+ refNode = refNode.nextSibling;
1304
+ if (!refNode || !refNode['s-nr']) {
1305
+ insertBeforeNode = refNode;
1306
+ break;
1307
+ }
1308
+ }
1309
+ }
1310
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1311
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1312
+ // we've checked that it's worth while to relocate
1313
+ // since that the node to relocate
1314
+ // has a different next sibling or parent relocated
1315
+ if (nodeToRelocate !== insertBeforeNode) {
1316
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1317
+ // probably a component in the index.html that doesn't have it's hostname set
1318
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1319
+ }
1320
+ // add it back to the dom but in its new home
1321
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1322
+ }
1323
+ }
1324
+ }
1325
+ else {
1326
+ // this node doesn't have a slot home to go to, so let's hide it
1327
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1328
+ nodeToRelocate.hidden = true;
1329
+ }
1330
+ }
1331
+ }
1332
+ }
1333
+ if (checkSlotFallbackVisibility) {
1334
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1335
+ }
1336
+ // done moving nodes around
1337
+ // allow the disconnect callback to work again
1338
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1339
+ // always reset
1340
+ relocateNodes.length = 0;
1341
+ }
1342
+ };
1343
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1344
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1345
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1346
+ }
1347
+ };
1348
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1349
+ {
1350
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1351
+ }
1352
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1353
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1354
+ return;
1355
+ }
1356
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1357
+ // there is no ancestor component or the ancestor component
1358
+ // has already fired off its lifecycle update then
1359
+ // fire off the initial update
1360
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1361
+ return writeTask(dispatch) ;
1362
+ };
1363
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1364
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1365
+ const instance = hostRef.$lazyInstance$ ;
1366
+ let promise;
1367
+ if (isInitialLoad) {
1368
+ {
1369
+ promise = safeCall(instance, 'componentWillLoad');
1370
+ }
1371
+ }
1372
+ {
1373
+ promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1374
+ }
1375
+ endSchedule();
1376
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1377
+ };
1378
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1379
+ // updateComponent
1380
+ const elm = hostRef.$hostElement$;
1381
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1382
+ const rc = elm['s-rc'];
1383
+ if (isInitialLoad) {
1384
+ // DOM WRITE!
1385
+ attachStyles(hostRef);
1386
+ }
1387
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1388
+ {
1389
+ callRender(hostRef, instance);
1390
+ }
1391
+ if (rc) {
1392
+ // ok, so turns out there are some child host elements
1393
+ // waiting on this parent element to load
1394
+ // let's fire off all update callbacks waiting
1395
+ rc.map((cb) => cb());
1396
+ elm['s-rc'] = undefined;
1397
+ }
1398
+ endRender();
1399
+ endUpdate();
1400
+ {
1401
+ const childrenPromises = elm['s-p'];
1402
+ const postUpdate = () => postUpdateComponent(hostRef);
1403
+ if (childrenPromises.length === 0) {
1404
+ postUpdate();
1405
+ }
1406
+ else {
1407
+ Promise.all(childrenPromises).then(postUpdate);
1408
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1409
+ childrenPromises.length = 0;
1410
+ }
1411
+ }
1412
+ };
1413
+ const callRender = (hostRef, instance, elm) => {
1414
+ try {
1415
+ instance = instance.render() ;
1416
+ {
1417
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1418
+ }
1419
+ {
1420
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1421
+ }
1422
+ {
1423
+ {
1424
+ // looks like we've got child nodes to render into this host element
1425
+ // or we need to update the css class/attrs on the host element
1426
+ // DOM WRITE!
1427
+ {
1428
+ renderVdom(hostRef, instance);
1429
+ }
1430
+ }
1431
+ }
1432
+ }
1433
+ catch (e) {
1434
+ consoleError(e, hostRef.$hostElement$);
1435
+ }
1436
+ return null;
1437
+ };
1438
+ const postUpdateComponent = (hostRef) => {
1439
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1440
+ const elm = hostRef.$hostElement$;
1441
+ const endPostUpdate = createTime('postUpdate', tagName);
1442
+ const instance = hostRef.$lazyInstance$ ;
1443
+ const ancestorComponent = hostRef.$ancestorComponent$;
1444
+ {
1445
+ safeCall(instance, 'componentDidRender');
1446
+ }
1447
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1448
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1449
+ {
1450
+ // DOM WRITE!
1451
+ addHydratedFlag(elm);
1452
+ }
1453
+ {
1454
+ safeCall(instance, 'componentDidLoad');
1455
+ }
1456
+ endPostUpdate();
1457
+ {
1458
+ hostRef.$onReadyResolve$(elm);
1459
+ if (!ancestorComponent) {
1460
+ appDidLoad();
1461
+ }
1462
+ }
1463
+ }
1464
+ else {
1465
+ endPostUpdate();
1466
+ }
1467
+ {
1468
+ hostRef.$onInstanceResolve$(elm);
1469
+ }
1470
+ // load events fire from bottom to top
1471
+ // the deepest elements load first then bubbles up
1472
+ {
1473
+ if (hostRef.$onRenderResolve$) {
1474
+ hostRef.$onRenderResolve$();
1475
+ hostRef.$onRenderResolve$ = undefined;
1476
+ }
1477
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1478
+ nextTick(() => scheduleUpdate(hostRef, false));
1479
+ }
1480
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1481
+ }
1482
+ // ( •_•)
1483
+ // ( •_•)>⌐■-■
1484
+ // (⌐■_■)
1485
+ };
1486
+ const appDidLoad = (who) => {
1487
+ // on appload
1488
+ // we have finish the first big initial render
1489
+ {
1490
+ addHydratedFlag(doc.documentElement);
1491
+ }
1492
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1493
+ };
1494
+ const safeCall = (instance, method, arg) => {
1495
+ if (instance && instance[method]) {
1496
+ try {
1497
+ return instance[method](arg);
1498
+ }
1499
+ catch (e) {
1500
+ consoleError(e);
1501
+ }
1502
+ }
1503
+ return undefined;
1504
+ };
1505
+ const then = (promise, thenFn) => {
1506
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1507
+ };
1508
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1509
+ ;
1510
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1511
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1512
+ // check our new property value against our internal value
1513
+ const hostRef = getHostRef(ref);
1514
+ const elm = hostRef.$hostElement$ ;
1515
+ const oldVal = hostRef.$instanceValues$.get(propName);
1516
+ const flags = hostRef.$flags$;
1517
+ const instance = hostRef.$lazyInstance$ ;
1518
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1519
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1520
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1521
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1522
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1523
+ // gadzooks! the property's value has changed!!
1524
+ // set our new value!
1525
+ hostRef.$instanceValues$.set(propName, newVal);
1526
+ if (instance) {
1527
+ // get an array of method names of watch functions to call
1528
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1529
+ const watchMethods = cmpMeta.$watchers$[propName];
1530
+ if (watchMethods) {
1531
+ // this instance is watching for when this property changed
1532
+ watchMethods.map((watchMethodName) => {
1533
+ try {
1534
+ // fire off each of the watch methods that are watching this property
1535
+ instance[watchMethodName](newVal, oldVal, propName);
1536
+ }
1537
+ catch (e) {
1538
+ consoleError(e, elm);
1539
+ }
1540
+ });
1541
+ }
1542
+ }
1543
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1544
+ // looks like this value actually changed, so we've got work to do!
1545
+ // but only if we've already rendered, otherwise just chill out
1546
+ // queue that we need to do an update, but don't worry about queuing
1547
+ // up millions cuz this function ensures it only runs once
1548
+ scheduleUpdate(hostRef, false);
1549
+ }
1550
+ }
1551
+ }
1552
+ };
1553
+ /**
1554
+ * Attach a series of runtime constructs to a compiled Stencil component
1555
+ * constructor, including getters and setters for the `@Prop` and `@State`
1556
+ * decorators, callbacks for when attributes change, and so on.
1557
+ *
1558
+ * @param Cstr the constructor for a component that we need to process
1559
+ * @param cmpMeta metadata collected previously about the component
1560
+ * @param flags a number used to store a series of bit flags
1561
+ * @returns a reference to the same constructor passed in (but now mutated)
1562
+ */
1563
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1564
+ if (cmpMeta.$members$) {
1565
+ if (Cstr.watchers) {
1566
+ cmpMeta.$watchers$ = Cstr.watchers;
1567
+ }
1568
+ // It's better to have a const than two Object.entries()
1569
+ const members = Object.entries(cmpMeta.$members$);
1570
+ const prototype = Cstr.prototype;
1571
+ members.map(([memberName, [memberFlags]]) => {
1572
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1573
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1574
+ // proxyComponent - prop
1575
+ Object.defineProperty(prototype, memberName, {
1576
+ get() {
1577
+ // proxyComponent, get value
1578
+ return getValue(this, memberName);
1579
+ },
1580
+ set(newValue) {
1581
+ // proxyComponent, set value
1582
+ setValue(this, memberName, newValue, cmpMeta);
1583
+ },
1584
+ configurable: true,
1585
+ enumerable: true,
1586
+ });
1587
+ }
1588
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1589
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1590
+ // proxyComponent - method
1591
+ Object.defineProperty(prototype, memberName, {
1592
+ value(...args) {
1593
+ const ref = getHostRef(this);
1594
+ return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1595
+ },
1596
+ });
1597
+ }
1598
+ });
1599
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1600
+ const attrNameToPropName = new Map();
1601
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1602
+ plt.jmp(() => {
1603
+ const propName = attrNameToPropName.get(attrName);
1604
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1605
+ // in the case where an attribute was set inline.
1606
+ // ```html
1607
+ // <my-component some-attribute="some-value"></my-component>
1608
+ // ```
1609
+ //
1610
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1611
+ // programmatically changes it before it has been upgraded as shown below:
1612
+ //
1613
+ // ```html
1614
+ // <!-- this component has _not_ been upgraded yet -->
1615
+ // <my-component id="test" some-attribute="some-value"></my-component>
1616
+ // <script>
1617
+ // // grab non-upgraded component
1618
+ // el = document.querySelector("#test");
1619
+ // el.someAttribute = "another-value";
1620
+ // // upgrade component
1621
+ // customElements.define('my-component', MyComponent);
1622
+ // </script>
1623
+ // ```
1624
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1625
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1626
+ // to the value that was set inline i.e. "some-value" from above example. When
1627
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1628
+ //
1629
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1630
+ // by connectedCallback as this attributeChangedCallback will not fire.
1631
+ //
1632
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1633
+ //
1634
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1635
+ // properties here given that this goes against best practices outlined here
1636
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1637
+ if (this.hasOwnProperty(propName)) {
1638
+ newValue = this[propName];
1639
+ delete this[propName];
1640
+ }
1641
+ else if (prototype.hasOwnProperty(propName) &&
1642
+ typeof this[propName] === 'number' &&
1643
+ this[propName] == newValue) {
1644
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1645
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1646
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1647
+ return;
1648
+ }
1649
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1650
+ });
1651
+ };
1652
+ // create an array of attributes to observe
1653
+ // and also create a map of html attribute name to js property name
1654
+ Cstr.observedAttributes = members
1655
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1656
+ .map(([propName, m]) => {
1657
+ const attrName = m[1] || propName;
1658
+ attrNameToPropName.set(attrName, propName);
1659
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1660
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1661
+ }
1662
+ return attrName;
1663
+ });
1664
+ }
1665
+ }
1666
+ return Cstr;
1667
+ };
1668
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1669
+ // initializeComponent
1670
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1671
+ {
1672
+ // we haven't initialized this element yet
1673
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1674
+ // lazy loaded components
1675
+ // request the component's implementation to be
1676
+ // wired up with the host element
1677
+ Cstr = loadModule(cmpMeta);
1678
+ if (Cstr.then) {
1679
+ // Await creates a micro-task avoid if possible
1680
+ const endLoad = uniqueTime();
1681
+ Cstr = await Cstr;
1682
+ endLoad();
1683
+ }
1684
+ if (!Cstr.isProxied) {
1685
+ // we've never proxied this Constructor before
1686
+ // let's add the getters/setters to its prototype before
1687
+ // the first time we create an instance of the implementation
1688
+ {
1689
+ cmpMeta.$watchers$ = Cstr.watchers;
1690
+ }
1691
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1692
+ Cstr.isProxied = true;
1693
+ }
1694
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1695
+ // ok, time to construct the instance
1696
+ // but let's keep track of when we start and stop
1697
+ // so that the getters/setters don't incorrectly step on data
1698
+ {
1699
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1700
+ }
1701
+ // construct the lazy-loaded component implementation
1702
+ // passing the hostRef is very important during
1703
+ // construction in order to directly wire together the
1704
+ // host element and the lazy-loaded instance
1705
+ try {
1706
+ new Cstr(hostRef);
1707
+ }
1708
+ catch (e) {
1709
+ consoleError(e);
1710
+ }
1711
+ {
1712
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1713
+ }
1714
+ {
1715
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1716
+ }
1717
+ endNewInstance();
1718
+ fireConnectedCallback(hostRef.$lazyInstance$);
1719
+ }
1720
+ if (Cstr.style) {
1721
+ // this component has styles but we haven't registered them yet
1722
+ let style = Cstr.style;
1723
+ const scopeId = getScopeId(cmpMeta);
1724
+ if (!styles.has(scopeId)) {
1725
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1726
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1727
+ endRegisterStyles();
1728
+ }
1729
+ }
1730
+ }
1731
+ // we've successfully created a lazy instance
1732
+ const ancestorComponent = hostRef.$ancestorComponent$;
1733
+ const schedule = () => scheduleUpdate(hostRef, true);
1734
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1735
+ // this is the initial load and this component it has an ancestor component
1736
+ // but the ancestor component has NOT fired its will update lifecycle yet
1737
+ // so let's just cool our jets and wait for the ancestor to continue first
1738
+ // this will get fired off when the ancestor component
1739
+ // finally gets around to rendering its lazy self
1740
+ // fire off the initial update
1741
+ ancestorComponent['s-rc'].push(schedule);
1742
+ }
1743
+ else {
1744
+ schedule();
1745
+ }
1746
+ };
1747
+ const fireConnectedCallback = (instance) => {
1748
+ {
1749
+ safeCall(instance, 'connectedCallback');
1750
+ }
1751
+ };
1752
+ const connectedCallback = (elm) => {
1753
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1754
+ const hostRef = getHostRef(elm);
1755
+ const cmpMeta = hostRef.$cmpMeta$;
1756
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1757
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1758
+ // first time this component has connected
1759
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1760
+ let hostId;
1761
+ {
1762
+ hostId = elm.getAttribute(HYDRATE_ID);
1763
+ if (hostId) {
1764
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1765
+ const scopeId = addStyle(elm.shadowRoot, cmpMeta);
1766
+ elm.classList.remove(scopeId + '-h', scopeId + '-s');
1767
+ }
1768
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
1769
+ }
1770
+ }
1771
+ if (!hostId) {
1772
+ // initUpdate
1773
+ // if the slot polyfill is required we'll need to put some nodes
1774
+ // in here to act as original content anchors as we move nodes around
1775
+ // host element has been connected to the DOM
1776
+ if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1777
+ setContentReference(elm);
1778
+ }
1779
+ }
1780
+ {
1781
+ // find the first ancestor component (if there is one) and register
1782
+ // this component as one of the actively loading child components for its ancestor
1783
+ let ancestorComponent = elm;
1784
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1785
+ // climb up the ancestors looking for the first
1786
+ // component that hasn't finished its lifecycle update yet
1787
+ if ((ancestorComponent.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
1788
+ ancestorComponent.hasAttribute('s-id') &&
1789
+ ancestorComponent['s-p']) ||
1790
+ ancestorComponent['s-p']) {
1791
+ // we found this components first ancestor component
1792
+ // keep a reference to this component's ancestor component
1793
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1794
+ break;
1795
+ }
1796
+ }
1797
+ }
1798
+ // Lazy properties
1799
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1800
+ if (cmpMeta.$members$) {
1801
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1802
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1803
+ const value = elm[memberName];
1804
+ delete elm[memberName];
1805
+ elm[memberName] = value;
1806
+ }
1807
+ });
1808
+ }
1809
+ {
1810
+ initializeComponent(elm, hostRef, cmpMeta);
1811
+ }
1812
+ }
1813
+ else {
1814
+ // fire off connectedCallback() on component instance
1815
+ fireConnectedCallback(hostRef.$lazyInstance$);
1816
+ }
1817
+ endConnected();
1818
+ }
1819
+ };
1820
+ const setContentReference = (elm) => {
1821
+ // only required when we're NOT using native shadow dom (slot)
1822
+ // or this browser doesn't support native shadow dom
1823
+ // and this host element was NOT created with SSR
1824
+ // let's pick out the inner content for slot projection
1825
+ // create a node to represent where the original
1826
+ // content was first placed, which is useful later on
1827
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1828
+ contentRefElm['s-cn'] = true;
1829
+ elm.insertBefore(contentRefElm, elm.firstChild);
1830
+ };
1831
+ const disconnectedCallback = (elm) => {
1832
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1833
+ const hostRef = getHostRef(elm);
1834
+ const instance = hostRef.$lazyInstance$ ;
1835
+ {
1836
+ safeCall(instance, 'disconnectedCallback');
1837
+ }
1838
+ }
1839
+ };
1840
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1841
+ const endBootstrap = createTime();
1842
+ const cmpTags = [];
1843
+ const exclude = options.exclude || [];
1844
+ const customElements = win.customElements;
1845
+ const head = doc.head;
1846
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1847
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1848
+ const deferredConnectedCallbacks = [];
1849
+ const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1850
+ let appLoadFallback;
1851
+ let isBootstrapping = true;
1852
+ let i = 0;
1853
+ Object.assign(plt, options);
1854
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1855
+ {
1856
+ // If the app is already hydrated there is not point to disable the
1857
+ // async queue. This will improve the first input delay
1858
+ plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;
1859
+ }
1860
+ {
1861
+ for (; i < styles.length; i++) {
1862
+ registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
1863
+ }
1864
+ }
1865
+ lazyBundles.map((lazyBundle) => {
1866
+ lazyBundle[1].map((compactMeta) => {
1867
+ const cmpMeta = {
1868
+ $flags$: compactMeta[0],
1869
+ $tagName$: compactMeta[1],
1870
+ $members$: compactMeta[2],
1871
+ $listeners$: compactMeta[3],
1872
+ };
1873
+ {
1874
+ cmpMeta.$members$ = compactMeta[2];
1875
+ }
1876
+ {
1877
+ cmpMeta.$attrsToReflect$ = [];
1878
+ }
1879
+ {
1880
+ cmpMeta.$watchers$ = {};
1881
+ }
1882
+ const tagName = cmpMeta.$tagName$;
1883
+ const HostElement = class extends HTMLElement {
1884
+ // StencilLazyHost
1885
+ constructor(self) {
1886
+ // @ts-ignore
1887
+ super(self);
1888
+ self = this;
1889
+ registerHost(self, cmpMeta);
1890
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1891
+ // this component is using shadow dom
1892
+ // and this browser supports shadow dom
1893
+ // add the read-only property "shadowRoot" to the host element
1894
+ // adding the shadow root build conditionals to minimize runtime
1895
+ {
1896
+ {
1897
+ self.attachShadow({ mode: 'open' });
1898
+ }
1899
+ }
1900
+ }
1901
+ }
1902
+ connectedCallback() {
1903
+ if (appLoadFallback) {
1904
+ clearTimeout(appLoadFallback);
1905
+ appLoadFallback = null;
1906
+ }
1907
+ if (isBootstrapping) {
1908
+ // connectedCallback will be processed once all components have been registered
1909
+ deferredConnectedCallbacks.push(this);
1910
+ }
1911
+ else {
1912
+ plt.jmp(() => connectedCallback(this));
1913
+ }
1914
+ }
1915
+ disconnectedCallback() {
1916
+ plt.jmp(() => disconnectedCallback(this));
1917
+ }
1918
+ componentOnReady() {
1919
+ return getHostRef(this).$onReadyPromise$;
1920
+ }
1921
+ };
1922
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1923
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1924
+ cmpTags.push(tagName);
1925
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1926
+ }
1927
+ });
1928
+ });
1929
+ {
1930
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1931
+ visibilityStyle.setAttribute('data-styles', '');
1932
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1933
+ }
1934
+ // Process deferred connectedCallbacks now all components have been registered
1935
+ isBootstrapping = false;
1936
+ if (deferredConnectedCallbacks.length) {
1937
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1938
+ }
1939
+ else {
1940
+ {
1941
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1942
+ }
1943
+ }
1944
+ // Fallback appLoad event
1945
+ endBootstrap();
1946
+ };
1947
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1948
+ const getHostRef = (ref) => hostRefs.get(ref);
1949
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1950
+ const registerHost = (elm, cmpMeta) => {
1951
+ const hostRef = {
1952
+ $flags$: 0,
1953
+ $hostElement$: elm,
1954
+ $cmpMeta$: cmpMeta,
1955
+ $instanceValues$: new Map(),
1956
+ };
1957
+ {
1958
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1959
+ }
1960
+ {
1961
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1962
+ elm['s-p'] = [];
1963
+ elm['s-rc'] = [];
1964
+ }
1965
+ return hostRefs.set(elm, hostRef);
1966
+ };
1967
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1968
+ const consoleError = (e, el) => (0, console.error)(e, el);
1969
+ const cmpModules = /*@__PURE__*/ new Map();
1970
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1971
+ // loadModuleImport
1972
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1973
+ const bundleId = cmpMeta.$lazyBundleId$;
1974
+ const module = cmpModules.get(bundleId) ;
1975
+ if (module) {
1976
+ return module[exportName];
1977
+ }
1978
+
1979
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1980
+ const processMod = importedModule => {
1981
+ cmpModules.set(bundleId, importedModule);
1982
+ return importedModule[exportName];
1983
+ }
1984
+ switch(bundleId) {
1985
+
1986
+ case 'gov-app':
1987
+ return import(
1988
+ /* webpackMode: "lazy" */
1989
+ './gov-app.entry.js').then(processMod, consoleError);
1990
+ case 'gov-accordion':
1991
+ return import(
1992
+ /* webpackMode: "lazy" */
1993
+ './gov-accordion.entry.js').then(processMod, consoleError);
1994
+ case 'gov-accordion-item':
1995
+ return import(
1996
+ /* webpackMode: "lazy" */
1997
+ './gov-accordion-item.entry.js').then(processMod, consoleError);
1998
+ case 'gov-alert':
1999
+ return import(
2000
+ /* webpackMode: "lazy" */
2001
+ './gov-alert.entry.js').then(processMod, consoleError);
2002
+ case 'gov-card':
2003
+ return import(
2004
+ /* webpackMode: "lazy" */
2005
+ './gov-card.entry.js').then(processMod, consoleError);
2006
+ case 'gov-container':
2007
+ return import(
2008
+ /* webpackMode: "lazy" */
2009
+ './gov-container.entry.js').then(processMod, consoleError);
2010
+ case 'gov-cookiebar':
2011
+ return import(
2012
+ /* webpackMode: "lazy" */
2013
+ './gov-cookiebar.entry.js').then(processMod, consoleError);
2014
+ case 'gov-empty':
2015
+ return import(
2016
+ /* webpackMode: "lazy" */
2017
+ './gov-empty.entry.js').then(processMod, consoleError);
2018
+ case 'gov-error-code':
2019
+ return import(
2020
+ /* webpackMode: "lazy" */
2021
+ './gov-error-code.entry.js').then(processMod, consoleError);
2022
+ case 'gov-form-checkbox':
2023
+ return import(
2024
+ /* webpackMode: "lazy" */
2025
+ './gov-form-checkbox.entry.js').then(processMod, consoleError);
2026
+ case 'gov-form-control':
2027
+ return import(
2028
+ /* webpackMode: "lazy" */
2029
+ './gov-form-control.entry.js').then(processMod, consoleError);
2030
+ case 'gov-form-dropdown':
2031
+ return import(
2032
+ /* webpackMode: "lazy" */
2033
+ './gov-form-dropdown.entry.js').then(processMod, consoleError);
2034
+ case 'gov-form-file':
2035
+ return import(
2036
+ /* webpackMode: "lazy" */
2037
+ './gov-form-file.entry.js').then(processMod, consoleError);
2038
+ case 'gov-form-group':
2039
+ return import(
2040
+ /* webpackMode: "lazy" */
2041
+ './gov-form-group.entry.js').then(processMod, consoleError);
2042
+ case 'gov-form-label':
2043
+ return import(
2044
+ /* webpackMode: "lazy" */
2045
+ './gov-form-label.entry.js').then(processMod, consoleError);
2046
+ case 'gov-form-multi-select':
2047
+ return import(
2048
+ /* webpackMode: "lazy" */
2049
+ './gov-form-multi-select.entry.js').then(processMod, consoleError);
2050
+ case 'gov-form-radio':
2051
+ return import(
2052
+ /* webpackMode: "lazy" */
2053
+ './gov-form-radio.entry.js').then(processMod, consoleError);
2054
+ case 'gov-form-search':
2055
+ return import(
2056
+ /* webpackMode: "lazy" */
2057
+ './gov-form-search.entry.js').then(processMod, consoleError);
2058
+ case 'gov-form-switch':
2059
+ return import(
2060
+ /* webpackMode: "lazy" */
2061
+ './gov-form-switch.entry.js').then(processMod, consoleError);
2062
+ case 'gov-grid':
2063
+ return import(
2064
+ /* webpackMode: "lazy" */
2065
+ './gov-grid.entry.js').then(processMod, consoleError);
2066
+ case 'gov-message':
2067
+ return import(
2068
+ /* webpackMode: "lazy" */
2069
+ './gov-message.entry.js').then(processMod, consoleError);
2070
+ case 'gov-modal':
2071
+ return import(
2072
+ /* webpackMode: "lazy" */
2073
+ './gov-modal.entry.js').then(processMod, consoleError);
2074
+ case 'gov-pagination':
2075
+ return import(
2076
+ /* webpackMode: "lazy" */
2077
+ './gov-pagination.entry.js').then(processMod, consoleError);
2078
+ case 'gov-prompt':
2079
+ return import(
2080
+ /* webpackMode: "lazy" */
2081
+ './gov-prompt.entry.js').then(processMod, consoleError);
2082
+ case 'gov-side-nav':
2083
+ return import(
2084
+ /* webpackMode: "lazy" */
2085
+ './gov-side-nav.entry.js').then(processMod, consoleError);
2086
+ case 'gov-side-nav-item':
2087
+ return import(
2088
+ /* webpackMode: "lazy" */
2089
+ './gov-side-nav-item.entry.js').then(processMod, consoleError);
2090
+ case 'gov-spacer':
2091
+ return import(
2092
+ /* webpackMode: "lazy" */
2093
+ './gov-spacer.entry.js').then(processMod, consoleError);
2094
+ case 'gov-statsbar':
2095
+ return import(
2096
+ /* webpackMode: "lazy" */
2097
+ './gov-statsbar.entry.js').then(processMod, consoleError);
2098
+ case 'gov-statsbar-item':
2099
+ return import(
2100
+ /* webpackMode: "lazy" */
2101
+ './gov-statsbar-item.entry.js').then(processMod, consoleError);
2102
+ case 'gov-stepper':
2103
+ return import(
2104
+ /* webpackMode: "lazy" */
2105
+ './gov-stepper.entry.js').then(processMod, consoleError);
2106
+ case 'gov-stepper-item':
2107
+ return import(
2108
+ /* webpackMode: "lazy" */
2109
+ './gov-stepper-item.entry.js').then(processMod, consoleError);
2110
+ case 'gov-tabs':
2111
+ return import(
2112
+ /* webpackMode: "lazy" */
2113
+ './gov-tabs.entry.js').then(processMod, consoleError);
2114
+ case 'gov-tabs-item':
2115
+ return import(
2116
+ /* webpackMode: "lazy" */
2117
+ './gov-tabs-item.entry.js').then(processMod, consoleError);
2118
+ case 'gov-tile':
2119
+ return import(
2120
+ /* webpackMode: "lazy" */
2121
+ './gov-tile.entry.js').then(processMod, consoleError);
2122
+ case 'gov-toast':
2123
+ return import(
2124
+ /* webpackMode: "lazy" */
2125
+ './gov-toast.entry.js').then(processMod, consoleError);
2126
+ case 'gov-tooltip':
2127
+ return import(
2128
+ /* webpackMode: "lazy" */
2129
+ './gov-tooltip.entry.js').then(processMod, consoleError);
2130
+ case 'gov-tooltip-content':
2131
+ return import(
2132
+ /* webpackMode: "lazy" */
2133
+ './gov-tooltip-content.entry.js').then(processMod, consoleError);
2134
+ case 'gov-wizzard':
2135
+ return import(
2136
+ /* webpackMode: "lazy" */
2137
+ './gov-wizzard.entry.js').then(processMod, consoleError);
2138
+ case 'gov-wizzard-item':
2139
+ return import(
2140
+ /* webpackMode: "lazy" */
2141
+ './gov-wizzard-item.entry.js').then(processMod, consoleError);
2142
+ case 'gov-attachments_3':
2143
+ return import(
2144
+ /* webpackMode: "lazy" */
2145
+ './gov-attachments_3.entry.js').then(processMod, consoleError);
2146
+ case 'gov-form-autocomplete':
2147
+ return import(
2148
+ /* webpackMode: "lazy" */
2149
+ './gov-form-autocomplete.entry.js').then(processMod, consoleError);
2150
+ case 'gov-backdrop':
2151
+ return import(
2152
+ /* webpackMode: "lazy" */
2153
+ './gov-backdrop.entry.js').then(processMod, consoleError);
2154
+ case 'gov-badge':
2155
+ return import(
2156
+ /* webpackMode: "lazy" */
2157
+ './gov-badge.entry.js').then(processMod, consoleError);
2158
+ case 'gov-form-input':
2159
+ return import(
2160
+ /* webpackMode: "lazy" */
2161
+ './gov-form-input.entry.js').then(processMod, consoleError);
2162
+ case 'gov-form-select':
2163
+ return import(
2164
+ /* webpackMode: "lazy" */
2165
+ './gov-form-select.entry.js').then(processMod, consoleError);
2166
+ case 'gov-button':
2167
+ return import(
2168
+ /* webpackMode: "lazy" */
2169
+ './gov-button.entry.js').then(processMod, consoleError);
2170
+ case 'gov-icon':
2171
+ return import(
2172
+ /* webpackMode: "lazy" */
2173
+ './gov-icon.entry.js').then(processMod, consoleError);
2174
+ }
2175
+ }
2176
+ return import(
2177
+ /* @vite-ignore */
2178
+ /* webpackInclude: /\.entry\.js$/ */
2179
+ /* webpackExclude: /\.system\.entry\.js$/ */
2180
+ /* webpackMode: "lazy" */
2181
+ `./${bundleId}.entry.js${''}`).then((importedModule) => {
2182
+ {
2183
+ cmpModules.set(bundleId, importedModule);
2184
+ }
2185
+ return importedModule[exportName];
2186
+ }, consoleError);
2187
+ };
2188
+ const styles = /*@__PURE__*/ new Map();
2189
+ const win = typeof window !== 'undefined' ? window : {};
2190
+ const doc = win.document || { head: {} };
2191
+ const plt = {
2192
+ $flags$: 0,
2193
+ $resourcesUrl$: '',
2194
+ jmp: (h) => h(),
2195
+ raf: (h) => requestAnimationFrame(h),
2196
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2197
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2198
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2199
+ };
2200
+ const supportsShadow = true;
2201
+ const promiseResolve = (v) => Promise.resolve(v);
2202
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2203
+ try {
2204
+ new CSSStyleSheet();
2205
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2206
+ }
2207
+ catch (e) { }
2208
+ return false;
2209
+ })()
2210
+ ;
2211
+ const queueDomReads = [];
2212
+ const queueDomWrites = [];
2213
+ const queueTask = (queue, write) => (cb) => {
2214
+ queue.push(cb);
2215
+ if (!queuePending) {
2216
+ queuePending = true;
2217
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2218
+ nextTick(flush);
2219
+ }
2220
+ else {
2221
+ plt.raf(flush);
2222
+ }
2223
+ }
2224
+ };
2225
+ const consume = (queue) => {
2226
+ for (let i = 0; i < queue.length; i++) {
2227
+ try {
2228
+ queue[i](performance.now());
2229
+ }
2230
+ catch (e) {
2231
+ consoleError(e);
2232
+ }
2233
+ }
2234
+ queue.length = 0;
2235
+ };
2236
+ const flush = () => {
2237
+ // always force a bunch of medium callbacks to run, but still have
2238
+ // a throttle on how many can run in a certain time
2239
+ // DOM READS!!!
2240
+ consume(queueDomReads);
2241
+ // DOM WRITES!!!
2242
+ {
2243
+ consume(queueDomWrites);
2244
+ if ((queuePending = queueDomReads.length > 0)) {
2245
+ // still more to do yet, but we've run out of time
2246
+ // let's let this thing cool off and try again in the next tick
2247
+ plt.raf(flush);
2248
+ }
2249
+ }
2250
+ };
2251
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2252
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2253
+
2254
+ export { Host as H, getAssetPath as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
2255
+
2256
+ //# sourceMappingURL=index-e498b7fa.js.map