@gov-design-system-ce/components 4.2.7 → 4.2.9

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 (383) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  2. package/dist/cjs/core.cjs.js +3 -3
  3. package/dist/cjs/core.cjs.js.map +1 -1
  4. package/dist/cjs/gov-accordion-item.cjs.entry.js +1 -1
  5. package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
  6. package/dist/cjs/gov-attachments_3.cjs.entry.js +1 -1
  7. package/dist/cjs/gov-backdrop.cjs.entry.js +1 -1
  8. package/dist/cjs/gov-banner.cjs.entry.js +1 -1
  9. package/dist/cjs/gov-blockquote.cjs.entry.js +1 -1
  10. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/gov-button.cjs.entry.js +1 -1
  12. package/dist/cjs/gov-card.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  14. package/dist/cjs/gov-card.entry.cjs.js.map +1 -1
  15. package/dist/cjs/gov-chip.cjs.entry.js +3 -3
  16. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-chip.entry.cjs.js.map +1 -1
  18. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  19. package/dist/cjs/gov-control-group.cjs.entry.js +8 -4
  20. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  21. package/dist/cjs/gov-control-group.entry.cjs.js.map +1 -1
  22. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  23. package/dist/cjs/gov-dialog.cjs.entry.js +1 -1
  24. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  25. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  26. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  27. package/dist/cjs/gov-flex_3.cjs.entry.js +2 -2
  28. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
  29. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +1 -1
  30. package/dist/cjs/gov-form-checkbox.cjs.entry.js +1 -1
  31. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  32. package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
  33. package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
  34. package/dist/cjs/gov-form-input_2.cjs.entry.js +1 -1
  35. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  36. package/dist/cjs/gov-form-multi-select.cjs.entry.js +1 -1
  37. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  38. package/dist/cjs/gov-form-radio-group.cjs.entry.js +1 -1
  39. package/dist/cjs/gov-form-radio.cjs.entry.js +1 -1
  40. package/dist/cjs/gov-form-range.cjs.entry.js +1 -1
  41. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  42. package/dist/cjs/gov-form-select.cjs.entry.js +1 -1
  43. package/dist/cjs/gov-form-switch.cjs.entry.js +1 -1
  44. package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
  45. package/dist/cjs/gov-grid.cjs.entry.js +1 -1
  46. package/dist/cjs/gov-infobar.cjs.entry.js +1 -1
  47. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  48. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  49. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  50. package/dist/cjs/gov-link.cjs.entry.js +1 -1
  51. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  52. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  53. package/dist/cjs/gov-pagination.cjs.entry.js +1 -1
  54. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  55. package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
  56. package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
  57. package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
  58. package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
  59. package/dist/cjs/gov-tag.cjs.entry.js +1 -1
  60. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  61. package/dist/cjs/gov-toast.cjs.entry.js +1 -1
  62. package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
  63. package/dist/cjs/gov-tooltip.cjs.entry.js +1 -1
  64. package/dist/cjs/gov-wizard-item.cjs.entry.js +1 -1
  65. package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
  66. package/dist/cjs/{index-BEF5cZxd.js → index-pjwoybrU.js} +482 -140
  67. package/dist/cjs/index-pjwoybrU.js.map +1 -0
  68. package/dist/cjs/loader.cjs.js +2 -2
  69. package/dist/collection/collection-manifest.json +1 -1
  70. package/dist/collection/components/gov-card/gov-card.js +1 -1
  71. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  72. package/dist/collection/components/gov-chip/gov-chip.js +2 -2
  73. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  74. package/dist/collection/components/gov-control-group/constants.js +1 -1
  75. package/dist/collection/components/gov-control-group/constants.js.map +1 -1
  76. package/dist/collection/components/gov-control-group/gov-control-group.js +28 -4
  77. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
  78. package/dist/collection/pages/Chip.js +8 -5
  79. package/dist/collection/pages/Chip.js.map +1 -1
  80. package/dist/collection/pages/ControlGroup.js +94 -3
  81. package/dist/collection/pages/ControlGroup.js.map +1 -1
  82. package/dist/collection/pages/Forms.js +12 -1
  83. package/dist/collection/pages/Forms.js.map +1 -1
  84. package/dist/collection/pages/Tiles.js +3 -3
  85. package/dist/collection/pages/Tiles.js.map +1 -1
  86. package/dist/collection/pages/Tooltip.js +10 -0
  87. package/dist/collection/pages/Tooltip.js.map +1 -1
  88. package/dist/components/gov-accordion-item.js +1 -1
  89. package/dist/components/gov-accordion.js +1 -1
  90. package/dist/components/gov-attachments-item.js +1 -1
  91. package/dist/components/gov-attachments.js +1 -1
  92. package/dist/components/gov-backdrop.js +1 -1
  93. package/dist/components/gov-banner.js +1 -1
  94. package/dist/components/gov-blockquote.js +1 -1
  95. package/dist/components/gov-breadcrumbs.js +1 -1
  96. package/dist/components/gov-button.js +1 -1
  97. package/dist/components/gov-card.js +1 -1
  98. package/dist/components/gov-card.js.map +1 -1
  99. package/dist/components/gov-chip.js +1 -1
  100. package/dist/components/gov-container.js +1 -1
  101. package/dist/components/gov-control-group.js +1 -1
  102. package/dist/components/gov-control-group.js.map +1 -1
  103. package/dist/components/gov-cookiebar.js +1 -1
  104. package/dist/components/gov-dialog.js +1 -1
  105. package/dist/components/gov-dropdown.js +1 -1
  106. package/dist/components/gov-empty.js +1 -1
  107. package/dist/components/gov-error-code.js +1 -1
  108. package/dist/components/gov-flex.js +1 -1
  109. package/dist/components/gov-form-autocomplete.js +1 -1
  110. package/dist/components/gov-form-checkbox-group.js +1 -1
  111. package/dist/components/gov-form-checkbox.js +1 -1
  112. package/dist/components/gov-form-control.js +1 -1
  113. package/dist/components/gov-form-file.js +1 -1
  114. package/dist/components/gov-form-group.js +1 -1
  115. package/dist/components/gov-form-input.js +1 -1
  116. package/dist/components/gov-form-label.js +1 -1
  117. package/dist/components/gov-form-message.js +1 -1
  118. package/dist/components/gov-form-multi-select.js +1 -1
  119. package/dist/components/gov-form-password-power.js +1 -1
  120. package/dist/components/gov-form-radio-group.js +1 -1
  121. package/dist/components/gov-form-radio.js +1 -1
  122. package/dist/components/gov-form-range.js +1 -1
  123. package/dist/components/gov-form-search.js +1 -1
  124. package/dist/components/gov-form-select.js +1 -1
  125. package/dist/components/gov-form-switch.js +1 -1
  126. package/dist/components/gov-grid-item.js +1 -1
  127. package/dist/components/gov-grid.js +1 -1
  128. package/dist/components/gov-icon.js +1 -1
  129. package/dist/components/gov-infobar.js +1 -1
  130. package/dist/components/gov-layout-column.js +1 -1
  131. package/dist/components/gov-layout.js +1 -1
  132. package/dist/components/gov-lifecycle.js +1 -1
  133. package/dist/components/gov-link.js +1 -1
  134. package/dist/components/gov-loading.js +1 -1
  135. package/dist/components/gov-message.js +1 -1
  136. package/dist/components/gov-pagination.js +1 -1
  137. package/dist/components/gov-skeleton.js +1 -1
  138. package/dist/components/gov-spacer.js +1 -1
  139. package/dist/components/gov-stepper-item.js +1 -1
  140. package/dist/components/gov-stepper.js +1 -1
  141. package/dist/components/gov-tabs-item.js +1 -1
  142. package/dist/components/gov-tabs.js +1 -1
  143. package/dist/components/gov-tag.js +1 -1
  144. package/dist/components/gov-theme-switch.js +1 -1
  145. package/dist/components/gov-tile.js +1 -1
  146. package/dist/components/gov-toast.js +1 -1
  147. package/dist/components/gov-tooltip-content.js +1 -1
  148. package/dist/components/gov-tooltip.js +1 -1
  149. package/dist/components/gov-wizard-item.js +1 -1
  150. package/dist/components/gov-wizard.js +1 -1
  151. package/dist/components/index.js +1 -1
  152. package/dist/components/index.js.map +1 -1
  153. package/dist/components/{p-vuyK2av-.js → p-9COKmDO0.js} +2 -2
  154. package/dist/components/{p-D82BPGeo.js → p-B03Rpjps.js} +2 -2
  155. package/dist/components/{p-DxCeyMKq.js → p-CXbpWAIF.js} +2 -2
  156. package/dist/components/{p-DGsyEn3-.js → p-Cta_74Ps.js} +2 -2
  157. package/dist/components/{p-DkoI3xas.js → p-Cy7Wk3yM.js} +2 -2
  158. package/dist/components/{p-CNXZgyfX.js → p-D4Z6jWqx.js} +2 -2
  159. package/dist/components/{p-CNRG3ZtC.js → p-DJ1DN3ks.js} +2 -2
  160. package/dist/components/{p-Dj3UNRiz.js → p-DTn9nVrF.js} +2 -2
  161. package/dist/components/p-Dmr81UhL.js +2 -0
  162. package/dist/components/p-Dmr81UhL.js.map +1 -0
  163. package/dist/components/{p-BlqsCTBR.js → p-DnZEr-aq.js} +2 -2
  164. package/dist/components/{p-yUYC6pA5.js → p-wlTP5ZEU.js} +2 -2
  165. package/dist/core/core.css +217 -46
  166. package/dist/core/core.esm.js +1 -1
  167. package/dist/core/core.esm.js.map +1 -1
  168. package/dist/core/gov-card.entry.esm.js.map +1 -1
  169. package/dist/core/gov-chip.entry.esm.js.map +1 -1
  170. package/dist/core/gov-control-group.entry.esm.js.map +1 -1
  171. package/dist/core/{p-1fca9440.entry.js → p-01482eb2.entry.js} +2 -2
  172. package/dist/core/{p-7c1d10c4.entry.js → p-0dbda4ab.entry.js} +2 -2
  173. package/dist/core/{p-cb91eed8.entry.js → p-19a408eb.entry.js} +2 -2
  174. package/dist/core/{p-57f8e68a.entry.js → p-1bfbad36.entry.js} +2 -2
  175. package/dist/core/{p-f6a01739.entry.js → p-1f4450cc.entry.js} +2 -2
  176. package/dist/core/{p-a262eb49.entry.js → p-2142c481.entry.js} +2 -2
  177. package/dist/core/{p-e61dceb2.entry.js → p-25a33448.entry.js} +2 -2
  178. package/dist/core/{p-ffd60450.entry.js → p-2affc4c0.entry.js} +2 -2
  179. package/dist/core/{p-db01c95c.entry.js → p-3477fcf1.entry.js} +2 -2
  180. package/dist/core/p-35c24ac5.entry.js +2 -0
  181. package/dist/core/{p-8b866af0.entry.js → p-35cd4ecd.entry.js} +2 -2
  182. package/dist/core/{p-77e3fa09.entry.js → p-35f784be.entry.js} +2 -2
  183. package/dist/core/{p-840fed0e.entry.js → p-37770cee.entry.js} +2 -2
  184. package/dist/core/{p-bc6fe3db.entry.js → p-37b98852.entry.js} +2 -2
  185. package/dist/core/{p-24ec7a60.entry.js → p-48a3bb49.entry.js} +2 -2
  186. package/dist/core/{p-8ca5804b.entry.js → p-4e170f53.entry.js} +2 -2
  187. package/dist/core/{p-b1869b24.entry.js → p-57aac00e.entry.js} +2 -2
  188. package/dist/core/{p-616c2209.entry.js → p-5c9371da.entry.js} +2 -2
  189. package/dist/core/{p-cd82ae8b.entry.js → p-6508f953.entry.js} +2 -2
  190. package/dist/core/{p-03a8226e.entry.js → p-730b823a.entry.js} +2 -2
  191. package/dist/core/p-7b623100.entry.js +2 -0
  192. package/dist/core/p-7b623100.entry.js.map +1 -0
  193. package/dist/core/{p-1d78f520.entry.js → p-7f46f70a.entry.js} +2 -2
  194. package/dist/core/{p-22c2e7e8.entry.js → p-83507d07.entry.js} +2 -2
  195. package/dist/core/{p-877178fe.entry.js → p-871d4318.entry.js} +2 -2
  196. package/dist/core/{p-50b0d5dd.entry.js → p-8873dc4b.entry.js} +2 -2
  197. package/dist/core/{p-750ced1c.entry.js → p-8c942041.entry.js} +2 -2
  198. package/dist/core/{p-0a50f540.entry.js → p-8d42ee97.entry.js} +2 -2
  199. package/dist/core/{p-5f2cbcf6.entry.js → p-8dceba0b.entry.js} +2 -2
  200. package/dist/core/{p-8fbdabfe.entry.js → p-901cbf94.entry.js} +2 -2
  201. package/dist/core/{p-25017dd9.entry.js → p-90b277bb.entry.js} +2 -2
  202. package/dist/core/{p-0f2f623b.entry.js → p-90ff56f4.entry.js} +2 -2
  203. package/dist/core/{p-49581c53.entry.js → p-962d5767.entry.js} +2 -2
  204. package/dist/core/{p-f3613f8a.entry.js → p-984b6020.entry.js} +2 -2
  205. package/dist/core/{p-1d944358.entry.js → p-9d2a4eb1.entry.js} +2 -2
  206. package/dist/core/{p-a2a257ef.entry.js → p-9ff7e018.entry.js} +2 -2
  207. package/dist/core/p-DQuL1Twl.js.map +1 -1
  208. package/dist/core/p-DT2tslUp.js +3 -0
  209. package/dist/core/p-DT2tslUp.js.map +1 -0
  210. package/dist/core/{p-f27ac0f7.entry.js → p-a18c600d.entry.js} +2 -2
  211. package/dist/core/{p-177a0638.entry.js → p-aaa73dc8.entry.js} +2 -2
  212. package/dist/core/p-ade69b24.entry.js +2 -0
  213. package/dist/core/{p-db32ed60.entry.js → p-b19afdd8.entry.js} +2 -2
  214. package/dist/core/{p-bc5f5e3d.entry.js → p-b97b4439.entry.js} +2 -2
  215. package/dist/core/{p-ab0f7851.entry.js → p-bbe0d727.entry.js} +2 -2
  216. package/dist/core/{p-4382abb5.entry.js → p-bedd75e1.entry.js} +2 -2
  217. package/dist/core/{p-5e8946af.entry.js → p-c1a1fc45.entry.js} +2 -2
  218. package/dist/core/{p-e9e584a0.entry.js → p-c6f52c6f.entry.js} +2 -2
  219. package/dist/core/{p-11ee3438.entry.js → p-c99cc786.entry.js} +2 -2
  220. package/dist/core/{p-a6d16324.entry.js → p-c9edada1.entry.js} +2 -2
  221. package/dist/core/{p-0d0bd226.entry.js → p-cddfc899.entry.js} +2 -2
  222. package/dist/core/{p-1b922db5.entry.js → p-ce588d98.entry.js} +2 -2
  223. package/dist/core/{p-3a25ddfa.entry.js → p-d4440adf.entry.js} +2 -2
  224. package/dist/core/{p-1744f488.entry.js → p-d48d5870.entry.js} +2 -2
  225. package/dist/core/p-d8264763.entry.js +2 -0
  226. package/dist/core/p-d8264763.entry.js.map +1 -0
  227. package/dist/core/{p-73dcc4f1.entry.js → p-e169f098.entry.js} +2 -2
  228. package/dist/core/{p-05c81fd3.entry.js → p-e3e3e9f2.entry.js} +2 -2
  229. package/dist/core/{p-64b0f2d6.entry.js → p-e8507630.entry.js} +2 -2
  230. package/dist/core/p-f0505205.entry.js +2 -0
  231. package/dist/core/p-f0505205.entry.js.map +1 -0
  232. package/dist/core/{p-cb293cf3.entry.js → p-f3c873f5.entry.js} +2 -2
  233. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  234. package/dist/esm/core.js +4 -4
  235. package/dist/esm/core.js.map +1 -1
  236. package/dist/esm/gov-accordion-item.entry.js +1 -1
  237. package/dist/esm/gov-accordion.entry.js +1 -1
  238. package/dist/esm/gov-attachments_3.entry.js +1 -1
  239. package/dist/esm/gov-backdrop.entry.js +1 -1
  240. package/dist/esm/gov-banner.entry.js +1 -1
  241. package/dist/esm/gov-blockquote.entry.js +1 -1
  242. package/dist/esm/gov-breadcrumbs.entry.js +1 -1
  243. package/dist/esm/gov-button.entry.js +1 -1
  244. package/dist/esm/gov-card.entry.js +2 -2
  245. package/dist/esm/gov-card.entry.js.map +1 -1
  246. package/dist/esm/gov-chip.entry.js +3 -3
  247. package/dist/esm/gov-chip.entry.js.map +1 -1
  248. package/dist/esm/gov-container.entry.js +1 -1
  249. package/dist/esm/gov-control-group.entry.js +8 -4
  250. package/dist/esm/gov-control-group.entry.js.map +1 -1
  251. package/dist/esm/gov-cookiebar.entry.js +1 -1
  252. package/dist/esm/gov-dialog.entry.js +1 -1
  253. package/dist/esm/gov-dropdown.entry.js +1 -1
  254. package/dist/esm/gov-empty.entry.js +1 -1
  255. package/dist/esm/gov-error-code.entry.js +1 -1
  256. package/dist/esm/gov-flex_3.entry.js +2 -2
  257. package/dist/esm/gov-form-autocomplete.entry.js +1 -1
  258. package/dist/esm/gov-form-checkbox-group.entry.js +1 -1
  259. package/dist/esm/gov-form-checkbox.entry.js +1 -1
  260. package/dist/esm/gov-form-control.entry.js +1 -1
  261. package/dist/esm/gov-form-file.entry.js +1 -1
  262. package/dist/esm/gov-form-group.entry.js +1 -1
  263. package/dist/esm/gov-form-input_2.entry.js +1 -1
  264. package/dist/esm/gov-form-label.entry.js +1 -1
  265. package/dist/esm/gov-form-multi-select.entry.js +1 -1
  266. package/dist/esm/gov-form-password-power.entry.js +1 -1
  267. package/dist/esm/gov-form-radio-group.entry.js +1 -1
  268. package/dist/esm/gov-form-radio.entry.js +1 -1
  269. package/dist/esm/gov-form-range.entry.js +1 -1
  270. package/dist/esm/gov-form-search.entry.js +1 -1
  271. package/dist/esm/gov-form-select.entry.js +1 -1
  272. package/dist/esm/gov-form-switch.entry.js +1 -1
  273. package/dist/esm/gov-grid-item.entry.js +1 -1
  274. package/dist/esm/gov-grid.entry.js +1 -1
  275. package/dist/esm/gov-infobar.entry.js +1 -1
  276. package/dist/esm/gov-layout-column.entry.js +1 -1
  277. package/dist/esm/gov-layout.entry.js +1 -1
  278. package/dist/esm/gov-lifecycle.entry.js +1 -1
  279. package/dist/esm/gov-link.entry.js +1 -1
  280. package/dist/esm/gov-loading.entry.js +1 -1
  281. package/dist/esm/gov-message.entry.js +1 -1
  282. package/dist/esm/gov-pagination.entry.js +1 -1
  283. package/dist/esm/gov-spacer.entry.js +1 -1
  284. package/dist/esm/gov-stepper-item.entry.js +1 -1
  285. package/dist/esm/gov-stepper.entry.js +1 -1
  286. package/dist/esm/gov-tabs-item.entry.js +1 -1
  287. package/dist/esm/gov-tabs.entry.js +1 -1
  288. package/dist/esm/gov-tag.entry.js +1 -1
  289. package/dist/esm/gov-tile.entry.js +1 -1
  290. package/dist/esm/gov-toast.entry.js +1 -1
  291. package/dist/esm/gov-tooltip-content.entry.js +1 -1
  292. package/dist/esm/gov-tooltip.entry.js +1 -1
  293. package/dist/esm/gov-wizard-item.entry.js +1 -1
  294. package/dist/esm/gov-wizard.entry.js +1 -1
  295. package/dist/esm/{index-ClISz4NF.js → index-DT2tslUp.js} +482 -140
  296. package/dist/esm/index-DT2tslUp.js.map +1 -0
  297. package/dist/esm/loader.js +3 -3
  298. package/dist/hydrate/index.js +339 -201
  299. package/dist/hydrate/index.mjs +339 -201
  300. package/dist/stencil.config.js +0 -9
  301. package/dist/stencil.config.js.map +1 -1
  302. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  303. package/dist/types/components/gov-control-group/gov-control-group.d.ts +4 -0
  304. package/dist/types/components.d.ts +12 -2
  305. package/dist/types/stencil-public-runtime.d.ts +12 -5
  306. package/package.json +3 -3
  307. package/dist/cjs/index-BEF5cZxd.js.map +0 -1
  308. package/dist/components/p-CEl4WEkF.js +0 -2
  309. package/dist/components/p-CEl4WEkF.js.map +0 -1
  310. package/dist/core/p-1c01e161.entry.js +0 -2
  311. package/dist/core/p-1c01e161.entry.js.map +0 -1
  312. package/dist/core/p-22f17af5.entry.js +0 -2
  313. package/dist/core/p-22f17af5.entry.js.map +0 -1
  314. package/dist/core/p-904e7e44.entry.js +0 -2
  315. package/dist/core/p-904e7e44.entry.js.map +0 -1
  316. package/dist/core/p-ClISz4NF.js +0 -3
  317. package/dist/core/p-ClISz4NF.js.map +0 -1
  318. package/dist/core/p-e0ec9f75.entry.js +0 -2
  319. package/dist/core/p-e74093c1.entry.js +0 -2
  320. package/dist/esm/index-ClISz4NF.js.map +0 -1
  321. /package/dist/components/{p-vuyK2av-.js.map → p-9COKmDO0.js.map} +0 -0
  322. /package/dist/components/{p-D82BPGeo.js.map → p-B03Rpjps.js.map} +0 -0
  323. /package/dist/components/{p-DxCeyMKq.js.map → p-CXbpWAIF.js.map} +0 -0
  324. /package/dist/components/{p-DGsyEn3-.js.map → p-Cta_74Ps.js.map} +0 -0
  325. /package/dist/components/{p-DkoI3xas.js.map → p-Cy7Wk3yM.js.map} +0 -0
  326. /package/dist/components/{p-CNXZgyfX.js.map → p-D4Z6jWqx.js.map} +0 -0
  327. /package/dist/components/{p-CNRG3ZtC.js.map → p-DJ1DN3ks.js.map} +0 -0
  328. /package/dist/components/{p-Dj3UNRiz.js.map → p-DTn9nVrF.js.map} +0 -0
  329. /package/dist/components/{p-BlqsCTBR.js.map → p-DnZEr-aq.js.map} +0 -0
  330. /package/dist/components/{p-yUYC6pA5.js.map → p-wlTP5ZEU.js.map} +0 -0
  331. /package/dist/core/{p-1fca9440.entry.js.map → p-01482eb2.entry.js.map} +0 -0
  332. /package/dist/core/{p-7c1d10c4.entry.js.map → p-0dbda4ab.entry.js.map} +0 -0
  333. /package/dist/core/{p-cb91eed8.entry.js.map → p-19a408eb.entry.js.map} +0 -0
  334. /package/dist/core/{p-57f8e68a.entry.js.map → p-1bfbad36.entry.js.map} +0 -0
  335. /package/dist/core/{p-f6a01739.entry.js.map → p-1f4450cc.entry.js.map} +0 -0
  336. /package/dist/core/{p-a262eb49.entry.js.map → p-2142c481.entry.js.map} +0 -0
  337. /package/dist/core/{p-e61dceb2.entry.js.map → p-25a33448.entry.js.map} +0 -0
  338. /package/dist/core/{p-ffd60450.entry.js.map → p-2affc4c0.entry.js.map} +0 -0
  339. /package/dist/core/{p-db01c95c.entry.js.map → p-3477fcf1.entry.js.map} +0 -0
  340. /package/dist/core/{p-e74093c1.entry.js.map → p-35c24ac5.entry.js.map} +0 -0
  341. /package/dist/core/{p-8b866af0.entry.js.map → p-35cd4ecd.entry.js.map} +0 -0
  342. /package/dist/core/{p-77e3fa09.entry.js.map → p-35f784be.entry.js.map} +0 -0
  343. /package/dist/core/{p-840fed0e.entry.js.map → p-37770cee.entry.js.map} +0 -0
  344. /package/dist/core/{p-bc6fe3db.entry.js.map → p-37b98852.entry.js.map} +0 -0
  345. /package/dist/core/{p-24ec7a60.entry.js.map → p-48a3bb49.entry.js.map} +0 -0
  346. /package/dist/core/{p-8ca5804b.entry.js.map → p-4e170f53.entry.js.map} +0 -0
  347. /package/dist/core/{p-b1869b24.entry.js.map → p-57aac00e.entry.js.map} +0 -0
  348. /package/dist/core/{p-616c2209.entry.js.map → p-5c9371da.entry.js.map} +0 -0
  349. /package/dist/core/{p-cd82ae8b.entry.js.map → p-6508f953.entry.js.map} +0 -0
  350. /package/dist/core/{p-03a8226e.entry.js.map → p-730b823a.entry.js.map} +0 -0
  351. /package/dist/core/{p-1d78f520.entry.js.map → p-7f46f70a.entry.js.map} +0 -0
  352. /package/dist/core/{p-22c2e7e8.entry.js.map → p-83507d07.entry.js.map} +0 -0
  353. /package/dist/core/{p-877178fe.entry.js.map → p-871d4318.entry.js.map} +0 -0
  354. /package/dist/core/{p-50b0d5dd.entry.js.map → p-8873dc4b.entry.js.map} +0 -0
  355. /package/dist/core/{p-750ced1c.entry.js.map → p-8c942041.entry.js.map} +0 -0
  356. /package/dist/core/{p-0a50f540.entry.js.map → p-8d42ee97.entry.js.map} +0 -0
  357. /package/dist/core/{p-5f2cbcf6.entry.js.map → p-8dceba0b.entry.js.map} +0 -0
  358. /package/dist/core/{p-8fbdabfe.entry.js.map → p-901cbf94.entry.js.map} +0 -0
  359. /package/dist/core/{p-25017dd9.entry.js.map → p-90b277bb.entry.js.map} +0 -0
  360. /package/dist/core/{p-0f2f623b.entry.js.map → p-90ff56f4.entry.js.map} +0 -0
  361. /package/dist/core/{p-49581c53.entry.js.map → p-962d5767.entry.js.map} +0 -0
  362. /package/dist/core/{p-f3613f8a.entry.js.map → p-984b6020.entry.js.map} +0 -0
  363. /package/dist/core/{p-1d944358.entry.js.map → p-9d2a4eb1.entry.js.map} +0 -0
  364. /package/dist/core/{p-a2a257ef.entry.js.map → p-9ff7e018.entry.js.map} +0 -0
  365. /package/dist/core/{p-f27ac0f7.entry.js.map → p-a18c600d.entry.js.map} +0 -0
  366. /package/dist/core/{p-177a0638.entry.js.map → p-aaa73dc8.entry.js.map} +0 -0
  367. /package/dist/core/{p-e0ec9f75.entry.js.map → p-ade69b24.entry.js.map} +0 -0
  368. /package/dist/core/{p-db32ed60.entry.js.map → p-b19afdd8.entry.js.map} +0 -0
  369. /package/dist/core/{p-bc5f5e3d.entry.js.map → p-b97b4439.entry.js.map} +0 -0
  370. /package/dist/core/{p-ab0f7851.entry.js.map → p-bbe0d727.entry.js.map} +0 -0
  371. /package/dist/core/{p-4382abb5.entry.js.map → p-bedd75e1.entry.js.map} +0 -0
  372. /package/dist/core/{p-5e8946af.entry.js.map → p-c1a1fc45.entry.js.map} +0 -0
  373. /package/dist/core/{p-e9e584a0.entry.js.map → p-c6f52c6f.entry.js.map} +0 -0
  374. /package/dist/core/{p-11ee3438.entry.js.map → p-c99cc786.entry.js.map} +0 -0
  375. /package/dist/core/{p-a6d16324.entry.js.map → p-c9edada1.entry.js.map} +0 -0
  376. /package/dist/core/{p-0d0bd226.entry.js.map → p-cddfc899.entry.js.map} +0 -0
  377. /package/dist/core/{p-1b922db5.entry.js.map → p-ce588d98.entry.js.map} +0 -0
  378. /package/dist/core/{p-3a25ddfa.entry.js.map → p-d4440adf.entry.js.map} +0 -0
  379. /package/dist/core/{p-1744f488.entry.js.map → p-d48d5870.entry.js.map} +0 -0
  380. /package/dist/core/{p-73dcc4f1.entry.js.map → p-e169f098.entry.js.map} +0 -0
  381. /package/dist/core/{p-05c81fd3.entry.js.map → p-e3e3e9f2.entry.js.map} +0 -0
  382. /package/dist/core/{p-64b0f2d6.entry.js.map → p-e8507630.entry.js.map} +0 -0
  383. /package/dist/core/{p-cb293cf3.entry.js.map → p-f3c873f5.entry.js.map} +0 -0
