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

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 (355) 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 +1 -1
  13. package/dist/cjs/gov-chip.cjs.entry.js +3 -3
  14. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gov-chip.entry.cjs.js.map +1 -1
  16. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  17. package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
  18. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  19. package/dist/cjs/gov-dialog.cjs.entry.js +1 -1
  20. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  21. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  22. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  23. package/dist/cjs/gov-flex_3.cjs.entry.js +1 -1
  24. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
  25. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +1 -1
  26. package/dist/cjs/gov-form-checkbox.cjs.entry.js +1 -1
  27. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  28. package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
  29. package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
  30. package/dist/cjs/gov-form-input_2.cjs.entry.js +1 -1
  31. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  32. package/dist/cjs/gov-form-multi-select.cjs.entry.js +1 -1
  33. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  34. package/dist/cjs/gov-form-radio-group.cjs.entry.js +1 -1
  35. package/dist/cjs/gov-form-radio.cjs.entry.js +1 -1
  36. package/dist/cjs/gov-form-range.cjs.entry.js +1 -1
  37. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  38. package/dist/cjs/gov-form-select.cjs.entry.js +1 -1
  39. package/dist/cjs/gov-form-switch.cjs.entry.js +1 -1
  40. package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
  41. package/dist/cjs/gov-grid.cjs.entry.js +1 -1
  42. package/dist/cjs/gov-infobar.cjs.entry.js +1 -1
  43. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  44. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  45. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  46. package/dist/cjs/gov-link.cjs.entry.js +1 -1
  47. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  48. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  49. package/dist/cjs/gov-pagination.cjs.entry.js +1 -1
  50. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  51. package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
  52. package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
  53. package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
  54. package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
  55. package/dist/cjs/gov-tag.cjs.entry.js +1 -1
  56. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  57. package/dist/cjs/gov-toast.cjs.entry.js +1 -1
  58. package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
  59. package/dist/cjs/gov-tooltip.cjs.entry.js +1 -1
  60. package/dist/cjs/gov-wizard-item.cjs.entry.js +1 -1
  61. package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
  62. package/dist/cjs/{index-BEF5cZxd.js → index-pjwoybrU.js} +482 -140
  63. package/dist/cjs/index-pjwoybrU.js.map +1 -0
  64. package/dist/cjs/loader.cjs.js +2 -2
  65. package/dist/collection/collection-manifest.json +1 -1
  66. package/dist/collection/components/gov-chip/gov-chip.js +2 -2
  67. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  68. package/dist/collection/pages/Chip.js +8 -5
  69. package/dist/collection/pages/Chip.js.map +1 -1
  70. package/dist/collection/pages/Tooltip.js +10 -0
  71. package/dist/collection/pages/Tooltip.js.map +1 -1
  72. package/dist/components/gov-accordion-item.js +1 -1
  73. package/dist/components/gov-accordion.js +1 -1
  74. package/dist/components/gov-attachments-item.js +1 -1
  75. package/dist/components/gov-attachments.js +1 -1
  76. package/dist/components/gov-backdrop.js +1 -1
  77. package/dist/components/gov-banner.js +1 -1
  78. package/dist/components/gov-blockquote.js +1 -1
  79. package/dist/components/gov-breadcrumbs.js +1 -1
  80. package/dist/components/gov-button.js +1 -1
  81. package/dist/components/gov-card.js +1 -1
  82. package/dist/components/gov-chip.js +1 -1
  83. package/dist/components/gov-container.js +1 -1
  84. package/dist/components/gov-control-group.js +1 -1
  85. package/dist/components/gov-cookiebar.js +1 -1
  86. package/dist/components/gov-dialog.js +1 -1
  87. package/dist/components/gov-dropdown.js +1 -1
  88. package/dist/components/gov-empty.js +1 -1
  89. package/dist/components/gov-error-code.js +1 -1
  90. package/dist/components/gov-flex.js +1 -1
  91. package/dist/components/gov-form-autocomplete.js +1 -1
  92. package/dist/components/gov-form-checkbox-group.js +1 -1
  93. package/dist/components/gov-form-checkbox.js +1 -1
  94. package/dist/components/gov-form-control.js +1 -1
  95. package/dist/components/gov-form-file.js +1 -1
  96. package/dist/components/gov-form-group.js +1 -1
  97. package/dist/components/gov-form-input.js +1 -1
  98. package/dist/components/gov-form-label.js +1 -1
  99. package/dist/components/gov-form-message.js +1 -1
  100. package/dist/components/gov-form-multi-select.js +1 -1
  101. package/dist/components/gov-form-password-power.js +1 -1
  102. package/dist/components/gov-form-radio-group.js +1 -1
  103. package/dist/components/gov-form-radio.js +1 -1
  104. package/dist/components/gov-form-range.js +1 -1
  105. package/dist/components/gov-form-search.js +1 -1
  106. package/dist/components/gov-form-select.js +1 -1
  107. package/dist/components/gov-form-switch.js +1 -1
  108. package/dist/components/gov-grid-item.js +1 -1
  109. package/dist/components/gov-grid.js +1 -1
  110. package/dist/components/gov-icon.js +1 -1
  111. package/dist/components/gov-infobar.js +1 -1
  112. package/dist/components/gov-layout-column.js +1 -1
  113. package/dist/components/gov-layout.js +1 -1
  114. package/dist/components/gov-lifecycle.js +1 -1
  115. package/dist/components/gov-link.js +1 -1
  116. package/dist/components/gov-loading.js +1 -1
  117. package/dist/components/gov-message.js +1 -1
  118. package/dist/components/gov-pagination.js +1 -1
  119. package/dist/components/gov-skeleton.js +1 -1
  120. package/dist/components/gov-spacer.js +1 -1
  121. package/dist/components/gov-stepper-item.js +1 -1
  122. package/dist/components/gov-stepper.js +1 -1
  123. package/dist/components/gov-tabs-item.js +1 -1
  124. package/dist/components/gov-tabs.js +1 -1
  125. package/dist/components/gov-tag.js +1 -1
  126. package/dist/components/gov-theme-switch.js +1 -1
  127. package/dist/components/gov-tile.js +1 -1
  128. package/dist/components/gov-toast.js +1 -1
  129. package/dist/components/gov-tooltip-content.js +1 -1
  130. package/dist/components/gov-tooltip.js +1 -1
  131. package/dist/components/gov-wizard-item.js +1 -1
  132. package/dist/components/gov-wizard.js +1 -1
  133. package/dist/components/index.js +1 -1
  134. package/dist/components/index.js.map +1 -1
  135. package/dist/components/{p-DxCeyMKq.js → p-8QWehgod.js} +2 -2
  136. package/dist/components/{p-Dj3UNRiz.js → p-BcZ7-N5H.js} +2 -2
  137. package/dist/components/p-BlBAryxm.js +2 -0
  138. package/dist/components/p-BlBAryxm.js.map +1 -0
  139. package/dist/components/{p-CNRG3ZtC.js → p-Btw6IAjS.js} +2 -2
  140. package/dist/components/{p-DkoI3xas.js → p-C4pc6Rox.js} +2 -2
  141. package/dist/components/{p-vuyK2av-.js → p-CSjqhysd.js} +2 -2
  142. package/dist/components/{p-DGsyEn3-.js → p-Cta_74Ps.js} +2 -2
  143. package/dist/components/{p-CNXZgyfX.js → p-D4Z6jWqx.js} +2 -2
  144. package/dist/components/{p-BlqsCTBR.js → p-DnZEr-aq.js} +2 -2
  145. package/dist/components/{p-D82BPGeo.js → p-WmFNIuTf.js} +2 -2
  146. package/dist/components/{p-yUYC6pA5.js → p-wlTP5ZEU.js} +2 -2
  147. package/dist/core/core.css +157 -40
  148. package/dist/core/core.esm.js +1 -1
  149. package/dist/core/core.esm.js.map +1 -1
  150. package/dist/core/gov-chip.entry.esm.js.map +1 -1
  151. package/dist/core/{p-1fca9440.entry.js → p-01482eb2.entry.js} +2 -2
  152. package/dist/core/{p-7c1d10c4.entry.js → p-0dbda4ab.entry.js} +2 -2
  153. package/dist/core/{p-cb91eed8.entry.js → p-19a408eb.entry.js} +2 -2
  154. package/dist/core/{p-57f8e68a.entry.js → p-1bfbad36.entry.js} +2 -2
  155. package/dist/core/{p-f6a01739.entry.js → p-1f4450cc.entry.js} +2 -2
  156. package/dist/core/{p-a262eb49.entry.js → p-2142c481.entry.js} +2 -2
  157. package/dist/core/{p-e61dceb2.entry.js → p-25a33448.entry.js} +2 -2
  158. package/dist/core/{p-ffd60450.entry.js → p-2affc4c0.entry.js} +2 -2
  159. package/dist/core/{p-db01c95c.entry.js → p-3477fcf1.entry.js} +2 -2
  160. package/dist/core/p-35c24ac5.entry.js +2 -0
  161. package/dist/core/{p-77e3fa09.entry.js → p-35f784be.entry.js} +2 -2
  162. package/dist/core/{p-840fed0e.entry.js → p-37770cee.entry.js} +2 -2
  163. package/dist/core/{p-bc6fe3db.entry.js → p-37b98852.entry.js} +2 -2
  164. package/dist/core/{p-24ec7a60.entry.js → p-48a3bb49.entry.js} +2 -2
  165. package/dist/core/{p-8ca5804b.entry.js → p-4e170f53.entry.js} +2 -2
  166. package/dist/core/{p-b1869b24.entry.js → p-57aac00e.entry.js} +2 -2
  167. package/dist/core/{p-616c2209.entry.js → p-5c9371da.entry.js} +2 -2
  168. package/dist/core/{p-cd82ae8b.entry.js → p-6508f953.entry.js} +2 -2
  169. package/dist/core/{p-8b866af0.entry.js → p-658c1d84.entry.js} +2 -2
  170. package/dist/core/{p-03a8226e.entry.js → p-730b823a.entry.js} +2 -2
  171. package/dist/core/{p-1d78f520.entry.js → p-7f46f70a.entry.js} +2 -2
  172. package/dist/core/{p-22c2e7e8.entry.js → p-83507d07.entry.js} +2 -2
  173. package/dist/core/{p-877178fe.entry.js → p-871d4318.entry.js} +2 -2
  174. package/dist/core/{p-50b0d5dd.entry.js → p-8873dc4b.entry.js} +2 -2
  175. package/dist/core/{p-750ced1c.entry.js → p-8c942041.entry.js} +2 -2
  176. package/dist/core/{p-0a50f540.entry.js → p-8d42ee97.entry.js} +2 -2
  177. package/dist/core/{p-5f2cbcf6.entry.js → p-8dceba0b.entry.js} +2 -2
  178. package/dist/core/{p-8fbdabfe.entry.js → p-901cbf94.entry.js} +2 -2
  179. package/dist/core/{p-25017dd9.entry.js → p-90b277bb.entry.js} +2 -2
  180. package/dist/core/{p-0f2f623b.entry.js → p-90ff56f4.entry.js} +2 -2
  181. package/dist/core/{p-49581c53.entry.js → p-962d5767.entry.js} +2 -2
  182. package/dist/core/{p-f3613f8a.entry.js → p-984b6020.entry.js} +2 -2
  183. package/dist/core/{p-1d944358.entry.js → p-9d2a4eb1.entry.js} +2 -2
  184. package/dist/core/{p-a2a257ef.entry.js → p-9ff7e018.entry.js} +2 -2
  185. package/dist/core/p-DQuL1Twl.js.map +1 -1
  186. package/dist/core/p-DT2tslUp.js +3 -0
  187. package/dist/core/p-DT2tslUp.js.map +1 -0
  188. package/dist/core/{p-f27ac0f7.entry.js → p-a18c600d.entry.js} +2 -2
  189. package/dist/core/{p-177a0638.entry.js → p-aaa73dc8.entry.js} +2 -2
  190. package/dist/core/p-ade69b24.entry.js +2 -0
  191. package/dist/core/{p-db32ed60.entry.js → p-b19afdd8.entry.js} +2 -2
  192. package/dist/core/{p-bc5f5e3d.entry.js → p-b97b4439.entry.js} +2 -2
  193. package/dist/core/{p-ab0f7851.entry.js → p-bbe0d727.entry.js} +2 -2
  194. package/dist/core/{p-4382abb5.entry.js → p-bedd75e1.entry.js} +2 -2
  195. package/dist/core/{p-5e8946af.entry.js → p-c1a1fc45.entry.js} +2 -2
  196. package/dist/core/{p-e9e584a0.entry.js → p-c6f52c6f.entry.js} +2 -2
  197. package/dist/core/{p-11ee3438.entry.js → p-c99cc786.entry.js} +2 -2
  198. package/dist/core/{p-a6d16324.entry.js → p-c9edada1.entry.js} +2 -2
  199. package/dist/core/{p-0d0bd226.entry.js → p-cddfc899.entry.js} +2 -2
  200. package/dist/core/{p-1b922db5.entry.js → p-ce588d98.entry.js} +2 -2
  201. package/dist/core/{p-3a25ddfa.entry.js → p-d4440adf.entry.js} +2 -2
  202. package/dist/core/{p-1744f488.entry.js → p-d48d5870.entry.js} +2 -2
  203. package/dist/core/{p-73dcc4f1.entry.js → p-e169f098.entry.js} +2 -2
  204. package/dist/core/{p-05c81fd3.entry.js → p-e3e3e9f2.entry.js} +2 -2
  205. package/dist/core/{p-64b0f2d6.entry.js → p-e8507630.entry.js} +2 -2
  206. package/dist/core/p-e9284c2b.entry.js +2 -0
  207. package/dist/core/{p-904e7e44.entry.js.map → p-e9284c2b.entry.js.map} +1 -1
  208. package/dist/core/{p-22f17af5.entry.js → p-f01eb407.entry.js} +2 -2
  209. package/dist/core/p-f0505205.entry.js +2 -0
  210. package/dist/core/p-f0505205.entry.js.map +1 -0
  211. package/dist/core/{p-cb293cf3.entry.js → p-f3c873f5.entry.js} +2 -2
  212. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  213. package/dist/esm/core.js +4 -4
  214. package/dist/esm/core.js.map +1 -1
  215. package/dist/esm/gov-accordion-item.entry.js +1 -1
  216. package/dist/esm/gov-accordion.entry.js +1 -1
  217. package/dist/esm/gov-attachments_3.entry.js +1 -1
  218. package/dist/esm/gov-backdrop.entry.js +1 -1
  219. package/dist/esm/gov-banner.entry.js +1 -1
  220. package/dist/esm/gov-blockquote.entry.js +1 -1
  221. package/dist/esm/gov-breadcrumbs.entry.js +1 -1
  222. package/dist/esm/gov-button.entry.js +1 -1
  223. package/dist/esm/gov-card.entry.js +1 -1
  224. package/dist/esm/gov-chip.entry.js +3 -3
  225. package/dist/esm/gov-chip.entry.js.map +1 -1
  226. package/dist/esm/gov-container.entry.js +1 -1
  227. package/dist/esm/gov-control-group.entry.js +1 -1
  228. package/dist/esm/gov-cookiebar.entry.js +1 -1
  229. package/dist/esm/gov-dialog.entry.js +1 -1
  230. package/dist/esm/gov-dropdown.entry.js +1 -1
  231. package/dist/esm/gov-empty.entry.js +1 -1
  232. package/dist/esm/gov-error-code.entry.js +1 -1
  233. package/dist/esm/gov-flex_3.entry.js +1 -1
  234. package/dist/esm/gov-form-autocomplete.entry.js +1 -1
  235. package/dist/esm/gov-form-checkbox-group.entry.js +1 -1
  236. package/dist/esm/gov-form-checkbox.entry.js +1 -1
  237. package/dist/esm/gov-form-control.entry.js +1 -1
  238. package/dist/esm/gov-form-file.entry.js +1 -1
  239. package/dist/esm/gov-form-group.entry.js +1 -1
  240. package/dist/esm/gov-form-input_2.entry.js +1 -1
  241. package/dist/esm/gov-form-label.entry.js +1 -1
  242. package/dist/esm/gov-form-multi-select.entry.js +1 -1
  243. package/dist/esm/gov-form-password-power.entry.js +1 -1
  244. package/dist/esm/gov-form-radio-group.entry.js +1 -1
  245. package/dist/esm/gov-form-radio.entry.js +1 -1
  246. package/dist/esm/gov-form-range.entry.js +1 -1
  247. package/dist/esm/gov-form-search.entry.js +1 -1
  248. package/dist/esm/gov-form-select.entry.js +1 -1
  249. package/dist/esm/gov-form-switch.entry.js +1 -1
  250. package/dist/esm/gov-grid-item.entry.js +1 -1
  251. package/dist/esm/gov-grid.entry.js +1 -1
  252. package/dist/esm/gov-infobar.entry.js +1 -1
  253. package/dist/esm/gov-layout-column.entry.js +1 -1
  254. package/dist/esm/gov-layout.entry.js +1 -1
  255. package/dist/esm/gov-lifecycle.entry.js +1 -1
  256. package/dist/esm/gov-link.entry.js +1 -1
  257. package/dist/esm/gov-loading.entry.js +1 -1
  258. package/dist/esm/gov-message.entry.js +1 -1
  259. package/dist/esm/gov-pagination.entry.js +1 -1
  260. package/dist/esm/gov-spacer.entry.js +1 -1
  261. package/dist/esm/gov-stepper-item.entry.js +1 -1
  262. package/dist/esm/gov-stepper.entry.js +1 -1
  263. package/dist/esm/gov-tabs-item.entry.js +1 -1
  264. package/dist/esm/gov-tabs.entry.js +1 -1
  265. package/dist/esm/gov-tag.entry.js +1 -1
  266. package/dist/esm/gov-tile.entry.js +1 -1
  267. package/dist/esm/gov-toast.entry.js +1 -1
  268. package/dist/esm/gov-tooltip-content.entry.js +1 -1
  269. package/dist/esm/gov-tooltip.entry.js +1 -1
  270. package/dist/esm/gov-wizard-item.entry.js +1 -1
  271. package/dist/esm/gov-wizard.entry.js +1 -1
  272. package/dist/esm/{index-ClISz4NF.js → index-DT2tslUp.js} +482 -140
  273. package/dist/esm/index-DT2tslUp.js.map +1 -0
  274. package/dist/esm/loader.js +3 -3
  275. package/dist/hydrate/index.js +329 -196
  276. package/dist/hydrate/index.mjs +329 -196
  277. package/dist/stencil.config.js +0 -9
  278. package/dist/stencil.config.js.map +1 -1
  279. package/dist/types/stencil-public-runtime.d.ts +12 -5
  280. package/package.json +3 -3
  281. package/dist/cjs/index-BEF5cZxd.js.map +0 -1
  282. package/dist/components/p-CEl4WEkF.js +0 -2
  283. package/dist/components/p-CEl4WEkF.js.map +0 -1
  284. package/dist/core/p-1c01e161.entry.js +0 -2
  285. package/dist/core/p-1c01e161.entry.js.map +0 -1
  286. package/dist/core/p-904e7e44.entry.js +0 -2
  287. package/dist/core/p-ClISz4NF.js +0 -3
  288. package/dist/core/p-ClISz4NF.js.map +0 -1
  289. package/dist/core/p-e0ec9f75.entry.js +0 -2
  290. package/dist/core/p-e74093c1.entry.js +0 -2
  291. package/dist/esm/index-ClISz4NF.js.map +0 -1
  292. /package/dist/components/{p-DxCeyMKq.js.map → p-8QWehgod.js.map} +0 -0
  293. /package/dist/components/{p-Dj3UNRiz.js.map → p-BcZ7-N5H.js.map} +0 -0
  294. /package/dist/components/{p-CNRG3ZtC.js.map → p-Btw6IAjS.js.map} +0 -0
  295. /package/dist/components/{p-DkoI3xas.js.map → p-C4pc6Rox.js.map} +0 -0
  296. /package/dist/components/{p-vuyK2av-.js.map → p-CSjqhysd.js.map} +0 -0
  297. /package/dist/components/{p-DGsyEn3-.js.map → p-Cta_74Ps.js.map} +0 -0
  298. /package/dist/components/{p-CNXZgyfX.js.map → p-D4Z6jWqx.js.map} +0 -0
  299. /package/dist/components/{p-BlqsCTBR.js.map → p-DnZEr-aq.js.map} +0 -0
  300. /package/dist/components/{p-D82BPGeo.js.map → p-WmFNIuTf.js.map} +0 -0
  301. /package/dist/components/{p-yUYC6pA5.js.map → p-wlTP5ZEU.js.map} +0 -0
  302. /package/dist/core/{p-1fca9440.entry.js.map → p-01482eb2.entry.js.map} +0 -0
  303. /package/dist/core/{p-7c1d10c4.entry.js.map → p-0dbda4ab.entry.js.map} +0 -0
  304. /package/dist/core/{p-cb91eed8.entry.js.map → p-19a408eb.entry.js.map} +0 -0
  305. /package/dist/core/{p-57f8e68a.entry.js.map → p-1bfbad36.entry.js.map} +0 -0
  306. /package/dist/core/{p-f6a01739.entry.js.map → p-1f4450cc.entry.js.map} +0 -0
  307. /package/dist/core/{p-a262eb49.entry.js.map → p-2142c481.entry.js.map} +0 -0
  308. /package/dist/core/{p-e61dceb2.entry.js.map → p-25a33448.entry.js.map} +0 -0
  309. /package/dist/core/{p-ffd60450.entry.js.map → p-2affc4c0.entry.js.map} +0 -0
  310. /package/dist/core/{p-db01c95c.entry.js.map → p-3477fcf1.entry.js.map} +0 -0
  311. /package/dist/core/{p-e74093c1.entry.js.map → p-35c24ac5.entry.js.map} +0 -0
  312. /package/dist/core/{p-77e3fa09.entry.js.map → p-35f784be.entry.js.map} +0 -0
  313. /package/dist/core/{p-840fed0e.entry.js.map → p-37770cee.entry.js.map} +0 -0
  314. /package/dist/core/{p-bc6fe3db.entry.js.map → p-37b98852.entry.js.map} +0 -0
  315. /package/dist/core/{p-24ec7a60.entry.js.map → p-48a3bb49.entry.js.map} +0 -0
  316. /package/dist/core/{p-8ca5804b.entry.js.map → p-4e170f53.entry.js.map} +0 -0
  317. /package/dist/core/{p-b1869b24.entry.js.map → p-57aac00e.entry.js.map} +0 -0
  318. /package/dist/core/{p-616c2209.entry.js.map → p-5c9371da.entry.js.map} +0 -0
  319. /package/dist/core/{p-cd82ae8b.entry.js.map → p-6508f953.entry.js.map} +0 -0
  320. /package/dist/core/{p-8b866af0.entry.js.map → p-658c1d84.entry.js.map} +0 -0
  321. /package/dist/core/{p-03a8226e.entry.js.map → p-730b823a.entry.js.map} +0 -0
  322. /package/dist/core/{p-1d78f520.entry.js.map → p-7f46f70a.entry.js.map} +0 -0
  323. /package/dist/core/{p-22c2e7e8.entry.js.map → p-83507d07.entry.js.map} +0 -0
  324. /package/dist/core/{p-877178fe.entry.js.map → p-871d4318.entry.js.map} +0 -0
  325. /package/dist/core/{p-50b0d5dd.entry.js.map → p-8873dc4b.entry.js.map} +0 -0
  326. /package/dist/core/{p-750ced1c.entry.js.map → p-8c942041.entry.js.map} +0 -0
  327. /package/dist/core/{p-0a50f540.entry.js.map → p-8d42ee97.entry.js.map} +0 -0
  328. /package/dist/core/{p-5f2cbcf6.entry.js.map → p-8dceba0b.entry.js.map} +0 -0
  329. /package/dist/core/{p-8fbdabfe.entry.js.map → p-901cbf94.entry.js.map} +0 -0
  330. /package/dist/core/{p-25017dd9.entry.js.map → p-90b277bb.entry.js.map} +0 -0
  331. /package/dist/core/{p-0f2f623b.entry.js.map → p-90ff56f4.entry.js.map} +0 -0
  332. /package/dist/core/{p-49581c53.entry.js.map → p-962d5767.entry.js.map} +0 -0
  333. /package/dist/core/{p-f3613f8a.entry.js.map → p-984b6020.entry.js.map} +0 -0
  334. /package/dist/core/{p-1d944358.entry.js.map → p-9d2a4eb1.entry.js.map} +0 -0
  335. /package/dist/core/{p-a2a257ef.entry.js.map → p-9ff7e018.entry.js.map} +0 -0
  336. /package/dist/core/{p-f27ac0f7.entry.js.map → p-a18c600d.entry.js.map} +0 -0
  337. /package/dist/core/{p-177a0638.entry.js.map → p-aaa73dc8.entry.js.map} +0 -0
  338. /package/dist/core/{p-e0ec9f75.entry.js.map → p-ade69b24.entry.js.map} +0 -0
  339. /package/dist/core/{p-db32ed60.entry.js.map → p-b19afdd8.entry.js.map} +0 -0
  340. /package/dist/core/{p-bc5f5e3d.entry.js.map → p-b97b4439.entry.js.map} +0 -0
  341. /package/dist/core/{p-ab0f7851.entry.js.map → p-bbe0d727.entry.js.map} +0 -0
  342. /package/dist/core/{p-4382abb5.entry.js.map → p-bedd75e1.entry.js.map} +0 -0
  343. /package/dist/core/{p-5e8946af.entry.js.map → p-c1a1fc45.entry.js.map} +0 -0
  344. /package/dist/core/{p-e9e584a0.entry.js.map → p-c6f52c6f.entry.js.map} +0 -0
  345. /package/dist/core/{p-11ee3438.entry.js.map → p-c99cc786.entry.js.map} +0 -0
  346. /package/dist/core/{p-a6d16324.entry.js.map → p-c9edada1.entry.js.map} +0 -0
  347. /package/dist/core/{p-0d0bd226.entry.js.map → p-cddfc899.entry.js.map} +0 -0
  348. /package/dist/core/{p-1b922db5.entry.js.map → p-ce588d98.entry.js.map} +0 -0
  349. /package/dist/core/{p-3a25ddfa.entry.js.map → p-d4440adf.entry.js.map} +0 -0
  350. /package/dist/core/{p-1744f488.entry.js.map → p-d48d5870.entry.js.map} +0 -0
  351. /package/dist/core/{p-73dcc4f1.entry.js.map → p-e169f098.entry.js.map} +0 -0
  352. /package/dist/core/{p-05c81fd3.entry.js.map → p-e3e3e9f2.entry.js.map} +0 -0
  353. /package/dist/core/{p-64b0f2d6.entry.js.map → p-e8507630.entry.js.map} +0 -0
  354. /package/dist/core/{p-22f17af5.entry.js.map → p-f01eb407.entry.js.map} +0 -0
  355. /package/dist/core/{p-cb293cf3.entry.js.map → p-f3c873f5.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,c as t,h as i,a}from"./index.js";import{g as o,t as c,d as l}from"./p-DfJDyRCE.js";import{c as d}from"./p-DrPpH_9c.js";import{b as n}from"./p-Nvj7WFs_.js";import{c as b}from"./p-vN03FcXN.js";import{t as h}from"./p-Cjg0wpDG.js";import{d as r}from"./p-CNXZgyfX.js";import{d as f}from"./p-DxCeyMKq.js";import{d as g}from"./p-D82BPGeo.js";const p={root:"gov-dialog",dialog:"gov-dialog__dialog",inner:"gov-dialog__inner",header:"gov-dialog__header",title:"gov-dialog__title",content:"gov-dialog__content",close:"gov-dialog__close",footer:"gov-dialog__footer",bodyFix:"body-fixed"};function m(e){if(!e)return[];return Array.from(e.querySelectorAll('a[href], button:not([disabled]), textarea, input:not([type="hidden"]), select, [tabindex]:not([tabindex="-1"])'))}const y=e(class e extends s{constructor(){super();this.__registerHost();this.govClose=t(this,"gov-close");this.hydrated=false;this.open=false;this.blockClose=false;this.blockBackdropClose=false;this.role="dialog";this.labelTag="h2";this.accessibleCloseLabel="Zavřít okno";this.h=o(this.host);this.labelId=b("GovDialogLabel");this.contentId=b("GovDialogContent")}watchOpen(e){var s;this.open=e;this.setFocus().finally();if(!e){(s=this.lastActiveElementRef)===null||s===void 0?void 0:s.focus()}else{this.focusTrap()}}showDialog(){this.open=true;document.body.classList.add(p.bodyFix)}hideDialog(){this.open=false;document.body.classList.remove(p.bodyFix)}async componentDidRender(){if(d()){h((()=>this.validateAccessibility()))}if(this.open){this.showDialog()}else{this.hideDialog()}}focusTrap(){var e;if(open&&this.dialogRef){this.lastActiveElementRef=document.activeElement;const e=m(this.dialogRef);if(e.length){e[0].focus()}const s=e=>{if(e.key==="Tab"&&this.dialogRef){const s=m(this.dialogRef);const t=s[0];const i=s[s.length-1];if(!e.shiftKey&&document.activeElement===i){e.preventDefault();t.focus()}if(e.shiftKey&&document.activeElement===t){e.preventDefault();i.focus()}}if(e.key==="Escape"){if(this.blockClose===false){this.hideDialog();this.govClose.emit()}}};document.addEventListener("keydown",s)}else{(e=this.lastActiveElementRef)===null||e===void 0?void 0:e.focus()}}connectedCallback(){this.hydrated=true}disconnectedCallback(){document.body.classList.remove(p.bodyFix)}render(){return i(a,{key:"9c830f1956c43a7bc090cab8b396187ec791ca49",class:this.h.classes(p.root),open:this.open,hydrated:this.hydrated},i("dialog",{key:"d7c671e1a8a6b20edb8c322f854ca5b3071f3cf1",ref:e=>this.dialogRef=e,class:p.dialog,hidden:!this.open,tabindex:l(this.open),open:this.open,"aria-modal":"true","aria-hidden":c(!this.open),"aria-labelledby":this.accessibleLabelledBy||this.labelId,"aria-describedby":this.accessibleDescribedBy||this.contentId,role:this.role},i("div",{key:"9742aaa22ffe854ccc5cdde34d6da318fb1f19b1",class:p.inner},i("div",{key:"727bbd4ead0ec33ccbf7ee02d12f04a9ae3e7391",class:p.header},this.h.hasSlot("icon")&&i("span",{key:"ec10b3e6de57c6c64a95adfd2a0e5ab524f4f570"},i("slot",{key:"7ea0412c2f9167f054e227afb1c3af54b587d385",name:"icon"})),this.h.hasSlot("title")&&i("span",{key:"387bbcec4f2b290e1ee15a824e310fc9113465d5",class:p.title,id:this.labelId},i("slot",{key:"aaeac2a2fd5b23fa9449d745fb020d26ed1d3099",name:"title"})),i("gov-button",{key:"4f38ba92a5f1fd5c749f9681ff9233e37d33f008",ref:e=>this.closeCtaRef=e,disabled:this.blockClose,class:p.close,color:"primary","aria-label":this.accessibleCloseLabel,"aria-labelledby":this.accessibleCloseLabelledBy,type:"base",size:"m","on-gov-click":this.onCloseHandler.bind(this)},i("gov-icon",{key:"2c1fb6ae95899c1e2871546671cb3813de0c04ea",slot:"icon-start",name:"x-lg",type:"components"}))),i("div",{key:"76f1446db9129b5af1d9cc0a7513663ce5273054",class:p.content,id:this.contentId},i("slot",{key:"36364a5acffe7e9246c762c530200d075b3971ac"})),this.h.hasSlot("footer")&&i("div",{key:"ca5ae06d9d7b601b4994b7f88d690f7829fe2878",class:p.footer},i("slot",{key:"79de02dba3bd7b9722b6c6e2785ac429990d3ec6",name:"footer"})))),this.open?i("gov-backdrop",{disabled:this.blockBackdropClose,"aria-label":this.accessibleCloseLabel,"aria-labelled-by":this.accessibleCloseLabelledBy,"on-gov-click":this.onCloseHandler.bind(this)}):null)}onCloseHandler(e){e.stopPropagation();e.preventDefault();if(this.blockClose===false){this.hideDialog();this.govClose.emit(e)}}async setFocus(){if(this.open&&this.closeCtaRef){this.closeCtaRef.setFocus().catch()}}async validateAccessibility(){n(this.accessibleLabelledBy,"accessible-labelled-by",p.root);n(this.accessibleDescribedBy,"accessible-described-by",p.root)}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[4,"gov-dialog",{open:[1540],blockClose:[4,"block-close"],blockBackdropClose:[4,"block-backdrop-close"],role:[1],labelTag:[1,"label-tag"],accessibleLabelledBy:[1,"accessible-labelled-by"],accessibleDescribedBy:[1,"accessible-described-by"],accessibleCloseLabel:[1,"accessible-close-label"],accessibleCloseLabelledBy:[1,"accessible-close-labelled-by"],setFocus:[64],validateAccessibility:[64]},undefined,{open:["watchOpen"]}]);function v(){if(typeof customElements==="undefined"){return}const e=["gov-dialog","gov-backdrop","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-dialog":if(!customElements.get(e)){customElements.define(e,y)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-button":if(!customElements.get(e)){f()}break;case"gov-icon":if(!customElements.get(e)){g()}break}}))}v();const u=y;const k=v;export{u as GovDialog,k as defineCustomElement};
1
+ import{p as e,H as s,c as t,h as i,a}from"./index.js";import{g as o,t as c,d as l}from"./p-DfJDyRCE.js";import{c as d}from"./p-DrPpH_9c.js";import{b as n}from"./p-Nvj7WFs_.js";import{c as b}from"./p-vN03FcXN.js";import{t as h}from"./p-Cjg0wpDG.js";import{d as r}from"./p-D4Z6jWqx.js";import{d as f}from"./p-8QWehgod.js";import{d as g}from"./p-WmFNIuTf.js";const p={root:"gov-dialog",dialog:"gov-dialog__dialog",inner:"gov-dialog__inner",header:"gov-dialog__header",title:"gov-dialog__title",content:"gov-dialog__content",close:"gov-dialog__close",footer:"gov-dialog__footer",bodyFix:"body-fixed"};function m(e){if(!e)return[];return Array.from(e.querySelectorAll('a[href], button:not([disabled]), textarea, input:not([type="hidden"]), select, [tabindex]:not([tabindex="-1"])'))}const y=e(class e extends s{constructor(){super();this.__registerHost();this.govClose=t(this,"gov-close");this.hydrated=false;this.open=false;this.blockClose=false;this.blockBackdropClose=false;this.role="dialog";this.labelTag="h2";this.accessibleCloseLabel="Zavřít okno";this.h=o(this.host);this.labelId=b("GovDialogLabel");this.contentId=b("GovDialogContent")}watchOpen(e){var s;this.open=e;this.setFocus().finally();if(!e){(s=this.lastActiveElementRef)===null||s===void 0?void 0:s.focus()}else{this.focusTrap()}}showDialog(){this.open=true;document.body.classList.add(p.bodyFix)}hideDialog(){this.open=false;document.body.classList.remove(p.bodyFix)}async componentDidRender(){if(d()){h((()=>this.validateAccessibility()))}if(this.open){this.showDialog()}else{this.hideDialog()}}focusTrap(){var e;if(open&&this.dialogRef){this.lastActiveElementRef=document.activeElement;const e=m(this.dialogRef);if(e.length){e[0].focus()}const s=e=>{if(e.key==="Tab"&&this.dialogRef){const s=m(this.dialogRef);const t=s[0];const i=s[s.length-1];if(!e.shiftKey&&document.activeElement===i){e.preventDefault();t.focus()}if(e.shiftKey&&document.activeElement===t){e.preventDefault();i.focus()}}if(e.key==="Escape"){if(this.blockClose===false){this.hideDialog();this.govClose.emit()}}};document.addEventListener("keydown",s)}else{(e=this.lastActiveElementRef)===null||e===void 0?void 0:e.focus()}}connectedCallback(){this.hydrated=true}disconnectedCallback(){document.body.classList.remove(p.bodyFix)}render(){return i(a,{key:"9c830f1956c43a7bc090cab8b396187ec791ca49",class:this.h.classes(p.root),open:this.open,hydrated:this.hydrated},i("dialog",{key:"d7c671e1a8a6b20edb8c322f854ca5b3071f3cf1",ref:e=>this.dialogRef=e,class:p.dialog,hidden:!this.open,tabindex:l(this.open),open:this.open,"aria-modal":"true","aria-hidden":c(!this.open),"aria-labelledby":this.accessibleLabelledBy||this.labelId,"aria-describedby":this.accessibleDescribedBy||this.contentId,role:this.role},i("div",{key:"9742aaa22ffe854ccc5cdde34d6da318fb1f19b1",class:p.inner},i("div",{key:"727bbd4ead0ec33ccbf7ee02d12f04a9ae3e7391",class:p.header},this.h.hasSlot("icon")&&i("span",{key:"ec10b3e6de57c6c64a95adfd2a0e5ab524f4f570"},i("slot",{key:"7ea0412c2f9167f054e227afb1c3af54b587d385",name:"icon"})),this.h.hasSlot("title")&&i("span",{key:"387bbcec4f2b290e1ee15a824e310fc9113465d5",class:p.title,id:this.labelId},i("slot",{key:"aaeac2a2fd5b23fa9449d745fb020d26ed1d3099",name:"title"})),i("gov-button",{key:"4f38ba92a5f1fd5c749f9681ff9233e37d33f008",ref:e=>this.closeCtaRef=e,disabled:this.blockClose,class:p.close,color:"primary","aria-label":this.accessibleCloseLabel,"aria-labelledby":this.accessibleCloseLabelledBy,type:"base",size:"m","on-gov-click":this.onCloseHandler.bind(this)},i("gov-icon",{key:"2c1fb6ae95899c1e2871546671cb3813de0c04ea",slot:"icon-start",name:"x-lg",type:"components"}))),i("div",{key:"76f1446db9129b5af1d9cc0a7513663ce5273054",class:p.content,id:this.contentId},i("slot",{key:"36364a5acffe7e9246c762c530200d075b3971ac"})),this.h.hasSlot("footer")&&i("div",{key:"ca5ae06d9d7b601b4994b7f88d690f7829fe2878",class:p.footer},i("slot",{key:"79de02dba3bd7b9722b6c6e2785ac429990d3ec6",name:"footer"})))),this.open?i("gov-backdrop",{disabled:this.blockBackdropClose,"aria-label":this.accessibleCloseLabel,"aria-labelled-by":this.accessibleCloseLabelledBy,"on-gov-click":this.onCloseHandler.bind(this)}):null)}onCloseHandler(e){e.stopPropagation();e.preventDefault();if(this.blockClose===false){this.hideDialog();this.govClose.emit(e)}}async setFocus(){if(this.open&&this.closeCtaRef){this.closeCtaRef.setFocus().catch()}}async validateAccessibility(){n(this.accessibleLabelledBy,"accessible-labelled-by",p.root);n(this.accessibleDescribedBy,"accessible-described-by",p.root)}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[260,"gov-dialog",{open:[1540],blockClose:[4,"block-close"],blockBackdropClose:[4,"block-backdrop-close"],role:[1],labelTag:[1,"label-tag"],accessibleLabelledBy:[1,"accessible-labelled-by"],accessibleDescribedBy:[1,"accessible-described-by"],accessibleCloseLabel:[1,"accessible-close-label"],accessibleCloseLabelledBy:[1,"accessible-close-labelled-by"],setFocus:[64],validateAccessibility:[64]},undefined,{open:["watchOpen"]}]);function u(){if(typeof customElements==="undefined"){return}const e=["gov-dialog","gov-backdrop","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-dialog":if(!customElements.get(e)){customElements.define(e,y)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-button":if(!customElements.get(e)){f()}break;case"gov-icon":if(!customElements.get(e)){g()}break}}))}u();const v=y;const k=u;export{v as GovDialog,k as defineCustomElement};
2
2
  //# sourceMappingURL=gov-dialog.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as i,h as s,a as o}from"./index.js";import{g as n,t as r}from"./p-DfJDyRCE.js";import{c as a}from"./p-vN03FcXN.js";import{B as c}from"./p-CNqoJU2V.js";const d={triggerEvents:"click",exclude:""};function h(t,e,i,s=d){const o=u(s);f(s).forEach((s=>{window.addEventListener(s,(s=>{l(s,t,e,i,o)}),false)}))}function l(t,e,i,s,o){const n=t.target;if(!i.contains(n)&&!p(n,o)){s.call(e)}}function f(t){if(t.triggerEvents){return t.triggerEvents.split(",").map((t=>t.trim()))}return["click"]}function u(t){if(t.exclude){try{return Array.from(document.querySelectorAll(t.exclude))}catch(e){console.warn(`@ClickOutside: Exclude: '${t.exclude}' will not be evaluated. Check your exclude selector syntax.`,e)}}return}function p(t,e){if(t&&e){for(let i of e){if(i.contains(t)){return true}}}return false}var g;(function(t){t["LEFT"]="left";t["RIGHT"]="right"})(g||(g={}));const v={root:"gov-dropdown",list:"gov-dropdown__list"};const b=t(class t extends e{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change");this.open=false;this.position=g.LEFT;this.h=n(this.host);this.listId=a("GovDropdownList");this.controlId=a("GovDropdownControl")}watchOpen(){var t;(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded",r(this.open))}get trigger(){return this.host.querySelector(`* > ${c.root}`)}get list(){return this.h.getSlot("list")}componentWillLoad(){var t;if(!this.trigger)return;this.trigger.setAttribute("aria-controls",this.listId);this.trigger.setAttribute("aria-haspopup",r(!!this.list));this.trigger.setAttribute("aria-expanded",r(this.open));this.trigger.setAttribute("identifier",(t=this.identifier)!==null&&t!==void 0?t:this.controlId);this.trigger.addEventListener("gov-click",(t=>{t.preventDefault();t.stopPropagation();this.open=!this.open;this.govChange.emit({component:v.root,originalEvent:t,open:this.open})}))}render(){return s(o,{key:"ed9beb8952cacb4b76fc73ab31345bbe8c5d206d",class:this.h.classes([v.root]),open:this.open,position:this.position},s("slot",{key:"49d4da21a53be27e687622d17e21474c7cedb26d"}),s("div",{key:"941b05aab703a6bfd981d912763f4576899fd617",ref:t=>h(this,t,(()=>this.open=false)),class:v.list,id:this.listId,"aria-labelledby":this.controlId,"aria-hidden":r(!this.open),hidden:!this.open},s("slot",{key:"cd0c1f28b7d717efd0fe8faa964df78dfbeca49f",name:"list"})))}async getState(){return this.open}async toggle(){this.open=!this.open}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[4,"gov-dropdown",{identifier:[1],open:[1028],position:[1],getState:[64],toggle:[64]},undefined,{open:["watchOpen"]}]);function m(){if(typeof customElements==="undefined"){return}const t=["gov-dropdown"];t.forEach((t=>{switch(t){case"gov-dropdown":if(!customElements.get(t)){customElements.define(t,b)}break}}))}m();const w=b;const y=m;export{w as GovDropdown,y as defineCustomElement};
1
+ import{p as t,H as e,c as i,h as s,a as o}from"./index.js";import{g as n,t as r}from"./p-DfJDyRCE.js";import{c as a}from"./p-vN03FcXN.js";import{B as c}from"./p-CNqoJU2V.js";const d={triggerEvents:"click",exclude:""};function h(t,e,i,s=d){const o=u(s);f(s).forEach((s=>{window.addEventListener(s,(s=>{l(s,t,e,i,o)}),false)}))}function l(t,e,i,s,o){const n=t.target;if(!i.contains(n)&&!p(n,o)){s.call(e)}}function f(t){if(t.triggerEvents){return t.triggerEvents.split(",").map((t=>t.trim()))}return["click"]}function u(t){if(t.exclude){try{return Array.from(document.querySelectorAll(t.exclude))}catch(e){console.warn(`@ClickOutside: Exclude: '${t.exclude}' will not be evaluated. Check your exclude selector syntax.`,e)}}return}function p(t,e){if(t&&e){for(let i of e){if(i.contains(t)){return true}}}return false}var g;(function(t){t["LEFT"]="left";t["RIGHT"]="right"})(g||(g={}));const v={root:"gov-dropdown",list:"gov-dropdown__list"};const b=t(class t extends e{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change");this.open=false;this.position=g.LEFT;this.h=n(this.host);this.listId=a("GovDropdownList");this.controlId=a("GovDropdownControl")}watchOpen(){var t;(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded",r(this.open))}get trigger(){return this.host.querySelector(`* > ${c.root}`)}get list(){return this.h.getSlot("list")}componentWillLoad(){var t;if(!this.trigger)return;this.trigger.setAttribute("aria-controls",this.listId);this.trigger.setAttribute("aria-haspopup",r(!!this.list));this.trigger.setAttribute("aria-expanded",r(this.open));this.trigger.setAttribute("identifier",(t=this.identifier)!==null&&t!==void 0?t:this.controlId);this.trigger.addEventListener("gov-click",(t=>{t.preventDefault();t.stopPropagation();this.open=!this.open;this.govChange.emit({component:v.root,originalEvent:t,open:this.open})}))}render(){return s(o,{key:"ed9beb8952cacb4b76fc73ab31345bbe8c5d206d",class:this.h.classes([v.root]),open:this.open,position:this.position},s("slot",{key:"49d4da21a53be27e687622d17e21474c7cedb26d"}),s("div",{key:"941b05aab703a6bfd981d912763f4576899fd617",ref:t=>h(this,t,(()=>this.open=false)),class:v.list,id:this.listId,"aria-labelledby":this.controlId,"aria-hidden":r(!this.open),hidden:!this.open},s("slot",{key:"cd0c1f28b7d717efd0fe8faa964df78dfbeca49f",name:"list"})))}async getState(){return this.open}async toggle(){this.open=!this.open}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[260,"gov-dropdown",{identifier:[1],open:[1028],position:[1],getState:[64],toggle:[64]},undefined,{open:["watchOpen"]}]);function m(){if(typeof customElements==="undefined"){return}const t=["gov-dropdown"];t.forEach((t=>{switch(t){case"gov-dropdown":if(!customElements.get(t)){customElements.define(t,b)}break}}))}m();const w=b;const y=m;export{w as GovDropdown,y as defineCustomElement};
2
2
  //# sourceMappingURL=gov-dropdown.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,h as s,a as i}from"./index.js";import{p as o}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";import{g as n}from"./p-DfJDyRCE.js";import{v as c}from"./p-BKP-F1qP.js";import{A as r,a as d}from"./p-4i8qDRtu.js";o(a,["_S","_M","_L"]);var m;(function(t){t["HORIZONTAL"]="horizontal";t["VERTICAL"]="vertical"})(m||(m={}));var f;(function(t){t["LEFT"]="left";t["CENTER"]="center";t["RIGHT"]="right"})(f||(f={}));const l={root:"gov-empty",content:"gov-empty__content"};const p=t(class t extends e{constructor(){super();this.__registerHost();this.size="m";this.direction="vertical";this.align="left";this.h=n(this.host)}validateSize(t){c(d,t,r.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(i,{key:"e7b17ae596c52c83d541609967dd2994bb693442",class:this.h.classes(l.root),size:this.size,direction:this.direction,align:this.align},this.h.hasSlot("icon")&&s("slot",{key:"9b756c24248530b3538cd8292a828d83a3df06ef",name:"icon"}),s("div",{key:"d1554d5d9de5aef8dee7054472b36ddced63681e",class:l.content},s("slot",{key:"1eca07f59e9f9d43376c34391e3c6a79e94b9c9f",name:"headline"}),s("slot",{key:"547c375a53e24beaa7018c68b997f87af22713b1"})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-empty",{size:[1],direction:[1],align:[1]},undefined,{size:["validateSize"]}]);function h(){if(typeof customElements==="undefined"){return}const t=["gov-empty"];t.forEach((t=>{switch(t){case"gov-empty":if(!customElements.get(t)){customElements.define(t,p)}break}}))}h();const u=p;const v=h;export{u as GovEmpty,v as defineCustomElement};
1
+ import{p as t,H as e,h as s,a as i}from"./index.js";import{p as o}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";import{g as n}from"./p-DfJDyRCE.js";import{v as c}from"./p-BKP-F1qP.js";import{A as r,a as d}from"./p-4i8qDRtu.js";o(a,["_S","_M","_L"]);var m;(function(t){t["HORIZONTAL"]="horizontal";t["VERTICAL"]="vertical"})(m||(m={}));var f;(function(t){t["LEFT"]="left";t["CENTER"]="center";t["RIGHT"]="right"})(f||(f={}));const l={root:"gov-empty",content:"gov-empty__content"};const p=t(class t extends e{constructor(){super();this.__registerHost();this.size="m";this.direction="vertical";this.align="left";this.h=n(this.host)}validateSize(t){c(d,t,r.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(i,{key:"e7b17ae596c52c83d541609967dd2994bb693442",class:this.h.classes(l.root),size:this.size,direction:this.direction,align:this.align},this.h.hasSlot("icon")&&s("slot",{key:"9b756c24248530b3538cd8292a828d83a3df06ef",name:"icon"}),s("div",{key:"d1554d5d9de5aef8dee7054472b36ddced63681e",class:l.content},s("slot",{key:"1eca07f59e9f9d43376c34391e3c6a79e94b9c9f",name:"headline"}),s("slot",{key:"547c375a53e24beaa7018c68b997f87af22713b1"})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[260,"gov-empty",{size:[1],direction:[1],align:[1]},undefined,{size:["validateSize"]}]);function h(){if(typeof customElements==="undefined"){return}const t=["gov-empty"];t.forEach((t=>{switch(t){case"gov-empty":if(!customElements.get(t)){customElements.define(t,p)}break}}))}h();const u=p;const v=h;export{u as GovEmpty,v as defineCustomElement};
2
2
  //# sourceMappingURL=gov-empty.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as o,h as t,a as c}from"./index.js";import{g as s}from"./p-DfJDyRCE.js";const r={root:"gov-error-code",content:"gov-error-code__content"};const n=e(class e extends o{constructor(){super();this.__registerHost();this.h=s(this.host)}render(){return t(c,{key:"b253a0e9141dca1662d4d2b792f4c9d25f869a38",class:this.h.classes(r.root),align:"center"},this.h.hasSlot("icon")&&t("slot",{key:"4ca7e5788170cdf49d969d1a6ed3e12a0f368914",name:"icon"}),t("div",{key:"1822320601777bba88b698375f8ccfc55e33567e",class:r.content},t("slot",{key:"f3b7e46e878f7ff87291bae34a043d5e228dac4c",name:"headline"}),t("slot",{key:"f63ac6838e3397bd6828853f96f476454a0bcda7"})))}get host(){return this}},[4,"gov-error-code"]);function a(){if(typeof customElements==="undefined"){return}const e=["gov-error-code"];e.forEach((e=>{switch(e){case"gov-error-code":if(!customElements.get(e)){customElements.define(e,n)}break}}))}a();const d=n;const f=a;export{d as GovErrorCode,f as defineCustomElement};
1
+ import{p as e,H as o,h as t,a as c}from"./index.js";import{g as s}from"./p-DfJDyRCE.js";const r={root:"gov-error-code",content:"gov-error-code__content"};const n=e(class e extends o{constructor(){super();this.__registerHost();this.h=s(this.host)}render(){return t(c,{key:"b253a0e9141dca1662d4d2b792f4c9d25f869a38",class:this.h.classes(r.root),align:"center"},this.h.hasSlot("icon")&&t("slot",{key:"4ca7e5788170cdf49d969d1a6ed3e12a0f368914",name:"icon"}),t("div",{key:"1822320601777bba88b698375f8ccfc55e33567e",class:r.content},t("slot",{key:"f3b7e46e878f7ff87291bae34a043d5e228dac4c",name:"headline"}),t("slot",{key:"f63ac6838e3397bd6828853f96f476454a0bcda7"})))}get host(){return this}},[260,"gov-error-code"]);function a(){if(typeof customElements==="undefined"){return}const e=["gov-error-code"];e.forEach((e=>{switch(e){case"gov-error-code":if(!customElements.get(e)){customElements.define(e,n)}break}}))}a();const d=n;const f=a;export{d as GovErrorCode,f as defineCustomElement};
2
2
  //# sourceMappingURL=gov-error-code.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,h as s,a as n}from"./index.js";import"./p-BcQO4NH2.js";import{g as o}from"./p-DfJDyRCE.js";const i={root:"gov-flex"};const c=t(class t extends e{constructor(){super();this.__registerHost();this.direction="row";this.responsive="true";this.h=o(this.host)}render(){return s(n,{key:"71dadfbe4c7ddd45b36ffe74d8fd0c38e5069756",class:this.h.classes(i.root)},s("slot",{key:"b86bd5e8abbf157f2476cad87134ff9eedd307cc"}))}get host(){return this}},[4,"gov-flex",{direction:[513],justifyContent:[513,"justify-content"],alignItems:[513,"align-items"],wrap:[513],alignContent:[513,"align-content"],alignSelf:[513,"align-self"],gap:[513],responsive:[513]}]);function f(){if(typeof customElements==="undefined"){return}const t=["gov-flex"];t.forEach((t=>{switch(t){case"gov-flex":if(!customElements.get(t)){customElements.define(t,c)}break}}))}f();const r=c;const a=f;export{r as GovFlex,a as defineCustomElement};
1
+ import{p as t,H as e,h as s,a as n}from"./index.js";import"./p-BcQO4NH2.js";import{g as o}from"./p-DfJDyRCE.js";const i={root:"gov-flex"};const c=t(class t extends e{constructor(){super();this.__registerHost();this.direction="row";this.responsive="true";this.h=o(this.host)}render(){return s(n,{key:"71dadfbe4c7ddd45b36ffe74d8fd0c38e5069756",class:this.h.classes(i.root)},s("slot",{key:"b86bd5e8abbf157f2476cad87134ff9eedd307cc"}))}get host(){return this}},[260,"gov-flex",{direction:[513],justifyContent:[513,"justify-content"],alignItems:[513,"align-items"],wrap:[513],alignContent:[513,"align-content"],alignSelf:[513,"align-self"],gap:[513],responsive:[513]}]);function f(){if(typeof customElements==="undefined"){return}const t=["gov-flex"];t.forEach((t=>{switch(t){case"gov-flex":if(!customElements.get(t)){customElements.define(t,c)}break}}))}f();const r=c;const a=f;export{r as GovFlex,a as defineCustomElement};
2
2
  //# sourceMappingURL=gov-flex.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-vuyK2av-.js";const t=o;const a=s;export{t as GovFormAutocomplete,a as defineCustomElement};
1
+ import{G as s,d as o}from"./p-CSjqhysd.js";const t=s;const p=o;export{t as GovFormAutocomplete,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-autocomplete.js.map
@@ -1,2 +1,2 @@
1
- import{p as o,H as r,c as a,h as g,a as e}from"./index.js";import{c as t,F as i,a as p,b as m}from"./p-BUmDydor.js";import{g as l}from"./p-DfJDyRCE.js";import{v as n}from"./p-BKP-F1qP.js";import{t as f}from"./p-Cjg0wpDG.js";import{p as s}from"./p-B0hcuYXk.js";const v='gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0;margin-bottom:0;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:make-var("gap", var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:make-var("gap", var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:make-var("gap", var(--spacing-m))}gov-form-group[gap=l],.gov-form-group[gap=l],gov-form-radio-group[gap=l],.gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-checkbox-group[gap=l]{gap:make-var("gap", var(--spacing-l))}gov-form-group[gap=xl],.gov-form-group[gap=xl],gov-form-radio-group[gap=xl],.gov-form-radio-group[gap=xl],gov-form-checkbox-group[gap=xl],.gov-form-checkbox-group[gap=xl]{gap:make-var("gap", var(--spacing-xl))}';const c=o(class o extends r{constructor(){super();this.__registerHost();this.govChange=a(this,"gov-change");this.gap=undefined;this.orientation="vertical";this.value=undefined;this.handleChange=o=>{var r;o.stopPropagation();const a=s(this.value);if(!Array.isArray(a))return;if(o.detail.checked){this.value=[...a,o.detail.value]}else{this.value=(r=a.filter((r=>r!==o.detail.value)))!==null&&r!==void 0?r:[]}this.govChange.emit({value:this.value,component:t.root})};this.h=l(this.host)}validateGap(o){if(o){n(p,o,i.root)}}validateOrientation(o){if(o){n(m,o,i.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation);this.value=s(this.value)}componentDidRender(){f((()=>this.rerenderComponent()))}rerenderComponent(){this.host.querySelectorAll("gov-form-checkbox").forEach((o=>{if(!o.hasAttribute("listener-attached")){o.addEventListener("gov-change",this.handleChange)}o.setAttribute("listener-attached","true");o.checked=this.value.includes(o.value)}))}render(){return g(e,{key:"22f738e5251d68688b6d21c471a5c18ae2532a5a",gap:this.gap,class:this.h.classes(i.root),value:this.value},g("slot",{key:"8028ab95f42dc8c8dfb8f1ee1b70879c291db6d4"}))}get host(){return this}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}static get style(){return v}},[4,"gov-form-checkbox-group",{gap:[1],orientation:[1],value:[1025]},undefined,{gap:["validateGap"],orientation:["validateOrientation"]}]);function u(){if(typeof customElements==="undefined"){return}const o=["gov-form-checkbox-group"];o.forEach((o=>{switch(o){case"gov-form-checkbox-group":if(!customElements.get(o)){customElements.define(o,c)}break}}))}u();const h=c;const b=u;export{h as GovFormCheckboxGroup,b as defineCustomElement};
1
+ import{p as o,H as r,c as a,h as g,a as e}from"./index.js";import{c as t,F as i,a as p,b as m}from"./p-BUmDydor.js";import{g as l}from"./p-DfJDyRCE.js";import{v as n}from"./p-BKP-F1qP.js";import{t as f}from"./p-Cjg0wpDG.js";import{p as s}from"./p-B0hcuYXk.js";const v='gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0;margin-bottom:0;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:make-var("gap", var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:make-var("gap", var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:make-var("gap", var(--spacing-m))}gov-form-group[gap=l],.gov-form-group[gap=l],gov-form-radio-group[gap=l],.gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-checkbox-group[gap=l]{gap:make-var("gap", var(--spacing-l))}gov-form-group[gap=xl],.gov-form-group[gap=xl],gov-form-radio-group[gap=xl],.gov-form-radio-group[gap=xl],gov-form-checkbox-group[gap=xl],.gov-form-checkbox-group[gap=xl]{gap:make-var("gap", var(--spacing-xl))}';const c=o(class o extends r{constructor(){super();this.__registerHost();this.govChange=a(this,"gov-change");this.gap=undefined;this.orientation="vertical";this.value=undefined;this.handleChange=o=>{var r;o.stopPropagation();const a=s(this.value);if(!Array.isArray(a))return;if(o.detail.checked){this.value=[...a,o.detail.value]}else{this.value=(r=a.filter((r=>r!==o.detail.value)))!==null&&r!==void 0?r:[]}this.govChange.emit({value:this.value,component:t.root})};this.h=l(this.host)}validateGap(o){if(o){n(p,o,i.root)}}validateOrientation(o){if(o){n(m,o,i.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation);this.value=s(this.value)}componentDidRender(){f((()=>this.rerenderComponent()))}rerenderComponent(){this.host.querySelectorAll("gov-form-checkbox").forEach((o=>{if(!o.hasAttribute("listener-attached")){o.addEventListener("gov-change",this.handleChange)}o.setAttribute("listener-attached","true");o.checked=this.value.includes(o.value)}))}render(){return g(e,{key:"22f738e5251d68688b6d21c471a5c18ae2532a5a",gap:this.gap,class:this.h.classes(i.root),value:this.value},g("slot",{key:"8028ab95f42dc8c8dfb8f1ee1b70879c291db6d4"}))}get host(){return this}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}static get style(){return v}},[260,"gov-form-checkbox-group",{gap:[1],orientation:[1],value:[1025]},undefined,{gap:["validateGap"],orientation:["validateOrientation"]}]);function u(){if(typeof customElements==="undefined"){return}const o=["gov-form-checkbox-group"];o.forEach((o=>{switch(o){case"gov-form-checkbox-group":if(!customElements.get(o)){customElements.define(o,c)}break}}))}u();const h=c;const b=u;export{h as GovFormCheckboxGroup,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-checkbox-group.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,a as h}from"./index.js";import{c as o}from"./p-vN03FcXN.js";import{v as n}from"./p-BKP-F1qP.js";import{g as a,f as r,h as c}from"./p-9imLQpxb.js";import{g as l,t as d,c as m}from"./p-DfJDyRCE.js";import{F as u}from"./p-5itQzbON.js";import{i as p,A as f,a as v}from"./p-CXgom82_.js";import{d as b}from"./p-D82BPGeo.js";const g=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govChange=i(this,"gov-change");this.hydrated=false;this.checked=false;this.required=false;this.disabled=false;this.indeterminate=false;this.size="m";this.noLabel=false;this.inheritedAttributes={};this.checkboxId=o("GovCheckbox");this.h=l(this.host);this.f=a(this.h)}validateSize(t){n(c,t,r.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("type","checkbox")}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=p(this.host)}componentDidLoad(){this.attributeObserver=new f(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=t=>{if(this.noLabel){return e("label",{class:r.label},t)}return t};return e(h,{class:r.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:m(this.invalid)},t(e(u,null,e("input",Object.assign({id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled,indeterminate:this.indeterminate,ref:t=>this.inputRef=t},this.inheritedAttributes,{"aria-checked":d(this.checked),"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-disabled":m(this.disabled)})),e("span",null,e("slot",{name:"label"}),e("gov-icon",{class:r.check,name:"check-lg",type:"components"}),e("gov-icon",{class:r.indeterminate,name:"dash-lg",type:"components"})))))}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onClickHandler(t){t.stopPropagation()}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[4,"gov-form-checkbox",{value:[1],checked:[1540],required:[4],disabled:[516],indeterminate:[516],name:[1],size:[513],identifier:[1],noLabel:[4,"no-label"],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-checkbox","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-checkbox":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-icon":if(!customElements.get(t)){b()}break}}))}k();const C=g;const A=k;export{C as GovFormCheckbox,A as defineCustomElement};
1
+ import{p as t,H as s,c as i,h as e,a as h}from"./index.js";import{c as o}from"./p-vN03FcXN.js";import{v as n}from"./p-BKP-F1qP.js";import{g as a,f as r,h as c}from"./p-9imLQpxb.js";import{g as l,t as d,c as m}from"./p-DfJDyRCE.js";import{F as u}from"./p-5itQzbON.js";import{i as p,A as f,a as v}from"./p-CXgom82_.js";import{d as b}from"./p-WmFNIuTf.js";const g=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govChange=i(this,"gov-change");this.hydrated=false;this.checked=false;this.required=false;this.disabled=false;this.indeterminate=false;this.size="m";this.noLabel=false;this.inheritedAttributes={};this.checkboxId=o("GovCheckbox");this.h=l(this.host);this.f=a(this.h)}validateSize(t){n(c,t,r.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("type","checkbox")}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=p(this.host)}componentDidLoad(){this.attributeObserver=new f(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=t=>{if(this.noLabel){return e("label",{class:r.label},t)}return t};return e(h,{class:r.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:m(this.invalid)},t(e(u,null,e("input",Object.assign({id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled,indeterminate:this.indeterminate,ref:t=>this.inputRef=t},this.inheritedAttributes,{"aria-checked":d(this.checked),"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-disabled":m(this.disabled)})),e("span",null,e("slot",{name:"label"}),e("gov-icon",{class:r.check,name:"check-lg",type:"components"}),e("gov-icon",{class:r.indeterminate,name:"dash-lg",type:"components"})))))}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onClickHandler(t){t.stopPropagation()}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[260,"gov-form-checkbox",{value:[1],checked:[1540],required:[4],disabled:[516],indeterminate:[516],name:[1],size:[513],identifier:[1],noLabel:[4,"no-label"],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-checkbox","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-checkbox":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-icon":if(!customElements.get(t)){b()}break}}))}k();const C=g;const A=k;export{C as GovFormCheckbox,A as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-checkbox.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as t,h as e,a as i}from"./index.js";import{g as o,i as r}from"./p-9imLQpxb.js";import{g as c}from"./p-DfJDyRCE.js";import{s as a}from"./p-vN03FcXN.js";import{i as n}from"./p-B3tdsiZv.js";const d=s(class s extends t{constructor(){super();this.__registerHost();this.invalid=false;this.disabled=false;this.success=false;this.fieldset=false;this.size="m";this.h=c(this.host);this.f=o(this.h)}componentDidRender(){this.syncControlMessages();this.formElementDescriptionControl()}disconnectedCallback(){var s;(s=this.observer)===null||s===void 0?void 0:s.disconnect()}formElementDescriptionControl(){const s=this.host.querySelector("."+r.bottom);if(!s)return;this.observer=new MutationObserver(function(){this.syncControlMessages()}.bind(this));this.observer.observe(s,{childList:true})}syncControlMessages(){Promise.all(this.f.messageElements.map((s=>s.identifier()))).then((s=>{this.f.mainElementsInControl.forEach((t=>{const e=a(t.getAttribute("aria-describedby"));t.removeAttribute("aria-describedby");if(Array.isArray(e)){e.forEach((t=>n(t)&&t.indexOf("GovFormMessage")===-1?s.push(t):null))}if(s.length){t.setAttribute("aria-describedby",s.join(" "))}}))}))}render(){const s=this.fieldset?"fieldset":"div";return e(i,{key:"d4710c61ec53486fbb5eb0162fe62fbc2a1b53be",size:this.size,class:this.h.classes(r.root)},e(s,{key:"2145789de6ed9fbd5ba9e8d0b3d255517bab1565",class:r.holder},this.h.hasSlot("top")&&e("slot",{key:"770d57ce9a48f5ab79e215677948f55c58883b25",name:"top"}),e("slot",{key:"20899727dc84c3fcfba5564d953fd28f08158e41"}),this.h.hasSlot("bottom")&&e("div",{key:"a9d96218945f98b6c3a5fbcecf59465b2e4751d6",class:r.bottom},e("slot",{key:"b59c3d323c5299ef042e9dba47989044ba6c68aa",name:"bottom"}))))}get host(){return this}},[4,"gov-form-control",{identifier:[1],invalid:[516],disabled:[516],success:[516],fieldset:[4],size:[1]}]);function f(){if(typeof customElements==="undefined"){return}const s=["gov-form-control"];s.forEach((s=>{switch(s){case"gov-form-control":if(!customElements.get(s)){customElements.define(s,d)}break}}))}f();const b=d;const l=f;export{b as GovFormControl,l as defineCustomElement};
1
+ import{p as s,H as t,h as e,a as i}from"./index.js";import{g as o,i as r}from"./p-9imLQpxb.js";import{g as c}from"./p-DfJDyRCE.js";import{s as a}from"./p-vN03FcXN.js";import{i as n}from"./p-B3tdsiZv.js";const d=s(class s extends t{constructor(){super();this.__registerHost();this.invalid=false;this.disabled=false;this.success=false;this.fieldset=false;this.size="m";this.h=c(this.host);this.f=o(this.h)}componentDidRender(){this.syncControlMessages();this.formElementDescriptionControl()}disconnectedCallback(){var s;(s=this.observer)===null||s===void 0?void 0:s.disconnect()}formElementDescriptionControl(){const s=this.host.querySelector("."+r.bottom);if(!s)return;this.observer=new MutationObserver(function(){this.syncControlMessages()}.bind(this));this.observer.observe(s,{childList:true})}syncControlMessages(){Promise.all(this.f.messageElements.map((s=>s.identifier()))).then((s=>{this.f.mainElementsInControl.forEach((t=>{const e=a(t.getAttribute("aria-describedby"));t.removeAttribute("aria-describedby");if(Array.isArray(e)){e.forEach((t=>n(t)&&t.indexOf("GovFormMessage")===-1?s.push(t):null))}if(s.length){t.setAttribute("aria-describedby",s.join(" "))}}))}))}render(){const s=this.fieldset?"fieldset":"div";return e(i,{key:"d4710c61ec53486fbb5eb0162fe62fbc2a1b53be",size:this.size,class:this.h.classes(r.root)},e(s,{key:"2145789de6ed9fbd5ba9e8d0b3d255517bab1565",class:r.holder},this.h.hasSlot("top")&&e("slot",{key:"770d57ce9a48f5ab79e215677948f55c58883b25",name:"top"}),e("slot",{key:"20899727dc84c3fcfba5564d953fd28f08158e41"}),this.h.hasSlot("bottom")&&e("div",{key:"a9d96218945f98b6c3a5fbcecf59465b2e4751d6",class:r.bottom},e("slot",{key:"b59c3d323c5299ef042e9dba47989044ba6c68aa",name:"bottom"}))))}get host(){return this}},[260,"gov-form-control",{identifier:[1],invalid:[516],disabled:[516],success:[516],fieldset:[4],size:[1]}]);function f(){if(typeof customElements==="undefined"){return}const s=["gov-form-control"];s.forEach((s=>{switch(s){case"gov-form-control":if(!customElements.get(s)){customElements.define(s,d)}break}}))}f();const b=d;const l=f;export{b as GovFormControl,l as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-control.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as s,h as i,a as o}from"./index.js";import{c as a}from"./p-vN03FcXN.js";import{g as n,t as r,c as l}from"./p-DfJDyRCE.js";import{g as h}from"./p-9imLQpxb.js";import{A as c,a as f,i as m}from"./p-CXgom82_.js";import{d}from"./p-DGsyEn3-.js";import{d as u}from"./p-Dj3UNRiz.js";import{d as p}from"./p-DxCeyMKq.js";import{d as g}from"./p-BlqsCTBR.js";import{d as v}from"./p-D82BPGeo.js";const b={root:"gov-form-file",area:"gov-form-file__area",input:"gov-form-file__input",inputFocus:"gov-form-file__input-focus",attachments:"gov-form-file__attachments"};function y(t){const e=["bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let s=0,i=parseInt(t,10)||0;while(i>=1024&&++s){i=i/1024}return i.toFixed(i<10&&s>0?1:0)+" "+e[s]}function E(t,e){if(typeof e==="string"&&e.length){return e.replace(/\s/g,"").split(",").filter((e=>new RegExp(e.replace("*",".*")).test(t.type))).length>0}else{return true}}function A(t,e){const s=Math.round(t.size);return s<=e}const k=t(class t extends e{constructor(){super();this.__registerHost();this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govFiles=s(this,"gov-files");this.govAddFile=s(this,"gov-add-file");this.govRemoveFile=s(this,"gov-remove-file");this.eventsRegistered=false;this.expanded=false;this.required=false;this.disabled=false;this.resetAfterPick=false;this.ignoreFileDuplicationCheck=false;this.displayAttachments=true;this.multiple=false;this.maxFileSize=-1;this.errorSize="Soubor je větší než povolená velikost {FILE_SIZE}";this.errorAccept="Soubor tohoto typu není povolen";this.accessibleRemoveLabel="Odebrat soubor {FILE_NAME}";this.accessibleAttachmentsLabel="Přílohy";this.files=[];this.inheritedAttributes={};this.fileId=a("GovInputFile");this.h=n(this.host);this.f=h(this.h)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","File")}registerListeners(){if(this.eventsRegistered){return}this.eventsRegistered=true;function t(){this.areaRef.classList.add("highlight")}function e(){this.areaRef.classList.remove("highlight")}this.inputRef.addEventListener("change",(t=>{t.preventDefault();t.stopPropagation();const e=t.target.files;if(this.resetAfterPick){if(e.length){this.validateFiles(e)}}else{this.validateFiles(e)}}),false);if(this.expanded){const s=["dragover","dragleave"];const i=["dragenter","dragover","mouseenter"];const o=["dragleave","mouseleave"];s.map((t=>this.inputRef.addEventListener(t,this.preventDefaults.bind(this),false)));i.map((e=>this.inputRef.addEventListener(e,t.bind(this),false)));o.forEach((t=>this.inputRef.addEventListener(t,e.bind(this),false)))}}preventDefaults(t){t.preventDefault();t.stopPropagation()}handleDrop(t){const e=t.dataTransfer;this.validateFiles(e.files)}validateFiles(t){let e=[];Array.from(t).map((t=>{const s=this.files.find((e=>e.file.name===t.name&&e.file.size===t.size))||null;if(s===null||this.ignoreFileDuplicationCheck){const s=typeof this.maxFileSize==="number"&&this.maxFileSize>0?A(t,this.maxFileSize):true;const i=E(t,this.accept);const o={id:a("GovFormFile"),file:t,acceptValid:i,sizeValid:s};if(this.displayAttachments){this.files=[...this.files,o]}else{e=[...e,o]}this.govAddFile.emit({component:b.root,file:o})}}));this.govFiles.emit({component:b.root,files:e.length?e:this.files});if(this.resetAfterPick){this.reset().finally()}}componentDidLoad(){this.attributeObserver=new c(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(f)}componentWillLoad(){this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs();this.inheritedAttributes=m(this.host)}async componentDidRender(){this.registerListeners()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}render(){return i(o,{key:"6fe6eb71a8275871bb0aeebae9531d846123ae06",class:this.h.classes([b.root]),invalid:l(this.invalid),expanded:l(this.expanded)},i("div",{key:"cd7ab5a0c223214f5d825c8695993e8c64b9ea78",class:b.area,ref:t=>this.areaRef=t},i("slot",{key:"6197c08c6a50725a261da65069159f75e3e47834"}),i("input",Object.assign({key:"f6897d875af8c47268118ef5d7dd9c19cec6e9a1",class:b.input,ref:t=>this.inputRef=t,id:this.identifier||this.fileId,type:"file",name:this.name,accept:this.accept,multiple:this.multiple,onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled},this.inheritedAttributes,{"aria-required":l(this.required),"aria-invalid":l(this.invalid),"aria-disabled":l(this.disabled)})),i("div",{key:"d177e0eb47b83c243aa1e6a977462b332464a1a6",class:b.inputFocus})),this.h.hasSlot("attachments")?i("div",{class:b.attachments},i("slot",{name:"attachments"})):null,this.files.length&&this.displayAttachments?i("div",{class:b.attachments},i("gov-attachments",{label:this.accessibleAttachmentsLabel,"accessible-label":this.accessibleAttachmentsLabel},this.files.map((t=>i("gov-attachments-item",{"accessible-remove-labelledby":t.id,"on-gov-remove":()=>this.onRemoveFileHandler(t)},i("span",{class:"sr-only",id:t.id},this.accessibleRemoveLabel.replace("{FILE_NAME}",t.file.name)),t.file.name,t.acceptValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),t.acceptValid===false?this.errorAccept:null):null,t.sizeValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),this.errorSize.replace("{FILE_SIZE}",y(this.maxFileSize))):null,i("span",{slot:"info"},"(",y(t.file.size),")")))))):null)}onRemoveFileHandler(t){const e=this.files.findIndex((e=>e.id===t.id));if(e!==-1){const t=this.files;const s=this.files[e];t.splice(e,1);this.files=[...t];this.govRemoveFile.emit({component:b.root,file:s});this.govFiles.emit({component:b.root,files:t})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:b.root,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:b.root,originalEvent:t})}onChangeHandler(t){t.stopPropagation()}async getRef(){return this.inputRef}async getAreaRef(){return this.areaRef}async reset(){this.files=[];this.inputRef.value=""}get host(){return this}static get watchers(){return{disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[4,"gov-form-file",{expanded:[4],required:[4],disabled:[516],resetAfterPick:[4,"reset-after-pick"],ignoreFileDuplicationCheck:[4,"ignore-file-duplication-check"],displayAttachments:[4,"display-attachments"],name:[1],accept:[1],multiple:[4],maxFileSize:[2,"max-file-size"],identifier:[1],invalid:[4],errorSize:[1,"error-size"],errorAccept:[1,"error-accept"],accessibleRemoveLabel:[1,"accessible-remove-label"],accessibleAttachmentsLabel:[1,"accessible-attachments-label"],files:[32],inheritedAttributes:[32],getRef:[64],getAreaRef:[64],reset:[64]},undefined,{disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function F(){if(typeof customElements==="undefined"){return}const t=["gov-form-file","gov-attachments","gov-attachments-item","gov-button","gov-form-message","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-file":if(!customElements.get(t)){customElements.define(t,k)}break;case"gov-attachments":if(!customElements.get(t)){d()}break;case"gov-attachments-item":if(!customElements.get(t)){u()}break;case"gov-button":if(!customElements.get(t)){p()}break;case"gov-form-message":if(!customElements.get(t)){g()}break;case"gov-icon":if(!customElements.get(t)){v()}break}}))}F();const j=k;const C=F;export{j as GovFormFile,C as defineCustomElement};
1
+ import{p as t,H as e,c as s,h as i,a as o}from"./index.js";import{c as a}from"./p-vN03FcXN.js";import{g as n,t as r,c as h}from"./p-DfJDyRCE.js";import{g as l}from"./p-9imLQpxb.js";import{A as c,a as f,i as m}from"./p-CXgom82_.js";import{d}from"./p-Cta_74Ps.js";import{d as u}from"./p-BcZ7-N5H.js";import{d as p}from"./p-8QWehgod.js";import{d as g}from"./p-DnZEr-aq.js";import{d as v}from"./p-WmFNIuTf.js";const b={root:"gov-form-file",area:"gov-form-file__area",input:"gov-form-file__input",inputFocus:"gov-form-file__input-focus",attachments:"gov-form-file__attachments"};function y(t){const e=["bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let s=0,i=parseInt(t,10)||0;while(i>=1024&&++s){i=i/1024}return i.toFixed(i<10&&s>0?1:0)+" "+e[s]}function E(t,e){if(typeof e==="string"&&e.length){return e.replace(/\s/g,"").split(",").filter((e=>new RegExp(e.replace("*",".*")).test(t.type))).length>0}else{return true}}function A(t,e){const s=Math.round(t.size);return s<=e}const k=t(class t extends e{constructor(){super();this.__registerHost();this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govFiles=s(this,"gov-files");this.govAddFile=s(this,"gov-add-file");this.govRemoveFile=s(this,"gov-remove-file");this.eventsRegistered=false;this.expanded=false;this.required=false;this.disabled=false;this.resetAfterPick=false;this.ignoreFileDuplicationCheck=false;this.displayAttachments=true;this.multiple=false;this.maxFileSize=-1;this.errorSize="Soubor je větší než povolená velikost {FILE_SIZE}";this.errorAccept="Soubor tohoto typu není povolen";this.accessibleRemoveLabel="Odebrat soubor {FILE_NAME}";this.accessibleAttachmentsLabel="Přílohy";this.files=[];this.inheritedAttributes={};this.fileId=a("GovInputFile");this.h=n(this.host);this.f=l(this.h)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","File")}registerListeners(){if(this.eventsRegistered){return}this.eventsRegistered=true;function t(){this.areaRef.classList.add("highlight")}function e(){this.areaRef.classList.remove("highlight")}this.inputRef.addEventListener("change",(t=>{t.preventDefault();t.stopPropagation();const e=t.target.files;if(this.resetAfterPick){if(e.length){this.validateFiles(e)}}else{this.validateFiles(e)}}),false);if(this.expanded){const s=["dragover","dragleave"];const i=["dragenter","dragover","mouseenter"];const o=["dragleave","mouseleave"];s.map((t=>this.inputRef.addEventListener(t,this.preventDefaults.bind(this),false)));i.map((e=>this.inputRef.addEventListener(e,t.bind(this),false)));o.forEach((t=>this.inputRef.addEventListener(t,e.bind(this),false)))}}preventDefaults(t){t.preventDefault();t.stopPropagation()}handleDrop(t){const e=t.dataTransfer;this.validateFiles(e.files)}validateFiles(t){let e=[];Array.from(t).map((t=>{const s=this.files.find((e=>e.file.name===t.name&&e.file.size===t.size))||null;if(s===null||this.ignoreFileDuplicationCheck){const s=typeof this.maxFileSize==="number"&&this.maxFileSize>0?A(t,this.maxFileSize):true;const i=E(t,this.accept);const o={id:a("GovFormFile"),file:t,acceptValid:i,sizeValid:s};if(this.displayAttachments){this.files=[...this.files,o]}else{e=[...e,o]}this.govAddFile.emit({component:b.root,file:o})}}));this.govFiles.emit({component:b.root,files:e.length?e:this.files});if(this.resetAfterPick){this.reset().finally()}}componentDidLoad(){this.attributeObserver=new c(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(f)}componentWillLoad(){this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs();this.inheritedAttributes=m(this.host)}async componentDidRender(){this.registerListeners()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}render(){return i(o,{key:"6fe6eb71a8275871bb0aeebae9531d846123ae06",class:this.h.classes([b.root]),invalid:h(this.invalid),expanded:h(this.expanded)},i("div",{key:"cd7ab5a0c223214f5d825c8695993e8c64b9ea78",class:b.area,ref:t=>this.areaRef=t},i("slot",{key:"6197c08c6a50725a261da65069159f75e3e47834"}),i("input",Object.assign({key:"f6897d875af8c47268118ef5d7dd9c19cec6e9a1",class:b.input,ref:t=>this.inputRef=t,id:this.identifier||this.fileId,type:"file",name:this.name,accept:this.accept,multiple:this.multiple,onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled},this.inheritedAttributes,{"aria-required":h(this.required),"aria-invalid":h(this.invalid),"aria-disabled":h(this.disabled)})),i("div",{key:"d177e0eb47b83c243aa1e6a977462b332464a1a6",class:b.inputFocus})),this.h.hasSlot("attachments")?i("div",{class:b.attachments},i("slot",{name:"attachments"})):null,this.files.length&&this.displayAttachments?i("div",{class:b.attachments},i("gov-attachments",{label:this.accessibleAttachmentsLabel,"accessible-label":this.accessibleAttachmentsLabel},this.files.map((t=>i("gov-attachments-item",{"accessible-remove-labelledby":t.id,"on-gov-remove":()=>this.onRemoveFileHandler(t)},i("span",{class:"sr-only",id:t.id},this.accessibleRemoveLabel.replace("{FILE_NAME}",t.file.name)),t.file.name,t.acceptValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),t.acceptValid===false?this.errorAccept:null):null,t.sizeValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),this.errorSize.replace("{FILE_SIZE}",y(this.maxFileSize))):null,i("span",{slot:"info"},"(",y(t.file.size),")")))))):null)}onRemoveFileHandler(t){const e=this.files.findIndex((e=>e.id===t.id));if(e!==-1){const t=this.files;const s=this.files[e];t.splice(e,1);this.files=[...t];this.govRemoveFile.emit({component:b.root,file:s});this.govFiles.emit({component:b.root,files:t})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:b.root,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:b.root,originalEvent:t})}onChangeHandler(t){t.stopPropagation()}async getRef(){return this.inputRef}async getAreaRef(){return this.areaRef}async reset(){this.files=[];this.inputRef.value=""}get host(){return this}static get watchers(){return{disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[260,"gov-form-file",{expanded:[4],required:[4],disabled:[516],resetAfterPick:[4,"reset-after-pick"],ignoreFileDuplicationCheck:[4,"ignore-file-duplication-check"],displayAttachments:[4,"display-attachments"],name:[1],accept:[1],multiple:[4],maxFileSize:[2,"max-file-size"],identifier:[1],invalid:[4],errorSize:[1,"error-size"],errorAccept:[1,"error-accept"],accessibleRemoveLabel:[1,"accessible-remove-label"],accessibleAttachmentsLabel:[1,"accessible-attachments-label"],files:[32],inheritedAttributes:[32],getRef:[64],getAreaRef:[64],reset:[64]},undefined,{disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function F(){if(typeof customElements==="undefined"){return}const t=["gov-form-file","gov-attachments","gov-attachments-item","gov-button","gov-form-message","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-file":if(!customElements.get(t)){customElements.define(t,k)}break;case"gov-attachments":if(!customElements.get(t)){d()}break;case"gov-attachments-item":if(!customElements.get(t)){u()}break;case"gov-button":if(!customElements.get(t)){p()}break;case"gov-form-message":if(!customElements.get(t)){g()}break;case"gov-icon":if(!customElements.get(t)){v()}break}}))}F();const j=k;const C=F;export{j as GovFormFile,C as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-file.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as a,h as e,a as i}from"./index.js";import{F as s,a as o,b as r}from"./p-BUmDydor.js";import{g as n}from"./p-DfJDyRCE.js";import{v as c}from"./p-BKP-F1qP.js";const p=t(class t extends a{constructor(){super();this.__registerHost();this.gap=undefined;this.orientation="vertical";this.h=n(this.host)}validateGap(t){if(t){c(o,t,s.root)}}validateOrientation(t){if(t){c(r,t,s.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation)}render(){return e(i,{key:"23bc665133af4d63acae967405c379aef79f9125",gap:this.gap,class:this.h.classes(s.root)},e("slot",{key:"11d303816dae7149170180b450542c2cd1a322c6"}))}get host(){return this}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}},[4,"gov-form-group",{gap:[1],orientation:[1]},undefined,{gap:["validateGap"],orientation:["validateOrientation"]}]);function d(){if(typeof customElements==="undefined"){return}const t=["gov-form-group"];t.forEach((t=>{switch(t){case"gov-form-group":if(!customElements.get(t)){customElements.define(t,p)}break}}))}d();const f=p;const m=d;export{f as GovFormGroup,m as defineCustomElement};
1
+ import{p as t,H as a,h as e,a as i}from"./index.js";import{F as s,a as o,b as r}from"./p-BUmDydor.js";import{g as n}from"./p-DfJDyRCE.js";import{v as c}from"./p-BKP-F1qP.js";const p=t(class t extends a{constructor(){super();this.__registerHost();this.gap=undefined;this.orientation="vertical";this.h=n(this.host)}validateGap(t){if(t){c(o,t,s.root)}}validateOrientation(t){if(t){c(r,t,s.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation)}render(){return e(i,{key:"23bc665133af4d63acae967405c379aef79f9125",gap:this.gap,class:this.h.classes(s.root)},e("slot",{key:"11d303816dae7149170180b450542c2cd1a322c6"}))}get host(){return this}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}},[260,"gov-form-group",{gap:[1],orientation:[1]},undefined,{gap:["validateGap"],orientation:["validateOrientation"]}]);function d(){if(typeof customElements==="undefined"){return}const t=["gov-form-group"];t.forEach((t=>{switch(t){case"gov-form-group":if(!customElements.get(t)){customElements.define(t,p)}break}}))}d();const f=p;const m=d;export{f as GovFormGroup,m as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-group.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-CNRG3ZtC.js";const t=o;const p=s;export{t as GovFormInput,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-Btw6IAjS.js";const t=o;const p=s;export{t as GovFormInput,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-input.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as e,c as t,h as o,a as c}from"./index.js";import{F as i}from"./p-DBXGhafv.js";const l=s(class s extends e{constructor(){super();this.__registerHost();this.govClick=t(this,"gov-click");this.size="m";this.required=false;this.legend=false}render(){const s=this.legend?"legend":"label";return o(c,{key:"e06447dd79c3204d5641bc58ba823d0744373dd5",class:i.root,size:this.size},o(s,{key:"69dfe126eb3f26aae0360e8c5f831e61345d3dc2",class:i.label,htmlFor:this.identifier,onClick:()=>this.govClick.emit()},o("slot",{key:"3005e820b094c191fc0422a8586264053a4c403f"}),this.required?o("span",{class:"gov-color--text-status-error"}," *"):null))}},[4,"gov-form-label",{identifier:[1],size:[1],required:[4],legend:[4]}]);function r(){if(typeof customElements==="undefined"){return}const s=["gov-form-label"];s.forEach((s=>{switch(s){case"gov-form-label":if(!customElements.get(s)){customElements.define(s,l)}break}}))}r();const a=l;const n=r;export{a as GovFormLabel,n as defineCustomElement};
1
+ import{p as s,H as e,c as t,h as o,a as c}from"./index.js";import{F as i}from"./p-DBXGhafv.js";const l=s(class s extends e{constructor(){super();this.__registerHost();this.govClick=t(this,"gov-click");this.size="m";this.required=false;this.legend=false}render(){const s=this.legend?"legend":"label";return o(c,{key:"e06447dd79c3204d5641bc58ba823d0744373dd5",class:i.root,size:this.size},o(s,{key:"69dfe126eb3f26aae0360e8c5f831e61345d3dc2",class:i.label,htmlFor:this.identifier,onClick:()=>this.govClick.emit()},o("slot",{key:"3005e820b094c191fc0422a8586264053a4c403f"}),this.required?o("span",{class:"gov-color--text-status-error"}," *"):null))}},[260,"gov-form-label",{identifier:[1],size:[1],required:[4],legend:[4]}]);function r(){if(typeof customElements==="undefined"){return}const s=["gov-form-label"];s.forEach((s=>{switch(s){case"gov-form-label":if(!customElements.get(s)){customElements.define(s,l)}break}}))}r();const a=l;const n=r;export{a as GovFormLabel,n as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-label.js.map
@@ -1,2 +1,2 @@
1
- import{G as s,d as o}from"./p-BlqsCTBR.js";const t=s;const p=o;export{t as GovFormMessage,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-DnZEr-aq.js";const r=o;const t=s;export{r as GovFormMessage,t as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-message.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as s,h as i,a as o}from"./index.js";import{g as a,j as n,k as l}from"./p-9imLQpxb.js";import{g as r,t as h,c}from"./p-DfJDyRCE.js";import{v as d}from"./p-BKP-F1qP.js";import{c as u,r as m}from"./p-vN03FcXN.js";import{p as v}from"./p-B0hcuYXk.js";import{t as f}from"./p-Cjg0wpDG.js";import{A as p,a as g}from"./p-CXgom82_.js";import{d as b}from"./p-DxCeyMKq.js";import{d as y}from"./p-vuyK2av-.js";import{d as k}from"./p-CNRG3ZtC.js";import{d as j}from"./p-D82BPGeo.js";import{d as w}from"./p-yUYC6pA5.js";const x=t(class t extends e{constructor(){super();this.__registerHost();this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govChange=s(this,"gov-change");this.govSelect=s(this,"gov-select");this.govRemove=s(this,"gov-remove");this.size="m";this.hideSelectedList=false;this.required=false;this.disabled=false;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.messageLoading="Načítám...";this.selectedOptionsState=[];this.optionsState=[];this.inheritedAttributes={};this.selectId=u("GovSelect");this.listId=u("GovMultiList");this.h=r(this.host);this.f=a(this.h)}validateSize(t){d(l,t,n.root)}watchOptions(t){this.optionsState=v(t)}watchValue(t){this.selectedOptionsState=v(t)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(g);this.initAutocomplete()}componentWillLoad(){this.validateSize(this.size);this.optionsState=v(this.options);this.selectedOptionsState=v(this.value)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}getAvailableOptions(t=false){if(Array.isArray(this.optionsState)&&this.optionsState.length){if(t){return this.optionsState}return this.optionsState.filter((t=>{const e=this.selectedValueIndex(t.value);return e!==-1||(t===null||t===void 0?void 0:t.disabled)?false:true})).map((t=>{var e;return{name:(e=t.label)!==null&&e!==void 0?e:t.value,value:t.value}}))}return Array.from(this.selectRef.querySelectorAll("option")).filter((e=>{if(t){return true}const s=this.selectedValueIndex(e.value);return!(e.disabled||e.selected||s>-1)})).map((t=>({name:t.textContent,value:t.value})))}initAutocomplete(){var t,e,s,i,o;(t=this.autocompleteRef)===null||t===void 0?void 0:t.addEventListener("gov-select",this.onSelectHandler.bind(this));(e=this.autocompleteRef)===null||e===void 0?void 0:e.addEventListener("gov-input",this.onInputHandler.bind(this));(s=this.autocompleteRef)===null||s===void 0?void 0:s.addEventListener("gov-focus",this.onFocusHandler.bind(this));(i=this.autocompleteRef)===null||i===void 0?void 0:i.addEventListener("gov-blur",this.onBlurHandler.bind(this));(o=this.autocompleteRef)===null||o===void 0?void 0:o.setSearchCallback((t=>new Promise((e=>{const s=this.getAvailableOptions();if(String(t).length===0){return e(s)}e(s.filter((({label:e,value:s})=>{if(!e)e=s;return m(e).toLowerCase().indexOf(m(t).toLowerCase())>-1})))})))).finally()}selectedValueIndex(t){return this.selectedOptionsState.findIndex((e=>e===t))}getOptionElement(t){return this.selectRef.querySelector('option[value="'+t+'"]')}getOption(t){var e;return(e=this.getAvailableOptions(true).find((e=>e.value===t)))!==null&&e!==void 0?e:null}selectOption(t,e=true){const s=this.selectedValueIndex(t);if(s===-1){this.selectedOptionsState=[...this.selectedOptionsState,t];this.value=this.selectedOptionsState;if(e){this.govChange.emit({component:n.root,value:this.selectedOptionsState});this.govSelect.emit({component:n.root,value:this.selectedOptionsState})}const s=this.getOptionElement(t);if(s){s.selected=true}}}removeOption(t,e=true){const s=this.selectedValueIndex(t);if(s!==-1){this.selectedOptionsState.splice(s,1);this.selectedOptionsState=[...this.selectedOptionsState];this.value=this.selectedOptionsState;if(e){this.govChange.emit({component:n.root,value:this.selectedOptionsState});this.govRemove.emit({component:n.root,value:this.selectedOptionsState})}const i=this.getOptionElement(t);if(i){i.selected=false}}}async componentDidRender(){this.f.passAttrToLabel("required",String(this.required));f((()=>{this.selectRef.querySelectorAll("option").forEach((t=>{if(t.selected){this.selectOption(t.value,false)}}))}))}render(){return i(o,{key:"702237c94a2454e2ee966fee0a4fb92e690b7ca3",class:n.root,size:this.size},i("div",{key:"06644d9c3deb723effa4dd18207734ff4c9885cf",class:n.wrap},this.h.hasSlot("prefix")&&i("slot",{key:"7a000864224ecfe4fc333b2609f1d624b8cbad2c",name:"prefix"}),i("gov-form-autocomplete",{key:"7ce180ba5e799af98869ab3a0eab7dc0b1cd28f8",value:this.valueState,disabled:this.disabled,identifier:this.identifier||this.selectId,required:false,invalid:this.invalid,success:this.success,size:this.size,placeholder:this.placeholder,"message-empty":this.messageEmpty,"message-loading":this.messageLoading,ref:t=>this.autocompleteRef=t,minlength:0,"aria-owns":this.listId},this.success&&i("gov-icon",{key:"8433d6631829ad487ea0d14f3a23ef955179ab72",slot:"validation-icon",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&i("gov-icon",{key:"55076350c10d021f5e1c6882ca9c36ddcb3b8d96",slot:"validation-icon",class:"validation-icon",name:"exclamation-lg",type:"components"}),i("gov-icon",{key:"3671d42362ea1a7334b687d12d9fbe50d12a2e6b",slot:"icon-end",class:"arrow-icon",name:"chevron-down",type:"components"})),i("select",Object.assign({key:"9d9af70e3a94506e654bc4739dff88512f9a7027",hidden:true,class:"hidden-select-list","aria-hidden":h(true),multiple:true,required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":c(this.disabled),"aria-required":c(this.required),"aria-invalid":c(this.invalid)}),i("slot",{key:"121da88c22cb7aa89bddd017daaa3adf2d3cdba1"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var e;const s=this.selectedValueIndex(t.value);return i("option",{value:t.value,selected:s>-1,disabled:t===null||t===void 0?void 0:t.disabled},(e=t.label)!==null&&e!==void 0?e:t.value)}))),this.h.hasSlot("sufix")&&i("slot",{key:"7a1392bc37a8ff68a2269b8aced6af13dc2d0155",name:"sufix"})),this.hideSelectedList===false?i("ul",{role:"listbox",id:this.listId,class:n.list},Array.isArray(this.selectedOptionsState)&&this.selectedOptionsState.map((t=>{var e;const s=this.getOption(t);if(!s)return null;return i("li",{class:n.item,role:"option"},(e=s.label)!==null&&e!==void 0?e:s.value,i("gov-button",{"aria-label":`Odebrat vybranou položku ${s.label}`,color:"primary",type:"base",size:this.size,"on-gov-click":()=>this.onTagRemove(t)},i("gov-icon",{name:"x-lg",type:"components"})))}))):null)}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:n.root,originalEvent:t,value:this.selectedOptionsState})}onBlurHandler(t){t.stopPropagation();t.stopPropagation();this.focused=false;this.govBlur.emit({component:n.root,originalEvent:t,value:this.selectedOptionsState})}onInputHandler(t){this.valueState=t.detail.value;t.stopPropagation()}onSelectHandler(t){t.stopPropagation();const e=t.detail.selected;this.selectOption(e.value);this.valueState="";this.autocompleteRef.clearValue().finally();this.autocompleteRef.focus()}onTagRemove(t){this.removeOption(t)}async setFocus(t){return this.selectRef.focus(t)}async setValue(t){this.valueState=t}async getRef(){return this.selectRef}get host(){return this}static get watchers(){return{size:["validateSize"],options:["watchOptions"],value:["watchValue"]}}},[4,"gov-form-multi-select",{value:[1537],options:[1537],identifier:[1],placeholder:[1],size:[1],name:[1],hideSelectedList:[4,"hide-selected-list"],required:[4],disabled:[516],invalid:[516],success:[4],messageEmpty:[1,"message-empty"],messageLoading:[1,"message-loading"],focused:[32],valueState:[32],selectedOptionsState:[32],optionsState:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],getRef:[64]},undefined,{size:["validateSize"],options:["watchOptions"],value:["watchValue"]}]);function E(){if(typeof customElements==="undefined"){return}const t=["gov-form-multi-select","gov-button","gov-form-autocomplete","gov-form-input","gov-icon","gov-skeleton"];t.forEach((t=>{switch(t){case"gov-form-multi-select":if(!customElements.get(t)){customElements.define(t,x)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-autocomplete":if(!customElements.get(t)){y()}break;case"gov-form-input":if(!customElements.get(t)){k()}break;case"gov-icon":if(!customElements.get(t)){j()}break;case"gov-skeleton":if(!customElements.get(t)){w()}break}}))}E();const O=x;const A=E;export{O as GovFormMultiSelect,A as defineCustomElement};
1
+ import{p as t,H as s,c as e,h as i,a as o}from"./index.js";import{g as a,j as n,k as l}from"./p-9imLQpxb.js";import{g as h,t as r,c}from"./p-DfJDyRCE.js";import{v as d}from"./p-BKP-F1qP.js";import{c as u,r as m}from"./p-vN03FcXN.js";import{p as v}from"./p-B0hcuYXk.js";import{t as f}from"./p-Cjg0wpDG.js";import{A as p,a as g}from"./p-CXgom82_.js";import{d as b}from"./p-8QWehgod.js";import{d as y}from"./p-CSjqhysd.js";import{d as k}from"./p-Btw6IAjS.js";import{d as j}from"./p-WmFNIuTf.js";import{d as w}from"./p-wlTP5ZEU.js";const E=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=e(this,"gov-focus");this.govBlur=e(this,"gov-blur");this.govChange=e(this,"gov-change");this.govSelect=e(this,"gov-select");this.govRemove=e(this,"gov-remove");this.size="m";this.hideSelectedList=false;this.required=false;this.disabled=false;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.messageLoading="Načítám...";this.selectedOptionsState=[];this.optionsState=[];this.inheritedAttributes={};this.selectId=u("GovSelect");this.listId=u("GovMultiList");this.h=h(this.host);this.f=a(this.h)}validateSize(t){d(l,t,n.root)}watchOptions(t){this.optionsState=v(t)}watchValue(t){this.selectedOptionsState=v(t)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(g);this.initAutocomplete()}componentWillLoad(){this.validateSize(this.size);this.optionsState=v(this.options);this.selectedOptionsState=v(this.value)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}getAvailableOptions(t=false){if(Array.isArray(this.optionsState)&&this.optionsState.length){if(t){return this.optionsState}return this.optionsState.filter((t=>{const s=this.selectedValueIndex(t.value);return s!==-1||(t===null||t===void 0?void 0:t.disabled)?false:true})).map((t=>{var s;return{name:(s=t.label)!==null&&s!==void 0?s:t.value,value:t.value}}))}return Array.from(this.selectRef.querySelectorAll("option")).filter((s=>{if(t){return true}const e=this.selectedValueIndex(s.value);return!(s.disabled||s.selected||e>-1)})).map((t=>({name:t.textContent,value:t.value})))}initAutocomplete(){var t,s,e,i,o;(t=this.autocompleteRef)===null||t===void 0?void 0:t.addEventListener("gov-select",this.onSelectHandler.bind(this));(s=this.autocompleteRef)===null||s===void 0?void 0:s.addEventListener("gov-input",this.onInputHandler.bind(this));(e=this.autocompleteRef)===null||e===void 0?void 0:e.addEventListener("gov-focus",this.onFocusHandler.bind(this));(i=this.autocompleteRef)===null||i===void 0?void 0:i.addEventListener("gov-blur",this.onBlurHandler.bind(this));(o=this.autocompleteRef)===null||o===void 0?void 0:o.setSearchCallback((t=>new Promise((s=>{const e=this.getAvailableOptions();if(String(t).length===0){return s(e)}s(e.filter((({label:s,value:e})=>{if(!s)s=e;return m(s).toLowerCase().indexOf(m(t).toLowerCase())>-1})))})))).finally()}selectedValueIndex(t){return this.selectedOptionsState.findIndex((s=>s===t))}getOptionElement(t){return this.selectRef.querySelector('option[value="'+t+'"]')}getOption(t){var s;return(s=this.getAvailableOptions(true).find((s=>s.value===t)))!==null&&s!==void 0?s:null}selectOption(t,s=true){const e=this.selectedValueIndex(t);if(e===-1){this.selectedOptionsState=[...this.selectedOptionsState,t];this.value=this.selectedOptionsState;if(s){this.govChange.emit({component:n.root,value:this.selectedOptionsState});this.govSelect.emit({component:n.root,value:this.selectedOptionsState})}const e=this.getOptionElement(t);if(e){e.selected=true}}}removeOption(t,s=true){const e=this.selectedValueIndex(t);if(e!==-1){this.selectedOptionsState.splice(e,1);this.selectedOptionsState=[...this.selectedOptionsState];this.value=this.selectedOptionsState;if(s){this.govChange.emit({component:n.root,value:this.selectedOptionsState});this.govRemove.emit({component:n.root,value:this.selectedOptionsState})}const i=this.getOptionElement(t);if(i){i.selected=false}}}async componentDidRender(){this.f.passAttrToLabel("required",String(this.required));f((()=>{this.selectRef.querySelectorAll("option").forEach((t=>{if(t.selected){this.selectOption(t.value,false)}}))}))}render(){return i(o,{key:"702237c94a2454e2ee966fee0a4fb92e690b7ca3",class:n.root,size:this.size},i("div",{key:"06644d9c3deb723effa4dd18207734ff4c9885cf",class:n.wrap},this.h.hasSlot("prefix")&&i("slot",{key:"7a000864224ecfe4fc333b2609f1d624b8cbad2c",name:"prefix"}),i("gov-form-autocomplete",{key:"7ce180ba5e799af98869ab3a0eab7dc0b1cd28f8",value:this.valueState,disabled:this.disabled,identifier:this.identifier||this.selectId,required:false,invalid:this.invalid,success:this.success,size:this.size,placeholder:this.placeholder,"message-empty":this.messageEmpty,"message-loading":this.messageLoading,ref:t=>this.autocompleteRef=t,minlength:0,"aria-owns":this.listId},this.success&&i("gov-icon",{key:"8433d6631829ad487ea0d14f3a23ef955179ab72",slot:"validation-icon",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&i("gov-icon",{key:"55076350c10d021f5e1c6882ca9c36ddcb3b8d96",slot:"validation-icon",class:"validation-icon",name:"exclamation-lg",type:"components"}),i("gov-icon",{key:"3671d42362ea1a7334b687d12d9fbe50d12a2e6b",slot:"icon-end",class:"arrow-icon",name:"chevron-down",type:"components"})),i("select",Object.assign({key:"9d9af70e3a94506e654bc4739dff88512f9a7027",hidden:true,class:"hidden-select-list","aria-hidden":r(true),multiple:true,required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":c(this.disabled),"aria-required":c(this.required),"aria-invalid":c(this.invalid)}),i("slot",{key:"121da88c22cb7aa89bddd017daaa3adf2d3cdba1"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var s;const e=this.selectedValueIndex(t.value);return i("option",{value:t.value,selected:e>-1,disabled:t===null||t===void 0?void 0:t.disabled},(s=t.label)!==null&&s!==void 0?s:t.value)}))),this.h.hasSlot("sufix")&&i("slot",{key:"7a1392bc37a8ff68a2269b8aced6af13dc2d0155",name:"sufix"})),this.hideSelectedList===false?i("ul",{role:"listbox",id:this.listId,class:n.list},Array.isArray(this.selectedOptionsState)&&this.selectedOptionsState.map((t=>{var s;const e=this.getOption(t);if(!e)return null;return i("li",{class:n.item,role:"option"},(s=e.label)!==null&&s!==void 0?s:e.value,i("gov-button",{"aria-label":`Odebrat vybranou položku ${e.label}`,color:"primary",type:"base",size:this.size,"on-gov-click":()=>this.onTagRemove(t)},i("gov-icon",{name:"x-lg",type:"components"})))}))):null)}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:n.root,originalEvent:t,value:this.selectedOptionsState})}onBlurHandler(t){t.stopPropagation();t.stopPropagation();this.focused=false;this.govBlur.emit({component:n.root,originalEvent:t,value:this.selectedOptionsState})}onInputHandler(t){this.valueState=t.detail.value;t.stopPropagation()}onSelectHandler(t){t.stopPropagation();const s=t.detail.selected;this.selectOption(s.value);this.valueState="";this.autocompleteRef.clearValue().finally();this.autocompleteRef.focus()}onTagRemove(t){this.removeOption(t)}async setFocus(t){return this.selectRef.focus(t)}async setValue(t){this.valueState=t}async getRef(){return this.selectRef}get host(){return this}static get watchers(){return{size:["validateSize"],options:["watchOptions"],value:["watchValue"]}}},[260,"gov-form-multi-select",{value:[1537],options:[1537],identifier:[1],placeholder:[1],size:[1],name:[1],hideSelectedList:[4,"hide-selected-list"],required:[4],disabled:[516],invalid:[516],success:[4],messageEmpty:[1,"message-empty"],messageLoading:[1,"message-loading"],focused:[32],valueState:[32],selectedOptionsState:[32],optionsState:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],getRef:[64]},undefined,{size:["validateSize"],options:["watchOptions"],value:["watchValue"]}]);function O(){if(typeof customElements==="undefined"){return}const t=["gov-form-multi-select","gov-button","gov-form-autocomplete","gov-form-input","gov-icon","gov-skeleton"];t.forEach((t=>{switch(t){case"gov-form-multi-select":if(!customElements.get(t)){customElements.define(t,E)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-autocomplete":if(!customElements.get(t)){y()}break;case"gov-form-input":if(!customElements.get(t)){k()}break;case"gov-icon":if(!customElements.get(t)){j()}break;case"gov-skeleton":if(!customElements.get(t)){w()}break}}))}O();const S=E;const x=O;export{S as GovFormMultiSelect,x as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-multi-select.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,h as o,a}from"./index.js";const c={root:"gov-form-password-power",bar:"gov-form-password-power__bar",text:"gov-form-password-power__text"};const r=e(class e extends s{constructor(){super();this.__registerHost()}render(){return o(a,{key:"5345be77d281075d14e4d846cc28b4ee80238d44",class:c.root},o("span",{key:"4d54a301ac65d9432e524906eb8d0626fcc6be63",class:c.bar},o("span",{key:"0590bdcda2ca777daa02b4ed078490120c0d76b9"}),o("span",{key:"d76531fc51948809e1c7577c06661fd320ccb68c"}),o("span",{key:"48a13aa684e06289961bf7aaeb778c9340242e55"})),o("span",{key:"683dab64032d38a9d94121c154085a5e4cb0f6f1",class:c.text},o("slot",{key:"d55a6fdbd4bfb5504457d10c7e6ce194d0ff36c5"})))}},[4,"gov-form-password-power",{power:[514]}]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-form-password-power"];e.forEach((e=>{switch(e){case"gov-form-password-power":if(!customElements.get(e)){customElements.define(e,r)}break}}))}d();const t=r;const n=d;export{t as GovFormPasswordPower,n as defineCustomElement};
1
+ import{p as e,H as s,h as o,a}from"./index.js";const c={root:"gov-form-password-power",bar:"gov-form-password-power__bar",text:"gov-form-password-power__text"};const r=e(class e extends s{constructor(){super();this.__registerHost()}render(){return o(a,{key:"5345be77d281075d14e4d846cc28b4ee80238d44",class:c.root},o("span",{key:"4d54a301ac65d9432e524906eb8d0626fcc6be63",class:c.bar},o("span",{key:"0590bdcda2ca777daa02b4ed078490120c0d76b9"}),o("span",{key:"d76531fc51948809e1c7577c06661fd320ccb68c"}),o("span",{key:"48a13aa684e06289961bf7aaeb778c9340242e55"})),o("span",{key:"683dab64032d38a9d94121c154085a5e4cb0f6f1",class:c.text},o("slot",{key:"d55a6fdbd4bfb5504457d10c7e6ce194d0ff36c5"})))}},[260,"gov-form-password-power",{power:[514]}]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-form-password-power"];e.forEach((e=>{switch(e){case"gov-form-password-power":if(!customElements.get(e)){customElements.define(e,r)}break}}))}d();const t=r;const n=d;export{t as GovFormPasswordPower,n as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-password-power.js.map
@@ -1,2 +1,2 @@
1
- import{p as o,H as r,c as a,h as g,a as e}from"./index.js";import{d as i,F as t,a as p,b as m}from"./p-BUmDydor.js";import{g as l}from"./p-DfJDyRCE.js";import{v as n}from"./p-BKP-F1qP.js";import{t as f}from"./p-Cjg0wpDG.js";const v='gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0;margin-bottom:0;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:make-var("gap", var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:make-var("gap", var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:make-var("gap", var(--spacing-m))}gov-form-group[gap=l],.gov-form-group[gap=l],gov-form-radio-group[gap=l],.gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-checkbox-group[gap=l]{gap:make-var("gap", var(--spacing-l))}gov-form-group[gap=xl],.gov-form-group[gap=xl],gov-form-radio-group[gap=xl],.gov-form-radio-group[gap=xl],gov-form-checkbox-group[gap=xl],.gov-form-checkbox-group[gap=xl]{gap:make-var("gap", var(--spacing-xl))}';const s=o(class o extends r{constructor(){super();this.__registerHost();this.govChange=a(this,"gov-change");this.gap=undefined;this.orientation="vertical";this.value=undefined;this.handleChange=o=>{o.stopPropagation();this.value=o.detail.value;this.govChange.emit({value:this.value,component:i.root})};this.h=l(this.host)}validateGap(o){if(o){n(p,o,t.root)}}validateOrientation(o){if(o){n(m,o,t.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation)}componentDidRender(){f((()=>this.rerenderComponent()))}rerenderComponent(){this.host.querySelectorAll("gov-form-radio").forEach((o=>{if(!o.hasAttribute("listener-attached")){o.addEventListener("gov-change",this.handleChange)}o.setAttribute("listener-attached","true");o.checked=o.value===this.value}))}render(){return g(e,{key:"f5d9641f18787c21c13898a8d80159326161e676",gap:this.gap,class:this.h.classes(t.root),value:this.value},g("slot",{key:"81b46ef337551d1f31b9b7f7d5bb32a620f0fb69"}))}get host(){return this}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}static get style(){return v}},[4,"gov-form-radio-group",{gap:[1],orientation:[1],value:[1025]},undefined,{gap:["validateGap"],orientation:["validateOrientation"]}]);function u(){if(typeof customElements==="undefined"){return}const o=["gov-form-radio-group"];o.forEach((o=>{switch(o){case"gov-form-radio-group":if(!customElements.get(o)){customElements.define(o,s)}break}}))}u();const c=s;const h=u;export{c as GovFormRadioGroup,h as defineCustomElement};
1
+ import{p as o,H as r,c as a,h as g,a as e}from"./index.js";import{d as i,F as t,a as p,b as m}from"./p-BUmDydor.js";import{g as l}from"./p-DfJDyRCE.js";import{v as n}from"./p-BKP-F1qP.js";import{t as f}from"./p-Cjg0wpDG.js";const v='gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0;margin-bottom:0;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:make-var("gap", var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:make-var("gap", var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:make-var("gap", var(--spacing-m))}gov-form-group[gap=l],.gov-form-group[gap=l],gov-form-radio-group[gap=l],.gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-checkbox-group[gap=l]{gap:make-var("gap", var(--spacing-l))}gov-form-group[gap=xl],.gov-form-group[gap=xl],gov-form-radio-group[gap=xl],.gov-form-radio-group[gap=xl],gov-form-checkbox-group[gap=xl],.gov-form-checkbox-group[gap=xl]{gap:make-var("gap", var(--spacing-xl))}';const s=o(class o extends r{constructor(){super();this.__registerHost();this.govChange=a(this,"gov-change");this.gap=undefined;this.orientation="vertical";this.value=undefined;this.handleChange=o=>{o.stopPropagation();this.value=o.detail.value;this.govChange.emit({value:this.value,component:i.root})};this.h=l(this.host)}validateGap(o){if(o){n(p,o,t.root)}}validateOrientation(o){if(o){n(m,o,t.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation)}componentDidRender(){f((()=>this.rerenderComponent()))}rerenderComponent(){this.host.querySelectorAll("gov-form-radio").forEach((o=>{if(!o.hasAttribute("listener-attached")){o.addEventListener("gov-change",this.handleChange)}o.setAttribute("listener-attached","true");o.checked=o.value===this.value}))}render(){return g(e,{key:"f5d9641f18787c21c13898a8d80159326161e676",gap:this.gap,class:this.h.classes(t.root),value:this.value},g("slot",{key:"81b46ef337551d1f31b9b7f7d5bb32a620f0fb69"}))}get host(){return this}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}static get style(){return v}},[260,"gov-form-radio-group",{gap:[1],orientation:[1],value:[1025]},undefined,{gap:["validateGap"],orientation:["validateOrientation"]}]);function u(){if(typeof customElements==="undefined"){return}const o=["gov-form-radio-group"];o.forEach((o=>{switch(o){case"gov-form-radio-group":if(!customElements.get(o)){customElements.define(o,s)}break}}))}u();const c=s;const h=u;export{c as GovFormRadioGroup,h as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-radio-group.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as i,c as s,h as e,a}from"./index.js";import{c as h}from"./p-vN03FcXN.js";import{v as o}from"./p-BKP-F1qP.js";import{g as n,l as r,m as l}from"./p-9imLQpxb.js";import{g as c,t as d,c as u}from"./p-DfJDyRCE.js";import{F as m}from"./p-5itQzbON.js";import{i as f,A as p,a as v}from"./p-CXgom82_.js";const b=t(class t extends i{constructor(){super();this.__registerHost();this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govChange=s(this,"gov-change");this.hydrated=false;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.size="m";this.inheritedAttributes={};this.radioId=h("GovRadio");this.h=c(this.host);this.f=n(this.h)}validateSize(t){o(l,t,r.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("type","radio")}componentWillLoad(){this.inheritedAttributes=f(this.host)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(v)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.radioId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}render(){const t=t=>{if(this.noLabel){return e("label",{class:r.label},t)}return t};return e(a,{class:r.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:u(this.invalid)},t(e(m,null,e("input",Object.assign({class:r.input,id:this.identifier||this.radioId,type:"radio",value:this.value,name:this.name,checked:this.checked,disabled:this.disabled,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:t=>this.inputRef=t,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":u(this.required),"aria-invalid":u(this.invalid),"aria-disabled":u(this.disabled)})),e("span",null,e("slot",{name:"label"})))))}onClickHandler(t){t.stopPropagation()}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[4,"gov-form-radio",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[1],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-form-radio"];t.forEach((t=>{switch(t){case"gov-form-radio":if(!customElements.get(t)){customElements.define(t,b)}break}}))}g();const C=b;const k=g;export{C as GovFormRadio,k as defineCustomElement};
1
+ import{p as t,H as i,c as s,h as e,a}from"./index.js";import{c as h}from"./p-vN03FcXN.js";import{v as o}from"./p-BKP-F1qP.js";import{g as n,l as r,m as l}from"./p-9imLQpxb.js";import{g as c,t as d,c as u}from"./p-DfJDyRCE.js";import{F as m}from"./p-5itQzbON.js";import{i as f,A as p,a as v}from"./p-CXgom82_.js";const b=t(class t extends i{constructor(){super();this.__registerHost();this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govChange=s(this,"gov-change");this.hydrated=false;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.size="m";this.inheritedAttributes={};this.radioId=h("GovRadio");this.h=c(this.host);this.f=n(this.h)}validateSize(t){o(l,t,r.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("type","radio")}componentWillLoad(){this.inheritedAttributes=f(this.host)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(v)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.radioId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}render(){const t=t=>{if(this.noLabel){return e("label",{class:r.label},t)}return t};return e(a,{class:r.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:u(this.invalid)},t(e(m,null,e("input",Object.assign({class:r.input,id:this.identifier||this.radioId,type:"radio",value:this.value,name:this.name,checked:this.checked,disabled:this.disabled,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:t=>this.inputRef=t,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":u(this.required),"aria-invalid":u(this.invalid),"aria-disabled":u(this.disabled)})),e("span",null,e("slot",{name:"label"})))))}onClickHandler(t){t.stopPropagation()}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[260,"gov-form-radio",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[1],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-form-radio"];t.forEach((t=>{switch(t){case"gov-form-radio":if(!customElements.get(t)){customElements.define(t,b)}break}}))}g();const C=b;const k=g;export{C as GovFormRadio,k as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-radio.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,a as o}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{g as h,t as r,c}from"./p-DfJDyRCE.js";import{v as l}from"./p-BKP-F1qP.js";import{A as u,a as d,i as f}from"./p-CXgom82_.js";import{g as m}from"./p-9imLQpxb.js";import{t as p}from"./p-Cjg0wpDG.js";import{b as v}from"./p-B3tdsiZv.js";import{c as g}from"./p-vN03FcXN.js";import{d as b}from"./p-DxCeyMKq.js";import{d as C}from"./p-CNRG3ZtC.js";import{d as j}from"./p-D82BPGeo.js";const w=a(n,["_S","_M","_L"]);const y={root:"gov-form-range",fill:"gov-form-range--fill",input:"gov-form-range--input"};const A=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.size="m";this.tooltip=false;this.input=false;this.required=false;this.disabled=false;this.inheritedAttributes={};this.h=h(this.host);this.f=m(this.h);this.inputId=g("GovInput")}validateSize(t){l(w,t,y.root)}watchValue(){this.controlOutputPosition()}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("invalid",r(this.invalid))}get getThumbWidth(){const t=window.getComputedStyle(this.inputRef);return parseFloat(t.getPropertyValue("--thumb-size"))||1}controlOutputPosition(){const t=+this.value;const s=+this.inputRef.min;const i=+this.inputRef.max;const e=this.getThumbWidth*16;const o=this.inputRef.offsetWidth;const a=(t-s)/(i-s)*100;let n=a/100*(o-e)+e/2;if(this.outputRef){this.outputRef.textContent=this.value;const t=this.outputRef.offsetWidth/2;this.outputRef.style.left=`${n-t}px`}if(this.fillRef){this.fillRef.style.width=`${n}px`}}componentDidLoad(){this.attributeObserver=new u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=f(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));p(this.controlOutputPosition.bind(this))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){return e(o,{key:"263e214c6c36967aaa1d8ec4f33d23d0eec5c92d",class:y.root,size:this.size},this.h.hasSlot("prefix")&&e("slot",{key:"43e08e8d199572845578b1e95c7c012908555bc8",name:"prefix"}),e("span",{key:"89d4176b4f234a4cf83f15a0676710e530ee8d96",class:"element"},e("input",Object.assign({key:"97de040cc35b22aa0c07bfd9654062803cc75c8b",type:"range",ref:t=>this.inputRef=t,onInput:this.onInputHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),id:this.identifier||this.inputId,name:this.name,min:this.min,max:this.max,step:this.step,list:this.listIdentifier,value:this.value,required:this.required,disabled:this.disabled},this.inheritedAttributes,{"aria-required":c(this.required),"aria-invalid":c(this.invalid),"aria-disabled":c(this.disabled)})),e("div",{key:"601626b0b79a7a62022cc61071961bd0b5b9ebe2",class:y.fill,ref:t=>this.fillRef=t}),this.tooltip?e("output",{htmlFor:this.name,ref:t=>this.outputRef=t},this.value):null,e("slot",{key:"f814e896acf10712ecfa34a8d6fa7f9b1d575a4e",name:"datalist"})),this.h.hasSlot("sufix")&&e("slot",{key:"432a47e6df6cd4c6aea28e3063f06e9debc0dc32",name:"sufix"}),this.input?e("gov-form-input",Object.assign({"on-gov-input":this.onCustomInputHandler.bind(this),class:y.input,size:this.size,value:this.value,disabled:this.disabled},this.inheritedAttributes)):null)}onCustomInputHandler(t){const s=t.target.value;if(this.step&&v(+this.step)){const i=+s;const e=+this.min;const o=+this.max;const a=+this.step;if(isNaN(i)){return false}if(i<e||i>o){return false}const n=i-e;if(n%a!==0){return false}this.value=s;this.govInput.emit({component:y.root,value:this.value,originalEvent:t})}}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:y.root,value:this.value,originalEvent:t})}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:y.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:y.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[4,"gov-form-range",{size:[1],value:[1537],identifier:[1],name:[1],min:[8],max:[8],step:[8],tooltip:[4],input:[4],listIdentifier:[1,"list-identifier"],required:[516],success:[516],invalid:[516],disabled:[516],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function x(){if(typeof customElements==="undefined"){return}const t=["gov-form-range","gov-button","gov-form-input","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-range":if(!customElements.get(t)){customElements.define(t,A)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-input":if(!customElements.get(t)){C()}break;case"gov-icon":if(!customElements.get(t)){j()}break}}))}x();const k=A;const E=x;export{k as GovFormRange,E as defineCustomElement};
1
+ import{p as t,H as s,c as i,h as e,a as o}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{g as h,t as r,c}from"./p-DfJDyRCE.js";import{v as l}from"./p-BKP-F1qP.js";import{A as u,a as d,i as f}from"./p-CXgom82_.js";import{g as m}from"./p-9imLQpxb.js";import{t as p}from"./p-Cjg0wpDG.js";import{b as v}from"./p-B3tdsiZv.js";import{c as g}from"./p-vN03FcXN.js";import{d as b}from"./p-8QWehgod.js";import{d as j}from"./p-Btw6IAjS.js";import{d as w}from"./p-WmFNIuTf.js";const C=a(n,["_S","_M","_L"]);const A={root:"gov-form-range",fill:"gov-form-range--fill",input:"gov-form-range--input"};const y=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.size="m";this.tooltip=false;this.input=false;this.required=false;this.disabled=false;this.inheritedAttributes={};this.h=h(this.host);this.f=m(this.h);this.inputId=g("GovInput")}validateSize(t){l(C,t,A.root)}watchValue(){this.controlOutputPosition()}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("invalid",r(this.invalid))}get getThumbWidth(){const t=window.getComputedStyle(this.inputRef);return parseFloat(t.getPropertyValue("--thumb-size"))||1}controlOutputPosition(){const t=+this.value;const s=+this.inputRef.min;const i=+this.inputRef.max;const e=this.getThumbWidth*16;const o=this.inputRef.offsetWidth;const a=(t-s)/(i-s)*100;let n=a/100*(o-e)+e/2;if(this.outputRef){this.outputRef.textContent=this.value;const t=this.outputRef.offsetWidth/2;this.outputRef.style.left=`${n-t}px`}if(this.fillRef){this.fillRef.style.width=`${n}px`}}componentDidLoad(){this.attributeObserver=new u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=f(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));p(this.controlOutputPosition.bind(this))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){return e(o,{key:"263e214c6c36967aaa1d8ec4f33d23d0eec5c92d",class:A.root,size:this.size},this.h.hasSlot("prefix")&&e("slot",{key:"43e08e8d199572845578b1e95c7c012908555bc8",name:"prefix"}),e("span",{key:"89d4176b4f234a4cf83f15a0676710e530ee8d96",class:"element"},e("input",Object.assign({key:"97de040cc35b22aa0c07bfd9654062803cc75c8b",type:"range",ref:t=>this.inputRef=t,onInput:this.onInputHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),id:this.identifier||this.inputId,name:this.name,min:this.min,max:this.max,step:this.step,list:this.listIdentifier,value:this.value,required:this.required,disabled:this.disabled},this.inheritedAttributes,{"aria-required":c(this.required),"aria-invalid":c(this.invalid),"aria-disabled":c(this.disabled)})),e("div",{key:"601626b0b79a7a62022cc61071961bd0b5b9ebe2",class:A.fill,ref:t=>this.fillRef=t}),this.tooltip?e("output",{htmlFor:this.name,ref:t=>this.outputRef=t},this.value):null,e("slot",{key:"f814e896acf10712ecfa34a8d6fa7f9b1d575a4e",name:"datalist"})),this.h.hasSlot("sufix")&&e("slot",{key:"432a47e6df6cd4c6aea28e3063f06e9debc0dc32",name:"sufix"}),this.input?e("gov-form-input",Object.assign({"on-gov-input":this.onCustomInputHandler.bind(this),class:A.input,size:this.size,value:this.value,disabled:this.disabled},this.inheritedAttributes)):null)}onCustomInputHandler(t){const s=t.target.value;if(this.step&&v(+this.step)){const i=+s;const e=+this.min;const o=+this.max;const a=+this.step;if(isNaN(i)){return false}if(i<e||i>o){return false}const n=i-e;if(n%a!==0){return false}this.value=s;this.govInput.emit({component:A.root,value:this.value,originalEvent:t})}}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:A.root,value:this.value,originalEvent:t})}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:A.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:A.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[260,"gov-form-range",{size:[1],value:[1537],identifier:[1],name:[1],min:[8],max:[8],step:[8],tooltip:[4],input:[4],listIdentifier:[1,"list-identifier"],required:[516],success:[516],invalid:[516],disabled:[516],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-range","gov-button","gov-form-input","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-range":if(!customElements.get(t)){customElements.define(t,y)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-input":if(!customElements.get(t)){j()}break;case"gov-icon":if(!customElements.get(t)){w()}break}}))}k();const x=y;const E=k;export{x as GovFormRange,E as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-range.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,h as t,a as o}from"./index.js";import{C as r}from"./p-U40vKHrs.js";import{p as c}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";c(a,["_S","_M","_L"]);c(r,["PRIMARY","NEUTRAL"]);const n={root:"gov-form-search"};const f=e(class e extends s{constructor(){super();this.__registerHost();this.size="m";this.color="neutral"}render(){return t(o,{key:"0eaf52ea1460cab6cee82e453a92d24efc9457e1",class:n.root,color:this.color,size:this.size},t("slot",{key:"79481e7e6ad6fd2b241be41964f513354e42e40c",name:"input"}),t("slot",{key:"beeebbf1f8eb023aa165bbf0a1b2d84f393dec98",name:"button-erase"}),t("slot",{key:"685e0f84c5ebef1a32b26c4c25f8c9b5d20b254b",name:"button"}))}get host(){return this}},[4,"gov-form-search",{size:[1],color:[513]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-form-search"];e.forEach((e=>{switch(e){case"gov-form-search":if(!customElements.get(e)){customElements.define(e,f)}break}}))}m();const i=f;const b=m;export{i as GovFormSearch,b as defineCustomElement};
1
+ import{p as e,H as s,h as t,a as o}from"./index.js";import{C as r}from"./p-U40vKHrs.js";import{p as c}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";c(a,["_S","_M","_L"]);c(r,["PRIMARY","NEUTRAL"]);const n={root:"gov-form-search"};const f=e(class e extends s{constructor(){super();this.__registerHost();this.size="m";this.color="neutral"}render(){return t(o,{key:"0eaf52ea1460cab6cee82e453a92d24efc9457e1",class:n.root,color:this.color,size:this.size},t("slot",{key:"79481e7e6ad6fd2b241be41964f513354e42e40c",name:"input"}),t("slot",{key:"beeebbf1f8eb023aa165bbf0a1b2d84f393dec98",name:"button-erase"}),t("slot",{key:"685e0f84c5ebef1a32b26c4c25f8c9b5d20b254b",name:"button"}))}get host(){return this}},[260,"gov-form-search",{size:[1],color:[513]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-form-search"];e.forEach((e=>{switch(e){case"gov-form-search":if(!customElements.get(e)){customElements.define(e,f)}break}}))}m();const i=f;const b=m;export{i as GovFormSearch,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-search.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-DkoI3xas.js";const t=o;const a=s;export{t as GovFormSelect,a as defineCustomElement};
1
+ import{G as o,d as s}from"./p-C4pc6Rox.js";const p=o;const t=s;export{p as GovFormSelect,t as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-select.js.map
@@ -1,2 +1,2 @@
1
- import{p as i,H as s,c as t,h as e,a as h}from"./index.js";import{c as a}from"./p-vN03FcXN.js";import{v as n}from"./p-BKP-F1qP.js";import{g as o,n as c,o as l}from"./p-9imLQpxb.js";import{g as r,t as d,c as m}from"./p-DfJDyRCE.js";import{F as u}from"./p-5itQzbON.js";import{A as p,a as b,i as v}from"./p-CXgom82_.js";import{d as f}from"./p-D82BPGeo.js";const g=i(class i extends s{constructor(){super();this.__registerHost();this.govFocus=t(this,"gov-focus");this.govBlur=t(this,"gov-blur");this.govChange=t(this,"gov-change");this.hydrated=false;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.size="m";this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=r(this.host);this.f=o(this.h)}validateSize(i){n(l,i,c.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new p(this.host,((i,s)=>{this.onAriaAttributeChange(i,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=v(this.host)}disconnectedCallback(){var i;(i=this.attributeObserver)===null||i===void 0?void 0:i.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(i,s){this.host.removeAttribute(i);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[i]:s})}render(){const i=i=>{if(this.noLabel){return e("label",{class:c.label},i)}return i};const s=!this.host.querySelector('[slot="label"]');const t=`${this.h.classes(c.root)}${s?` ${c.noLabel}`:""}`;return e(h,{class:t,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:m(this.invalid)},i(e(u,null,e("input",Object.assign({class:c.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:i=>this.inputRef=i,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-disabled":m(this.disabled)})),e("span",null,e("span",{class:c.indicator},this.checked&&e("gov-icon",{name:"check-lg",type:"components"})),e("slot",{name:"label"})))))}onClickHandler(i){i.stopPropagation()}onFocusHandler(i){i.stopPropagation();this.govFocus.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onBlurHandler(i){i.stopPropagation();this.govBlur.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onChangeHandler(i){this.checked=i.target.checked;i.stopPropagation();this.govChange.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}},[4,"gov-form-switch",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[513],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}]);function k(){if(typeof customElements==="undefined"){return}const i=["gov-form-switch","gov-icon"];i.forEach((i=>{switch(i){case"gov-form-switch":if(!customElements.get(i)){customElements.define(i,g)}break;case"gov-icon":if(!customElements.get(i)){f()}break}}))}k();const w=g;const D=k;export{w as GovFormSwitch,D as defineCustomElement};
1
+ import{p as i,H as s,c as t,h as e,a as h}from"./index.js";import{c as a}from"./p-vN03FcXN.js";import{v as n}from"./p-BKP-F1qP.js";import{g as o,n as c,o as l}from"./p-9imLQpxb.js";import{g as r,t as d,c as m}from"./p-DfJDyRCE.js";import{F as u}from"./p-5itQzbON.js";import{A as p,a as b,i as f}from"./p-CXgom82_.js";import{d as v}from"./p-WmFNIuTf.js";const g=i(class i extends s{constructor(){super();this.__registerHost();this.govFocus=t(this,"gov-focus");this.govBlur=t(this,"gov-blur");this.govChange=t(this,"gov-change");this.hydrated=false;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.size="m";this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=r(this.host);this.f=o(this.h)}validateSize(i){n(l,i,c.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new p(this.host,((i,s)=>{this.onAriaAttributeChange(i,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=f(this.host)}disconnectedCallback(){var i;(i=this.attributeObserver)===null||i===void 0?void 0:i.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(i,s){this.host.removeAttribute(i);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[i]:s})}render(){const i=i=>{if(this.noLabel){return e("label",{class:c.label},i)}return i};const s=!this.host.querySelector('[slot="label"]');const t=`${this.h.classes(c.root)}${s?` ${c.noLabel}`:""}`;return e(h,{class:t,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:m(this.invalid)},i(e(u,null,e("input",Object.assign({class:c.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:i=>this.inputRef=i,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-disabled":m(this.disabled)})),e("span",null,e("span",{class:c.indicator},this.checked&&e("gov-icon",{name:"check-lg",type:"components"})),e("slot",{name:"label"})))))}onClickHandler(i){i.stopPropagation()}onFocusHandler(i){i.stopPropagation();this.govFocus.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onBlurHandler(i){i.stopPropagation();this.govBlur.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onChangeHandler(i){this.checked=i.target.checked;i.stopPropagation();this.govChange.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}},[260,"gov-form-switch",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[513],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}]);function k(){if(typeof customElements==="undefined"){return}const i=["gov-form-switch","gov-icon"];i.forEach((i=>{switch(i){case"gov-form-switch":if(!customElements.get(i)){customElements.define(i,g)}break;case"gov-icon":if(!customElements.get(i)){v()}break}}))}k();const w=g;const j=k;export{w as GovFormSwitch,j as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-switch.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as o,h as t,a as n}from"./index.js";import{a as r}from"./p-C6JN9gdb.js";import{g as e}from"./p-DfJDyRCE.js";const c=s(class s extends o{constructor(){super();this.__registerHost();this.column="12";this.row="1";this.h=e(this.host)}render(){return t(n,{key:"0c2d26293ed16bc14937027e056cb1f43e997cdd",class:this.h.classes(r.root),role:"listitem"},t("slot",{key:"c4817953375997bd6d1a361145a2bf19452ad563"}))}get host(){return this}},[4,"gov-grid-item",{column:[1,"col-span"],columnSm:[1,"col-span-sm"],columnMd:[1,"col-span-md"],columnLg:[1,"col-span-lg"],columnXl:[1,"col-span-xl"],row:[1,"row-span"],rowSm:[1,"row-span-sm"],rowMd:[1,"row-span-md"],rowLg:[1,"row-span-lg"],rowXl:[1,"row-span-xl"]}]);function m(){if(typeof customElements==="undefined"){return}const s=["gov-grid-item"];s.forEach((s=>{switch(s){case"gov-grid-item":if(!customElements.get(s)){customElements.define(s,c)}break}}))}m();const i=c;const l=m;export{i as GovGridItem,l as defineCustomElement};
1
+ import{p as s,H as o,h as t,a as n}from"./index.js";import{a as r}from"./p-C6JN9gdb.js";import{g as e}from"./p-DfJDyRCE.js";const c=s(class s extends o{constructor(){super();this.__registerHost();this.column="12";this.row="1";this.h=e(this.host)}render(){return t(n,{key:"0c2d26293ed16bc14937027e056cb1f43e997cdd",class:this.h.classes(r.root),role:"listitem"},t("slot",{key:"c4817953375997bd6d1a361145a2bf19452ad563"}))}get host(){return this}},[260,"gov-grid-item",{column:[1,"col-span"],columnSm:[1,"col-span-sm"],columnMd:[1,"col-span-md"],columnLg:[1,"col-span-lg"],columnXl:[1,"col-span-xl"],row:[1,"row-span"],rowSm:[1,"row-span-sm"],rowMd:[1,"row-span-md"],rowLg:[1,"row-span-lg"],rowXl:[1,"row-span-xl"]}]);function m(){if(typeof customElements==="undefined"){return}const s=["gov-grid-item"];s.forEach((s=>{switch(s){case"gov-grid-item":if(!customElements.get(s)){customElements.define(s,c)}break}}))}m();const i=c;const l=m;export{i as GovGridItem,l as defineCustomElement};
2
2
  //# sourceMappingURL=gov-grid-item.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as t,h as e,a as i}from"./index.js";import{G as o}from"./p-C6JN9gdb.js";import{g as r}from"./p-DfJDyRCE.js";const n=s(class s extends t{constructor(){super();this.__registerHost();this.h=r(this.host)}render(){return e(i,{key:"18d145fce4ae449e277684f8b0274ed60b759568",class:this.h.classes(o.root),role:"list"},e("slot",{key:"a37b3c0533fe8ef2fa5513e9c489f5b98247d4de"}))}get host(){return this}},[4,"gov-grid",{alignItems:[513,"align-items"],justifyItems:[513,"justify-items"],gap:[513]}]);function c(){if(typeof customElements==="undefined"){return}const s=["gov-grid"];s.forEach((s=>{switch(s){case"gov-grid":if(!customElements.get(s)){customElements.define(s,n)}break}}))}c();const f=n;const m=c;export{f as GovGrid,m as defineCustomElement};
1
+ import{p as s,H as t,h as e,a as i}from"./index.js";import{G as o}from"./p-C6JN9gdb.js";import{g as r}from"./p-DfJDyRCE.js";const n=s(class s extends t{constructor(){super();this.__registerHost();this.h=r(this.host)}render(){return e(i,{key:"18d145fce4ae449e277684f8b0274ed60b759568",class:this.h.classes(o.root),role:"list"},e("slot",{key:"a37b3c0533fe8ef2fa5513e9c489f5b98247d4de"}))}get host(){return this}},[260,"gov-grid",{alignItems:[513,"align-items"],justifyItems:[513,"justify-items"],gap:[513]}]);function c(){if(typeof customElements==="undefined"){return}const s=["gov-grid"];s.forEach((s=>{switch(s){case"gov-grid":if(!customElements.get(s)){customElements.define(s,n)}break}}))}c();const f=n;const m=c;export{f as GovGrid,m as defineCustomElement};
2
2
  //# sourceMappingURL=gov-grid.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-D82BPGeo.js";const t=o;const p=s;export{t as GovIcon,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-WmFNIuTf.js";const t=o;const m=s;export{t as GovIcon,m as defineCustomElement};
2
2
  //# sourceMappingURL=gov-icon.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as s,h as o,a as i}from"./index.js";import{g as a,t as n}from"./p-DfJDyRCE.js";import{F as c}from"./p-5itQzbON.js";import{v as l}from"./p-BKP-F1qP.js";import{C as r}from"./p-U40vKHrs.js";import{p as h}from"./p-CQvUntGY.js";import{A as b,a as d,i as f}from"./p-CXgom82_.js";import{d as m}from"./p-DxCeyMKq.js";import{d as v}from"./p-D82BPGeo.js";const p=h(r,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var g;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(g||(g={}));const u={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const y=t(class t extends e{constructor(){super();this.__registerHost();this.govClose=s(this,"gov-close");this.hydrated=false;this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(t){l(p,t,u.root)}componentDidLoad(){this.attributeObserver=new b(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}connectedCallback(){this.hydrated=true}render(){const t=o("gov-button",{key:"725f2b43b343cf280f1d17f2e4ea585f76459e4a",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:u.close},o("gov-icon",{key:"a152c21f78f34765419c772bd74d3deeac89a193",name:"x-lg",type:"components"}));return o(i,{key:"ea3760a93c20997a2c9807395346782854ca2b14",class:this.h.classes(u.root),color:this.color,type:this.type,hydrated:this.hydrated},o("section",Object.assign({key:"ed8c013c901f3cf42bec8be0f006056ae4d0925a",class:u.section},this.inheritedAttributes,{role:this.role}),this.h.hasSlot("icon")&&o("span",{key:"4a04033e6f01219508a7d2bb2dce964d87ebd2e8"},o("slot",{key:"513dfdc3bc75b60fe522cb78fb8b3a69de82606f",name:"icon"})),o("div",{key:"1bb7ed8940cef2f981857eec96de6b998b2791d8",class:u.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:u.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:u.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-infobar",{color:[1],type:[1],role:[1],accessibleCloseLabel:[1,"accessible-close-label"],accessibleToggleLabel:[1,"accessible-toggle-label"],closable:[4],toggleContent:[32],inheritedAttributes:[32]},undefined,{color:["validateColor"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-infobar","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-infobar":if(!customElements.get(t)){customElements.define(t,y)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){v()}break}}))}C();const k=y;const j=C;export{k as GovInfobar,j as defineCustomElement};
1
+ import{p as t,H as e,c as s,h as o,a as i}from"./index.js";import{g as a,t as n}from"./p-DfJDyRCE.js";import{F as c}from"./p-5itQzbON.js";import{v as l}from"./p-BKP-F1qP.js";import{C as r}from"./p-U40vKHrs.js";import{p as h}from"./p-CQvUntGY.js";import{A as b,a as d,i as f}from"./p-CXgom82_.js";import{d as m}from"./p-8QWehgod.js";import{d as v}from"./p-WmFNIuTf.js";const p=h(r,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var g;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(g||(g={}));const u={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const y=t(class t extends e{constructor(){super();this.__registerHost();this.govClose=s(this,"gov-close");this.hydrated=false;this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(t){l(p,t,u.root)}componentDidLoad(){this.attributeObserver=new b(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}connectedCallback(){this.hydrated=true}render(){const t=o("gov-button",{key:"725f2b43b343cf280f1d17f2e4ea585f76459e4a",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:u.close},o("gov-icon",{key:"a152c21f78f34765419c772bd74d3deeac89a193",name:"x-lg",type:"components"}));return o(i,{key:"ea3760a93c20997a2c9807395346782854ca2b14",class:this.h.classes(u.root),color:this.color,type:this.type,hydrated:this.hydrated},o("section",Object.assign({key:"ed8c013c901f3cf42bec8be0f006056ae4d0925a",class:u.section},this.inheritedAttributes,{role:this.role}),this.h.hasSlot("icon")&&o("span",{key:"4a04033e6f01219508a7d2bb2dce964d87ebd2e8"},o("slot",{key:"513dfdc3bc75b60fe522cb78fb8b3a69de82606f",name:"icon"})),o("div",{key:"1bb7ed8940cef2f981857eec96de6b998b2791d8",class:u.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:u.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:u.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[260,"gov-infobar",{color:[1],type:[1],role:[1],accessibleCloseLabel:[1,"accessible-close-label"],accessibleToggleLabel:[1,"accessible-toggle-label"],closable:[4],toggleContent:[32],inheritedAttributes:[32]},undefined,{color:["validateColor"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-infobar","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-infobar":if(!customElements.get(t)){customElements.define(t,y)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){v()}break}}))}C();const k=y;const j=C;export{k as GovInfobar,j as defineCustomElement};
2
2
  //# sourceMappingURL=gov-infobar.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,h as o,a as e}from"./index.js";import{a as c}from"./p-Q99QrOoi.js";import{g as n}from"./p-DfJDyRCE.js";const a=t(class t extends s{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return o(e,{key:"397a057c9e14fa21904f79a2c0b0c006476d53a4",class:this.h.classes(c.root)},o("slot",{key:"29373dc179d00e3e3f34ae4da070815d04d1a355"}))}get host(){return this}},[4,"gov-layout-column"]);function r(){if(typeof customElements==="undefined"){return}const t=["gov-layout-column"];t.forEach((t=>{switch(t){case"gov-layout-column":if(!customElements.get(t)){customElements.define(t,a)}break}}))}r();const u=a;const i=r;export{u as GovLayoutColumn,i as defineCustomElement};
1
+ import{p as t,H as s,h as o,a as e}from"./index.js";import{a as c}from"./p-Q99QrOoi.js";import{g as n}from"./p-DfJDyRCE.js";const a=t(class t extends s{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return o(e,{key:"397a057c9e14fa21904f79a2c0b0c006476d53a4",class:this.h.classes(c.root)},o("slot",{key:"29373dc179d00e3e3f34ae4da070815d04d1a355"}))}get host(){return this}},[260,"gov-layout-column"]);function r(){if(typeof customElements==="undefined"){return}const t=["gov-layout-column"];t.forEach((t=>{switch(t){case"gov-layout-column":if(!customElements.get(t)){customElements.define(t,a)}break}}))}r();const u=a;const i=r;export{u as GovLayoutColumn,i as defineCustomElement};
2
2
  //# sourceMappingURL=gov-layout-column.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as t,h as e,a as o}from"./index.js";import{L as c}from"./p-Q99QrOoi.js";import{g as i}from"./p-DfJDyRCE.js";const n=s(class s extends t{constructor(){super();this.__registerHost();this.type="stretch";this.inverse=false;this.h=i(this.host)}typeClass(s,t,e,o){const c=t?"-"+t:"";const i=e?"-"+e:"";const n=o?"-inverse":"";return s+" "+s+c+i+n}render(){return e(o,{key:"e1c3d46c89a466366190d86e9cf6e9890b9f53c8",type:this.type,class:this.h.classes(c.root)},e("section",{key:"0e7d98f4f001f66a4a43aecf50070bf3cf166fd9",class:this.typeClass(c.section,this.type,this.variant,this.inverse)},e("slot",{key:"3cd4ca9c4d9020d4315484b0581efb09354806ef"})))}get host(){return this}},[4,"gov-layout",{type:[1],variant:[1],inverse:[4]}]);function r(){if(typeof customElements==="undefined"){return}const s=["gov-layout"];s.forEach((s=>{switch(s){case"gov-layout":if(!customElements.get(s)){customElements.define(s,n)}break}}))}r();const a=n;const f=r;export{a as GovLayout,f as defineCustomElement};
1
+ import{p as s,H as t,h as e,a as o}from"./index.js";import{L as c}from"./p-Q99QrOoi.js";import{g as i}from"./p-DfJDyRCE.js";const n=s(class s extends t{constructor(){super();this.__registerHost();this.type="stretch";this.inverse=false;this.h=i(this.host)}typeClass(s,t,e,o){const c=t?"-"+t:"";const i=e?"-"+e:"";const n=o?"-inverse":"";return s+" "+s+c+i+n}render(){return e(o,{key:"e1c3d46c89a466366190d86e9cf6e9890b9f53c8",type:this.type,class:this.h.classes(c.root)},e("section",{key:"0e7d98f4f001f66a4a43aecf50070bf3cf166fd9",class:this.typeClass(c.section,this.type,this.variant,this.inverse)},e("slot",{key:"3cd4ca9c4d9020d4315484b0581efb09354806ef"})))}get host(){return this}},[260,"gov-layout",{type:[1],variant:[1],inverse:[4]}]);function r(){if(typeof customElements==="undefined"){return}const s=["gov-layout"];s.forEach((s=>{switch(s){case"gov-layout":if(!customElements.get(s)){customElements.define(s,n)}break}}))}r();const a=n;const f=r;export{a as GovLayout,f as defineCustomElement};
2
2
  //# sourceMappingURL=gov-layout.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as o,h as c,a as n}from"./index.js";import{a as t}from"./p-vN03FcXN.js";const s=e(class e extends o{constructor(){super();this.__registerHost();this.uniqueId="lifecycle-"+t()}connectedCallback(){console.log("connectedCallback",this.uniqueId)}disconnectedCallback(){console.log("disconnectedCallback",this.uniqueId)}componentWillLoad(){console.log("componentWillLoad",this.uniqueId)}componentDidLoad(){console.log("componentDidLoad",this.uniqueId)}componentShouldUpdate(){console.log("componentShouldUpdate",this.uniqueId)}componentWillRender(){console.log("componentWillRender",this.uniqueId)}componentDidRender(){console.log("componentDidRender",this.uniqueId)}componentWillUpdate(){console.log("componentWillUpdate",this.uniqueId)}componentDidUpdate(){console.log("componentDidUpdate",this.uniqueId)}render(){return c(n,{key:"c5189d0afc68fc5d1149184eec3a02b57170689a",identifier:this.uniqueId},c("span",{key:"cc6fbd61e6f7ba9cd4373bec00c128501e6df319"},"lifecycle ",this.uniqueId))}},[0,"gov-lifecycle"]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-lifecycle"];e.forEach((e=>{switch(e){case"gov-lifecycle":if(!customElements.get(e)){customElements.define(e,s)}break}}))}l();const i=s;const d=l;export{i as GovLifecycle,d as defineCustomElement};
1
+ import{p as e,H as o,h as c,a as n}from"./index.js";import{a as t}from"./p-vN03FcXN.js";const s=e(class e extends o{constructor(){super();this.__registerHost();this.uniqueId="lifecycle-"+t()}connectedCallback(){console.log("connectedCallback",this.uniqueId)}disconnectedCallback(){console.log("disconnectedCallback",this.uniqueId)}componentWillLoad(){console.log("componentWillLoad",this.uniqueId)}componentDidLoad(){console.log("componentDidLoad",this.uniqueId)}componentShouldUpdate(){console.log("componentShouldUpdate",this.uniqueId)}componentWillRender(){console.log("componentWillRender",this.uniqueId)}componentDidRender(){console.log("componentDidRender",this.uniqueId)}componentWillUpdate(){console.log("componentWillUpdate",this.uniqueId)}componentDidUpdate(){console.log("componentDidUpdate",this.uniqueId)}render(){return c(n,{key:"c5189d0afc68fc5d1149184eec3a02b57170689a",identifier:this.uniqueId},c("span",{key:"cc6fbd61e6f7ba9cd4373bec00c128501e6df319"},"lifecycle ",this.uniqueId))}},[256,"gov-lifecycle"]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-lifecycle"];e.forEach((e=>{switch(e){case"gov-lifecycle":if(!customElements.get(e)){customElements.define(e,s)}break}}))}l();const i=s;const d=l;export{i as GovLifecycle,d as defineCustomElement};
2
2
  //# sourceMappingURL=gov-lifecycle.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as s,a as i}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as o}from"./p-BcQO4NH2.js";import{g as n}from"./p-DfJDyRCE.js";import{v as c}from"./p-BKP-F1qP.js";import{i as r}from"./p-CXgom82_.js";import{d as f}from"./p-D82BPGeo.js";const h=a(o,["_S","_M","_L"]);const l={root:"gov-link",external:"gov-link--external"};const d=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.external=false;this.truncate=false;this.inheritedAttributes={};this.h=n(this.host)}validateSize(e){c(h,e,l.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=r(this.host)}onAriaAttributeChange(e,t){this.host.removeAttribute(e);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[e]:t})}render(){return s(i,{key:"d1b6a1956e244525bc1776d9aee22ff9b47add0c",class:this.h.classes(l.root),size:this.size,href:this.href,external:this.external,truncate:this.truncate},s("a",Object.assign({key:"89f7d438ed43946d1f3c9db5e891986217592794",class:"element",href:this.href,target:this.external?"_blank":this.target,rel:this.external?"noreferrer":null},this.inheritedAttributes),s("slot",{key:"a0a36a90d0defb8cce2504f38636adcc79ef88c3",name:"icon-start"}),s("span",{key:"4c161cef2c8f9819e45c00663cef9ebbfebc5d1d"},s("slot",{key:"2f75a358caf4530ac137f432bba0ff60af17643e"})),s("slot",{key:"99c005f455a510e220c0f3f64759f441272618ad",name:"icon-end"}),this.external&&s("gov-icon",{key:"b11aca08fdf2266d4f2a60ce202fce6152ab0b88",name:"box-arrow-up-right",type:"components",size:this.size,class:l.external})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-link",{size:[1],external:[4],truncate:[4],href:[1],target:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-link","gov-icon"];e.forEach((e=>{switch(e){case"gov-link":if(!customElements.get(e)){customElements.define(e,d)}break;case"gov-icon":if(!customElements.get(e)){f()}break}}))}m();const p=d;const b=m;export{p as GovLink,b as defineCustomElement};
1
+ import{p as e,H as t,h as s,a as i}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as o}from"./p-BcQO4NH2.js";import{g as n}from"./p-DfJDyRCE.js";import{v as c}from"./p-BKP-F1qP.js";import{i as r}from"./p-CXgom82_.js";import{d as f}from"./p-WmFNIuTf.js";const h=a(o,["_S","_M","_L"]);const l={root:"gov-link",external:"gov-link--external"};const m=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.external=false;this.truncate=false;this.inheritedAttributes={};this.h=n(this.host)}validateSize(e){c(h,e,l.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=r(this.host)}onAriaAttributeChange(e,t){this.host.removeAttribute(e);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[e]:t})}render(){return s(i,{key:"d1b6a1956e244525bc1776d9aee22ff9b47add0c",class:this.h.classes(l.root),size:this.size,href:this.href,external:this.external,truncate:this.truncate},s("a",Object.assign({key:"89f7d438ed43946d1f3c9db5e891986217592794",class:"element",href:this.href,target:this.external?"_blank":this.target,rel:this.external?"noreferrer":null},this.inheritedAttributes),s("slot",{key:"a0a36a90d0defb8cce2504f38636adcc79ef88c3",name:"icon-start"}),s("span",{key:"4c161cef2c8f9819e45c00663cef9ebbfebc5d1d"},s("slot",{key:"2f75a358caf4530ac137f432bba0ff60af17643e"})),s("slot",{key:"99c005f455a510e220c0f3f64759f441272618ad",name:"icon-end"}),this.external&&s("gov-icon",{key:"b11aca08fdf2266d4f2a60ce202fce6152ab0b88",name:"box-arrow-up-right",type:"components",size:this.size,class:l.external})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[260,"gov-link",{size:[1],external:[4],truncate:[4],href:[1],target:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"]}]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-link","gov-icon"];e.forEach((e=>{switch(e){case"gov-link":if(!customElements.get(e)){customElements.define(e,m)}break;case"gov-icon":if(!customElements.get(e)){f()}break}}))}d();const p=m;const b=d;export{p as GovLink,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-link.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as o,h as s,a as t}from"./index.js";import{p as i}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";import{g as n,p as c}from"./p-DfJDyRCE.js";import{v as r}from"./p-BKP-F1qP.js";import{d}from"./p-CNXZgyfX.js";import{d as f}from"./p-D82BPGeo.js";const m=i(a,["_S","_M","_L"]);const p={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const g=e(class e extends o{constructor(){super();this.__registerHost();this.size="m";this.h=n(this.host)}validateSize(e){r(m,e,p.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(t,{key:"b242b9fdc52e5afc61e14b068253ce3d693d181e",class:this.h.classes(p.root),size:this.size},s("div",{key:"f0f0e4f05239b9cf0eead9365df12f0c8bc37c30",class:p.content},s("gov-icon",{key:"7413af05d78c0d957ee5e99b6cce347283e01057",class:c([p.icon,"gov-spin-animation"]),name:"loader",type:"components"}),s("slot",{key:"d047393d005afbce224befeae2cfd9023e321b81"})),s("gov-backdrop",{key:"54df690f070aee585f15dffa1aae555e75da49b5",inverse:true}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-loading",{size:[1]},undefined,{size:["validateSize"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-loading","gov-backdrop","gov-icon"];e.forEach((e=>{switch(e){case"gov-loading":if(!customElements.get(e)){customElements.define(e,g)}break;case"gov-backdrop":if(!customElements.get(e)){d()}break;case"gov-icon":if(!customElements.get(e)){f()}break}}))}l();const v=g;const b=l;export{v as GovLoading,b as defineCustomElement};
1
+ import{p as e,H as o,h as s,a as t}from"./index.js";import{p as i}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";import{g as n,p as c}from"./p-DfJDyRCE.js";import{v as r}from"./p-BKP-F1qP.js";import{d}from"./p-D4Z6jWqx.js";import{d as f}from"./p-WmFNIuTf.js";const m=i(a,["_S","_M","_L"]);const p={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const g=e(class e extends o{constructor(){super();this.__registerHost();this.size="m";this.h=n(this.host)}validateSize(e){r(m,e,p.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(t,{key:"b242b9fdc52e5afc61e14b068253ce3d693d181e",class:this.h.classes(p.root),size:this.size},s("div",{key:"f0f0e4f05239b9cf0eead9365df12f0c8bc37c30",class:p.content},s("gov-icon",{key:"7413af05d78c0d957ee5e99b6cce347283e01057",class:c([p.icon,"gov-spin-animation"]),name:"loader",type:"components"}),s("slot",{key:"d047393d005afbce224befeae2cfd9023e321b81"})),s("gov-backdrop",{key:"54df690f070aee585f15dffa1aae555e75da49b5",inverse:true}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[260,"gov-loading",{size:[1]},undefined,{size:["validateSize"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-loading","gov-backdrop","gov-icon"];e.forEach((e=>{switch(e){case"gov-loading":if(!customElements.get(e)){customElements.define(e,g)}break;case"gov-backdrop":if(!customElements.get(e)){d()}break;case"gov-icon":if(!customElements.get(e)){f()}break}}))}l();const v=g;const b=l;export{v as GovLoading,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-loading.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,h as t,a as o}from"./index.js";import{v as a}from"./p-BKP-F1qP.js";import{C as r}from"./p-U40vKHrs.js";import{p as c}from"./p-CQvUntGY.js";import{g as n}from"./p-DfJDyRCE.js";c(r,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var i;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(i||(i={}));const f={root:"gov-message",content:"gov-message__content"};const d=e(class e extends s{constructor(){super();this.__registerHost();this.color=r.PRIMARY;this.type="subtle";this.h=n(this.host)}validateColor(e){a(r,e,f.root)}render(){return t(o,{key:"b1e404aaebe6a1c22999b9f1901dc5fc63119a12",class:this.h.classes(f.root),color:this.color,type:this.type,role:"status"},this.h.hasSlot("icon")&&t("span",{key:"fb9f2ed1047003aeaf03954345240b0484eea289"},t("slot",{key:"b0457abeb671b2d895ed9618f92047b5f8d48e1f",name:"icon"})),t("div",{key:"c358b23982d1e1f8a82eb780b56932e9b01f98c9",class:f.content},t("slot",{key:"d0faba3cea5d572a43d7a0dcacf0e26fd255650c"})))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-message",{color:[1],type:[1]},undefined,{color:["validateColor"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-message"];e.forEach((e=>{switch(e){case"gov-message":if(!customElements.get(e)){customElements.define(e,d)}break}}))}l();const m=d;const b=l;export{m as GovMessage,b as defineCustomElement};
1
+ import{p as e,H as s,h as t,a as o}from"./index.js";import{v as a}from"./p-BKP-F1qP.js";import{C as r}from"./p-U40vKHrs.js";import{p as c}from"./p-CQvUntGY.js";import{g as n}from"./p-DfJDyRCE.js";c(r,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var i;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(i||(i={}));const f={root:"gov-message",content:"gov-message__content"};const d=e(class e extends s{constructor(){super();this.__registerHost();this.color=r.PRIMARY;this.type="subtle";this.h=n(this.host)}validateColor(e){a(r,e,f.root)}render(){return t(o,{key:"b1e404aaebe6a1c22999b9f1901dc5fc63119a12",class:this.h.classes(f.root),color:this.color,type:this.type,role:"status"},this.h.hasSlot("icon")&&t("span",{key:"fb9f2ed1047003aeaf03954345240b0484eea289"},t("slot",{key:"b0457abeb671b2d895ed9618f92047b5f8d48e1f",name:"icon"})),t("div",{key:"c358b23982d1e1f8a82eb780b56932e9b01f98c9",class:f.content},t("slot",{key:"d0faba3cea5d572a43d7a0dcacf0e26fd255650c"})))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[260,"gov-message",{color:[1],type:[1]},undefined,{color:["validateColor"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-message"];e.forEach((e=>{switch(e){case"gov-message":if(!customElements.get(e)){customElements.define(e,d)}break}}))}l();const m=d;const b=l;export{m as GovMessage,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-message.js.map