@gov-design-system-ce/components 4.1.3-BETA-9 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (686) hide show
  1. package/dist/cjs/{constants-02aec493.js → constants-7f713d6c.js} +2 -2
  2. package/dist/cjs/{constants-02aec493.js.map → constants-7f713d6c.js.map} +1 -1
  3. package/dist/cjs/{constants-4dfa23e3.js → constants-c7447ffd.js} +3 -1
  4. package/dist/cjs/constants-c7447ffd.js.map +1 -0
  5. package/dist/cjs/{constants-52053f2d.js → constants-c84c60d6.js} +3 -1
  6. package/dist/cjs/constants-c84c60d6.js.map +1 -0
  7. package/dist/cjs/core.cjs.js +2 -2
  8. package/dist/cjs/gov-accordion-item.cjs.entry.js +1 -1
  9. package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
  10. package/dist/cjs/gov-attachments_3.cjs.entry.js +3 -3
  11. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-backdrop.cjs.entry.js +1 -1
  13. package/dist/cjs/gov-banner.cjs.entry.js +79 -0
  14. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -0
  15. package/dist/cjs/gov-blockquote.cjs.entry.js +33 -0
  16. package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -0
  17. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +2 -2
  18. package/dist/cjs/gov-button.cjs.entry.js +6 -5
  19. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-card.cjs.entry.js +2 -2
  21. package/dist/cjs/gov-chip.cjs.entry.js +5 -4
  22. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  23. package/dist/cjs/gov-container.cjs.entry.js +2 -2
  24. package/dist/cjs/gov-control-group.cjs.entry.js +2 -2
  25. package/dist/cjs/gov-cookiebar.cjs.entry.js +2 -2
  26. package/dist/cjs/gov-dialog.cjs.entry.js +2 -2
  27. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-dropdown.cjs.entry.js +2 -2
  29. package/dist/cjs/gov-empty.cjs.entry.js +2 -2
  30. package/dist/cjs/gov-error-code.cjs.entry.js +2 -2
  31. package/dist/cjs/gov-flex_3.cjs.entry.js +7 -26
  32. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
  33. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +4 -3
  34. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  35. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +4 -4
  36. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  37. package/dist/cjs/gov-form-checkbox.cjs.entry.js +3 -2
  38. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  39. package/dist/cjs/gov-form-control.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-form-file.cjs.entry.js +4 -3
  41. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  42. package/dist/cjs/gov-form-group.cjs.entry.js +3 -3
  43. package/dist/cjs/gov-form-input_2.cjs.entry.js +11 -9
  44. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  45. package/dist/cjs/gov-form-label.cjs.entry.js +2 -2
  46. package/dist/cjs/gov-form-multi-select.cjs.entry.js +5 -4
  47. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  48. package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
  49. package/dist/cjs/gov-form-radio-group.cjs.entry.js +4 -4
  50. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-form-radio.cjs.entry.js +3 -2
  52. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
  54. package/dist/cjs/gov-form-select.cjs.entry.js +5 -4
  55. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  56. package/dist/cjs/gov-form-switch.cjs.entry.js +3 -2
  57. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  58. package/dist/cjs/gov-grid-item.cjs.entry.js +14 -8
  59. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  60. package/dist/cjs/gov-grid.cjs.entry.js +8 -6
  61. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  62. package/dist/cjs/gov-infobar.cjs.entry.js +5 -4
  63. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  64. package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
  65. package/dist/cjs/gov-layout.cjs.entry.js +2 -2
  66. package/dist/cjs/gov-lifecycle.cjs.entry.js +2 -2
  67. package/dist/cjs/gov-link.cjs.entry.js +3 -2
  68. package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
  69. package/dist/cjs/gov-loading.cjs.entry.js +2 -2
  70. package/dist/cjs/gov-message.cjs.entry.js +2 -2
  71. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  72. package/dist/cjs/gov-pagination.cjs.entry.js +3 -2
  73. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  74. package/dist/cjs/gov-spacer.cjs.entry.js +2 -2
  75. package/dist/cjs/gov-stepper-item.cjs.entry.js +3 -3
  76. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  77. package/dist/cjs/gov-stepper.cjs.entry.js +3 -3
  78. package/dist/cjs/gov-tabs-item.cjs.entry.js +2 -2
  79. package/dist/cjs/gov-tabs.cjs.entry.js +4 -3
  80. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  81. package/dist/cjs/gov-tag.cjs.entry.js +2 -2
  82. package/dist/cjs/gov-tile.cjs.entry.js +2 -2
  83. package/dist/cjs/gov-toast.cjs.entry.js +4 -3
  84. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  85. package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
  86. package/dist/cjs/gov-tooltip.cjs.entry.js +3 -3
  87. package/dist/cjs/gov-wizard-item.cjs.entry.js +3 -3
  88. package/dist/cjs/gov-wizard.cjs.entry.js +2 -2
  89. package/dist/cjs/{index-67e87c27.js → index-0e4f24f9.js} +9 -19
  90. package/dist/cjs/index-0e4f24f9.js.map +1 -0
  91. package/dist/cjs/loader.cjs.js +2 -2
  92. package/dist/collection/collection-manifest.json +2 -1
  93. package/dist/collection/components/gov-attachments/gov-attachments-item.css +3 -4
  94. package/dist/collection/components/gov-banner/constants.js +26 -0
  95. package/dist/collection/components/gov-banner/constants.js.map +1 -0
  96. package/dist/collection/components/gov-banner/gov-banner.js +202 -0
  97. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -0
  98. package/dist/collection/components/gov-blocquote/constants.js +10 -0
  99. package/dist/collection/components/gov-blocquote/constants.js.map +1 -0
  100. package/dist/collection/components/gov-blocquote/gov-blockquote.js +61 -0
  101. package/dist/collection/components/gov-blocquote/gov-blockquote.js.map +1 -0
  102. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  103. package/dist/collection/components/gov-button/button/gov-button.js +5 -4
  104. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  105. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  106. package/dist/collection/components/gov-card/gov-card.js +1 -1
  107. package/dist/collection/components/gov-chip/gov-chip.js +4 -3
  108. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  109. package/dist/collection/components/gov-container/gov-container.js +1 -1
  110. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  111. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  112. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  113. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  114. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  115. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  116. package/dist/collection/components/gov-flex/gov-flex.js +22 -3
  117. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  118. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -2
  119. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  120. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +2 -1
  121. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  122. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  123. package/dist/collection/components/gov-form/file/gov-form-file.js +3 -2
  124. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  125. package/dist/collection/components/gov-form/group/constants.js +1 -1
  126. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  127. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +2 -2
  128. package/dist/collection/components/gov-form/group/gov-form-group.css +4 -4
  129. package/dist/collection/components/gov-form/group/gov-form-group.js +2 -2
  130. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +2 -2
  131. package/dist/collection/components/gov-form/input/gov-form-input.js +7 -6
  132. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  133. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  134. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  135. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -3
  136. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  137. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  138. package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -1
  139. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  140. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  141. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -3
  142. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  143. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -1
  144. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  145. package/dist/collection/components/gov-grid/constants.js +2 -0
  146. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  147. package/dist/collection/components/gov-grid/gov-grid-item.js +111 -20
  148. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  149. package/dist/collection/components/gov-grid/gov-grid.js +56 -14
  150. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  151. package/dist/collection/components/gov-icon/gov-icon.js +0 -17
  152. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  153. package/dist/collection/components/gov-infobar/gov-infobar.js +4 -3
  154. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  155. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  156. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  157. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  158. package/dist/collection/components/gov-link/constants.js +1 -0
  159. package/dist/collection/components/gov-link/constants.js.map +1 -1
  160. package/dist/collection/components/gov-link/gov-link.js +1 -1
  161. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  162. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  163. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +3 -2
  164. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  165. package/dist/collection/components/gov-message/gov-message.js +1 -1
  166. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  167. package/dist/collection/components/gov-pagination/gov-pagination.js +2 -1
  168. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  169. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  170. package/dist/collection/components/gov-stepper/constants.js +2 -0
  171. package/dist/collection/components/gov-stepper/constants.js.map +1 -1
  172. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  173. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
  174. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  175. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  176. package/dist/collection/components/gov-tabs/gov-tabs.js +3 -2
  177. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  178. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  179. package/dist/collection/components/gov-theme-switch/constants.js +1 -0
  180. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  181. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  182. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  183. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  184. package/dist/collection/components/gov-toast/gov-toast.js +3 -2
  185. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  186. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  187. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  188. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  189. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  190. package/dist/collection/pages/Banner.js +268 -0
  191. package/dist/collection/pages/Banner.js.map +1 -0
  192. package/dist/collection/pages/Blockquote.js +25 -0
  193. package/dist/collection/pages/Blockquote.js.map +1 -0
  194. package/dist/collection/pages/Breadcrumbs.js +2 -2
  195. package/dist/collection/pages/Breadcrumbs.js.map +1 -1
  196. package/dist/collection/pages/Card.js +2 -2
  197. package/dist/collection/pages/Card.js.map +1 -1
  198. package/dist/collection/pages/Flex.js +1 -1
  199. package/dist/collection/pages/Flex.js.map +1 -1
  200. package/dist/collection/pages/Grid.js +61 -40
  201. package/dist/collection/pages/Grid.js.map +1 -1
  202. package/dist/collection/pages/Home.js +57 -0
  203. package/dist/collection/pages/Home.js.map +1 -1
  204. package/dist/collection/pages/Infobar.js +36 -56
  205. package/dist/collection/pages/Infobar.js.map +1 -1
  206. package/dist/collection/pages/Layout.js +10 -10
  207. package/dist/collection/pages/Layout.js.map +1 -1
  208. package/dist/collection/pages/Tag.js +14 -0
  209. package/dist/collection/pages/Tag.js.map +1 -1
  210. package/dist/collection/pages/Tiles.js +8 -235
  211. package/dist/collection/pages/Tiles.js.map +1 -1
  212. package/dist/collection/pages/Typography.js +110 -51
  213. package/dist/collection/pages/Typography.js.map +1 -1
  214. package/dist/collection/utils/icon.utils.js +1 -8
  215. package/dist/collection/utils/icon.utils.js.map +1 -1
  216. package/dist/components/gov-accordion-item.js +1 -1
  217. package/dist/components/gov-accordion.js +1 -1
  218. package/dist/components/gov-attachments-item.js +1 -1
  219. package/dist/components/gov-attachments.js +1 -1
  220. package/dist/components/gov-backdrop.js +1 -1
  221. package/dist/components/{gov-tiles.d.ts → gov-banner.d.ts} +4 -4
  222. package/dist/components/gov-banner.js +2 -0
  223. package/dist/components/gov-banner.js.map +1 -0
  224. package/dist/components/gov-blockquote.d.ts +11 -0
  225. package/dist/components/gov-blockquote.js +2 -0
  226. package/dist/components/gov-blockquote.js.map +1 -0
  227. package/dist/components/gov-breadcrumbs.js +1 -1
  228. package/dist/components/gov-breadcrumbs.js.map +1 -1
  229. package/dist/components/gov-button.js +1 -1
  230. package/dist/components/gov-card.js +1 -1
  231. package/dist/components/gov-chip.js +1 -1
  232. package/dist/components/gov-container.js +1 -1
  233. package/dist/components/gov-control-group.js +1 -1
  234. package/dist/components/gov-cookiebar.js +1 -1
  235. package/dist/components/gov-dialog.js +1 -1
  236. package/dist/components/gov-dialog.js.map +1 -1
  237. package/dist/components/gov-dropdown.js +1 -1
  238. package/dist/components/gov-dropdown.js.map +1 -1
  239. package/dist/components/gov-empty.js +1 -1
  240. package/dist/components/gov-error-code.js +1 -1
  241. package/dist/components/gov-flex.js +1 -1
  242. package/dist/components/gov-flex.js.map +1 -1
  243. package/dist/components/gov-form-autocomplete.js +1 -1
  244. package/dist/components/gov-form-checkbox-group.js +1 -1
  245. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  246. package/dist/components/gov-form-checkbox.js +1 -1
  247. package/dist/components/gov-form-checkbox.js.map +1 -1
  248. package/dist/components/gov-form-control.js +1 -1
  249. package/dist/components/gov-form-file.js +1 -1
  250. package/dist/components/gov-form-file.js.map +1 -1
  251. package/dist/components/gov-form-group.js +1 -1
  252. package/dist/components/gov-form-input.js +1 -1
  253. package/dist/components/gov-form-label.js +1 -1
  254. package/dist/components/gov-form-message.js +1 -1
  255. package/dist/components/gov-form-multi-select.js +1 -1
  256. package/dist/components/gov-form-multi-select.js.map +1 -1
  257. package/dist/components/gov-form-password-power.js +1 -1
  258. package/dist/components/gov-form-radio-group.js +1 -1
  259. package/dist/components/gov-form-radio-group.js.map +1 -1
  260. package/dist/components/gov-form-radio.js +1 -1
  261. package/dist/components/gov-form-radio.js.map +1 -1
  262. package/dist/components/gov-form-search.js +1 -1
  263. package/dist/components/gov-form-select.js +1 -1
  264. package/dist/components/gov-form-switch.js +1 -1
  265. package/dist/components/gov-form-switch.js.map +1 -1
  266. package/dist/components/gov-grid-item.js +1 -1
  267. package/dist/components/gov-grid-item.js.map +1 -1
  268. package/dist/components/gov-grid.js +1 -1
  269. package/dist/components/gov-grid.js.map +1 -1
  270. package/dist/components/gov-icon.js +1 -1
  271. package/dist/components/gov-infobar.js +1 -1
  272. package/dist/components/gov-infobar.js.map +1 -1
  273. package/dist/components/gov-layout-column.js +1 -1
  274. package/dist/components/gov-layout.js +1 -1
  275. package/dist/components/gov-lifecycle.js +1 -1
  276. package/dist/components/gov-link.js +1 -1
  277. package/dist/components/gov-link.js.map +1 -1
  278. package/dist/components/gov-loading.js +1 -1
  279. package/dist/components/gov-loading.js.map +1 -1
  280. package/dist/components/gov-message.js +1 -1
  281. package/dist/components/gov-message.js.map +1 -1
  282. package/dist/components/gov-pagination.js +1 -1
  283. package/dist/components/gov-pagination.js.map +1 -1
  284. package/dist/components/gov-skeleton.js +1 -1
  285. package/dist/components/gov-spacer.js +1 -1
  286. package/dist/components/gov-stepper-item.js +1 -1
  287. package/dist/components/gov-stepper-item.js.map +1 -1
  288. package/dist/components/gov-stepper.js +1 -1
  289. package/dist/components/gov-tabs-item.js +1 -1
  290. package/dist/components/gov-tabs.js +1 -1
  291. package/dist/components/gov-tabs.js.map +1 -1
  292. package/dist/components/gov-tag.js +1 -1
  293. package/dist/components/gov-theme-switch.js +1 -1
  294. package/dist/components/gov-theme-switch.js.map +1 -1
  295. package/dist/components/gov-tile.js +1 -1
  296. package/dist/components/gov-toast.js +1 -1
  297. package/dist/components/gov-toast.js.map +1 -1
  298. package/dist/components/gov-tooltip-content.js +1 -1
  299. package/dist/components/gov-tooltip.js +1 -1
  300. package/dist/components/gov-tooltip.js.map +1 -1
  301. package/dist/components/gov-wizard-item.js +1 -1
  302. package/dist/components/gov-wizard.js +1 -1
  303. package/dist/components/index.js +1 -1
  304. package/dist/components/p-0327a469.js +2 -0
  305. package/dist/components/p-0327a469.js.map +1 -0
  306. package/dist/components/p-2ca5423c.js +2 -0
  307. package/dist/components/p-2ca5423c.js.map +1 -0
  308. package/dist/components/p-2fc08a71.js +2 -0
  309. package/dist/components/p-2fc08a71.js.map +1 -0
  310. package/dist/components/p-3c90521b.js +2 -0
  311. package/dist/components/p-3c90521b.js.map +1 -0
  312. package/dist/components/p-3fead64a.js +2 -0
  313. package/dist/components/p-3fead64a.js.map +1 -0
  314. package/dist/components/p-42200001.js +3 -0
  315. package/dist/components/p-42200001.js.map +1 -0
  316. package/dist/components/p-4fba9df0.js +2 -0
  317. package/dist/components/p-4fba9df0.js.map +1 -0
  318. package/dist/components/p-69a31c96.js +2 -0
  319. package/dist/components/p-69a31c96.js.map +1 -0
  320. package/dist/components/{p-03ad4e0f.js → p-73938936.js} +2 -2
  321. package/dist/components/{p-384c7f2a.js → p-7be2301a.js} +2 -2
  322. package/dist/components/p-b533871a.js +2 -0
  323. package/dist/components/p-b533871a.js.map +1 -0
  324. package/dist/components/p-b5dc6bae.js +2 -0
  325. package/dist/components/p-b5dc6bae.js.map +1 -0
  326. package/dist/components/p-ea128b8b.js +2 -0
  327. package/dist/components/p-ea128b8b.js.map +1 -0
  328. package/dist/components/p-f9a1ff6e.js +2 -0
  329. package/dist/components/{p-e44a0fee.js → p-fc2afe61.js} +2 -2
  330. package/dist/components/{p-e44a0fee.js.map → p-fc2afe61.js.map} +1 -1
  331. package/dist/core/core.css +2711 -1506
  332. package/dist/core/core.esm.js +1 -1
  333. package/dist/core/core.esm.js.map +1 -1
  334. package/dist/core/p-005214d1.entry.js +2 -0
  335. package/dist/core/p-0ef1f684.entry.js +2 -0
  336. package/dist/core/p-0ef1f684.entry.js.map +1 -0
  337. package/dist/core/p-0fc9ea97.entry.js +2 -0
  338. package/dist/core/p-0fc9ea97.entry.js.map +1 -0
  339. package/dist/core/p-132c9a87.entry.js +2 -0
  340. package/dist/core/p-132c9a87.entry.js.map +1 -0
  341. package/dist/core/p-16d3a79a.entry.js +2 -0
  342. package/dist/core/{p-967a1094.entry.js.map → p-16d3a79a.entry.js.map} +1 -1
  343. package/dist/core/p-16f44a0b.entry.js +2 -0
  344. package/dist/core/p-16f44a0b.entry.js.map +1 -0
  345. package/dist/core/p-1c7c9144.entry.js +2 -0
  346. package/dist/core/p-1cf1dd10.entry.js +2 -0
  347. package/dist/core/{p-f7f60f91.entry.js.map → p-1cf1dd10.entry.js.map} +1 -1
  348. package/dist/core/p-23b4dcd3.entry.js +2 -0
  349. package/dist/core/{p-45b759f4.entry.js.map → p-23b4dcd3.entry.js.map} +1 -1
  350. package/dist/core/p-2536a8ff.entry.js +2 -0
  351. package/dist/core/p-2536a8ff.entry.js.map +1 -0
  352. package/dist/core/p-28d1bc01.entry.js +2 -0
  353. package/dist/core/p-28d1bc01.entry.js.map +1 -0
  354. package/dist/core/p-2ca5423c.js +2 -0
  355. package/dist/core/p-2ca5423c.js.map +1 -0
  356. package/dist/core/p-3acaa012.entry.js +2 -0
  357. package/dist/core/{p-1aa7450e.entry.js.map → p-3acaa012.entry.js.map} +1 -1
  358. package/dist/core/p-3d7fb8f8.entry.js +2 -0
  359. package/dist/core/p-3d7fb8f8.entry.js.map +1 -0
  360. package/dist/core/{p-927c31dd.entry.js → p-46ecf09e.entry.js} +2 -2
  361. package/dist/core/p-49cd4d0d.entry.js +2 -0
  362. package/dist/core/{p-ee55932a.entry.js.map → p-49cd4d0d.entry.js.map} +1 -1
  363. package/dist/core/p-5108eb37.entry.js +2 -0
  364. package/dist/core/{p-237a5b91.entry.js.map → p-5108eb37.entry.js.map} +1 -1
  365. package/dist/core/{p-0f0f7302.entry.js → p-52042c7e.entry.js} +2 -2
  366. package/dist/core/p-52103c05.entry.js +2 -0
  367. package/dist/core/p-52103c05.entry.js.map +1 -0
  368. package/dist/core/{p-c0800e6d.entry.js → p-5242b51b.entry.js} +2 -2
  369. package/dist/core/p-564555e6.entry.js +2 -0
  370. package/dist/core/p-59fe6cbc.entry.js +2 -0
  371. package/dist/core/p-59fe6cbc.entry.js.map +1 -0
  372. package/dist/core/p-650fe9e8.entry.js +2 -0
  373. package/dist/core/{p-ed02945f.entry.js.map → p-650fe9e8.entry.js.map} +1 -1
  374. package/dist/core/p-6e41cf69.entry.js +2 -0
  375. package/dist/core/{p-77daba72.entry.js → p-6f1ea21d.entry.js} +2 -2
  376. package/dist/core/p-7399ad59.entry.js +2 -0
  377. package/dist/core/p-7399ad59.entry.js.map +1 -0
  378. package/dist/core/{p-7dfb7e36.entry.js → p-79ec86da.entry.js} +2 -2
  379. package/dist/core/p-80bebb7f.entry.js +2 -0
  380. package/dist/core/p-80bebb7f.entry.js.map +1 -0
  381. package/dist/core/p-8cbe8add.entry.js +2 -0
  382. package/dist/core/p-8f73f8e0.entry.js +2 -0
  383. package/dist/core/p-94119ad4.entry.js +2 -0
  384. package/dist/core/p-94119ad4.entry.js.map +1 -0
  385. package/dist/core/p-952ab9e5.entry.js +2 -0
  386. package/dist/core/{p-14d66f26.entry.js.map → p-952ab9e5.entry.js.map} +1 -1
  387. package/dist/core/{p-7baee44f.entry.js → p-99f192c1.entry.js} +2 -2
  388. package/dist/core/p-9ae280b2.entry.js +2 -0
  389. package/dist/core/p-9ae280b2.entry.js.map +1 -0
  390. package/dist/core/p-9c1601b3.entry.js +2 -0
  391. package/dist/core/p-9c1601b3.entry.js.map +1 -0
  392. package/dist/core/p-9dea2efa.js +3 -0
  393. package/dist/core/p-9dea2efa.js.map +1 -0
  394. package/dist/core/p-a02f2547.entry.js +2 -0
  395. package/dist/core/p-ab11081d.entry.js +2 -0
  396. package/dist/core/p-ab11081d.entry.js.map +1 -0
  397. package/dist/core/p-ab868410.entry.js +2 -0
  398. package/dist/core/{p-f2bb8c29.entry.js.map → p-ab868410.entry.js.map} +1 -1
  399. package/dist/core/{p-a6a9de9a.entry.js → p-ae88fe6b.entry.js} +2 -2
  400. package/dist/core/p-c07f6bb4.entry.js +2 -0
  401. package/dist/core/p-c07f6bb4.entry.js.map +1 -0
  402. package/dist/core/{p-063b70a2.entry.js → p-c2abc031.entry.js} +2 -2
  403. package/dist/core/p-c688349d.entry.js +2 -0
  404. package/dist/core/p-c6fdc0a9.entry.js +2 -0
  405. package/dist/core/p-c6fdc0a9.entry.js.map +1 -0
  406. package/dist/core/p-c91512dd.entry.js +2 -0
  407. package/dist/core/p-cf9d5c2f.entry.js +2 -0
  408. package/dist/core/p-cf9d5c2f.entry.js.map +1 -0
  409. package/dist/core/p-d1270d72.entry.js +2 -0
  410. package/dist/core/{p-8cc5ad01.entry.js.map → p-d1270d72.entry.js.map} +1 -1
  411. package/dist/core/p-d141e9ca.entry.js +2 -0
  412. package/dist/core/p-d141e9ca.entry.js.map +1 -0
  413. package/dist/core/p-de852480.entry.js +2 -0
  414. package/dist/core/p-e89471ef.entry.js +2 -0
  415. package/dist/core/p-ea128b8b.js +2 -0
  416. package/dist/core/p-ea128b8b.js.map +1 -0
  417. package/dist/core/p-eb8a9705.entry.js +2 -0
  418. package/dist/core/p-eb8a9705.entry.js.map +1 -0
  419. package/dist/core/p-ee950038.entry.js +2 -0
  420. package/dist/core/p-ee950038.entry.js.map +1 -0
  421. package/dist/core/p-f0e001c7.entry.js +2 -0
  422. package/dist/core/{p-269071f5.entry.js.map → p-f0e001c7.entry.js.map} +1 -1
  423. package/dist/core/{p-3849ca02.entry.js → p-f120ba66.entry.js} +2 -2
  424. package/dist/core/p-f120ba66.entry.js.map +1 -0
  425. package/dist/core/p-f333c673.entry.js +2 -0
  426. package/dist/core/p-f7e47c0a.entry.js +2 -0
  427. package/dist/core/p-f7e47c0a.entry.js.map +1 -0
  428. package/dist/core/p-f98f19f6.entry.js +2 -0
  429. package/dist/core/{p-906865d0.entry.js.map → p-f98f19f6.entry.js.map} +1 -1
  430. package/dist/core/{p-e44a0fee.js → p-fc2afe61.js} +2 -2
  431. package/dist/core/{p-e44a0fee.js.map → p-fc2afe61.js.map} +1 -1
  432. package/dist/esm/{constants-4da2b3c0.js → constants-1548499a.js} +2 -2
  433. package/dist/esm/{constants-4da2b3c0.js.map → constants-1548499a.js.map} +1 -1
  434. package/dist/esm/{constants-372455eb.js → constants-7b1ce2ec.js} +3 -1
  435. package/dist/esm/constants-7b1ce2ec.js.map +1 -0
  436. package/dist/esm/{constants-2d5a0e18.js → constants-dc2115cb.js} +3 -1
  437. package/dist/esm/constants-dc2115cb.js.map +1 -0
  438. package/dist/esm/core.js +3 -3
  439. package/dist/esm/gov-accordion-item.entry.js +1 -1
  440. package/dist/esm/gov-accordion.entry.js +1 -1
  441. package/dist/esm/gov-attachments_3.entry.js +3 -3
  442. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  443. package/dist/esm/gov-backdrop.entry.js +1 -1
  444. package/dist/esm/gov-banner.entry.js +75 -0
  445. package/dist/esm/gov-banner.entry.js.map +1 -0
  446. package/dist/esm/gov-blockquote.entry.js +29 -0
  447. package/dist/esm/gov-blockquote.entry.js.map +1 -0
  448. package/dist/esm/gov-breadcrumbs.entry.js +2 -2
  449. package/dist/esm/gov-button.entry.js +6 -5
  450. package/dist/esm/gov-button.entry.js.map +1 -1
  451. package/dist/esm/gov-card.entry.js +2 -2
  452. package/dist/esm/gov-chip.entry.js +5 -4
  453. package/dist/esm/gov-chip.entry.js.map +1 -1
  454. package/dist/esm/gov-container.entry.js +2 -2
  455. package/dist/esm/gov-control-group.entry.js +2 -2
  456. package/dist/esm/gov-cookiebar.entry.js +2 -2
  457. package/dist/esm/gov-dialog.entry.js +2 -2
  458. package/dist/esm/gov-dialog.entry.js.map +1 -1
  459. package/dist/esm/gov-dropdown.entry.js +2 -2
  460. package/dist/esm/gov-empty.entry.js +2 -2
  461. package/dist/esm/gov-error-code.entry.js +2 -2
  462. package/dist/esm/gov-flex_3.entry.js +7 -26
  463. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  464. package/dist/esm/gov-form-autocomplete.entry.js +4 -3
  465. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  466. package/dist/esm/gov-form-checkbox-group.entry.js +4 -4
  467. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  468. package/dist/esm/gov-form-checkbox.entry.js +3 -2
  469. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  470. package/dist/esm/gov-form-control.entry.js +2 -2
  471. package/dist/esm/gov-form-file.entry.js +4 -3
  472. package/dist/esm/gov-form-file.entry.js.map +1 -1
  473. package/dist/esm/gov-form-group.entry.js +3 -3
  474. package/dist/esm/gov-form-input_2.entry.js +11 -9
  475. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  476. package/dist/esm/gov-form-label.entry.js +2 -2
  477. package/dist/esm/gov-form-multi-select.entry.js +5 -4
  478. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  479. package/dist/esm/gov-form-password-power.entry.js +2 -2
  480. package/dist/esm/gov-form-radio-group.entry.js +4 -4
  481. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  482. package/dist/esm/gov-form-radio.entry.js +3 -2
  483. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  484. package/dist/esm/gov-form-search.entry.js +2 -2
  485. package/dist/esm/gov-form-select.entry.js +5 -4
  486. package/dist/esm/gov-form-select.entry.js.map +1 -1
  487. package/dist/esm/gov-form-switch.entry.js +3 -2
  488. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  489. package/dist/esm/gov-grid-item.entry.js +14 -8
  490. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  491. package/dist/esm/gov-grid.entry.js +8 -6
  492. package/dist/esm/gov-grid.entry.js.map +1 -1
  493. package/dist/esm/gov-infobar.entry.js +5 -4
  494. package/dist/esm/gov-infobar.entry.js.map +1 -1
  495. package/dist/esm/gov-layout-column.entry.js +2 -2
  496. package/dist/esm/gov-layout.entry.js +2 -2
  497. package/dist/esm/gov-lifecycle.entry.js +2 -2
  498. package/dist/esm/gov-link.entry.js +3 -2
  499. package/dist/esm/gov-link.entry.js.map +1 -1
  500. package/dist/esm/gov-loading.entry.js +2 -2
  501. package/dist/esm/gov-message.entry.js +2 -2
  502. package/dist/esm/gov-message.entry.js.map +1 -1
  503. package/dist/esm/gov-pagination.entry.js +3 -2
  504. package/dist/esm/gov-pagination.entry.js.map +1 -1
  505. package/dist/esm/gov-spacer.entry.js +2 -2
  506. package/dist/esm/gov-stepper-item.entry.js +3 -3
  507. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  508. package/dist/esm/gov-stepper.entry.js +3 -3
  509. package/dist/esm/gov-tabs-item.entry.js +2 -2
  510. package/dist/esm/gov-tabs.entry.js +4 -3
  511. package/dist/esm/gov-tabs.entry.js.map +1 -1
  512. package/dist/esm/gov-tag.entry.js +2 -2
  513. package/dist/esm/gov-tile.entry.js +2 -2
  514. package/dist/esm/gov-toast.entry.js +4 -3
  515. package/dist/esm/gov-toast.entry.js.map +1 -1
  516. package/dist/esm/gov-tooltip-content.entry.js +2 -2
  517. package/dist/esm/gov-tooltip.entry.js +3 -3
  518. package/dist/esm/gov-wizard-item.entry.js +3 -3
  519. package/dist/esm/gov-wizard.entry.js +2 -2
  520. package/dist/esm/{index-087b155c.js → index-bf8a6f64.js} +10 -18
  521. package/dist/esm/index-bf8a6f64.js.map +1 -0
  522. package/dist/esm/loader.js +3 -3
  523. package/dist/hydrate/index.js +247 -161
  524. package/dist/hydrate/index.mjs +247 -161
  525. package/dist/stencil.config.js +2 -1
  526. package/dist/stencil.config.js.map +1 -1
  527. package/dist/types/components/gov-banner/constants.d.ts +26 -0
  528. package/dist/types/components/gov-banner/gov-banner.d.ts +38 -0
  529. package/dist/types/components/gov-blocquote/constants.d.ts +10 -0
  530. package/dist/types/components/gov-blocquote/gov-blockquote.d.ts +15 -0
  531. package/dist/types/components/gov-button/button/constants.d.ts +1 -1
  532. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  533. package/dist/types/components/gov-flex/gov-flex.d.ts +5 -1
  534. package/dist/types/components/gov-form/group/constants.d.ts +1 -1
  535. package/dist/types/components/gov-grid/constants.d.ts +4 -0
  536. package/dist/types/components/gov-grid/gov-grid-item.d.ts +25 -5
  537. package/dist/types/components/gov-grid/gov-grid.d.ts +11 -2
  538. package/dist/types/components/gov-icon/constants.d.ts +1 -1
  539. package/dist/types/components/gov-icon/gov-icon.d.ts +0 -1
  540. package/dist/types/components/gov-infobar/constants.d.ts +1 -1
  541. package/dist/types/components/gov-link/constants.d.ts +1 -0
  542. package/dist/types/components/gov-stepper/constants.d.ts +2 -0
  543. package/dist/types/components/gov-theme-switch/constants.d.ts +1 -0
  544. package/dist/types/components.d.ts +179 -36
  545. package/dist/types/pages/Banner.d.ts +3 -0
  546. package/dist/types/pages/Blockquote.d.ts +3 -0
  547. package/package.json +3 -3
  548. package/dist/cjs/constants-4dfa23e3.js.map +0 -1
  549. package/dist/cjs/constants-52053f2d.js.map +0 -1
  550. package/dist/cjs/gov-tiles.cjs.entry.js +0 -26
  551. package/dist/cjs/gov-tiles.cjs.entry.js.map +0 -1
  552. package/dist/cjs/index-67e87c27.js.map +0 -1
  553. package/dist/collection/components/gov-tile/container/constants.js +0 -4
  554. package/dist/collection/components/gov-tile/container/constants.js.map +0 -1
  555. package/dist/collection/components/gov-tile/container/gov-tiles.js +0 -37
  556. package/dist/collection/components/gov-tile/container/gov-tiles.js.map +0 -1
  557. package/dist/components/gov-tiles.js +0 -2
  558. package/dist/components/gov-tiles.js.map +0 -1
  559. package/dist/components/p-115b9cf3.js +0 -3
  560. package/dist/components/p-115b9cf3.js.map +0 -1
  561. package/dist/components/p-350e060c.js +0 -2
  562. package/dist/components/p-350e060c.js.map +0 -1
  563. package/dist/components/p-792c5352.js +0 -2
  564. package/dist/components/p-792c5352.js.map +0 -1
  565. package/dist/components/p-880743a5.js +0 -2
  566. package/dist/components/p-880743a5.js.map +0 -1
  567. package/dist/components/p-8e8a3300.js +0 -2
  568. package/dist/components/p-8e8a3300.js.map +0 -1
  569. package/dist/components/p-8ee6f2f3.js +0 -2
  570. package/dist/components/p-92406c6d.js +0 -2
  571. package/dist/components/p-92406c6d.js.map +0 -1
  572. package/dist/components/p-939638b2.js +0 -2
  573. package/dist/components/p-939638b2.js.map +0 -1
  574. package/dist/components/p-95bd5f39.js +0 -2
  575. package/dist/components/p-95bd5f39.js.map +0 -1
  576. package/dist/components/p-a521c59a.js +0 -2
  577. package/dist/components/p-a521c59a.js.map +0 -1
  578. package/dist/components/p-ba61e648.js +0 -2
  579. package/dist/components/p-ba61e648.js.map +0 -1
  580. package/dist/components/p-bfce6f99.js +0 -2
  581. package/dist/components/p-bfce6f99.js.map +0 -1
  582. package/dist/components/p-f9161803.js +0 -2
  583. package/dist/components/p-f9161803.js.map +0 -1
  584. package/dist/core/p-017ff5a5.entry.js +0 -2
  585. package/dist/core/p-017ff5a5.entry.js.map +0 -1
  586. package/dist/core/p-032accfb.entry.js +0 -2
  587. package/dist/core/p-032accfb.entry.js.map +0 -1
  588. package/dist/core/p-054aa25e.entry.js +0 -2
  589. package/dist/core/p-054aa25e.entry.js.map +0 -1
  590. package/dist/core/p-058e6fe2.entry.js +0 -2
  591. package/dist/core/p-058e6fe2.entry.js.map +0 -1
  592. package/dist/core/p-0724cb6a.entry.js +0 -2
  593. package/dist/core/p-0724cb6a.entry.js.map +0 -1
  594. package/dist/core/p-09c9eba6.entry.js +0 -2
  595. package/dist/core/p-09c9eba6.entry.js.map +0 -1
  596. package/dist/core/p-0c076b21.entry.js +0 -2
  597. package/dist/core/p-10f773c2.entry.js +0 -2
  598. package/dist/core/p-10f773c2.entry.js.map +0 -1
  599. package/dist/core/p-14d66f26.entry.js +0 -2
  600. package/dist/core/p-1aa7450e.entry.js +0 -2
  601. package/dist/core/p-237a5b91.entry.js +0 -2
  602. package/dist/core/p-269071f5.entry.js +0 -2
  603. package/dist/core/p-2ee042d4.js +0 -3
  604. package/dist/core/p-2ee042d4.js.map +0 -1
  605. package/dist/core/p-33310735.entry.js +0 -2
  606. package/dist/core/p-33310735.entry.js.map +0 -1
  607. package/dist/core/p-347d15d5.entry.js +0 -2
  608. package/dist/core/p-37473c34.entry.js +0 -2
  609. package/dist/core/p-3849ca02.entry.js.map +0 -1
  610. package/dist/core/p-3a7381e7.entry.js +0 -2
  611. package/dist/core/p-43d3dbc0.entry.js +0 -2
  612. package/dist/core/p-45b759f4.entry.js +0 -2
  613. package/dist/core/p-4c60e125.entry.js +0 -2
  614. package/dist/core/p-4e29744a.entry.js +0 -2
  615. package/dist/core/p-4e29744a.entry.js.map +0 -1
  616. package/dist/core/p-4fa0320d.entry.js +0 -2
  617. package/dist/core/p-50af9ae8.entry.js +0 -2
  618. package/dist/core/p-5c3f4cfe.entry.js +0 -2
  619. package/dist/core/p-5c3f4cfe.entry.js.map +0 -1
  620. package/dist/core/p-6b7c3a96.entry.js +0 -2
  621. package/dist/core/p-6b7c3a96.entry.js.map +0 -1
  622. package/dist/core/p-71f5d4ff.entry.js +0 -2
  623. package/dist/core/p-7a21fb90.entry.js +0 -2
  624. package/dist/core/p-7a21fb90.entry.js.map +0 -1
  625. package/dist/core/p-880743a5.js +0 -2
  626. package/dist/core/p-880743a5.js.map +0 -1
  627. package/dist/core/p-8bb6c816.entry.js +0 -2
  628. package/dist/core/p-8bb6c816.entry.js.map +0 -1
  629. package/dist/core/p-8cc5ad01.entry.js +0 -2
  630. package/dist/core/p-906865d0.entry.js +0 -2
  631. package/dist/core/p-967a1094.entry.js +0 -2
  632. package/dist/core/p-9846fd13.entry.js +0 -2
  633. package/dist/core/p-9846fd13.entry.js.map +0 -1
  634. package/dist/core/p-994385ca.entry.js +0 -2
  635. package/dist/core/p-994385ca.entry.js.map +0 -1
  636. package/dist/core/p-9f8d69a9.entry.js +0 -2
  637. package/dist/core/p-a521c59a.js +0 -2
  638. package/dist/core/p-a521c59a.js.map +0 -1
  639. package/dist/core/p-b62e49ee.entry.js +0 -2
  640. package/dist/core/p-cecbe73f.entry.js +0 -2
  641. package/dist/core/p-cecbe73f.entry.js.map +0 -1
  642. package/dist/core/p-d795a421.entry.js +0 -2
  643. package/dist/core/p-d795a421.entry.js.map +0 -1
  644. package/dist/core/p-d9b42773.entry.js +0 -2
  645. package/dist/core/p-d9b42773.entry.js.map +0 -1
  646. package/dist/core/p-e0a199ff.entry.js +0 -2
  647. package/dist/core/p-e0a199ff.entry.js.map +0 -1
  648. package/dist/core/p-e215f3ee.entry.js +0 -2
  649. package/dist/core/p-ed02945f.entry.js +0 -2
  650. package/dist/core/p-ee55932a.entry.js +0 -2
  651. package/dist/core/p-f2bb8c29.entry.js +0 -2
  652. package/dist/core/p-f54edd6c.entry.js +0 -2
  653. package/dist/core/p-f54edd6c.entry.js.map +0 -1
  654. package/dist/core/p-f7f60f91.entry.js +0 -2
  655. package/dist/core/p-fcac8531.entry.js +0 -2
  656. package/dist/core/p-fcac8531.entry.js.map +0 -1
  657. package/dist/esm/constants-2d5a0e18.js.map +0 -1
  658. package/dist/esm/constants-372455eb.js.map +0 -1
  659. package/dist/esm/gov-tiles.entry.js +0 -22
  660. package/dist/esm/gov-tiles.entry.js.map +0 -1
  661. package/dist/esm/index-087b155c.js.map +0 -1
  662. package/dist/types/components/gov-tile/container/constants.d.ts +0 -3
  663. package/dist/types/components/gov-tile/container/gov-tiles.d.ts +0 -10
  664. /package/dist/components/{p-03ad4e0f.js.map → p-73938936.js.map} +0 -0
  665. /package/dist/components/{p-384c7f2a.js.map → p-7be2301a.js.map} +0 -0
  666. /package/dist/components/{p-8ee6f2f3.js.map → p-f9a1ff6e.js.map} +0 -0
  667. /package/dist/core/{p-37473c34.entry.js.map → p-005214d1.entry.js.map} +0 -0
  668. /package/dist/core/{p-43d3dbc0.entry.js.map → p-1c7c9144.entry.js.map} +0 -0
  669. /package/dist/core/{p-927c31dd.entry.js.map → p-46ecf09e.entry.js.map} +0 -0
  670. /package/dist/core/{p-0f0f7302.entry.js.map → p-52042c7e.entry.js.map} +0 -0
  671. /package/dist/core/{p-c0800e6d.entry.js.map → p-5242b51b.entry.js.map} +0 -0
  672. /package/dist/core/{p-9f8d69a9.entry.js.map → p-564555e6.entry.js.map} +0 -0
  673. /package/dist/core/{p-0c076b21.entry.js.map → p-6e41cf69.entry.js.map} +0 -0
  674. /package/dist/core/{p-77daba72.entry.js.map → p-6f1ea21d.entry.js.map} +0 -0
  675. /package/dist/core/{p-7dfb7e36.entry.js.map → p-79ec86da.entry.js.map} +0 -0
  676. /package/dist/core/{p-3a7381e7.entry.js.map → p-8cbe8add.entry.js.map} +0 -0
  677. /package/dist/core/{p-4fa0320d.entry.js.map → p-8f73f8e0.entry.js.map} +0 -0
  678. /package/dist/core/{p-7baee44f.entry.js.map → p-99f192c1.entry.js.map} +0 -0
  679. /package/dist/core/{p-e215f3ee.entry.js.map → p-a02f2547.entry.js.map} +0 -0
  680. /package/dist/core/{p-a6a9de9a.entry.js.map → p-ae88fe6b.entry.js.map} +0 -0
  681. /package/dist/core/{p-063b70a2.entry.js.map → p-c2abc031.entry.js.map} +0 -0
  682. /package/dist/core/{p-b62e49ee.entry.js.map → p-c688349d.entry.js.map} +0 -0
  683. /package/dist/core/{p-50af9ae8.entry.js.map → p-c91512dd.entry.js.map} +0 -0
  684. /package/dist/core/{p-71f5d4ff.entry.js.map → p-de852480.entry.js.map} +0 -0
  685. /package/dist/core/{p-4c60e125.entry.js.map → p-e89471ef.entry.js.map} +0 -0
  686. /package/dist/core/{p-347d15d5.entry.js.map → p-f333c673.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as e,c as a,h as s,a as t,g as c}from"./p-9dea2efa.js";import{v as d}from"./p-0b3574c2.js";import{S as i,c as o}from"./p-2ca5423c.js";import{c as f}from"./p-cd6c2938.js";import{g as r}from"./p-ea7fdd2e.js";import"./p-e8ec030e.js";import"./p-e0e2e9c1.js";import"./p-5aad3497.js";import"./p-92f420cb.js";const n=class{constructor(s){e(this,s);this.govChange=a(this,"gov-change",7);this.hydrated=false;this.color="primary";this.size="m";this.identifier=undefined;this.h=r(this.host);this.triggerId=f("GovStepperItem");this.contentId=f("GovStepperContent")}validateColor(e){d(o,e,i.root)}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const e=this.identifier||this.triggerId;const a=this.contentId;return s(t,{key:"08ccd5ea73c3269daa18fc8bba6dd18480ad7816",id:e,class:this.h.classes(i.root),color:this.color,role:"listitem",hydrated:this.hydrated},s("div",{key:"35fdc536d55fff74470ad2a9a8402a5629fb86ec"},s("div",{key:"0b37d829fae45660196edc0509897c28d9e508ec",class:i.steps},s("span",{key:"2f8794f09a43b40063297dedd0995eb1f69fe2b3"}),s("span",{key:"e0a4ff933a1ce97d6831d47d2281f2158a7d234f",class:i.prefix},s("slot",{key:"237aed2bfa1229906fb09d36d65158569ecf58a9",name:"prefix"})),s("span",{key:"023e70f587369773800f3ce963058d8a35700710"})),s("div",{key:"75d13eabc53fc14e48e8ed21d19010ab4b2f4cb5",class:i.main},s("span",{key:"22aab53d261746e0dfc0cfe7815259430aa297dc",class:i.headline},s("slot",{key:"f544727ea1c6516a567bb45cc8159c5d9f2657fd",name:"headline"})),s("slot",{key:"a017ee18733dcaa2499b40ad9c341d480a26b0a1",name:"annotation"}),this.h.hasSlot("content")&&s("div",{key:"854112defb09e451c1748a35b566f785792e3418",class:i.content,id:a,"aria-labelledby":e,role:"tabpanel"},s("slot",{key:"2ba008423af0ad9db10874b1c3f87a27a252bb72",name:"content"})))))}get host(){return c(this)}static get watchers(){return{color:["validateColor"]}}};export{n as gov_stepper_item};