@@ -1,2 +0,0 @@
1
- import{p as t,H as s,c as e,h as i,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{g as c}from"./p-DfJDyRCE.js";import{p as h}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{a as r,c as d}from"./p-CNqoJU2V.js";import{c as f}from"./p-vN03FcXN.js";import{p as l}from"./p-GYov8gU1.js";import{i as p,A as m,a as b}from"./p-CXgom82_.js";import{d as u}from"./p-D82BPGeo.js";const v=h(n,["_XS","_S","_M"]);var g;(function(t){t["SOLID"]="solid";t["OUTLINED"]="outlined"})(g||(g={}));var y;(function(t){t["A"]="a";t["SPAN"]="span";t["BUTTON"]="button"})(y||(y={}));const k={root:"gov-chip",hasRight:"gov-chip--has-right",hasLeft:"gov-chip--has-left"};const j=t(class t extends s{constructor(){super();this.__registerHost();this.govClick=e(this,"gov-click");this.hydrated=false;this.disabled=false;this.size=v._M;this.tag="span";this.color=r.PRIMARY;this.focusable=true;this.inheritedAttributes={};this.h=c(this.host);this.chipId=f("GovChip")}validateColor(t){o(r,t,k.root)}validateSize(t){o(d,t,k.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.inheritedAttributes=p(this.host)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=this.href?y.A:this.tag;const s=t==y.BUTTON?y.BUTTON:undefined;const e=l(this.iconStart);const o=l(this.iconEnd);return i(a,{key:"6891a65866779d31691de4842180ae22767c4268",class:this.h.classes([k.root,this.h.hasSlot("right")?k.hasRight:undefined,this.h.hasSlot("left")?k.hasLeft:undefined]),disabled:this.disabled,href:this.href,color:this.color,type:this.type,size:this.size,hoverable:t==y.A||t==y.BUTTON,hydrated:this.hydrated},i(t,Object.assign({key:"32a2696de42de539438caa0842d0fefa31804b77",class:"element",href:this.href,target:this.target,ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),tabindex:(this.h.hasSlot("left")||this.h.hasSlot("right")||this.disabled)&&!this.focusable?"-1":"0",id:this.identifier||this.chipId,type:s},this.inheritedAttributes,{"aria-disabled":this.disabled}),i("slot",{key:"93a5178477cbd4e0e09789c3ff0941e0972943f3",name:"left"}),i("slot",{key:"7d019aa4f2e543a8cb22e7d694c6994656e92065",name:"icon-start"},e&&i("gov-icon",{key:"6077e90d13e1fe7945c43abf142e308fa88b10b9",type:e.type,name:e.name})),i("slot",{key:"8c2fbc69cade5187c4dc3805e2eb9b2639620687"}),i("slot",{key:"ba590e6f48cf44ceb293917dbdecf34472db28ad",name:"icon-end"},o&&i("gov-icon",{key:"030988484d52eb2a47b192888a8e4a1e8773bd74",type:o.type,name:o.name})),i("slot",{key:"b62f2b1359a70b2aba874686d33f3dd5b7d0c8a2",name:"right"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false&&this.tag===y.BUTTON){this.govClick.emit(t)}}async geRef(){return this.triggerRef}async setFocus(){this.triggerRef.focus()}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"gov-chip",{disabled:[516],href:[1],target:[1],iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[1],tag:[1],color:[1],type:[513],focusable:[4],identifier:[1],inheritedAttributes:[32],geRef:[64],setFocus:[64]},undefined,{color:["validateColor"],size:["validateSize"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-chip":if(!customElements.get(t)){customElements.define(t,j)}break;case"gov-icon":if(!customElements.get(t)){u()}break}}))}C();export{j as G,C as d};
2
- //# sourceMappingURL=p-CEl4WEkF.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["ChipSizes","pick","Sizes","ChipType","NativeType","ChipClass","root","hasRight","hasLeft","GovChip","__stencil_proxyCustomElement","HTMLElement","constructor","this","hydrated","disabled","size","_M","tag","color","ButtonColors","PRIMARY","focusable","inheritedAttributes","h","govHost","host","chipId","createID","validateColor","newValue","validateProp","validateSize","ButtonSizes","componentWillLoad","inheritAriaAttributes","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","disconnectedCallback","_a","stopObserving","connectedCallback","removeAttribute","Object","assign","render","Tag","href","A","nativeType","BUTTON","undefined","iconStart","prepareIconFormat","iconEnd","Host","key","class","classes","hasSlot","type","hoverable","target","ref","el","triggerRef","onClick","onClickHandler","bind","tabindex","id","identifier","name","e","stopPropagation","govClick","emit","geRef","setFocus","focus"],"sources":["../../../packages/core/src/components/gov-chip/constants.ts","../../../packages/core/src/components/gov-chip/gov-chip.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\nimport {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const ChipSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type ChipSizesType = `${ValueOf<typeof ChipSizes>}`\n\nexport enum ChipType {\n\tSOLID = 'solid',\n\tOUTLINED = 'outlined',\n}\nexport type ChipTypesType = `${ValueOf<typeof ChipType>}`\n\nexport enum NativeType {\n\tA = 'a',\n\tSPAN = 'span',\n\tBUTTON = 'button',\n}\nexport type NativeTypesType = `${ValueOf<typeof NativeType>}`\n\nexport const ChipClass = {\n\troot: 'gov-chip',\n\tinner: 'gov-chip__inner',\n\thasRight: 'gov-chip--has-right',\n\thasLeft: 'gov-chip--has-left',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {ChipClass, ChipSizes, ChipSizesType, ChipTypesType, NativeType, NativeTypesType} from \"./constants\"\nimport {ButtonColors, ButtonColorType, ButtonSizes} from \"../gov-button/button/constants\"\nimport {createID} from \"../../utils/string.utils\"\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\n\n@Component({\n\ttag: \"gov-chip\",\n})\nexport class GovChip {\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\tprivate readonly chipId: string\n\tprivate hydrated = false\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.chipId = createID('GovChip')\n\t}\n\n\t@Element() host: HTMLGovChipElement\n\n\t/**\n\t * Makes the chip component disabled.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\n\t/**\n\t * Chip’s size.\n\t */\n\t@Prop() readonly size: ChipSizesType = ChipSizes._M\n\t/**\n\t * Used to change the HTML tag in the chip\n\t */\n\t@Prop() readonly tag: NativeTypesType = \"span\"\n\t/**\n\t * Style variation of the chip.\n\t */\n\t@Prop() readonly color: ButtonColorType = ButtonColors.PRIMARY\n\t/**\n\t * Chip’s type\n\t */\n\t@Prop({reflect: true}) readonly type: ChipTypesType\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom chip identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Emitted when the button click.\n\t */\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<PointerEvent>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, ChipClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, ChipClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\n\t}\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\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\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\trender() {\n\t\tconst Tag = this.href ? NativeType.A : this.tag\n\t\tconst nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined\n\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes([\n\t\t\t\t\tChipClass.root,\n\t\t\t\t\tthis.h.hasSlot(\"right\") ? ChipClass.hasRight : undefined,\n\t\t\t\t\tthis.h.hasSlot(\"left\") ? ChipClass.hasLeft : undefined,\n\t\t\t\t])}\n\t\t\t\tdisabled={this.disabled}\n\t\t\t\thref={this.href}\n\t\t\t\tcolor={this.color}\n\t\t\t\ttype={this.type}\n\t\t\t\tsize={this.size}\n\t\t\t\thoverable={Tag == NativeType.A || Tag == NativeType.BUTTON}\n\t\t\t\thydrated={this.hydrated}\n\t\t\t>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLButtonElement | HTMLSpanElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\ttabindex={(this.h.hasSlot(\"left\") || this.h.hasSlot(\"right\") || this.disabled) && !this.focusable ? \"-1\" : \"0\"}\n\t\t\t\t\tid={this.identifier || this.chipId}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\taria-disabled={this.disabled}>\n\t\t\t\t\t<slot name=\"left\"></slot>\n\t\t\t\t\t<slot name=\"icon-start\">\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<slot name=\"icon-end\">\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot name=\"right\"></slot>\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false && this.tag === NativeType.BUTTON) {\n\t\t\tthis.govClick.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync geRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as t,c as s,h as i,H as e,g as a}from"./p-ClISz4NF.js";import{v as h}from"./p-NOJjz9dT.js";import{g as o}from"./p-BBOh2pxy.js";import{p as c}from"./p-CQvUntGY.js";import{S as r}from"./p-BcQO4NH2.js";import{B as n,a as d}from"./p-Bo1ROm5Q.js";import{c as f}from"./p-vN03FcXN.js";import{p as l}from"./p-GYov8gU1.js";import{i as p}from"./p-CzXeijOj.js";import{A as b,a as m}from"./p-Bz_RzYFb.js";import"./p-CgDnDrq5.js";import"./p-U40vKHrs.js";const v=c(r,["_XS","_S","_M"]);var g;(function(t){t["SOLID"]="solid";t["OUTLINED"]="outlined"})(g||(g={}));var j;(function(t){t["A"]="a";t["SPAN"]="span";t["BUTTON"]="button"})(j||(j={}));const u={root:"gov-chip",hasRight:"gov-chip--has-right",hasLeft:"gov-chip--has-left"};const y=class{constructor(i){t(this,i);this.govClick=s(this,"gov-click");this.hydrated=false;this.disabled=false;this.size=v._M;this.tag="span";this.color=n.PRIMARY;this.focusable=true;this.inheritedAttributes={};this.h=o(this.host);this.chipId=f("GovChip")}validateColor(t){h(n,t,u.root)}validateSize(t){h(d,t,u.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.inheritedAttributes=p(this.host)}componentDidLoad(){this.attributeObserver=new b(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(m)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=this.href?j.A:this.tag;const s=t==j.BUTTON?j.BUTTON:undefined;const a=l(this.iconStart);const h=l(this.iconEnd);return i(e,{key:"6891a65866779d31691de4842180ae22767c4268",class:this.h.classes([u.root,this.h.hasSlot("right")?u.hasRight:undefined,this.h.hasSlot("left")?u.hasLeft:undefined]),disabled:this.disabled,href:this.href,color:this.color,type:this.type,size:this.size,hoverable:t==j.A||t==j.BUTTON,hydrated:this.hydrated},i(t,Object.assign({key:"32a2696de42de539438caa0842d0fefa31804b77",class:"element",href:this.href,target:this.target,ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),tabindex:(this.h.hasSlot("left")||this.h.hasSlot("right")||this.disabled)&&!this.focusable?"-1":"0",id:this.identifier||this.chipId,type:s},this.inheritedAttributes,{"aria-disabled":this.disabled}),i("slot",{key:"93a5178477cbd4e0e09789c3ff0941e0972943f3",name:"left"}),i("slot",{key:"7d019aa4f2e543a8cb22e7d694c6994656e92065",name:"icon-start"},a&&i("gov-icon",{key:"6077e90d13e1fe7945c43abf142e308fa88b10b9",type:a.type,name:a.name})),i("slot",{key:"8c2fbc69cade5187c4dc3805e2eb9b2639620687"}),i("slot",{key:"ba590e6f48cf44ceb293917dbdecf34472db28ad",name:"icon-end"},h&&i("gov-icon",{key:"030988484d52eb2a47b192888a8e4a1e8773bd74",type:h.type,name:h.name})),i("slot",{key:"b62f2b1359a70b2aba874686d33f3dd5b7d0c8a2",name:"right"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false&&this.tag===j.BUTTON){this.govClick.emit(t)}}async geRef(){return this.triggerRef}async setFocus(){this.triggerRef.focus()}get host(){return a(this)}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}};export{y as gov_chip};
2
- //# sourceMappingURL=p-1c01e161.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["ChipSizes","pick","Sizes","ChipType","NativeType","ChipClass","root","hasRight","hasLeft","GovChip","constructor","hostRef","this","hydrated","disabled","size","_M","tag","color","ButtonColors","PRIMARY","focusable","inheritedAttributes","h","govHost","host","chipId","createID","validateColor","newValue","validateProp","validateSize","ButtonSizes","componentWillLoad","inheritAriaAttributes","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","disconnectedCallback","_a","stopObserving","connectedCallback","removeAttribute","Object","assign","render","Tag","href","A","nativeType","BUTTON","undefined","iconStart","prepareIconFormat","iconEnd","Host","key","class","classes","hasSlot","type","hoverable","target","ref","el","triggerRef","onClick","onClickHandler","bind","tabindex","id","identifier","name","e","stopPropagation","govClick","emit","geRef","setFocus","focus"],"sources":["../../../packages/core/src/components/gov-chip/constants.ts","../../../packages/core/src/components/gov-chip/gov-chip.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\nimport {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const ChipSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type ChipSizesType = `${ValueOf<typeof ChipSizes>}`\n\nexport enum ChipType {\n\tSOLID = 'solid',\n\tOUTLINED = 'outlined',\n}\nexport type ChipTypesType = `${ValueOf<typeof ChipType>}`\n\nexport enum NativeType {\n\tA = 'a',\n\tSPAN = 'span',\n\tBUTTON = 'button',\n}\nexport type NativeTypesType = `${ValueOf<typeof NativeType>}`\n\nexport const ChipClass = {\n\troot: 'gov-chip',\n\tinner: 'gov-chip__inner',\n\thasRight: 'gov-chip--has-right',\n\thasLeft: 'gov-chip--has-left',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {ChipClass, ChipSizes, ChipSizesType, ChipTypesType, NativeType, NativeTypesType} from \"./constants\"\nimport {ButtonColors, ButtonColorType, ButtonSizes} from \"../gov-button/button/constants\"\nimport {createID} from \"../../utils/string.utils\"\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\n\n@Component({\n\ttag: \"gov-chip\",\n})\nexport class GovChip {\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\tprivate readonly chipId: string\n\tprivate hydrated = false\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.chipId = createID('GovChip')\n\t}\n\n\t@Element() host: HTMLGovChipElement\n\n\t/**\n\t * Makes the chip component disabled.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\n\t/**\n\t * Chip’s size.\n\t */\n\t@Prop() readonly size: ChipSizesType = ChipSizes._M\n\t/**\n\t * Used to change the HTML tag in the chip\n\t */\n\t@Prop() readonly tag: NativeTypesType = \"span\"\n\t/**\n\t * Style variation of the chip.\n\t */\n\t@Prop() readonly color: ButtonColorType = ButtonColors.PRIMARY\n\t/**\n\t * Chip’s type\n\t */\n\t@Prop({reflect: true}) readonly type: ChipTypesType\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom chip identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Emitted when the button click.\n\t */\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<PointerEvent>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, ChipClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, ChipClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\n\t}\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\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\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\trender() {\n\t\tconst Tag = this.href ? NativeType.A : this.tag\n\t\tconst nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined\n\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes([\n\t\t\t\t\tChipClass.root,\n\t\t\t\t\tthis.h.hasSlot(\"right\") ? ChipClass.hasRight : undefined,\n\t\t\t\t\tthis.h.hasSlot(\"left\") ? ChipClass.hasLeft : undefined,\n\t\t\t\t])}\n\t\t\t\tdisabled={this.disabled}\n\t\t\t\thref={this.href}\n\t\t\t\tcolor={this.color}\n\t\t\t\ttype={this.type}\n\t\t\t\tsize={this.size}\n\t\t\t\thoverable={Tag == NativeType.A || Tag == NativeType.BUTTON}\n\t\t\t\thydrated={this.hydrated}\n\t\t\t>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLButtonElement | HTMLSpanElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\ttabindex={(this.h.hasSlot(\"left\") || this.h.hasSlot(\"right\") || this.disabled) && !this.focusable ? \"-1\" : \"0\"}\n\t\t\t\t\tid={this.identifier || this.chipId}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\taria-disabled={this.disabled}>\n\t\t\t\t\t<slot name=\"left\"></slot>\n\t\t\t\t\t<slot name=\"icon-start\">\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<slot name=\"icon-end\">\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot name=\"right\"></slot>\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false && this.tag === NativeType.BUTTON) {\n\t\t\tthis.govClick.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync geRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as i,c as a,h as t,H as s,g as e}from"./p-ClISz4NF.js";import{g as c,b as d}from"./p-BBOh2pxy.js";import{c as o}from"./p-vN03FcXN.js";import{v as r}from"./p-CDIRBJsi.js";import{c as n}from"./p-CgDnDrq5.js";import{d as h}from"./p-CQvUntGY.js";import"./p-DNztiAH0.js";var l;(function(i){i["HORIZONTAL"]="horizontal";i["VERTICAL"]="vertical"})(l||(l={}));const f={root:"gov-card",header:"gov-card__header",arrow:"gov-card__arrow",inner:"gov-card__inner",img:"gov-card__img",icon:"gov-card__icon",content:"gov-card__content",footer:"gov-card__footer"};var b;(function(i){i["A"]="a";i["DIV"]="div"})(b||(b={}));const v=class{constructor(t){i(this,t);this.govToggle=a(this,"gov-toggle");this.hydrated=false;this.direction="vertical";this.collapsible=false;this.clickable=false;this.open=true;this.h=c(this.host);this.headlineId=o("GovCardHeadline");this.contentId=o("GovCardContent")}async componentDidRender(){if(n()){await h(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){const i=this.href?b.A:b.DIV;return t(s,{key:"cfc81619a6b8959e1f0a95b6f0f6cec1d123bade",class:this.h.classes(f.root),open:this.open,collapsible:d(this.collapsible),clickable:this.href?true:this.clickable,direction:this.direction,hydrated:this.hydrated},this.collapsible?t("button",{id:this.headlineId,class:f.header,"aria-label":this.accessibleTriggerLabel,"aria-labelledby":this.accessibleTriggerLabelledBy,"aria-expanded":d(this.open),"aria-controls":this.contentId,onClick:this.onClickHandler.bind(this)},t("slot",{name:"headline"}),t("gov-icon",{class:f.arrow,name:"chevron-down",type:"components"})):this.h.hasSlot("headline")?t("div",{class:f.header},t("slot",{name:"headline"})):null,t(i,{key:"034d1c7c548426ace3afd1f6969d4947d164959a",href:this.href,target:this.target,id:this.contentId,"aria-hidden":this.collapsible?d(!this.open):undefined,hidden:this.collapsible?!this.open:undefined,"aria-labelledby":this.collapsible?this.headlineId:undefined,class:f.inner},this.h.hasSlot("img")&&t("div",{key:"1254c0c835ffb86ee1e0e6ff27df3dda7d116116",class:f.img},t("slot",{key:"a4e514ffc7954843ac63c4567feb52d054dd8099",name:"img"})),this.h.hasSlot("icon")&&t("div",{key:"686422637d5a8a8811bd0bb0a84c39d00f3be209",class:f.icon},t("slot",{key:"531b91304a46b7afd93c56e8b2dc827ceb3460fb",name:"icon"})),t("div",{key:"7a2e77da712efac2a8da1acd8878badabd62cf9b",class:f.content},t("slot",{key:"1607b05bc068974881cd834ab4422d50f48d8e25"})),this.h.hasSlot("footer")&&t("div",{key:"06e922087b4998ea71db8f2ca0c7ae2851112450",class:f.footer},t("slot",{key:"d6c4e94efd19dc1aa0506f70d7a19aa263b994ff",name:"footer"}))))}onClickHandler(i){i.stopPropagation();if(this.collapsible){this.open=!this.open;this.govToggle.emit({open:this.open,element:this.host})}}async validateAccessibility(){if(this.collapsible){r(this.accessibleTriggerLabel,this.accessibleTriggerLabelledBy,f.root,this.host)}}get host(){return e(this)}};export{v as gov_card};
2
- //# sourceMappingURL=p-22f17af5.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CardDirection","CardClass","root","header","arrow","inner","img","icon","content","footer","Tags","GovCard","constructor","hostRef","this","hydrated","direction","collapsible","clickable","open","h","govHost","host","headlineId","createID","contentId","componentDidRender","canValidateWcagOnRender","delay","validateAccessibility","connectedCallback","render","Tag","href","A","DIV","Host","key","class","classes","booleanString","id","accessibleTriggerLabel","accessibleTriggerLabelledBy","onClick","onClickHandler","bind","name","type","hasSlot","target","undefined","hidden","e","stopPropagation","govToggle","emit","element","validateAccessibleLabel"],"sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.tsx"],"sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\n\nexport enum CardDirection {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\nexport type CardDirectionType = `${ValueOf<typeof CardDirection>}`\n\nexport const CardClass = {\n\troot: 'gov-card',\n\theader: 'gov-card__header',\n\tarrow: 'gov-card__arrow',\n\tinner: 'gov-card__inner',\n\timg: 'gov-card__img',\n\ticon: 'gov-card__icon',\n\tcontent: 'gov-card__content',\n\tfooter: 'gov-card__footer',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {CardClass, CardDirectionType} from './constants'\nimport {booleanString, govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {createID} from '../../utils/string.utils'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {GovCardChangeEvent} from './interfaces'\nimport {ButtonTargetType} from \"../gov-button/button/constants\";\n\nenum Tags {\n\tA = \"a\",\n\tDIV = \"div\",\n}\n\n@Component({\n\ttag: 'gov-card',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.headlineId = createID('GovCardHeadline')\n\t\tthis.contentId = createID('GovCardContent')\n\t}\n\n\t@Element() host: HTMLGovCardElement\n\n\t/**\n\t * Card direction\n\t */\n\t@Prop() readonly direction: CardDirectionType = \"vertical\"\n\t/**\n\t * Defines weather the card can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines weather the card can be clickable with hover effect\n\t */\n\t@Prop() readonly clickable: boolean = false\n\t/**\n\t * Defines whether the card is open or closed\n\t */\n\t@Prop({reflect: true, mutable: true}) open = true\n\t/**\n\t * Link on whole card\n\t */\n\t@Prop({reflect: true}) readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) accessibleTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) accessibleTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({eventName: 'gov-toggle'}) govToggle: EventEmitter<GovCardChangeEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.DIV\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CardClass.root)} open={this.open}\n\t\t\t\t collapsible={booleanString(this.collapsible)}\n\t\t\t\t clickable={this.href ? true : this.clickable}\n\t\t\t\t direction={this.direction} hydrated={this.hydrated}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<button\n\t\t\t\t\t\tid={this.headlineId}\n\t\t\t\t\t\tclass={CardClass.header}\n\t\t\t\t\t\taria-label={this.accessibleTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : this.h.hasSlot(\"headline\") ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t<Tag href={this.href}\n\t\t\t\t\t target={this.target}\n\t\t\t\t\t id={this.contentId}\n\t\t\t\t\t aria-hidden={this.collapsible ? booleanString(!this.open) : undefined}\n\t\t\t\t\t hidden={this.collapsible ? !this.open : undefined}\n\t\t\t\t\t aria-labelledby={this.collapsible ? this.headlineId : undefined}\n\t\t\t\t\t class={CardClass.inner}>\n\n\t\t\t\t\t{this.h.hasSlot('img') && (\n\t\t\t\t\t\t<div class={CardClass.img}>\n\t\t\t\t\t\t\t<slot name=\"img\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<div class={CardClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class={CardClass.content}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t<div class={CardClass.footer}>\n\t\t\t\t\t\t\t<slot name=\"footer\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e) {\n\t\te.stopPropagation()\n\t\tif (this.collapsible) {\n\t\t\tthis.open = !this.open\n\t\t\tthis.govToggle.emit({open: this.open, element: this.host})\n\t\t}\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tvalidateAccessibleLabel(this.accessibleTriggerLabel, this.accessibleTriggerLabelledBy, CardClass.root, this.host)\n\t\t}\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as s,h as o,H as t,g as r}from"./p-ClISz4NF.js";import{C as a}from"./p-U40vKHrs.js";import{g as e}from"./p-BBOh2pxy.js";import{v as i}from"./p-NOJjz9dT.js";import{p as c}from"./p-CQvUntGY.js";import"./p-CgDnDrq5.js";c(a,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);const p={root:"gov-control-group"};const l=class{constructor(o){s(this,o);this.color=a.PRIMARY;this.noBorder=false;this.fitContent=false;this.h=e(this.host)}validateColor(s){i(a,s,p.root)}render(){return o(t,{key:"74d339e88105be80b3f335aa2af1155ab23099c8",class:this.h.classes(p.root),color:this.color},o("slot",{key:"e3af09285370470ad4e1ca9e6b225ca98708cebc"}))}get host(){return r(this)}static get watchers(){return{color:["validateColor"]}}};export{l as gov_control_group};
2
- //# sourceMappingURL=p-904e7e44.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["pick","Colors","ControlGroupClass","root","GovControlGroup","constructor","hostRef","this","color","PRIMARY","noBorder","fitContent","h","govHost","host","validateColor","newValue","validateProp","render","Host","key","class","classes"],"sources":["../../../packages/core/src/components/gov-control-group/constants.ts","../../../packages/core/src/components/gov-control-group/gov-control-group.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\n\nexport const ControlGroupColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ControlGroupColorType = `${ValueOf<typeof ControlGroupColors>}`\n\nexport const ControlGroupClass = {\n\troot: 'gov-control-group',\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { Colors } from \"../../core/constants/colors\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { ControlGroupClass, ControlGroupColorType } from \"./constants\"\n\n@Component({\n\ttag: \"gov-control-group\",\n})\nexport class GovControlGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovControlGroupElement\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly color: ControlGroupColorType = Colors.PRIMARY\n\t/**\n\t * Specifies the display of the border between elements\n\t */\n\t@Prop({ attribute: \"no-border\" }) readonly noBorder: boolean = false\n\t/**\n\t * Specifies the display of elements to full width\n\t */\n\t@Prop({ attribute: \"fit-content\" }) readonly fitContent: boolean = false\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(Colors, newValue, ControlGroupClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(ControlGroupClass.root)}\n\t\t\t\tcolor={this.color}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"iOAIkCA,EAAKC,EAAQ,CAAC,UAAW,YAAa,UAAW,QAAS,UAAW,YAGhG,MAAMC,EAAoB,CAChCC,KAAM,qB,MCEMC,EAAe,MAG3B,WAAAC,CAAAC,G,UAQiBC,KAAAC,MAA+BP,EAAOQ,QAIZF,KAAQG,SAAY,MAIlBH,KAAUI,WAAY,MAflEJ,KAAKK,EAAIC,EAAQN,KAAKO,KACtB,CAiBD,aAAAC,CAAcC,GACbC,EAAahB,EAAQe,EAAUd,EAAkBC,K,CAGlD,MAAAe,GACC,OACCN,EAACO,EAAI,CAAAC,IAAA,2CACJC,MAAOd,KAAKK,EAAEU,QAAQpB,EAAkBC,MACxCK,MAAOD,KAAKC,OACZI,EAAQ,QAAAQ,IAAA,6C","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- const e="core";const t={experimentalSlotFixes:true,hydratedSelectorName:"hydrated",lazyLoad:true,shadowDom:false,slotRelocation:true,updatable:true};var n=Object.defineProperty;var r=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var i=(e=>{e["Undefined"]="undefined";e["Null"]="null";e["String"]="string";e["Number"]="number";e["SpecialNumber"]="number";e["Boolean"]="boolean";e["BigInt"]="bigint";return e})(i||{});var l=(e=>{e["Array"]="array";e["Date"]="date";e["Map"]="map";e["Object"]="object";e["RegularExpression"]="regexp";e["Set"]="set";e["Channel"]="channel";e["Symbol"]="symbol";return e})(l||{});var o="type";var s="value";var f="serialized:";var a=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var c=(e,t)=>{e.__stencil__getHostRef=()=>t;t.t=e};var u=(e,t)=>{const n={i:0,$hostElement$:e,l:t,o:new Map};{n.u=new Promise((e=>n.v=e))}{n.h=new Promise((e=>n.p=e));e["s-p"]=[];e["s-rc"]=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var v=(e,t)=>t in e;var d=(e,t)=>(0,console.error)(e,t);var h=new Map;var p=(e,t,n)=>{const r=e.$.replace(/-/g,"_");const i=e.m;if(!i){return void 0}const l=h.get(i);if(l){return l[r]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${i}.entry.js${""}`).then((e=>{{h.set(i,e)}return e[r]}),(e=>{d(e,t.$hostElement$)}))};var $=new Map;var m="r";var b="o";var y="s";var g="t";var w="c";var S="s-id";var j="sty-id";var O="c-id";var N="slot-fb{display:contents}slot-fb[hidden]{display:none}";var x="http://www.w3.org/1999/xlink";var k=typeof window!=="undefined"?window:{};var E=k.HTMLElement||class{};var C={i:0,S:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var I=t.shadowDom;var M=e=>Promise.resolve(e);var R=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var L=false;var T=[];var A=[];var F=(e,t)=>n=>{e.push(n);if(!L){L=true;if(t&&C.i&4){U(D)}else{C.raf(D)}}};var P=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){d(e)}}e.length=0};var D=()=>{P(T);{P(A);if(L=T.length>0){C.raf(D)}}};var U=e=>M().then(e);var _=F(A,true);var W=e=>{e=typeof e;return e==="object"||e==="function"};function V(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var z=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var B=class e{static fromLocalValue(t){const n=t[o];const r=s in t?t[s]:void 0;switch(n){case"string":return r;case"boolean":return r;case"bigint":return BigInt(r);case"undefined":return void 0;case"null":return null;case"number":if(r==="NaN")return NaN;if(r==="-0")return-0;if(r==="Infinity")return Infinity;if(r==="-Infinity")return-Infinity;return r;case"array":return r.map((t=>e.fromLocalValue(t)));case"date":return new Date(r);case"map":const t=new Map;for(const[n,i]of r){const r=typeof n==="object"&&n!==null?e.fromLocalValue(n):n;const l=e.fromLocalValue(i);t.set(r,l)}return t;case"object":const i={};for(const[t,n]of r){i[t]=e.fromLocalValue(n)}return i;case"regexp":const{pattern:l,flags:o}=r;return new RegExp(l,o);case"set":const s=new Set;for(const t of r){s.add(e.fromLocalValue(t))}return s;case"symbol":return Symbol(r);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map((t=>e.fromLocalValue(t)))}static isLocalValueObject(e){if(typeof e!=="object"||e===null){return false}if(!e.hasOwnProperty(o)){return false}const t=e[o];const n=Object.values({...i,...l}).includes(t);if(!n){return false}if(t!=="null"&&t!=="undefined"){return e.hasOwnProperty(s)}return true}};var H={};r(H,{err:()=>Y,map:()=>q,ok:()=>J,unwrap:()=>G,unwrapErr:()=>K});var J=e=>({isOk:true,isErr:false,value:e});var Y=e=>({isOk:false,isErr:true,value:e});function q(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>J(e)))}else{return J(n)}}if(e.isErr){const t=e.value;return Y(t)}throw"should never get here"}var G=e=>{if(e.isOk){return e.value}else{throw e.value}};var K=e=>{if(e.isErr){return e.value}else{throw e.value}};function Q(e){if(typeof e!=="string"||!e.startsWith(f)){return e}return B.fromLocalValue(JSON.parse(atob(e.slice(f.length))))}var X=e=>{const t=me(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){ee(t,e.tagName).forEach((e=>{if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(te(e,ie(e),false).length){e.hidden=true}else{e.hidden=false}}}))}let n=0;for(n=0;n<t.length;n++){const e=t[n];if(e.nodeType===1&&me(e,"childNodes").length){X(e)}}};var Z=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};function ee(e,t,n){let r=0;let i=[];let l;for(;r<e.length;r++){l=e[r];if(l["s-sr"]&&(!t||l["s-hn"]===t)&&(n===void 0||ie(l)===n)){i.push(l);if(typeof n!=="undefined")return i}i=[...i,...ee(l.childNodes,t,n)]}return i}var te=(e,t,n=true)=>{const r=[];if(n&&e["s-sr"]||!e["s-sr"])r.push(e);let i=e;while(i=i.nextSibling){if(ie(i)===t&&(n||!i["s-sr"]))r.push(i)}return r};var ne=(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 re=(e,t,n,r)=>{if(e["s-ol"]&&e["s-ol"].isConnected){return}const i=document.createTextNode("");i["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;const l=t["s-cr"].parentNode;const o=me(l,"appendChild");if(typeof r!=="undefined"){i["s-oo"]=r;const e=me(l,"childNodes");const t=[i];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0))return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>o.call(l,e)))}else{o.call(l,i)}e["s-ol"]=i;e["s-sh"]=t["s-hn"]};var ie=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function le(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const r=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots. \n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const i=this["s-cr"].parentElement;const l=i.__childNodes?i.childNodes:Z(i.childNodes);l.forEach((e=>{if(r===ie(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function oe(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:false,cancelable:false,composed:false}))}function se(e,t){var n;t=t||((n=e["s-ol"])==null?void 0:n.parentElement);if(!t)return{slotNode:null,slotName:""};const r=e["s-sn"]=ie(e)||"";const i=me(t,"childNodes");const l=ee(i,t.tagName,r)[0];return{slotNode:l,slotName:r}}var fe=e=>{if(!e||e.__nextSibling!==void 0||!globalThis.Node)return;ae(e);ue(e);de(e);if(e.nodeType===Node.ELEMENT_NODE){ce(e);ve(e)}};var ae=e=>{if(!e||e.__nextSibling)return;$e("nextSibling",e);Object.defineProperty(e,"nextSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.childNodes;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n+1]}return this.__nextSibling}})};var ce=e=>{if(!e||e.__nextElementSibling)return;$e("nextElementSibling",e);Object.defineProperty(e,"nextElementSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.children;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n+1]}return this.__nextElementSibling}})};var ue=e=>{if(!e||e.__previousSibling)return;$e("previousSibling",e);Object.defineProperty(e,"previousSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.childNodes;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n-1]}return this.__previousSibling}})};var ve=e=>{if(!e||e.__previousElementSibling)return;$e("previousElementSibling",e);Object.defineProperty(e,"previousElementSibling",{get:function(){var e;const t=(e=this["s-ol"])==null?void 0:e.parentNode.children;const n=t==null?void 0:t.indexOf(this);if(t&&n>-1){return t[n-1]}return this.__previousElementSibling}})};var de=e=>{if(!e||e.__parentNode)return;$e("parentNode",e);Object.defineProperty(e,"parentNode",{get:function(){var e;return((e=this["s-ol"])==null?void 0:e.parentNode)||this.__parentNode},set:function(e){this.__parentNode=e}})};var he=["children","nextElementSibling","previousElementSibling"];var pe=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function $e(e,t){let n;if(he.includes(e)){n=Object.getOwnPropertyDescriptor(Element.prototype,e)}else if(pe.includes(e)){n=Object.getOwnPropertyDescriptor(Node.prototype,e)}if(!n){n=Object.getOwnPropertyDescriptor(t,e)}if(n)Object.defineProperty(t,"__"+e,n)}function me(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var be=(e,t="")=>{{return()=>{}}};var ye=(e,t)=>{{return()=>{}}};var ge=(e,t,...n)=>{let r=null;let i=null;let l=null;let o=false;let s=false;const f=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(o=typeof e!=="function"&&!W(r)){r=String(r)}if(o&&s){f[f.length-1].j+=r}else{f.push(o?we(null,r):r)}s=o}}};a(n);if(t){if(t.key){i=t.key}if(t.name){l=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,f,Oe)}const c=we(e,null);c.O=t;if(f.length>0){c.N=f}{c.k=i}{c.C=l}return c};var we=(e,t)=>{const n={i:0,I:e,j:t,M:null,N:null};{n.O=null}{n.k=null}{n.C=null}return n};var Se={};var je=e=>e&&e.I===Se;var Oe={forEach:(e,t)=>e.map(Ne).forEach(t),map:(e,t)=>e.map(Ne).map(t).map(xe)};var Ne=e=>({vattrs:e.O,vchildren:e.N,vkey:e.k,vname:e.C,vtag:e.I,vtext:e.j});var xe=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 ge(e.vtag,t,...e.vchildren||[])}const t=we(e.vtag,e.vtext);t.O=e.vattrs;t.N=e.vchildren;t.k=e.vkey;t.C=e.vname;return t};var ke=(e,t,n,r)=>{var i;const l=be("hydrateClient",t);const o=e.shadowRoot;const s=[];const f=[];const a=[];const c=null;const u=we(t,null);u.M=e;const v=Object.entries(((i=r.l)==null?void 0:i.R)||{});v.forEach((([t,[n,i]])=>{var l;if(!(n&31)){return}const o=i||t;const s=e.getAttribute(o);if(s!==null){const e=Ae(s,n);(l=r==null?void 0:r.o)==null?void 0:l.set(t,e)}}));if(k.document&&(!C.L||!C.L.size)){Ce(k.document.body,C.L=new Map)}e[S]=n;e.removeAttribute(S);r.T=Ee(u,s,f,c,e,e,n,a);let d=0;const h=s.length;let p;for(d;d<h;d++){p=s[d];const n=p.A+"."+p.F;const r=C.L.get(n);const i=p.M;if(!o){i["s-hn"]=t.toUpperCase();if(p.I==="slot"){i["s-cr"]=e["s-cr"]}}if(p.I==="slot"){p.C=p.M["s-sn"]||p.M["name"]||null;if(p.N){p.i|=2;if(!p.M.childNodes.length){p.N.forEach((e=>{p.M.appendChild(e.M)}))}}else{p.i|=1}}if(r&&r.isConnected){if(o&&r["s-en"]===""){r.parentNode.insertBefore(i,r.nextSibling)}r.parentNode.removeChild(r);if(!o){i["s-oo"]=parseInt(p.F)}}C.L.delete(n)}const $=[];const m=a.length;let b=0;let y;let g;let w;let j;for(b;b<m;b++){y=a[b];if(!y||!y.length)continue;w=y.length;g=0;for(g;g<w;g++){j=y[g];if(!$[j.hostId]){$[j.hostId]=C.L.get(j.hostId)}if(!$[j.hostId])continue;const e=$[j.hostId];if(!e.shadowRoot||!o){j.slot["s-cr"]=e["s-cr"];if(!j.slot["s-cr"]&&e.shadowRoot){j.slot["s-cr"]=e}else{j.slot["s-cr"]=(e.__childNodes||e.childNodes)[0]}re(j.node,j.slot,false,j.node["s-oo"]);{fe(j.node)}}if(e.shadowRoot&&j.node.parentElement!==e){e.appendChild(j.node)}}}C.L.delete(e["s-id"]);r.$hostElement$=e;l()};var Ee=(e,t,n,r,i,l,o,s=[])=>{let f;let a;let c;let u;if(l.nodeType===1){f=l.getAttribute(O);if(f){a=f.split(".");if(a[0]===o||a[0]==="0"){c=Ie({i:0,A:a[0],F:a[1],P:a[2],D:a[3],I:l.tagName.toLowerCase(),M:l,O:{class:l.className||""}});t.push(c);l.removeAttribute(O);if(!e.N){e.N=[]}const i=c.M.getAttribute("s-sn");if(typeof i==="string"){if(c.I==="slot-fb"){Me(i,a[2],c,l,e,t,n,r,s)}c.M["s-sn"]=i;c.M.removeAttribute("s-sn")}if(c.D!==void 0){e.N[c.D]=c}e=c}}if(l.shadowRoot){for(u=l.shadowRoot.childNodes.length-1;u>=0;u--){Ee(e,t,n,r,i,l.shadowRoot.childNodes[u],o,s)}}const v=l.__childNodes||l.childNodes;for(u=v.length-1;u>=0;u--){Ee(e,t,n,r,i,v[u],o,s)}}else if(l.nodeType===8){a=l.nodeValue.split(".");if(a[1]===o||a[1]==="0"){f=a[0];c=Ie({A:a[1],F:a[2],P:a[3],D:a[4]||"0",M:l,O:null,N:null,k:null,C:null,I:null,j:null});if(f===g){c.M=Le(l,3);if(c.M&&c.M.nodeType===3){c.j=c.M.textContent;t.push(c);l.remove();if(o===c.A){if(!e.N){e.N=[]}e.N[c.D]=c}}}else if(f===w){c.M=Le(l,8);if(c.M&&c.M.nodeType===8){t.push(c);l.remove()}}else if(c.A===o){if(f===y){const i=l["s-sn"]=a[5]||"";Me(i,a[2],c,l,e,t,n,r,s)}else if(f===m){{i["s-cr"]=l;l["s-cn"]=true}}}}}else if(e&&e.I==="style"){const t=we(null,l.textContent);t.M=l;t.D="0";e.N=[t]}else{if(l.nodeType===3&&!l.wholeText.trim()){l.remove()}}return e};var Ce=(e,t)=>{if(e.nodeType===1){const n=e[S]||e.getAttribute(S);if(n){t.set(n,e)}let r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){Ce(e.shadowRoot.childNodes[r],t)}}const i=e.__childNodes||e.childNodes;for(r=0;r<i.length;r++){Ce(i[r],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===b){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var Ie=e=>{const t={i:0,A:null,F:null,P:null,D:"0",M:null,O:null,N:null,k:null,C:null,I:null,j:null};return{...t,...e}};function Me(e,t,n,r,i,l,o,s,f){r["s-sr"]=true;n.C=e||null;n.I="slot";const a=(i==null?void 0:i.M)?i.M["s-id"]||i.M.getAttribute("s-id"):"";{const o=n.M;const s=a&&a!==n.A&&i.M.shadowRoot;Re(f,t,e,r,s?a:n.A);le(r);if(s){i.M.insertBefore(o,i.M.children[0])}l.push(n)}o.push(n);if(!i.N){i.N=[]}i.N[n.D]=n}var Re=(e,t,n,r,i)=>{let l=r.nextSibling;e[t]=e[t]||[];while(l&&((l["getAttribute"]&&l.getAttribute("slot")||l["s-sn"])===n||n===""&&!l["s-sn"]&&(l.nodeType===8&&l.nodeValue.indexOf(".")!==1||l.nodeType===3))){l["s-sn"]=n;e[t].push({slot:r,node:l,hostId:i});l=l.nextSibling}};var Le=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var Te=e=>{const t=z(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};Te("::slotted");Te(":host");Te(":host-context");var Ae=(e,t)=>{if(typeof e==="string"&&(e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]"))){try{e=JSON.parse(e);return e}catch(e){}}if(typeof e==="string"&&e.startsWith(f)){e=Q(e);return e}if(e!=null&&!W(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var Fe=e=>a(e).$hostElement$;var Pe=(e,t,n)=>{const r=Fe(e);return{emit:e=>De(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var De=(e,t,n)=>{const r=C.ce(t,n);e.dispatchEvent(r);return r};var Ue=new WeakMap;var _e=(e,t,n)=>{let r=$.get(e);if(R&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}$.set(e,r)};var We=(e,t,n)=>{var r;const i=ze(t);const l=$.get(i);if(!k.document){return i}e=e.nodeType===11?e:k.document;if(l){if(typeof l==="string"){e=e.head||e;let n=Ue.get(e);let o;if(!n){Ue.set(e,n=new Set)}if(!n.has(i)){if(e.host&&(o=e.querySelector(`[${j}="${i}"]`))){o.innerHTML=l}else{o=document.querySelector(`[${j}="${i}"]`)||k.document.createElement("style");o.innerHTML=l;const n=(r=C.U)!=null?r:V(k.document);if(n!=null){o.setAttribute("nonce",n)}if(!(t.i&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(o,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(R){const t=new CSSStyleSheet;t.replaceSync(l);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=l+t.innerHTML}else{e.prepend(o)}}}else{e.append(o)}}if(t.i&1){e.insertBefore(o,null)}}if(t.i&4){o.innerHTML+=N}if(n){n.add(i)}}}else if(!e.adoptedStyleSheets.includes(l)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]}}return i};var Ve=e=>{const t=e.l;const n=e.$hostElement$;const r=be("attachStyles",t.$);We(n.getRootNode(),t);r()};var ze=(e,t)=>"sc-"+e.$;var Be=(e,t,n,r,i,l,o)=>{if(n===r){return}let s=v(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const i=Je(n);let l=Je(r);if(e["s-si"]&&o){l.push(e["s-si"]);i.forEach((t=>{if(t.startsWith(e["s-si"]))l.push(t)}));l=[...new Set(l)];t.add(...l)}else{t.remove(...i.filter((e=>e&&!l.includes(e))));t.add(...l.filter((e=>e&&!i.includes(e))))}}else if(t==="style"){{for(const t in n){if(!r||r[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in r){if(!n||r[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,r[t])}else{e.style[t]=r[t]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!s&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(v(k,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const i=t.endsWith(Ye);t=t.replace(qe,"");if(n){C.rel(e,t,n,i)}if(r){C.ael(e,t,r,i)}}}else{const o=W(r);if((s||o&&r!==null)&&true){try{if(!e.tagName.includes("-")){const i=r==null?"":r;if(t==="list"){s=false}else if(n==null||e[t]!=i){if(typeof e.__lookupSetter__(t)==="function"){e[t]=i}else{e.setAttribute(t,i)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}let a=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;a=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(a){e.removeAttributeNS(x,t)}else{e.removeAttribute(t)}}}else if((!s||l&4||i)&&!o&&e.nodeType===1){r=r===true?"":r;if(a){e.setAttributeNS(x,t,r)}else{e.setAttribute(t,r)}}}};var He=/\s/;var Je=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(He)};var Ye="Capture";var qe=new RegExp(Ye+"$");var Ge=(e,t,n,r)=>{const i=t.M.nodeType===11&&t.M.host?t.M.host:t.M;const l=e&&e.O||{};const o=t.O||{};{for(const e of Ke(Object.keys(l))){if(!(e in o)){Be(i,e,l[e],void 0,n,t.i,r)}}}for(const e of Ke(Object.keys(o))){Be(i,e,l[e],o[e],n,t.i,r)}};function Ke(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Qe;var Xe;var Ze=false;var et=false;var tt=false;var nt=false;var rt=(e,n,r)=>{var i;const l=n.N[r];let o=0;let s;let f;let a;if(!Ze){tt=true;if(l.I==="slot"){l.i|=l.N?2:1}}if(l.j!==null){s=l.M=k.document.createTextNode(l.j)}else if(l.i&1){s=l.M=k.document.createTextNode("");{Ge(null,l,nt)}}else{if(!k.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}s=l.M=k.document.createElement(!Ze&&t.slotRelocation&&l.i&2?"slot-fb":l.I);{Ge(null,l,nt)}if(l.N){for(o=0;o<l.N.length;++o){f=rt(e,l,o);if(f){s.appendChild(f)}}}}s["s-hn"]=Xe;{if(l.i&(2|1)){s["s-sr"]=true;s["s-cr"]=Qe;s["s-sn"]=l.C||"";s["s-rf"]=(i=l.O)==null?void 0:i.ref;le(s);a=e&&e.N&&e.N[r];if(a&&a.I===l.I&&e.M){{it(e.M)}}}}return s};var it=e=>{C.i|=1;const t=e.closest(Xe.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const r=Array.from(e.__childNodes||e.childNodes);for(const e of n?r.reverse():r){if(e["s-sh"]!=null){pt(t,e,n!=null?n:null);e["s-sh"]=void 0;tt=true}}}C.i&=-2};var lt=(e,n)=>{C.i|=1;const r=Array.from(e.__childNodes||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"]===Xe){r.push(t)}}}for(let e=r.length-1;e>=0;e--){const t=r[e];if(t["s-hn"]!==Xe&&t["s-ol"]){pt(ct(t).parentNode,t,ct(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;tt=true}if(n){lt(t,n)}}C.i&=-2};var ot=(e,t,n,r,i,l)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e;let s;for(;i<=l;++i){if(r[i]){s=rt(null,n,i);if(s){r[i].M=s;pt(o,s,ct(t))}}}};var st=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.M;ht(t);if(e){{et=true;if(e["s-ol"]){e["s-ol"].remove()}else{lt(e,true)}}e.remove()}}}};var ft=(e,t,n,r,i=false)=>{let l=0;let o=0;let s=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let h=r[v];let p;let $;while(l<=a&&o<=v){if(c==null){c=t[++l]}else if(u==null){u=t[--a]}else if(d==null){d=r[++o]}else if(h==null){h=r[--v]}else if(at(c,d,i)){ut(c,d,i);c=t[++l];d=r[++o]}else if(at(u,h,i)){ut(u,h,i);u=t[--a];h=r[--v]}else if(at(c,h,i)){if(c.I==="slot"||h.I==="slot"){lt(c.M.parentNode,false)}ut(c,h,i);pt(e,c.M,u.M.nextSibling);c=t[++l];h=r[--v]}else if(at(u,d,i)){if(c.I==="slot"||h.I==="slot"){lt(u.M.parentNode,false)}ut(u,d,i);pt(e,u.M,c.M);u=t[--a];d=r[++o]}else{s=-1;{for(f=l;f<=a;++f){if(t[f]&&t[f].k!==null&&t[f].k===d.k){s=f;break}}}if(s>=0){$=t[s];if($.I!==d.I){p=rt(t&&t[o],n,s)}else{ut($,d,i);t[s]=void 0;p=$.M}d=r[++o]}else{p=rt(t&&t[o],n,o);d=r[++o]}if(p){{pt(ct(c.M).parentNode,p,ct(c.M))}}}}if(l>a){ot(e,r[v+1]==null?null:r[v+1].M,n,r,o,v)}else if(o>v){st(t,l,a)}};var at=(e,t,n=false)=>{if(e.I===t.I){if(e.I==="slot"){return e.C===t.C}if(!n){return e.k===t.k}if(n&&!e.k&&t.k){e.k=t.k}return true}return false};var ct=e=>e&&e["s-ol"]||e;var ut=(e,n,r=false)=>{const i=n.M=e.M;const l=e.N;const o=n.N;const s=n.I;const f=n.j;let a;if(f===null){{if(s==="slot"&&!Ze){if(e.C!==n.C){n.M["s-sn"]=n.C||"";it(n.M.parentElement)}}Ge(e,n,nt,r)}if(l!==null&&o!==null){ft(i,l,n,o,r)}else if(o!==null){if(e.j!==null){i.textContent=""}ot(i,null,n,o,0,o.length-1)}else if(!r&&t.updatable&&l!==null){st(l,0,l.length-1)}}else if(a=i["s-cr"]){a.parentNode.textContent=f}else if(e.j!==f){i.data=f}};var vt=[];var dt=e=>{let t;let n;let r;const i=e.__childNodes||e.childNodes;for(const e of i){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const i=e["s-sn"];for(r=n.length-1;r>=0;r--){t=n[r];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==e["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==e["s-hn"])){if(ne(t,i)){let n=vt.find((e=>e._===t));et=true;t["s-sn"]=t["s-sn"]||i;if(n){n._["s-sh"]=e["s-hn"];n.W=e}else{t["s-sh"]=e["s-hn"];vt.push({W:e,_:t})}if(t["s-sr"]){vt.map((e=>{if(ne(e._,t["s-sn"])){n=vt.find((e=>e._===t));if(n&&!e.W){e.W=n.W}}}))}}else if(!vt.some((e=>e._===t))){vt.push({_:t})}}}}if(e.nodeType===1){dt(e)}}};var ht=e=>{{e.O&&e.O.ref&&e.O.ref(null);e.N&&e.N.map(ht)}};var pt=(e,t,n)=>{if(typeof t["s-sn"]==="string"){if(e.getRootNode().nodeType!==11){de(t)}e.insertBefore(t,n);const{slotNode:r}=se(t);if(r)oe(r);return t}if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};var $t=(e,t,n=false)=>{var r,i,l,o,s;const f=e.$hostElement$;const a=e.l;const c=e.T||we(null,null);const u=je(t);const v=u?t:ge(null,null,t);Xe=f.tagName;if(a.V){v.O=v.O||{};a.V.map((([e,t])=>v.O[t]=f[e]))}if(n&&v.O){for(const e of Object.keys(v.O)){if(f.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){v.O[e]=f[e]}}}v.I=null;v.i|=4;e.T=v;v.M=c.M=f;Ze=I;{Qe=f["s-cr"];et=false}ut(c,v,n);{C.i|=1;if(tt){dt(v.M);for(const e of vt){const t=e._;if(!t["s-ol"]&&k.document){const e=k.document.createTextNode("");e["s-nr"]=t;pt(t.parentNode,t["s-ol"]=e,t)}}for(const e of vt){const t=e._;const s=e.W;if(s){const e=s.parentNode;let n=s.nextSibling;if(n&&n.nodeType===1){let l=(r=t["s-ol"])==null?void 0:r.previousSibling;while(l){let r=(i=l["s-nr"])!=null?i:null;if(r&&r["s-sn"]===t["s-sn"]&&e===(r.__parentNode||r.parentNode)){r=r.nextSibling;while(r===t||(r==null?void 0:r["s-sr"])){r=r==null?void 0:r.nextSibling}if(!r||!r["s-nr"]){n=r;break}}l=l.previousSibling}}const o=t.__parentNode||t.parentNode;const f=t.__nextSibling||t.nextSibling;if(!n&&e!==o||f!==n){if(t!==n){pt(e,t,n);if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(l=t["s-ih"])!=null?l:false}}}t&&typeof s["s-rf"]==="function"&&s["s-rf"](s)}else{if(t.nodeType===1){if(n){t["s-ih"]=(o=t.hidden)!=null?o:false}t.hidden=true}}}}if(et){X(v.M)}C.i&=-2;vt.length=0}if(a.i&2){const e=v.M.__childNodes||v.M.childNodes;for(const t of e){if(t["s-hn"]!==Xe&&!t["s-sh"]){if(n&&t["s-ih"]==null){t["s-ih"]=(s=t.hidden)!=null?s:false}t.hidden=true}}}Qe=void 0};var mt=(e,t)=>{if(t&&!e.B&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.B=()=>{t["s-p"].splice(n-1,1);r()})))}};var bt=(e,t)=>{{e.i|=16}if(e.i&4){e.i|=512;return}mt(e,e.H);const n=()=>yt(e,t);return _(n)};var yt=(e,t)=>{const n=e.$hostElement$;const r=be("scheduleUpdate",e.l.$);const i=e.t;if(!i){throw new Error(`Can't render component <${n.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 l;if(t){l=xt(i,"componentWillLoad",void 0,n)}else{l=xt(i,"componentWillUpdate",void 0,n)}l=gt(l,(()=>xt(i,"componentWillRender",void 0,n)));r();return gt(l,(()=>St(e,i,t)))};var gt=(e,t)=>wt(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var wt=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var St=async(e,t,n)=>{var r;const i=e.$hostElement$;const l=be("update",e.l.$);const o=i["s-rc"];if(n){Ve(e)}const s=be("render",e.l.$);{jt(e,t,i,n)}if(o){o.map((e=>e()));i["s-rc"]=void 0}s();l();{const t=(r=i["s-p"])!=null?r:[];const n=()=>Ot(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.i|=4;t.length=0}}};var jt=(e,t,n,r)=>{try{t=t.render();{e.i&=-17}{e.i|=2}{{{$t(e,t,r)}}}}catch(t){d(t,e.$hostElement$)}return null};var Ot=e=>{const t=e.l.$;const n=e.$hostElement$;const r=be("postUpdate",t);const i=e.t;const l=e.H;xt(i,"componentDidRender",void 0,n);if(!(e.i&64)){e.i|=64;{kt(n)}xt(i,"componentDidLoad",void 0,n);r();{e.p(n);if(!l){Nt()}}}else{xt(i,"componentDidUpdate",void 0,n);r()}{e.v(n)}{if(e.B){e.B();e.B=void 0}if(e.i&512){U((()=>bt(e,false)))}e.i&=-517}};var Nt=t=>{U((()=>De(k,"appload",{detail:{namespace:e}})))};var xt=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){d(e,r)}}return void 0};var kt=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Et=(e,t)=>a(e).o.get(t);var Ct=(e,t,n,r)=>{const i=a(e);if(!i){throw new Error(`Couldn't find host element for "${r.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const l=i.$hostElement$;const o=i.o.get(t);const s=i.i;const f=i.t;n=Ae(n,r.R[t][0]);const c=Number.isNaN(o)&&Number.isNaN(n);const u=n!==o&&!c;if((!(s&8)||o===void 0)&&u){i.o.set(t,n);if(f){if(r.J&&s&128){const e=r.J[t];if(e){e.map((e=>{try{f[e](n,o,t)}catch(e){d(e,l)}}))}}if((s&(2|16))===2){if(f.componentShouldUpdate){if(f.componentShouldUpdate(n,o,t)===false){return}}bt(i,false)}}}};var It=(e,n,r)=>{var i,l;const o=e.prototype;if(n.R||(n.J||e.watchers)){if(e.watchers&&!n.J){n.J=e.watchers}const s=Object.entries((i=n.R)!=null?i:{});s.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:i,set:l}=Object.getOwnPropertyDescriptor(o,e)||{};if(i)n.R[e][0]|=2048;if(l)n.R[e][0]|=4096;if(r&1||!i){Object.defineProperty(o,e,{get(){{if((n.R[e][0]&2048)===0){return Et(this,e)}const t=a(this);const r=t?t.t:o;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(o,e,{set(i){const o=a(this);if(l){const r=t&32?this[e]:o.$hostElement$[e];if(typeof r==="undefined"&&o.o.get(e)){i=o.o.get(e)}else if(!o.o.get(e)&&r){o.o.set(e,r)}l.apply(this,[Ae(i,t)]);i=t&32?this[e]:o.$hostElement$[e];Ct(this,e,i,n);return}{if((r&1)===0||(n.R[e][0]&4096)===0){Ct(this,e,i,n);if(r&1&&!o.t){o.h.then((()=>{if(n.R[e][0]&4096&&o.t[e]!==o.o.get(e)){o.t[e]=i}}))}return}const l=()=>{const r=o.t[e];if(!o.o.get(e)&&r){o.o.set(e,r)}o.t[e]=Ae(i,t);Ct(this,e,o.t[e],n)};if(o.t){l()}else{o.h.then((()=>l()))}}}})}else if(r&1&&t&64){Object.defineProperty(o,e,{value(...t){var n;const r=a(this);return(n=r==null?void 0:r.u)==null?void 0:n.then((()=>{var n;return(n=r.t)==null?void 0:n[e](...t)}))}})}}));if(r&1){const r=new Map;o.attributeChangedCallback=function(e,i,l){C.jmp((()=>{var s;const f=r.get(e);if(this.hasOwnProperty(f)&&t.lazyLoad){l=this[f];delete this[f]}else if(o.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==l){return}else if(f==null){const t=a(this);const r=t==null?void 0:t.i;if(r&&!(r&8)&&r&128&&l!==i){const r=t.t;const o=(s=n.J)==null?void 0:s[e];o==null?void 0:o.forEach((t=>{if(r[t]!=null){r[t].call(r,l,i,e)}}))}return}const c=Object.getOwnPropertyDescriptor(o,f);l=l===null&&typeof this[f]==="boolean"?false:l;if(l!==this[f]&&(!c.get||!!c.set)){this[f]=l}}))};e.observedAttributes=Array.from(new Set([...Object.keys((l=n.J)!=null?l:{}),...s.filter((([e,t])=>t[0]&15)).map((([e,t])=>{var i;const l=t[1]||e;r.set(l,e);if(t[0]&512){(i=n.V)==null?void 0:i.push([e,l])}return l}))]))}}return e};var Mt=async(e,t,n,r)=>{let i;if((t.i&32)===0){t.i|=32;const r=n.m;if(r){const r=p(n,t);if(r&&"then"in r){const e=ye();i=await r;e()}else{i=r}if(!i){throw new Error(`Constructor for "${n.$}#${t.Y}" was not found`)}if(!i.isProxied){{n.J=i.watchers}It(i,n,2);i.isProxied=true}const l=be("createInstance",n.$);{t.i|=8}try{new i(t)}catch(t){d(t,e)}{t.i&=-9}{t.i|=128}l();Rt(t.t,e)}else{i=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.i|=128))}if(i&&i.style){let e;if(typeof i.style==="string"){e=i.style}const t=ze(n);if(!$.has(t)){const r=be("registerStyles",n.$);_e(t,e,!!(n.i&1));r()}}}const l=t.H;const o=()=>bt(t,true);if(l&&l["s-rc"]){l["s-rc"].push(o)}else{o()}};var Rt=(e,t)=>{{xt(e,"connectedCallback",void 0,t)}};var Lt=e=>{if((C.i&1)===0){const t=a(e);const n=t.l;const r=be("connectedCallback",n.$);if(!(t.i&1)){t.i|=1;let r;{r=e.getAttribute(S);if(r){ke(e,n.$,r,t)}}if(!r){if(n.i&(4|8)){Tt(e)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){mt(t,t.H=n);break}}}if(n.R){Object.entries(n.R).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{Mt(e,t,n)}}else{if(t==null?void 0:t.t){Rt(t.t,e)}else if(t==null?void 0:t.h){t.h.then((()=>Rt(t.t,e)))}}r()}};var Tt=e=>{if(!k.document){return}const t=e["s-cr"]=k.document.createComment("");t["s-cn"]=true;pt(e,t,e.firstChild)};var At=(e,t)=>{{xt(e,"disconnectedCallback",void 0,t||e)}};var Ft=async e=>{if((C.i&1)===0){const t=a(e);if(t==null?void 0:t.t){At(t.t,e)}else if(t==null?void 0:t.h){t.h.then((()=>At(t.t,e)))}}if(Ue.has(e)){Ue.delete(e)}if(e.shadowRoot&&Ue.has(e.shadowRoot)){Ue.delete(e.shadowRoot)}};var Pt=(e,t={})=>{var n;if(!k.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=be();const i=[];const l=t.exclude||[];const o=k.customElements;const s=k.document.head;const f=s.querySelector("meta[charset]");const c=k.document.createElement("style");const v=[];let d;let h=true;Object.assign(C,t);C.S=new URL(t.resourcesUrl||"./",k.document.baseURI).href;{C.i|=2}let p=false;e.map((e=>{e[1].map((t=>{var n;const r={i:t[0],$:t[1],R:t[2],q:t[3]};if(r.i&4){p=true}{r.R=t[2]}{r.V=[]}{r.J=(n=t[4])!=null?n:{}}const s=r.$;const f=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;u(e,r)}connectedCallback(){a(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{C.jmp((()=>Lt(this)))}}disconnectedCallback(){C.jmp((()=>Ft(this)));C.raf((()=>{var e;const t=a(this);const n=v.findIndex((e=>e===this));if(n>-1){v.splice(n,1)}if(((e=t==null?void 0:t.T)==null?void 0:e.M)instanceof Node&&!t.T.M.isConnected){delete t.T.M}}))}componentOnReady(){return a(this).h}};r.m=e[0];if(!l.includes(s)&&!o.get(s)){i.push(s);o.define(s,It(f,r,1))}}))}));if(i.length>0){if(p){c.textContent+=N}if(c.innerHTML.length){c.setAttribute("data-styles","");const e=(n=C.U)!=null?n:V(k.document);if(e!=null){c.setAttribute("nonce",e)}s.insertBefore(c,f?f.nextSibling:s.firstChild)}}h=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{C.jmp((()=>d=setTimeout(Nt,30)))}}r()};var Dt=(e,t)=>t;var Ut=e=>C.U=e;export{Dt as F,Se as H,E as a,Pt as b,Pe as c,Fe as g,ge as h,M as p,c as r,Ut as s};
3
- //# sourceMappingURL=p-ClISz4NF.js.map