2
+ //# sourceMappingURL=p-80bebb7f.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GovStepperItem","constructor","hostRef","this","hydrated","h","govHost","host","triggerId","createID","contentId","validateColor","newValue","validateProp","StepperColors","StepperItemClass","root","componentWillLoad","color","connectedCallback","render","identifier","Host","key","id","class","classes","role","steps","prefix","name","main","headline","hasSlot","content"],"sources":["../../../packages/core/src/components/gov-stepper/gov-stepper-item.tsx"],"sourcesContent":["import { Component, Element, h, Prop, Watch, Host, Event, EventEmitter } from '@stencil/core'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { StepperSizesType, StepperItemClass, StepperColorType, StepperColors } from './constants'\nimport { createID } from '../../utils/string.utils'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-stepper-item',\n})\nexport class GovStepperItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID('GovStepperItem')\n\t\tthis.contentId = createID('GovStepperContent')\n\t}\n\n\t@Element() readonly host: HTMLGovStepperItemElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color?: StepperColorType = 'primary'\n\t/**\n\t * Size of stepper\n\t */\n\t@Prop() readonly size?: StepperSizesType = 'm'\n\t/**\n\t * Custom stepper item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(StepperColors, newValue, StepperItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst contentId = this.contentId\n\n\t\treturn (\n\t\t\t<Host id={triggerId} class={this.h.classes(StepperItemClass.root)} color={this.color} role=\"listitem\" hydrated={this.hydrated}>\n\t\t\t\t<div>\n\t\t\t\t\t<div class={StepperItemClass.steps}>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\n\t\t\t\t\t\t\t<slot name=\"prefix\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class={StepperItemClass.main}>\n\t\t\t\t\t\t<span class={StepperItemClass.headline}>\n\t\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<slot name=\"annotation\"/>\n\n\t\t\t\t\t\t{this.h.hasSlot('content') && (\n\t\t\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId}\n\t\t\t\t\t\t\t\t role=\"tabpanel\">\n\t\t\t\t\t\t\t\t<slot name=\"content\"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"6TAWaA,EAAc,MAM1B,WAAAC,CAAAC,G,gDAFQC,KAAAC,SAAW,M,WAayB,U,UAID,I,0BAd1CD,KAAKE,EAAIC,EAAQH,KAAKI,MACtBJ,KAAKK,UAAYC,EAAS,kBAC1BN,KAAKO,UAAYD,EAAS,oB,CAuB3B,aAAAE,CAAcC,GACbC,EAAaC,EAAeF,EAAUG,EAAiBC,K,CAGxD,iBAAAC,GACCd,KAAKQ,cAAcR,KAAKe,M,CAGzB,iBAAAC,GACChB,KAAKC,SAAW,I,CAGjB,MAAAgB,GACC,MAAMZ,EAAYL,KAAKkB,YAAclB,KAAKK,UAC1C,MAAME,EAAYP,KAAKO,UAEvB,OACCL,EAACiB,EAAI,CAAAC,IAAA,2CAACC,GAAIhB,EAAWiB,MAAOtB,KAAKE,EAAEqB,QAAQX,EAAiBC,MAAOE,MAAOf,KAAKe,MAAOS,KAAK,WAAWvB,SAAUD,KAAKC,UACpHC,EAAA,OAAAkB,IAAA,4CACClB,EAAA,OAAAkB,IAAA,2CAAKE,MAAOV,EAAiBa,OAC5BvB,EAAA,QAAAkB,IAAA,6CACAlB,EAAA,QAAAkB,IAAA,2CAAME,MAAOV,EAAiBc,QAC7BxB,EAAA,QAAAkB,IAAA,2CAAMO,KAAK,YAEZzB,EAAA,QAAAkB,IAAA,8CAEDlB,EAAA,OAAAkB,IAAA,2CAAKE,MAAOV,EAAiBgB,MAC5B1B,EAAA,QAAAkB,IAAA,2CAAME,MAAOV,EAAiBiB,UAC7B3B,EAAA,QAAAkB,IAAA,2CAAMO,KAAK,cAEZzB,EAAA,QAAAkB,IAAA,2CAAMO,KAAK,eAEV3B,KAAKE,EAAE4B,QAAQ,YACf5B,EAAA,OAAAkB,IAAA,2CAAKE,MAAOV,EAAiBmB,QAASV,GAAId,EAAS,kBAAmBF,EACpEmB,KAAK,YACNtB,EAAA,QAAAkB,IAAA,2CAAMO,KAAK,e","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as a,h as s,a as t,g as o}from"./p-9dea2efa.js";import{g as r}from"./p-ea7fdd2e.js";const e={root:"gov-container"};const c=class{constructor(s){a(this,s);this.h=r(this.host)}render(){return s(t,{key:"ad1f0a234ba94b59c7214c2ddba4208234355a47",class:this.h.classes(e.root)},s("slot",{key:"a7b877a4cf5d2f5ec1aa5908a2faf9976fa5591e"}))}get host(){return o(this)}};export{c as gov_container};
2
+ //# sourceMappingURL=p-8cbe8add.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as e,h as o,a as s,g as t}from"./p-9dea2efa.js";import{g as a}from"./p-ea7fdd2e.js";const r={root:"gov-error-code",content:"gov-error-code__content"};const c=class{constructor(o){e(this,o);this.h=a(this.host)}render(){return o(s,{key:"3355f2c43f55001d6b12bae918220f858721279b",class:this.h.classes(r.root),align:"center"},this.h.hasSlot("icon")&&o("slot",{key:"721e74886d890b048bc268cadf9fb05979234ad6",name:"icon"}),o("div",{key:"9a1e0ce9d1aa43eacd4967a2688123fcd9164d8f",class:r.content},o("slot",{key:"5193304f9720b28d12176e805436e7ebbee2f704",name:"headline"}),o("slot",{key:"12d538e92472745e3613149a7c824e6cd345e776"})))}get host(){return t(this)}};export{c as gov_error_code};
2
+ //# sourceMappingURL=p-8f73f8e0.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as t,c as s,h as i,a as o,g as e}from"./p-9dea2efa.js";import{v as a}from"./p-0b3574c2.js";import{C as h}from"./p-5aad3497.js";import{p as d}from"./p-e0e2e9c1.js";import{g as c}from"./p-ea7fdd2e.js";import{c as r}from"./p-cd6c2938.js";import{A as n,a as l}from"./p-9ac55bd1.js";import{i as f}from"./p-d9a299a4.js";import"./p-e8ec030e.js";const m=d(h,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var b;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(b||(b={}));const p={root:"gov-toast",hidden:"gov-toast--hidden",content:"gov-toast__content",icon:"gov-toast__icon",close:"gov-toast__close",timer:"gov-toast__timer"};const u=class{constructor(i){t(this,i);this.govClose=s(this,"gov-close",7);this.color="primary";this.gravity="top";this.position="right";this.type="bold";this.time=0;this.closeLabel=undefined;this.accessibleCloseLabel=undefined;this.inheritedAttributes={};this.h=c(this.host);this.toastId=r("GovToast")}validateColor(t){a(m,t,p.root)}componentDidLoad(){this.attributeObserver=new n(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(l)}componentWillLoad(){this.validateColor(this.color);this.runTimer();this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;clearTimeout(this.timeout);(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}runTimer(){if(this.isTimer){this.timeout=setTimeout((()=>{this.host.classList.add(p.hidden);setTimeout((()=>{this.destroy().catch();this.govClose.emit(this.toastId)}),600)}),this.time)}}render(){return i(o,{key:"c5ff6e1b44b5bd6be76071fb1a06863d40fbafc4",class:this.h.classes(p.root),"data-toast-id":this.toastId,gravity:this.gravity,position:this.position,color:this.color,type:this.type,style:{"--toast-duration":this.time+"ms"}},this.h.hasSlot("icon")&&i("span",{key:"12bed10d321d58f2a60624b40442cd1af7f5a148",class:p.icon},i("slot",{key:"d190b0fa180d1d7fa7d7de31e57e6443d878ef8c",name:"icon"})),i("div",Object.assign({key:"1d3b58d5e24a9c8de248d762fd86226b4d0734cd",class:p.content},this.inheritedAttributes,{"aria-live":"polite",role:"status"}),i("slot",{key:"9db11a8e04576242515cd043a500f0b8114f4210"})),i("gov-button",{key:"781d407d84f718b11a2c5f809c4508e2c0da5499",size:"s","aria-label":this.accessibleCloseLabel,color:this.isBold?this.color:"neutral",type:"base","on-gov-click":this.onCloseHandler.bind(this),class:p.close},this.closeLabel?this.closeLabel:i("gov-icon",{name:"x-lg",type:"components"})),i("div",{key:"a73f8ec772d777df9b5a26cfa9f05fbeb82608ff",class:p.timer}))}onCloseHandler(){this.govClose.emit(this.toastId);this.destroy().catch()}get isBold(){return this.type==="bold"}get isTimer(){return Number.isInteger(this.time)&&this.time>0}async destroy(){clearTimeout(this.timeout);const t=document.querySelector(`[data-toast-id="${this.toastId}"]`);if(t){t.classList.add(p.hidden);if(typeof t.remove==="function"){t.remove()}}}get host(){return e(this)}static get watchers(){return{color:["validateColor"]}}};export{u as gov_toast};
2
+ //# sourceMappingURL=p-94119ad4.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ToastColors","pick","Colors","ToastType","ToastClass","root","hidden","content","icon","close","timer","GovToast","constructor","hostRef","this","h","govHost","host","toastId","createID","validateColor","newValue","validateProp","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","color","runTimer","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","clearTimeout","timeout","_a","stopObserving","removeAttribute","Object","assign","isTimer","setTimeout","classList","add","destroy","catch","govClose","emit","time","render","Host","key","class","classes","gravity","position","type","style","hasSlot","name","role","size","accessibleCloseLabel","isBold","onCloseHandler","bind","closeLabel","Number","isInteger","toast","document","querySelector","remove"],"sources":["../../../packages/core/src/components/gov-toast/constants.ts","../../../packages/core/src/components/gov-toast/gov-toast.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const ToastColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ToastColorType = `${ValueOf<typeof ToastColors>}`\n\nexport enum ToastType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type ToastTypesType = `${ValueOf<typeof ToastType>}`\n\nexport const ToastClass = {\n\troot: 'gov-toast',\n\thidden: 'gov-toast--hidden',\n\tcontent: 'gov-toast__content',\n\ticon: 'gov-toast__icon',\n\tclose: 'gov-toast__close',\n\ttimer: 'gov-toast__timer',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {ToastClass, ToastColors, ToastColorType, ToastTypesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {createID} from \"../../utils/string.utils\"\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-toast\",\n})\nexport class GovToast {\n\tprivate h: GovHost\n\tprivate timeout\n\tprivate readonly toastId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.toastId = createID(\"GovToast\")\n\t}\n\n\t@Element() host: HTMLGovToastElement\n\t/**\n\t * Style variation of the toast message.\n\t */\n\t@Prop() readonly color?: ToastColorType = \"primary\"\n\n\t/**\n\t * Toast’s gravity\n\t */\n\t@Prop() readonly gravity: \"top\" | \"bottom\" = \"top\"\n\t/**\n\t * Toast’s position\n\t */\n\t@Prop() readonly position: \"left\" | \"center\" | \"right\" = \"right\"\n\t/**\n\t * Toast type\n\t */\n\t@Prop() readonly type?: ToastTypesType = \"bold\"\n\t/**\n\t * Number of milliseconds to wait before Toast disappear\n\t */\n\t@Prop() readonly time: number = 0\n\t/**\n\t * Closing button texting instead of icons\n\t */\n\t@Prop({attribute: \"close-label\"}) readonly closeLabel: string\n\t/**\n\t * Aria label for the closing button. It is mandatory if the alert is closable\n\t */\n\t@Prop({attribute: \"accessible-close-label\"}) readonly accessibleCloseLabel: string\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: \"gov-close\"}) govClose: EventEmitter<string>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ToastColors, newValue, ToastClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.runTimer()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\n\tdisconnectedCallback() {\n\t\tclearTimeout(this.timeout)\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate runTimer() {\n\t\tif (this.isTimer) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.classList.add(ToastClass.hidden)\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.destroy().catch()\n\t\t\t\t\tthis.govClose.emit(this.toastId)\n\t\t\t\t}, 600)\n\t\t\t}, this.time)\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(ToastClass.root)}\n\t\t\t\tdata-toast-id={this.toastId}\n\t\t\t\tgravity={this.gravity}\n\t\t\t\tposition={this.position}\n\t\t\t\tcolor={this.color}\n\t\t\t\ttype={this.type}\n\t\t\t\tstyle={{\"--toast-duration\": this.time + \"ms\"}}\n\t\t\t>\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<span class={ToastClass.icon}>\n\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\n\t\t\t\t<div class={ToastClass.content} {...this.inheritedAttributes} aria-live=\"polite\" role=\"status\">\n\t\t\t\t\t<slot/>\n\t\t\t\t</div>\n\n\t\t\t\t<gov-button\n\t\t\t\t\tsize=\"s\"\n\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\ttype=\"base\"\n\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\tclass={ToastClass.close}\n\t\t\t\t>\n\t\t\t\t\t{this.closeLabel ? this.closeLabel : <gov-icon name=\"x-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t</gov-button>\n\n\t\t\t\t<div class={ToastClass.timer}></div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onCloseHandler(): void {\n\t\tthis.govClose.emit(this.toastId)\n\t\tthis.destroy().catch()\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n\n\tget isTimer(): boolean {\n\t\treturn Number.isInteger(this.time) && this.time > 0\n\t}\n\n\t/**\n\t * Remove toast from dom\n\t */\n\t@Method()\n\tasync destroy(): Promise<void> {\n\t\tclearTimeout(this.timeout)\n\t\tconst toast = document.querySelector(`[data-toast-id=\"${this.toastId}\"]`)\n\t\tif (toast) {\n\t\t\ttoast.classList.add(ToastClass.hidden)\n\t\t\tif (typeof toast.remove === \"function\") {\n\t\t\t\ttoast.remove()\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,h as s,a,g as t}from"./p-9dea2efa.js";import{v as o}from"./p-0b3574c2.js";import{C as c}from"./p-5aad3497.js";import{p as r}from"./p-e0e2e9c1.js";import{g as i}from"./p-ea7fdd2e.js";import"./p-e8ec030e.js";r(c,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var d;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(d||(d={}));const f={root:"gov-message",content:"gov-message__content"};const n=class{constructor(s){e(this,s);this.color=c.PRIMARY;this.type="subtle";this.h=i(this.host)}validateColor(e){o(c,e,f.root)}render(){return s(a,{key:"2592f0650b052d0612436c82b793abba16f91190",class:this.h.classes(f.root),color:this.color,type:this.type,role:"status"},this.h.hasSlot("icon")&&s("span",{key:"bcafdfeb80e3fd8a3a765dbe1d534725d2e7920c"},s("slot",{key:"04f301600ba4e83d17c0615c30c807a226c7d14a",name:"icon"})),s("div",{key:"7fcaa833d295a29c966f80abea5978fe4ebb6b40",class:f.content},s("slot",{key:"eef1fe939fd94144d03a14c02a2d7fc87cdc8662"})))}get host(){return t(this)}static get watchers(){return{color:["validateColor"]}}};export{n as gov_message};
2
+ //# sourceMappingURL=p-952ab9e5.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["pick","Colors","MessageType","MessageClass","root","content","GovMessage","constructor","hostRef","PRIMARY","this","h","govHost","host","validateColor","newValue","validateProp","render","Host","key","class","classes","color","type","role","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type MessageColorType = `${ValueOf<typeof MessageColors>}`\n\nexport enum MessageType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type MessageTypesType = `${ValueOf<typeof MessageType>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\tcontent: 'gov-message__content',\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { MessageTypesType, MessageClass, MessageColorType} from \"./constants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { Colors } from \"../../core/constants/colors\"\n\n@Component({\n\ttag: \"gov-message\",\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly color: MessageColorType = Colors.PRIMARY\n\t/**\n\t * Message type\n\t */\n\t@Prop() readonly type?: MessageTypesType = \"subtle\"\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(Colors, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} color={this.color} type={this.type} role=\"status\">\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"iOAI6BA,EAAKC,EAAQ,CAAC,UAAW,UAAW,QAAS,UAAW,YAGrF,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,kBACA,EAHD,CAAYA,MAAW,KAMhB,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,wB,MCLGC,EAAU,MAGtB,WAAAC,CAAAC,G,qBAS2CP,EAAOQ,Q,UAIP,SAZ1CC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAevB,aAAAC,CAAcC,GACbC,EAAaf,EAAQc,EAAUZ,EAAaC,K,CAG7C,MAAAa,GACC,OACCN,EAACO,EAAI,CAAAC,IAAA,2CAACC,MAAOV,KAAKC,EAAEU,QAAQlB,EAAaC,MAAOkB,MAAOZ,KAAKY,MAAOC,KAAMb,KAAKa,KAAMC,KAAK,UACvFd,KAAKC,EAAEc,QAAQ,SACfd,EAAA,QAAAQ,IAAA,2CAAMO,KAAK,SAGZf,EAAA,OAAAQ,IAAA,2CAAKC,MAAOjB,EAAaE,SACxBM,EAAA,QAAAQ,IAAA,8C","ignoreList":[]}
1
+ {"version":3,"names":["pick","Colors","MessageType","MessageClass","root","content","GovMessage","constructor","hostRef","PRIMARY","this","h","govHost","host","validateColor","newValue","validateProp","render","Host","key","class","classes","color","type","role","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type MessageColorType = `${ValueOf<typeof MessageColors>}`\n\nexport enum MessageType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type MessageTypesType = `${ValueOf<typeof MessageType>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\tcontent: 'gov-message__content',\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { MessageTypesType, MessageClass, MessageColorType} from \"./constants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { Colors } from \"../../core/constants/colors\"\n\n@Component({\n\ttag: \"gov-message\",\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly color: MessageColorType = Colors.PRIMARY\n\t/**\n\t * Message type\n\t */\n\t@Prop() readonly type?: MessageTypesType = \"subtle\"\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(Colors, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} color={this.color} type={this.type} role=\"status\">\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"4NAI6BA,EAAKC,EAAQ,CAAC,UAAW,UAAW,QAAS,UAAW,YAGrF,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,kBACA,EAHD,CAAYA,MAAW,KAMhB,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,wB,MCLGC,EAAU,MAGtB,WAAAC,CAAAC,G,qBAS2CP,EAAOQ,Q,UAIP,SAZ1CC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAevB,aAAAC,CAAcC,GACbC,EAAaf,EAAQc,EAAUZ,EAAaC,K,CAG7C,MAAAa,GACC,OACCN,EAACO,EAAI,CAAAC,IAAA,2CAACC,MAAOV,KAAKC,EAAEU,QAAQlB,EAAaC,MAAOkB,MAAOZ,KAAKY,MAAOC,KAAMb,KAAKa,KAAMC,KAAK,UACvFd,KAAKC,EAAEc,QAAQ,SACfd,EAAA,QAAAQ,IAAA,4CACCR,EAAA,QAAAQ,IAAA,2CAAMO,KAAK,UAIbf,EAAA,OAAAQ,IAAA,2CAAKC,MAAOjB,EAAaE,SACxBM,EAAA,QAAAQ,IAAA,8C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as t,h as s,a as i,g as e}from"./p-2ee042d4.js";import{T as o,a,b as h}from"./p-76d604c6.js";import{c as n}from"./p-ea7fdd2e.js";import"./p-5aad3497.js";import"./p-92f420cb.js";import"./p-e0e2e9c1.js";const r=class{constructor(s){t(this,s);this.color=o.PRIMARY;this.size=a._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(t){clearTimeout(this.timeout);if(t===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const t=document.getElementById(this.parentId);if(t){t.hide().catch()}}render(){return s(i,{key:"965998f4788ddd5dffd01b53073a001023cd9037",class:h.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!n(this.isVisible),"is-visible":this.isVisible},s("slot",{key:"fe9d1ee13a11077947492341836f8f25c1f8881f"}),this.persist?s("gov-button",{"on-gov-click":this.hideContent.bind(this),color:this.color,size:this.size,type:"base"},s("gov-icon",{slot:"icon-start",name:"x-lg",type:"components"})):null)}get host(){return e(this)}static get watchers(){return{isVisible:["visibleContent"]}}};export{r as gov_tooltip_content};
2
- //# sourceMappingURL=p-7baee44f.entry.js.map
1
+ import{r as t,h as s,a as e,g as i}from"./p-9dea2efa.js";import{T as o,a,b as h}from"./p-76d604c6.js";import{c as n}from"./p-ea7fdd2e.js";import"./p-5aad3497.js";import"./p-92f420cb.js";import"./p-e0e2e9c1.js";const r=class{constructor(s){t(this,s);this.color=o.PRIMARY;this.size=a._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(t){clearTimeout(this.timeout);if(t===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const t=document.getElementById(this.parentId);if(t){t.hide().catch()}}render(){return s(e,{key:"28e778cbda440ea6026ed604d5713c451ed49f36",class:h.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!n(this.isVisible),"is-visible":this.isVisible},s("slot",{key:"f7e08e2fb6029b4d5bca3f7fdce286f67c7f77d0"}),this.persist?s("gov-button",{"on-gov-click":this.hideContent.bind(this),color:this.color,size:this.size,type:"base"},s("gov-icon",{slot:"icon-start",name:"x-lg",type:"components"})):null)}get host(){return i(this)}static get watchers(){return{isVisible:["visibleContent"]}}};export{r as gov_tooltip_content};
2
+ //# sourceMappingURL=p-99f192c1.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e,a as s,g as i,c as n}from"./p-9dea2efa.js";import{S as o}from"./p-92f420cb.js";import{g as a}from"./p-ea7fdd2e.js";import{p as r}from"./p-e0e2e9c1.js";import{C as c}from"./p-5aad3497.js";import{i as h,a as l,b as d}from"./p-e8ec030e.js";import{v as f}from"./p-0b3574c2.js";const u={root:"gov-flex"};const m=class{constructor(e){t(this,e);this.direction="row";this.justifyContent=undefined;this.alignItems=undefined;this.wrap=undefined;this.alignContent=undefined;this.alignSelf=undefined;this.gap=undefined;this.responsive="true";this.h=a(this.host)}render(){return e(s,{key:"082daf61e75a8b30f7faa2cbd6a44ad8a74b0442",class:this.h.classes(u.root)},e("slot",{key:"120882be8540480b11df18d006414dabbb00e1d0"}))}get host(){return i(this)}};r(o,["_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL","_5XL"]);const p=r(c,["DEFAULT","PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING","DISABLED","WHITE","BLACK"]);var b;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(b||(b={}));const g={root:"gov-icon",holder:"gov-icon__holder"};const v="4.2.0";const w=()=>v;const _={};const y={};const S=t=>t.startsWith("http://")||t.startsWith("https://");const k=(t,e,s)=>{if(S(t)){return`${t}/${s}/${e}.svg?v=${w()}`}return`${t}/${s}/${e}.svg`+`?v=${w()}`};async function L({name:t,type:e}){const s=e+"-"+t;if(_[s]){return _[s]}if(!y[s]){y[s]=fetch(k(h(),t,e)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const i=await y[s];_[s]=i;return i}const C=(t,e,s)=>{if(!l){return}let i="";if(s){const t=new Date;t.setTime(t.getTime()+s*24*60*60*1e3);i="; expires="+t.toUTCString()}document.cookie=`${t}=${encodeURIComponent(e)}${i}; path=/`};const D=t=>{if(!l){return null}const e=t+"=";const s=document.cookie.split(";");for(let t=0;t<s.length;t++){let i=s[t].trim();if(i.startsWith(e)){return decodeURIComponent(i.substring(e.length))}}return null};const I=t=>{try{const e=new DOMParser;const s=e.parseFromString(t,"image/svg+xml");const i=s.querySelector("parsererror");if(i){return false}const n=s.documentElement;if(n.tagName.toLowerCase()!=="svg"){return false}return true}catch(t){return false}};const $=class{constructor(e){t(this,e);this.size=undefined;this.color=undefined;this.name=null;this.type="components";this.visible=false;this.error=false;this.h=a(this.host)}validateSize(t){f(o,t,g.root)}validateColor(t){f(p,t,g.root)}async loadIconPathData(){const{name:t,visible:e}=this;if(!t||!e){return}await this.loadIcon()}connectedCallback(){if(d()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){this.validateSize(this.size);this.validateColor(this.color);await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}async loadIcon(){try{const{name:t,type:e}=this;const s=await L({name:t,type:e});const i=I(s);this.host.innerHTML=i?s:null}catch(t){this.host.innerHTML="";this.error=true}}render(){if(this.error){return null}return e(s,{class:this.h.classes(g.root),size:this.size,color:this.color})}static get assetsDirs(){return["assets"]}get host(){return i(this)}static get watchers(){return{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}}};const R=r(o,["_XS","_S","_M","_L","_XL"]);const j={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",label:"gov-theme-switch__label",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark"};const E="data-theme";var x;(function(t){t["auto"]="auto";t["light"]="light";t["dark"]="dark"})(x||(x={}));const z=class{constructor(e){t(this,e);this.govChange=n(this,"gov-change",7);this.setThemeState=t=>{this.theme=t;this.govChange.emit({component:j.root,state:this.theme,ref:this.host})};this.size="m";this.displayLabel=false;this.ariaLabelLight="Přenout na tmavý mód";this.ariaLabelDark="Přepnout na světlý mód";this.labelLight="Světlý mód";this.labelDark="Tmavý mód";this.theme=x.auto;this.h=a(this.host)}validateSize(t){f(R,t,j.root)}watchTheme(t){this.htmlElement.setAttribute(E,t);this.htmlElement.classList.remove(...Object.keys(x));this.htmlElement.classList.add(t);C(E,t)}get storageValue(){return D(E)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return l&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const t=Object.keys(x);let e=this.storageValue;const s=this.htmlElement.getAttribute(E);if(e&&t.includes(e)){this.theme=e}else if(s&&t.includes(s)){this.theme=s}else{this.theme=x.auto}}render(){let t=this.theme===x.dark;if(this.theme===x.auto){t=this.isSystemPrefersColorDark}return e(s,{key:"7c9fc2abd555e5254c86ff58fe3e70be5a30b83c",class:this.h.classes(j.root),theme:t?x.dark:x.light,size:this.size},e("button",{key:"1dc6ac1588fc2f2b48089400953c44e04d59e213",onClick:()=>this.setThemeState(t?x.light:x.dark),"aria-current":this.theme,"aria-label":t?this.ariaLabelDark:this.ariaLabelLight},e("span",{key:"59e19f4450ea2043edf7c037538bab5a0d605569"},e("span",{key:"34640deb4ff3215653f47d54b59ae6763a793333",class:j.indicator},x.light&&e("gov-icon",{key:"e1583fe54eae0ab7eeb2eb4919b5dd144bb43aa3",name:"sun",class:j.iconLight,type:"components"}),x.dark&&e("gov-icon",{key:"cb63ce2aa41321bcb7c59d0c02f47f62b80fd104",name:"moon",class:j.iconDark,type:"components"})),this.displayLabel?e("span",{class:j.label},t?this.labelDark:this.labelLight):null)))}get host(){return i(this)}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}};export{m as gov_flex,$ as gov_icon,z as gov_theme_switch};
2
+ //# sourceMappingURL=p-9ae280b2.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FlexClass","root","GovFlex","constructor","hostRef","this","h","govHost","host","render","Host","key","class","classes","pick","Sizes","IconColors","Colors","Types","IconClass","holder","dsVersion","version","iconCache","requestCache","isExternalUrl","path","startsWith","iconUrl","name","type","async","fetchIcon","cacheKey","fetch","iconsPath","then","resp","status","text","Error","setCookie","value","days","isWindow","expires","date","Date","setTime","getTime","toUTCString","document","cookie","encodeURIComponent","getCookie","nameEQ","cookies","split","i","length","trim","decodeURIComponent","substring","isValidSVG","svgContent","parser","DOMParser","doc","parseFromString","parseError","querySelector","svgElement","documentElement","tagName","toLowerCase","error","GovIcon","validateSize","newValue","validateProp","validateColor","loadIconPathData","visible","loadIcon","connectedCallback","iconsLazyLoad","finally","waitUntilVisible","disconnectedCallback","intersectionObserver","disconnect","componentWillLoad","size","color","callback","window","IntersectionObserver","entries","forEach","entry","isIntersecting","rootMargin","observe","data","isValid","innerHTML","e","ThemeSwitchSizes","ThemeSwitchClass","indicator","label","iconLight","iconDark","ATTRIBUTE_THEME_NAME","ThemeList","GovThemeSwitch","setThemeState","state","theme","govChange","emit","component","ref","auto","watchTheme","htmlElement","setAttribute","classList","remove","Object","keys","add","storageValue","isSystemPrefersColorDark","matchMedia","matches","initDefaultState","options","currentState","htmlState","getAttribute","includes","isDark","dark","light","onClick","ariaLabelDark","ariaLabelLight","displayLabel","labelDark","labelLight"],"sources":["../../../packages/core/src/components/gov-flex/constants.ts","../../../packages/core/src/components/gov-flex/gov-flex.tsx","../../../packages/core/src/components/gov-icon/constants.ts","../../../packages/core/src/utils/ds.utils.ts","../../../packages/core/src/utils/icon.utils.ts","../../../packages/core/src/helpers/Dom/document.ts","../../../packages/core/src/components/gov-icon/gov-icon.tsx","../../../packages/core/src/components/gov-theme-switch/constants.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.types.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.tsx"],"sourcesContent":["import {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const FlexSizes = Sizes\nexport type FlexSizesType = `${ValueOf<typeof FlexSizes>}`\n\nexport const FlexClass = {\n\troot: 'gov-flex',\n}\n\n","import {Component, Element, h, Host, Prop} from '@stencil/core'\nimport {FlexClass, FlexSizesType} from './constants'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-flex',\n})\nexport class GovFlex {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Controls the flex direction of the container.\n\t */\n\t@Prop({reflect: true}) direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' = 'row';\n\n\t/**\n\t * Defines how the browser distributes space between and around content items along the main axis.\n\t */\n\t@Prop({\n\t\tattribute: 'justify-content',\n\t\treflect: true\n\t}) justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';\n\n\t/**\n\t * Aligns flex items along the cross axis.\n\t */\n\t@Prop({\n\t\tattribute: 'align-items',\n\t\treflect: true\n\t}) alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';\n\n\t/**\n\t * Controls whether the flex container is a single-line or multi-line flex container.\n\t */\n\t@Prop({reflect: true}) wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n\n\t/**\n\t * Aligns the flex container's lines within when there is extra space in the cross-axis.\n\t */\n\t@Prop({\n\t\tattribute: 'align-content',\n\t\treflect: true\n\t}) alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';\n\n\t/**\n\t * Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.\n\t */\n\t@Prop({\n\t\tattribute: 'align-self',\n\t\treflect: true\n\t}) alignSelf?: 'auto' | 'normal' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' | 'anchor-center';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({\n\t\tattribute: 'gap',\n\t\treflect: true\n\t}) gap?: FlexSizesType;\n\n\t/**\n\t * Option to turn off responsive\n\t */\n\t@Prop({reflect: true}) readonly responsive: string = \"true\"\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FlexClass.root)}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n","import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils';\nimport { Colors } from '../../core/constants/colors';\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const IconSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL'])\nexport type IconSizesType = `${ValueOf<typeof IconSizes>}`\n\nexport const IconColors = pick(Colors, [\n\t'DEFAULT',\n\t'PRIMARY',\n\t'SECONDARY',\n\t'NEUTRAL',\n\t'ERROR',\n\t'SUCCESS',\n\t'WARNING',\n\t'DISABLED',\n\t'WHITE',\n\t'BLACK',\n])\nexport type IconColorType = `${ValueOf<typeof IconColors>}`\n\nenum Types {\n\tBASIC = 'basic',\n\tCOMPLEX = 'complex',\n\tCOLORED = 'colored',\n}\nexport type Type = `${ValueOf<typeof Types>}`\n\nexport const IconClass = {\n\troot: 'gov-icon',\n\tholder: 'gov-icon__holder',\n}\n","import { version } from '../../package.json'\n\nexport const dsVersion = (): string => {\n\treturn version\n}\n","import {dsVersion} from \"./ds.utils\"\nimport {iconsPath} from \"../helpers/Dom/win\"\n\nconst iconCache: { [key: string]: string } = {}\nconst requestCache: { [key: string]: Promise<string> } = {}\n\nconst isExternalUrl = (path: string) => path.startsWith(\"http://\") || path.startsWith(\"https://\")\nconst iconUrl = (path: string, name: string, type: string) => {\n if (isExternalUrl(path)) {\n return `${path}/${type}/${name}.svg?v=${dsVersion()}`\n }\n return `${path}/${type}/${name}.svg` + `?v=${dsVersion()}`\n}\n\nexport async function fetchIcon({name, type}: { name: string; type: string }): Promise<string> {\n const cacheKey = type + \"-\" + name\n if (iconCache[cacheKey]) {\n return iconCache[cacheKey]\n }\n\n if (!requestCache[cacheKey]) {\n requestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {\n if (resp.status === 200) {\n return resp.text()\n } else {\n throw new Error(\"Gov Icon doesn't exists\")\n }\n })\n }\n const path = await requestCache[cacheKey]\n iconCache[cacheKey] = path\n return path\n}\n","import {Nullable} from \"../../utils/helpers.types\";\nimport {isWindow} from \"./win\";\n\nexport const setCookie = (name: string, value: string, days?: number) => {\n\tif (!isWindow) {\n\t\treturn\n\t}\n\tlet expires = \"\";\n\tif (days) {\n\t\tconst date = new Date();\n\t\tdate.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\n\t\texpires = \"; expires=\" + date.toUTCString();\n\t}\n\tdocument.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;\n}\n\nexport const getCookie = (name: string): Nullable<string> => {\n\tif (!isWindow) {\n\t\treturn null\n\t}\n\tconst nameEQ = name + \"=\";\n\tconst cookies = document.cookie.split(';');\n\tfor (let i = 0; i < cookies.length; i++) {\n\t\tlet cookie = cookies[i].trim();\n\t\tif (cookie.startsWith(nameEQ)) {\n\t\t\treturn decodeURIComponent(cookie.substring(nameEQ.length));\n\t\t}\n\t}\n\treturn null;\n}\n\nexport const isValidSVG = (svgContent: string): boolean => {\n\ttry {\n\t\tconst parser = new DOMParser();\n\t\tconst doc = parser.parseFromString(svgContent, \"image/svg+xml\");\n\t\tconst parseError = doc.querySelector(\"parsererror\");\n\t\tif (parseError) {\n\t\t\treturn false;\n\t\t}\n\t\tconst svgElement = doc.documentElement;\n\t\tif (svgElement.tagName.toLowerCase() !== \"svg\") {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t} catch (error) {\n\t\treturn false;\n\t}\n}\n","import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {IconClass, IconColors, type IconColorType, IconSizesType} from \"./constants\"\nimport {fetchIcon} from \"../../utils/icon.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {isValidSVG} from \"../../helpers/Dom/document\";\n\n@Component({\n\tassetsDirs: [\"assets\"],\n\ttag: \"gov-icon\",\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\tprivate intersectionObserver: IntersectionObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Icon size\n\t */\n\t@Prop({reflect: true}) readonly size?: IconSizesType\n\t/**\n\t * Icon color\n\t */\n\t@Prop({reflect: true}) readonly color?: IconColorType\n\t/**\n\t * Name of icon in folder\n\t */\n\t@Prop({reflect: true}) name: string = null\n\t/**\n\t * Type (folder) of icon\n\t */\n\t@Prop({reflect: true}) type = \"components\"\n\n\t@State() private visible = false\n\t@State() private error = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"name\")\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst {name, visible} = this\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\treturn\n\t\t}\n\t\tawait this.loadIcon()\n\t}\n\n\tconnectedCallback(): void {\n\t\tif (iconsLazyLoad()) {\n\t\t\tthis.visible = true\n\t\t\tthis.loadIconPathData().finally()\n\t\t} else {\n\t\t\tthis.waitUntilVisible(async () => {\n\t\t\t\tthis.visible = true\n\t\t\t\tawait this.loadIconPathData()\n\t\t\t})\n\t\t}\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tif (this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{rootMargin: \"50px\"},\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\tprivate async loadIcon() {\n\t\ttry {\n\t\t\tconst {name, type} = this\n\t\t\tconst data = await fetchIcon({name, type})\n\t\t\tconst isValid = isValidSVG(data)\n\t\t\tthis.host.innerHTML = isValid ? data : null;\n\t\t} catch (e) {\n\t\t\tthis.host.innerHTML = ''\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}/>\n\t\t)\n\t}\n}\n","import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const ThemeSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type ThemeSwitchSizesType = `${ValueOf<typeof ThemeSwitchSizes>}`\n\nexport const ThemeSwitchClass = {\n\troot: 'gov-theme-switch',\n\tindicator: 'gov-theme-switch__indicator',\n\tlabel: 'gov-theme-switch__label',\n\ticonLight: 'gov-theme-switch__icon-light',\n\ticonDark: 'gov-theme-switch__icon-dark',\n}\n\nexport const ATTRIBUTE_THEME_NAME = 'data-theme'\n","import {GovBaseEvent} from \"../../types/event.types\";\n\nexport enum ThemeList {\n\tauto = 'auto',\n\tlight = 'light',\n\tdark = 'dark'\n}\n\nexport interface ThemeSwitchEvent extends GovBaseEvent {\n\tref: HTMLGovThemeSwitchElement;\n\tstate: ThemeList\n}\n\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {GovHost} from \"../../helpers/Dom/template.types\";\nimport {govHost} from \"../../helpers/Dom/template\";\nimport {ATTRIBUTE_THEME_NAME, ThemeSwitchClass, ThemeSwitchSizes, ThemeSwitchSizesType} from \"./constants\";\nimport {isWindow} from \"../../helpers/Dom/win\";\nimport {ThemeList, ThemeSwitchEvent} from \"./gov-theme-switch.types\";\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {getCookie, setCookie} from \"../../helpers/Dom/document\";\n\n@Component({\n\ttag: \"gov-theme-switch\",\n})\nexport class GovThemeSwitch {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovThemeSwitchElement\n\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: ThemeSwitchSizesType = \"m\"\n\t/**\n\t * Display switch label\n\t */\n\t@Prop({attribute: \"display-label\"}) readonly displayLabel? = false\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"aria-label-light\"}) readonly ariaLabelLight? = \"Přenout na tmavý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"aria-label-dark\"}) readonly ariaLabelDark? = \"Přepnout na světlý mód\"\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"label-light\"}) readonly labelLight? = \"Světlý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"label-dark\"}) readonly labelDark? = \"Tmavý mód\"\n\t/**\n\t * Called when the theme is changed by the user\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<ThemeSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ThemeSwitchSizes, newValue, ThemeSwitchClass.root)\n\t}\n\n\t@Watch(\"theme\")\n\twatchTheme(newValue: ThemeList): void {\n\t\tthis.htmlElement.setAttribute(ATTRIBUTE_THEME_NAME, newValue);\n\t\tthis.htmlElement.classList.remove(...Object.keys(ThemeList));\n\t\tthis.htmlElement.classList.add(newValue);\n\t\tsetCookie(ATTRIBUTE_THEME_NAME, newValue);\n\t}\n\n\t@State() theme: ThemeList = ThemeList.auto\n\n\tprivate get storageValue() {\n\t\treturn getCookie(ATTRIBUTE_THEME_NAME)\n\t}\n\n\tprivate get htmlElement(): HTMLElement {\n\t\treturn document.documentElement\n\t}\n\n\tprivate get isSystemPrefersColorDark(): boolean {\n\t\treturn isWindow && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.initDefaultState()\n\t\tthis.validateSize(this.size)\n\t}\n\n\tprivate initDefaultState() {\n\t\tconst options = Object.keys(ThemeList);\n\t\tlet currentState = this.storageValue;\n\t\tconst htmlState = this.htmlElement.getAttribute(ATTRIBUTE_THEME_NAME)\n\n\t\tif (currentState && options.includes(currentState)) {\n\t\t\tthis.theme = currentState as ThemeList;\n\t\t} else if (htmlState && options.includes(htmlState)) {\n\t\t\tthis.theme = htmlState as ThemeList;\n\t\t} else {\n\t\t\tthis.theme = ThemeList.auto;\n\t\t}\n\t}\n\n\tprivate setThemeState = (state: ThemeList) => {\n\t\tthis.theme = state;\n\n\t\tthis.govChange.emit({\n\t\t\tcomponent: ThemeSwitchClass.root,\n\t\t\tstate: this.theme,\n\t\t\tref: this.host\n\t\t})\n\t}\n\n\trender() {\n\t\tlet isDark = this.theme === ThemeList.dark;\n\t\tif (this.theme === ThemeList.auto) {\n\t\t\tisDark = this.isSystemPrefersColorDark;\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ThemeSwitchClass.root)}\n\t\t\t\t theme={isDark ? ThemeList.dark : ThemeList.light}\n\t\t\t\t size={this.size}>\n\t\t\t\t<button onClick={() => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark)}\n\t\t\t\t\t\taria-current={this.theme}\n\t\t\t\t\t\taria-label={isDark ? this.ariaLabelDark : this.ariaLabelLight}>\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<span class={ThemeSwitchClass.indicator}>\n\t\t\t\t\t\t\t{ThemeList.light && <gov-icon name=\"sun\" class={ThemeSwitchClass.iconLight} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t{ThemeList.dark && <gov-icon name=\"moon\" class={ThemeSwitchClass.iconDark} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t{this.displayLabel ? (\n\t\t\t\t\t\t\t<span class={ThemeSwitchClass.label}>\n\t\t\t\t\t\t\t\t{isDark ? this.labelDark : this.labelLight}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t}\n\t\t\t\t\t</span>\n\t\t\t\t</button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,h as s,a as t,g as d}from"./p-9dea2efa.js";import{G as r}from"./p-ea128b8b.js";import{g as i}from"./p-ea7fdd2e.js";import"./p-92f420cb.js";const a=class{constructor(s){e(this,s);this.columns="12";this.alignItems=undefined;this.justifyItems=undefined;this.gap=undefined;this.h=i(this.host)}render(){return s(t,{key:"7092dda416db17f4137ecd04bea2659dfe76b0e0",class:this.h.classes(r.root),role:"list"},s("slot",{key:"b05231f0b950cd8c6830ee96e3d16e798ed97835"}))}get host(){return d(this)}};export{a as gov_grid};
2
+ //# sourceMappingURL=p-9c1601b3.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GovGrid","constructor","hostRef","this","h","govHost","host","render","Host","key","class","classes","GridClass","root","role"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass, GridSizesType } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Setting the number of grid columns\n\t */\n\t@Prop({ attribute: 'columns', reflect: true }) columns?: string = \"12\";\n\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-items', reflect: true }) alignItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'justify-items', reflect: true }) justifyItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({ attribute: 'gap', reflect: true }) gap?: GridSizesType;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"+JAQaA,EAAO,MAGnB,WAAAC,CAAAC,G,uBASkE,K,yEARjEC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAyBvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQC,EAAUC,MAAOC,KAAK,QACjDV,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ const e="core";const t={allRenderFn:true,appendChildSlotFix:true,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:true,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:true,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:true,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:true,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:false,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:true,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var l=Object.defineProperty;var n=(e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:true})};var r=new WeakMap;var s=e=>r.get(e);var i=(e,t)=>r.set(t.t=e,t);var o=(e,t)=>{const l={l:0,$hostElement$:e,i:t,o:new Map};{l.u=new Promise((e=>l.v=e))}{l.p=new Promise((e=>l.h=e));e["s-p"]=[];e["s-rc"]=[]}return r.set(e,l)};var a=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var c=new Map;var u=(e,t,l)=>{const n=e.m.replace(/-/g,"_");const r=e.$;if(!r){return void 0}const s=c.get(r);if(s){return s[n]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${""}`).then((e=>{{c.set(r,e)}return e[n]}),f)};var v=new Map;var d="r";var p="o";var h="s";var m="t";var $="s-id";var y="sty-id";var b="c-id";var w="slot-fb{display:contents}slot-fb[hidden]{display:none}";var g="http://www.w3.org/1999/xlink";var S=typeof window!=="undefined"?window:{};var k=S.document||{head:{}};var C=S.HTMLElement||class{};var x={l:0,S:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,l,n)=>e.addEventListener(t,l,n),rel:(e,t,l,n)=>e.removeEventListener(t,l,n),ce:(e,t)=>new CustomEvent(e,t)};var j=t.shadowDom;var O=e=>Promise.resolve(e);var R=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var T=false;var D=[];var L=[];var E=(e,t)=>l=>{e.push(l);if(!T){T=true;if(t&&x.l&4){M(F)}else{x.raf(F)}}};var A=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var F=()=>{A(D);{A(L);if(T=D.length>0){x.raf(F)}}};var M=e=>O().then(e);var P=E(L,true);var N={};var U=e=>e!=null;var W=e=>{e=typeof e;return e==="object"||e==="function"};function I(e){var t,l,n;return(n=(l=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:l.getAttribute("content"))!=null?n:void 0}var H={};n(H,{err:()=>B,map:()=>Q,ok:()=>z,unwrap:()=>q,unwrapErr:()=>G});var z=e=>({isOk:true,isErr:false,value:e});var B=e=>({isOk:false,isErr:true,value:e});function Q(e,t){if(e.isOk){const l=t(e.value);if(l instanceof Promise){return l.then((e=>z(e)))}else{return z(l)}}if(e.isErr){const t=e.value;return B(t)}throw"should never get here"}var q=e=>{if(e.isOk){return e.value}else{throw e.value}};var G=e=>{if(e.isErr){return e.value}else{throw e.value}};var K=(e,t="")=>{{return()=>{}}};var V=(e,t)=>{{return()=>{}}};var X=(e,t,...l)=>{let n=null;let r=null;let s=null;let i=false;let o=false;const a=[];const f=t=>{for(let l=0;l<t.length;l++){n=t[l];if(Array.isArray(n)){f(n)}else if(n!=null&&typeof n!=="boolean"){if(i=typeof e!=="function"&&!W(n)){n=String(n)}if(i&&o){a[a.length-1].k+=n}else{a.push(i?_(null,n):n)}o=i}}};f(l);if(t){if(t.key){r=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,a,Z)}const c=_(e,null);c.C=t;if(a.length>0){c.j=a}{c.O=r}{c.R=s}return c};var _=(e,t)=>{const l={l:0,T:e,k:t,D:null,j:null};{l.C=null}{l.O=null}{l.R=null}return l};var J={};var Y=e=>e&&e.T===J;var Z={forEach:(e,t)=>e.map(ee).forEach(t),map:(e,t)=>e.map(ee).map(t).map(te)};var ee=e=>({vattrs:e.C,vchildren:e.j,vkey:e.O,vname:e.R,vtag:e.T,vtext:e.k});var te=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return X(e.vtag,t,...e.vchildren||[])}const t=_(e.vtag,e.vtext);t.C=e.vattrs;t.j=e.vchildren;t.O=e.vkey;t.R=e.vname;return t};var le=(e,t,l,n)=>{const r=K("hydrateClient",t);const s=e.shadowRoot;const i=[];const o=[];const a=null;const f=n.L=_(t,null);if(!x.A){re(k.body,x.A=new Map)}e[$]=l;e.removeAttribute($);ne(f,i,o,a,e,e,l);i.map((e=>{const l=e.F+"."+e.M;const n=x.A.get(l);const r=e.D;if(n&&j&&n["s-en"]===""){n.parentNode.insertBefore(r,n.nextSibling)}if(!s){r["s-hn"]=t;if(n){r["s-ol"]=n;r["s-ol"]["s-nr"]=r}}x.A.delete(l)}));r()};var ne=(e,t,l,n,r,s,i)=>{let o;let a;let f;let c;if(s.nodeType===1){o=s.getAttribute(b);if(o){a=o.split(".");if(a[0]===i||a[0]==="0"){f={l:0,F:a[0],M:a[1],P:a[2],N:a[3],T:s.tagName.toLowerCase(),D:s,C:null,j:null,O:null,R:null,k:null};t.push(f);s.removeAttribute(b);if(!e.j){e.j=[]}e.j[f.N]=f;e=f;if(n&&f.P==="0"){n[f.N]=f.D}}}if(s.shadowRoot){for(c=s.shadowRoot.childNodes.length-1;c>=0;c--){ne(e,t,l,n,r,s.shadowRoot.childNodes[c],i)}}for(c=s.childNodes.length-1;c>=0;c--){ne(e,t,l,n,r,s.childNodes[c],i)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===i||a[1]==="0"){o=a[0];f={l:0,F:a[1],M:a[2],P:a[3],N:a[4],D:s,C:null,j:null,O:null,R:null,T:null,k:null};if(o===m){f.D=s.nextSibling;if(f.D&&f.D.nodeType===3){f.k=f.D.textContent;t.push(f);s.remove();if(!e.j){e.j=[]}e.j[f.N]=f;if(n&&f.P==="0"){n[f.N]=f.D}}}else if(f.F===i){if(o===h){f.T="slot";if(a[5]){s["s-sn"]=f.R=a[5]}else{s["s-sn"]=""}s["s-sr"]=true;l.push(f);if(!e.j){e.j=[]}e.j[f.N]=f}else if(o===d){{r["s-cr"]=s;s["s-cn"]=true}}}}}else if(e&&e.T==="style"){const t=_(null,s.textContent);t.D=s;t.N="0";e.j=[t]}};var re=(e,t)=>{if(e.nodeType===1){let l=0;if(e.shadowRoot){for(;l<e.shadowRoot.childNodes.length;l++){re(e.shadowRoot.childNodes[l],t)}}for(l=0;l<e.childNodes.length;l++){re(e.childNodes[l],t)}}else if(e.nodeType===8){const l=e.nodeValue.split(".");if(l[0]===p){t.set(l[1]+"."+l[2],e);e.nodeValue="";e["s-en"]=l[3]}}};var se=(e,t)=>{if(e!=null&&!W(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var ie=e=>s(e).$hostElement$;var oe=(e,t,l)=>{const n=ie(e);return{emit:e=>ae(n,t,{bubbles:!!(l&4),composed:!!(l&2),cancelable:!!(l&1),detail:e})}};var ae=(e,t,l)=>{const n=x.ce(t,l);e.dispatchEvent(n);return n};var fe=new WeakMap;var ce=(e,t,l)=>{let n=v.get(e);if(R&&l){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}v.set(e,n)};var ue=(e,t,l)=>{var n;const r=de(t);const s=v.get(r);e=e.nodeType===11?e:k;if(s){if(typeof s==="string"){e=e.head||e;let l=fe.get(e);let i;if(!l){fe.set(e,l=new Set)}if(!l.has(r)){if(e.host&&(i=e.querySelector(`[${y}="${r}"]`))){i.innerHTML=s}else{i=k.createElement("style");i.innerHTML=s;const l=(n=x.U)!=null?n:I(k);if(l!=null){i.setAttribute("nonce",l)}const r=!(t.l&1)||t.l&1&&e.nodeName!=="HEAD";if(r){e.insertBefore(i,e.querySelector("link"))}}if(t.l&4){i.innerHTML+=w}if(l){l.add(r)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return r};var ve=e=>{const t=e.i;const l=e.$hostElement$;const n=K("attachStyles",t.m);ue(l.getRootNode(),t);n()};var de=(e,t)=>"sc-"+e.m;var pe=(e,t,l,n,r,s)=>{if(l!==n){let i=a(e,t);let o=t.toLowerCase();if(t==="class"){const t=e.classList;const r=me(l);const s=me(n);t.remove(...r.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!r.includes(e))))}else if(t==="style"){{for(const t in l){if(!n||n[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in n){if(!l||n[t]!==l[t]){if(t.includes("-")){e.style.setProperty(t,n[t])}else{e.style[t]=n[t]}}}}else if(t==="key");else if(t==="ref"){if(n){n(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(S,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(l||n){const r=t.endsWith($e);t=t.replace(ye,"");if(l){x.rel(e,t,l,r)}if(n){x.ael(e,t,n,r)}}}else{const a=W(n);if((i||a&&n!==null)&&!r){try{if(!e.tagName.includes("-")){const r=n==null?"":n;if(t==="list"){i=false}else if(l==null||e[t]!=r){e[t]=r}}else{e[t]=n}}catch(e){}}let f=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;f=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(f){e.removeAttributeNS(g,t)}else{e.removeAttribute(t)}}}else if((!i||s&4||r)&&!a){n=n===true?"":n;if(f){e.setAttributeNS(g,t,n)}else{e.setAttribute(t,n)}}}}};var he=/\s/;var me=e=>!e?[]:e.split(he);var $e="Capture";var ye=new RegExp($e+"$");var be=(e,t,l)=>{const n=t.D.nodeType===11&&t.D.host?t.D.host:t.D;const r=e&&e.C||N;const s=t.C||N;{for(const e of we(Object.keys(r))){if(!(e in s)){pe(n,e,r[e],void 0,l,t.l)}}}for(const e of we(Object.keys(s))){pe(n,e,r[e],s[e],l,t.l)}};function we(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ge;var Se;var ke;var Ce=false;var xe=false;var je=false;var Oe=false;var Re=(e,l,n,r)=>{var s;const i=l.j[n];let o=0;let a;let f;let c;if(!Ce){je=true;if(i.T==="slot"){i.l|=i.j?2:1}}if(i.k!==null){a=i.D=k.createTextNode(i.k)}else if(i.l&1){a=i.D=k.createTextNode("")}else{a=i.D=k.createElement(!Ce&&t.slotRelocation&&i.l&2?"slot-fb":i.T);{be(null,i,Oe)}const l=a.getRootNode();const n=!l.querySelector("body");if(!n&&t.scoped&&U(ge)&&a["s-si"]!==ge){a.classList.add(a["s-si"]=ge)}if(i.j){for(o=0;o<i.j.length;++o){f=Re(e,i,o);if(f){a.appendChild(f)}}}}a["s-hn"]=ke;{if(i.l&(2|1)){a["s-sr"]=true;a["s-cr"]=Se;a["s-sn"]=i.R||"";a["s-rf"]=(s=i.C)==null?void 0:s.ref;c=e&&e.j&&e.j[n];if(c&&c.T===i.T&&e.D){{Te(e.D)}}}}return a};var Te=e=>{x.l|=1;const t=e.closest(ke.toLowerCase());if(t!=null){const l=Array.from(t.childNodes).find((e=>e["s-cr"]));const n=Array.from(e.childNodes);for(const e of l?n.reverse():n){if(e["s-sh"]!=null){Be(t,e,l!=null?l:null);e["s-sh"]=void 0;je=true}}}x.l&=~1};var De=(e,l)=>{x.l|=1;const n=Array.from(e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===ke){n.push(t)}}}for(let e=n.length-1;e>=0;e--){const t=n[e];if(t["s-hn"]!==ke&&t["s-ol"]){Be(Pe(t),t,Me(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;je=true}if(l){De(t,l)}}x.l&=~1};var Le=(e,t,l,n,r,s)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let o;for(;r<=s;++r){if(n[r]){o=Re(null,l,r);if(o){n[r].D=o;Be(i,o,Me(t))}}}};var Ee=(e,t,l)=>{for(let n=t;n<=l;++n){const t=e[n];if(t){const e=t.D;ze(t);if(e){{xe=true;if(e["s-ol"]){e["s-ol"].remove()}else{De(e,true)}}e.remove()}}}};var Ae=(e,t,l,n,r=false)=>{let s=0;let i=0;let o=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let v=n.length-1;let d=n[0];let p=n[v];let h;let m;while(s<=f&&i<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--f]}else if(d==null){d=n[++i]}else if(p==null){p=n[--v]}else if(Fe(c,d,r)){Ne(c,d,r);c=t[++s];d=n[++i]}else if(Fe(u,p,r)){Ne(u,p,r);u=t[--f];p=n[--v]}else if(Fe(c,p,r)){if(c.T==="slot"||p.T==="slot"){De(c.D.parentNode,false)}Ne(c,p,r);Be(e,c.D,u.D.nextSibling);c=t[++s];p=n[--v]}else if(Fe(u,d,r)){if(c.T==="slot"||p.T==="slot"){De(u.D.parentNode,false)}Ne(u,d,r);Be(e,u.D,c.D);u=t[--f];d=n[++i]}else{o=-1;{for(a=s;a<=f;++a){if(t[a]&&t[a].O!==null&&t[a].O===d.O){o=a;break}}}if(o>=0){m=t[o];if(m.T!==d.T){h=Re(t&&t[i],l,o)}else{Ne(m,d,r);t[o]=void 0;h=m.D}d=n[++i]}else{h=Re(t&&t[i],l,i);d=n[++i]}if(h){{Be(Pe(c.D),h,Me(c.D))}}}}if(s>f){Le(e,n[v+1]==null?null:n[v+1].D,l,n,i,v)}else if(i>v){Ee(t,s,f)}};var Fe=(e,t,l=false)=>{if(e.T===t.T){if(e.T==="slot"){if("M"in e&&l&&e.D.nodeType!==8){return false}return e.R===t.R}if(!l){return e.O===t.O}return true}return false};var Me=e=>e&&e["s-ol"]||e;var Pe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;var Ne=(e,l,n=false)=>{const r=l.D=e.D;const s=e.j;const i=l.j;const o=l.T;const a=l.k;let f;if(a===null){{if(o==="slot"&&!Ce){if(e.R!==l.R){l.D["s-sn"]=l.R||"";Te(l.D.parentElement)}}else{be(e,l,Oe)}}if(s!==null&&i!==null){Ae(r,s,l,i,n)}else if(i!==null){if(e.k!==null){r.textContent=""}Le(r,null,l,i,0,i.length-1)}else if(!n&&t.updatable&&s!==null){Ee(s,0,s.length-1)}}else if(f=r["s-cr"]){f.parentNode.textContent=a}else if(e.k!==a){r.data=a}};var Ue=e=>{const t=e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const l=e["s-sn"];e.hidden=false;for(const n of t){if(n!==e){if(n["s-hn"]!==e["s-hn"]||l!==""){if(n.nodeType===1&&(l===n.getAttribute("slot")||l===n["s-sn"])||n.nodeType===3&&l===n["s-sn"]){e.hidden=true;break}}else{if(n.nodeType===1||n.nodeType===3&&n.textContent.trim()!==""){e.hidden=true;break}}}}}Ue(e)}}};var We=[];var Ie=e=>{let t;let l;let n;for(const r of e.childNodes){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){l=t.parentNode.childNodes;const e=r["s-sn"];for(n=l.length-1;n>=0;n--){t=l[n];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==r["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==r["s-hn"])){if(He(t,e)){let l=We.find((e=>e.W===t));xe=true;t["s-sn"]=t["s-sn"]||e;if(l){l.W["s-sh"]=r["s-hn"];l.I=r}else{t["s-sh"]=r["s-hn"];We.push({I:r,W:t})}if(t["s-sr"]){We.map((e=>{if(He(e.W,t["s-sn"])){l=We.find((e=>e.W===t));if(l&&!e.I){e.I=l.I}}}))}}else if(!We.some((e=>e.W===t))){We.push({W:t})}}}}if(r.nodeType===1){Ie(r)}}};var He=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var ze=e=>{{e.C&&e.C.ref&&e.C.ref(null);e.j&&e.j.map(ze)}};var Be=(e,t,l)=>{const n=e==null?void 0:e.insertBefore(t,l);return n};var Qe=(e,t,l=false)=>{var n,r,s,i;const o=e.$hostElement$;const a=e.i;const f=e.L||_(null,null);const c=Y(t)?t:X(null,null,t);ke=o.tagName;if(a.H){c.C=c.C||{};a.H.map((([e,t])=>c.C[t]=o[e]))}if(l&&c.C){for(const e of Object.keys(c.C)){if(o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){c.C[e]=o[e]}}}c.T=null;c.l|=4;e.L=c;c.D=f.D=o;Ce=j;{Se=o["s-cr"];xe=false}Ne(f,c,l);{x.l|=1;if(je){Ie(c.D);for(const e of We){const t=e.W;if(!t["s-ol"]){const e=k.createTextNode("");e["s-nr"]=t;Be(t.parentNode,t["s-ol"]=e,t)}}for(const e of We){const t=e.W;const o=e.I;if(o){const e=o.parentNode;let l=o.nextSibling;if(l&&l.nodeType===1){let s=(n=t["s-ol"])==null?void 0:n.previousSibling;while(s){let n=(r=s["s-nr"])!=null?r:null;if(n&&n["s-sn"]===t["s-sn"]&&e===n.parentNode){n=n.nextSibling;while(n===t||(n==null?void 0:n["s-sr"])){n=n==null?void 0:n.nextSibling}if(!n||!n["s-nr"]){l=n;break}}s=s.previousSibling}}if(!l&&e!==t.parentNode||t.nextSibling!==l){if(t!==l){Be(e,t,l);if(t.nodeType===1){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](t)}else{if(t.nodeType===1){if(l){t["s-ih"]=(i=t.hidden)!=null?i:false}t.hidden=true}}}}if(xe){Ue(c.D)}x.l&=~1;We.length=0}Se=void 0};var qe=(e,t)=>{if(t&&!e.B&&t["s-p"]){t["s-p"].push(new Promise((t=>e.B=t)))}};var Ge=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}qe(e,e.q);const l=()=>Ke(e,t);return P(l)};var Ke=(e,t)=>{const l=e.$hostElement$;const n=K("scheduleUpdate",e.i.m);const r=e.t;if(!r){throw new Error(`Can't render component <${l.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{s=et(r,"componentWillLoad")}}else{{s=et(r,"componentWillUpdate")}}{s=Ve(s,(()=>et(r,"componentWillRender")))}n();return Ve(s,(()=>_e(e,r,t)))};var Ve=(e,t)=>Xe(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Xe=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var _e=async(e,t,l)=>{var n;const r=e.$hostElement$;const s=K("update",e.i.m);const i=r["s-rc"];if(l){ve(e)}const o=K("render",e.i.m);{Je(e,t,r,l)}if(i){i.map((e=>e()));r["s-rc"]=void 0}o();s();{const t=(n=r["s-p"])!=null?n:[];const l=()=>Ye(e);if(t.length===0){l()}else{Promise.all(t).then(l);e.l|=4;t.length=0}}};var Je=(e,t,l,n)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{Qe(e,t,n)}}}}catch(t){f(t,e.$hostElement$)}return null};var Ye=e=>{const t=e.i.m;const l=e.$hostElement$;const n=K("postUpdate",t);const r=e.t;const s=e.q;{et(r,"componentDidRender")}if(!(e.l&64)){e.l|=64;{tt(l)}{et(r,"componentDidLoad")}n();{e.h(l);if(!s){Ze()}}}else{{et(r,"componentDidUpdate")}n()}{e.v(l)}{if(e.B){e.B();e.B=void 0}if(e.l&512){M((()=>Ge(e,false)))}e.l&=~(4|512)}};var Ze=t=>{{tt(k.documentElement)}M((()=>ae(S,"appload",{detail:{namespace:e}})))};var et=(e,t,l)=>{if(e&&e[t]){try{return e[t](l)}catch(e){f(e)}}return void 0};var tt=e=>{var l;return e.classList.add((l=t.hydratedSelectorName)!=null?l:"hydrated")};var lt=(e,t)=>s(e).o.get(t);var nt=(e,t,l,n)=>{const r=s(e);if(!r){throw new Error(`Couldn't find host element for "${n.m}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const i=r.$hostElement$;const o=r.o.get(t);const a=r.l;const c=r.t;l=se(l,n.G[t][0]);const u=Number.isNaN(o)&&Number.isNaN(l);const v=l!==o&&!u;if((!(a&8)||o===void 0)&&v){r.o.set(t,l);if(c){if(n.K&&a&128){const e=n.K[t];if(e){e.map((e=>{try{c[e](l,o,t)}catch(e){f(e,i)}}))}}if((a&(2|16))===2){if(c.componentShouldUpdate){if(c.componentShouldUpdate(l,o,t)===false){return}}Ge(r,false)}}}};var rt=(e,t,l)=>{var n,r;const i=e.prototype;if(t.G||(t.K||e.watchers)){if(e.watchers&&!t.K){t.K=e.watchers}const o=Object.entries((n=t.G)!=null?n:{});o.map((([e,[n]])=>{if(n&31||l&2&&n&32){Object.defineProperty(i,e,{get(){return lt(this,e)},set(l){nt(this,e,l,t)},configurable:true,enumerable:true})}else if(l&1&&n&64){Object.defineProperty(i,e,{value(...t){var l;const n=s(this);return(l=n==null?void 0:n.u)==null?void 0:l.then((()=>{var l;return(l=n.t)==null?void 0:l[e](...t)}))}})}}));if(l&1){const l=new Map;i.attributeChangedCallback=function(e,n,r){x.jmp((()=>{var o;const a=l.get(e);if(this.hasOwnProperty(a)){r=this[a];delete this[a]}else if(i.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==r){return}else if(a==null){const l=s(this);const i=l==null?void 0:l.l;if(i&&!(i&8)&&i&128&&r!==n){const s=l.t;const i=(o=t.K)==null?void 0:o[e];i==null?void 0:i.forEach((t=>{if(s[t]!=null){s[t].call(s,r,n,e)}}))}return}this[a]=r===null&&typeof this[a]==="boolean"?false:r}))};e.observedAttributes=Array.from(new Set([...Object.keys((r=t.K)!=null?r:{}),...o.filter((([e,t])=>t[0]&15)).map((([e,n])=>{var r;const s=n[1]||e;l.set(s,e);if(n[0]&512){(r=t.H)==null?void 0:r.push([e,s])}return s}))]))}}return e};var st=async(e,t,l,n)=>{let r;if((t.l&32)===0){t.l|=32;const n=l.$;if(n){const e=u(l);if(e&&"then"in e){const t=V();r=await e;t()}else{r=e}if(!r){throw new Error(`Constructor for "${l.m}#${t.V}" was not found`)}if(!r.isProxied){{l.K=r.watchers}rt(r,l,2);r.isProxied=true}const n=K("createInstance",l.m);{t.l|=8}try{new r(t)}catch(e){f(e)}{t.l&=~8}{t.l|=128}n();it(t.t)}else{r=e.constructor;const l=e.localName;customElements.whenDefined(l).then((()=>t.l|=128))}if(r&&r.style){let e;if(typeof r.style==="string"){e=r.style}const t=de(l);if(!v.has(t)){const n=K("registerStyles",l.m);ce(t,e,!!(l.l&1));n()}}}const s=t.q;const i=()=>Ge(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var it=e=>{{et(e,"connectedCallback")}};var ot=e=>{if((x.l&1)===0){const t=s(e);const l=t.i;const n=K("connectedCallback",l.m);if(!(t.l&1)){t.l|=1;let n;{n=e.getAttribute($);if(n){le(e,l.m,n,t)}}if(!n){if(l.l&(4|8)){at(e)}}{let l=e;while(l=l.parentNode||l.host){if(l.nodeType===1&&l.hasAttribute("s-id")&&l["s-p"]||l["s-p"]){qe(t,t.q=l);break}}}if(l.G){Object.entries(l.G).map((([t,[l]])=>{if(l&31&&e.hasOwnProperty(t)){const l=e[t];delete e[t];e[t]=l}}))}{st(e,t,l)}}else{if(t==null?void 0:t.t){it(t.t)}else if(t==null?void 0:t.p){t.p.then((()=>it(t.t)))}}n()}};var at=e=>{const t=e["s-cr"]=k.createComment("");t["s-cn"]=true;Be(e,t,e.firstChild)};var ft=e=>{{et(e,"disconnectedCallback")}};var ct=async e=>{if((x.l&1)===0){const t=s(e);if(t==null?void 0:t.t){ft(t.t)}else if(t==null?void 0:t.p){t.p.then((()=>ft(t.t)))}}};var ut=(e,t={})=>{var l;const n=K();const r=[];const i=t.exclude||[];const a=S.customElements;const f=k.head;const c=f.querySelector("meta[charset]");const u=k.createElement("style");const v=[];let d;let p=true;Object.assign(x,t);x.S=new URL(t.resourcesUrl||"./",k.baseURI).href;{x.l|=2}let h=false;e.map((e=>{e[1].map((t=>{var l;const n={l:t[0],m:t[1],G:t[2],X:t[3]};if(n.l&4){h=true}{n.G=t[2]}{n.H=[]}{n.K=(l=t[4])!=null?l:{}}const f=n.m;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;o(e,n)}connectedCallback(){s(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(p){v.push(this)}else{x.jmp((()=>ot(this)))}}disconnectedCallback(){x.jmp((()=>ct(this)))}componentOnReady(){return s(this).p}};n.$=e[0];if(!i.includes(f)&&!a.get(f)){r.push(f);a.define(f,rt(c,n,1))}}))}));if(r.length>0){if(h){u.textContent+=w}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(l=x.U)!=null?l:I(k);if(e!=null){u.setAttribute("nonce",e)}f.insertBefore(u,c?c.nextSibling:f.firstChild)}}p=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{x.jmp((()=>d=setTimeout(Ze,30)))}}n()};var vt=(e,t)=>t;var dt=e=>x.U=e;export{vt as F,C as H,J as a,ut as b,oe as c,ie as g,X as h,O as p,i as r,dt as s};
3
+ //# sourceMappingURL=p-9dea2efa.js.map