@gov-design-system-ce/components 4.1.0-rc02 → 4.1.0-rc04

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 (531) hide show
  1. package/dist/cjs/core.cjs.js +2 -2
  2. package/dist/cjs/gov-accordion-item.cjs.entry.js +8 -5
  3. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/gov-attachments_3.cjs.entry.js +6 -6
  6. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  7. package/dist/cjs/gov-backdrop.cjs.entry.js +4 -4
  8. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +4 -4
  9. package/dist/cjs/gov-button.cjs.entry.js +6 -6
  10. package/dist/cjs/gov-card.cjs.entry.js +4 -4
  11. package/dist/cjs/gov-chip.cjs.entry.js +4 -4
  12. package/dist/cjs/gov-container.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-control-group.cjs.entry.js +2 -2
  14. package/dist/cjs/gov-cookiebar.cjs.entry.js +2 -2
  15. package/dist/cjs/gov-dialog.cjs.entry.js +4 -4
  16. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-dropdown.cjs.entry.js +3 -3
  18. package/dist/cjs/gov-empty.cjs.entry.js +2 -2
  19. package/dist/cjs/gov-error-code.cjs.entry.js +2 -2
  20. package/dist/cjs/gov-flex.cjs.entry.js +31 -0
  21. package/dist/cjs/gov-flex.cjs.entry.js.map +1 -0
  22. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
  23. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +2 -2
  24. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
  25. package/dist/cjs/gov-form-control.cjs.entry.js +3 -3
  26. package/dist/cjs/gov-form-file.cjs.entry.js +8 -3
  27. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-form-group.cjs.entry.js +2 -2
  29. package/dist/cjs/gov-form-input_2.cjs.entry.js +6 -6
  30. package/dist/cjs/gov-form-label.cjs.entry.js +2 -2
  31. package/dist/cjs/gov-form-multi-select.cjs.entry.js +7 -22
  32. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  33. package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
  34. package/dist/cjs/gov-form-radio-group.cjs.entry.js +2 -2
  35. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
  36. package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
  37. package/dist/cjs/gov-form-select.cjs.entry.js +4 -4
  38. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
  39. package/dist/cjs/gov-grid-item.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-grid.cjs.entry.js +2 -2
  41. package/dist/cjs/gov-icon.cjs.entry.js +2 -2
  42. package/dist/cjs/gov-infobar.cjs.entry.js +3 -3
  43. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
  45. package/dist/cjs/gov-layout.cjs.entry.js +2 -2
  46. package/dist/cjs/gov-lifecycle.cjs.entry.js +47 -0
  47. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -0
  48. package/dist/cjs/gov-loading.cjs.entry.js +2 -2
  49. package/dist/cjs/gov-message.cjs.entry.js +2 -2
  50. package/dist/cjs/gov-pagination.cjs.entry.js +3 -3
  51. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  52. package/dist/cjs/gov-spacer.cjs.entry.js +2 -2
  53. package/dist/cjs/gov-stepper-item.cjs.entry.js +3 -3
  54. package/dist/cjs/gov-stepper.cjs.entry.js +2 -2
  55. package/dist/cjs/gov-tabs-item.cjs.entry.js +3 -3
  56. package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
  57. package/dist/cjs/gov-tag.cjs.entry.js +2 -2
  58. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gov-theme-switch.cjs.entry.js +73 -0
  60. package/dist/cjs/gov-theme-switch.cjs.entry.js.map +1 -0
  61. package/dist/cjs/gov-tile.cjs.entry.js +2 -2
  62. package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
  63. package/dist/cjs/gov-toast.cjs.entry.js +5 -6
  64. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
  66. package/dist/cjs/gov-tooltip.cjs.entry.js +4 -4
  67. package/dist/cjs/gov-wizard-item.cjs.entry.js +4 -4
  68. package/dist/cjs/gov-wizard.cjs.entry.js +4 -4
  69. package/dist/cjs/{index-1af4880c.js → index-7ff4447c.js} +20 -4
  70. package/dist/cjs/index-7ff4447c.js.map +1 -0
  71. package/dist/cjs/loader.cjs.js +2 -2
  72. package/dist/cjs/{string.utils-2335838f.js → string.utils-b84c81cf.js} +2 -1
  73. package/dist/cjs/string.utils-b84c81cf.js.map +1 -0
  74. package/dist/cjs/{wcag-31089f70.js → wcag-b8d80c7d.js} +2 -2
  75. package/dist/cjs/{wcag-31089f70.js.map → wcag-b8d80c7d.js.map} +1 -1
  76. package/dist/collection/collection-manifest.json +2 -1
  77. package/dist/collection/components/gov-accordion/gov-accordion-item.js +8 -5
  78. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  79. package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
  80. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  81. package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
  82. package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
  83. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  84. package/dist/collection/components/gov-button/button/gov-button.js +3 -3
  85. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  86. package/dist/collection/components/gov-card/gov-card.js +1 -1
  87. package/dist/collection/components/gov-chip/gov-chip.js +2 -2
  88. package/dist/collection/components/gov-container/gov-container.js +1 -1
  89. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  90. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  91. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  92. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  93. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  94. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  95. package/dist/collection/components/gov-flex/constants.js +4 -0
  96. package/dist/collection/components/gov-flex/constants.js.map +1 -0
  97. package/dist/collection/components/gov-flex/gov-flex.js +127 -0
  98. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -0
  99. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +1 -1
  100. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  101. package/dist/collection/components/gov-form/file/gov-form-file.js +6 -1
  102. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  103. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  104. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  105. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  106. package/dist/collection/components/gov-form/input/gov-form-input.js +3 -3
  107. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  108. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  109. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -28
  110. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  111. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  112. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  113. package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
  114. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  115. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  116. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  117. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  118. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  119. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  120. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +39 -0
  121. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -0
  122. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  123. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  124. package/dist/collection/components/gov-message/gov-message.js +1 -1
  125. package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
  126. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  127. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  128. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  129. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  130. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  131. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  132. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  133. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  134. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  135. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  136. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  137. package/dist/collection/components/gov-toast/gov-toast.js +3 -4
  138. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  139. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  140. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  141. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  142. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  143. package/dist/collection/pages/Forms.js +159 -159
  144. package/dist/collection/pages/Forms.js.map +1 -1
  145. package/dist/collection/pages/Grid.js +1 -1
  146. package/dist/collection/pages/Grid.js.map +1 -1
  147. package/dist/collection/pages/Spacer.js +1 -1
  148. package/dist/collection/pages/Spacer.js.map +1 -1
  149. package/dist/collection/pages/Tag.js +135 -160
  150. package/dist/collection/pages/Tag.js.map +1 -1
  151. package/dist/collection/pages/Wizard.js +1 -1
  152. package/dist/collection/pages/Wizard.js.map +1 -1
  153. package/dist/collection/utils/string.utils.js +1 -1
  154. package/dist/collection/utils/string.utils.js.map +1 -1
  155. package/dist/components/gov-accordion-item.js +1 -1
  156. package/dist/components/gov-accordion-item.js.map +1 -1
  157. package/dist/components/gov-accordion.js +1 -1
  158. package/dist/components/gov-attachments-item.js +1 -1
  159. package/dist/components/gov-attachments.js +1 -1
  160. package/dist/components/gov-backdrop.js +1 -1
  161. package/dist/components/gov-breadcrumbs.js +1 -1
  162. package/dist/components/gov-breadcrumbs.js.map +1 -1
  163. package/dist/components/gov-button.js +1 -1
  164. package/dist/components/gov-card.js +1 -1
  165. package/dist/components/gov-chip.js +1 -1
  166. package/dist/components/gov-container.js +1 -1
  167. package/dist/components/gov-control-group.js +1 -1
  168. package/dist/components/gov-cookiebar.js +1 -1
  169. package/dist/components/gov-dialog.js +1 -1
  170. package/dist/components/gov-dialog.js.map +1 -1
  171. package/dist/components/gov-dropdown.js +1 -1
  172. package/dist/components/gov-dropdown.js.map +1 -1
  173. package/dist/components/gov-empty.js +1 -1
  174. package/dist/components/gov-error-code.js +1 -1
  175. package/dist/components/{gov-app.d.ts → gov-flex.d.ts} +4 -4
  176. package/dist/components/gov-flex.js +2 -0
  177. package/dist/components/gov-flex.js.map +1 -0
  178. package/dist/components/gov-form-autocomplete.js +1 -1
  179. package/dist/components/gov-form-checkbox-group.js +1 -1
  180. package/dist/components/gov-form-checkbox.js +1 -1
  181. package/dist/components/gov-form-control.js +1 -1
  182. package/dist/components/gov-form-file.js +1 -1
  183. package/dist/components/gov-form-file.js.map +1 -1
  184. package/dist/components/gov-form-group.js +1 -1
  185. package/dist/components/gov-form-input.js +1 -1
  186. package/dist/components/gov-form-label.js +1 -1
  187. package/dist/components/gov-form-message.js +1 -1
  188. package/dist/components/gov-form-multi-select.js +1 -1
  189. package/dist/components/gov-form-multi-select.js.map +1 -1
  190. package/dist/components/gov-form-password-power.js +1 -1
  191. package/dist/components/gov-form-password-power.js.map +1 -1
  192. package/dist/components/gov-form-radio-group.js +1 -1
  193. package/dist/components/gov-form-radio.js +1 -1
  194. package/dist/components/gov-form-radio.js.map +1 -1
  195. package/dist/components/gov-form-search.js +1 -1
  196. package/dist/components/gov-form-select.js +1 -1
  197. package/dist/components/gov-form-switch.js +1 -1
  198. package/dist/components/gov-grid-item.js +1 -1
  199. package/dist/components/gov-grid.js +1 -1
  200. package/dist/components/gov-icon.js +1 -1
  201. package/dist/components/gov-infobar.js +1 -1
  202. package/dist/components/gov-infobar.js.map +1 -1
  203. package/dist/components/gov-layout-column.js +1 -1
  204. package/dist/components/gov-layout.js +1 -1
  205. package/dist/components/gov-lifecycle.d.ts +11 -0
  206. package/dist/components/gov-lifecycle.js +2 -0
  207. package/dist/components/gov-lifecycle.js.map +1 -0
  208. package/dist/components/gov-loading.js +1 -1
  209. package/dist/components/gov-loading.js.map +1 -1
  210. package/dist/components/gov-message.js +1 -1
  211. package/dist/components/gov-pagination.js +1 -1
  212. package/dist/components/gov-pagination.js.map +1 -1
  213. package/dist/components/gov-skeleton.js +1 -1
  214. package/dist/components/gov-spacer.js +1 -1
  215. package/dist/components/gov-stepper-item.js +1 -1
  216. package/dist/components/gov-stepper.js +1 -1
  217. package/dist/components/gov-tabs-item.js +1 -1
  218. package/dist/components/gov-tabs.js +1 -1
  219. package/dist/components/gov-tabs.js.map +1 -1
  220. package/dist/components/gov-tag.js +1 -1
  221. package/dist/components/gov-tag.js.map +1 -1
  222. package/dist/components/gov-theme-switch.js +1 -1
  223. package/dist/components/gov-tile.js +1 -1
  224. package/dist/components/gov-tiles.js +1 -1
  225. package/dist/components/gov-toast.js +1 -1
  226. package/dist/components/gov-toast.js.map +1 -1
  227. package/dist/components/gov-tooltip-content.js +1 -1
  228. package/dist/components/gov-tooltip-content.js.map +1 -1
  229. package/dist/components/gov-tooltip.js +1 -1
  230. package/dist/components/gov-wizard-item.js +1 -1
  231. package/dist/components/gov-wizard.js +1 -1
  232. package/dist/components/index.js +1 -1
  233. package/dist/components/p-02da2aee.js +2 -0
  234. package/dist/components/{p-e9b35956.js.map → p-02da2aee.js.map} +1 -1
  235. package/dist/components/p-1d3019f3.js +2 -0
  236. package/dist/components/{p-e183a7c7.js → p-1f3bb41d.js} +2 -2
  237. package/dist/components/{p-6e19816b.js → p-23b7e680.js} +2 -2
  238. package/dist/components/{p-5caf1fe1.js → p-387052e1.js} +2 -2
  239. package/dist/components/{p-c9a15c52.js → p-3b807239.js} +2 -2
  240. package/dist/components/{p-ae3dada7.js → p-42200001.js} +3 -3
  241. package/dist/components/p-42200001.js.map +1 -0
  242. package/dist/components/{p-ff0cf148.js → p-5cc316bc.js} +2 -2
  243. package/dist/components/{p-e20bb5dc.js → p-6ea84137.js} +2 -2
  244. package/dist/components/p-820b66c0.js +2 -0
  245. package/dist/components/{p-fe1842da.js.map → p-820b66c0.js.map} +1 -1
  246. package/dist/components/p-880743a5.js.map +1 -1
  247. package/dist/components/{p-736e4917.js → p-bd22e21d.js} +2 -2
  248. package/dist/components/{p-2da35aa8.js → p-c211c3e1.js} +2 -2
  249. package/dist/components/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  250. package/dist/components/p-cd6c2938.js.map +1 -0
  251. package/dist/components/{p-9a93146e.js → p-dcee21ca.js} +2 -2
  252. package/dist/core/core.css +158 -29
  253. package/dist/core/core.esm.js +1 -1
  254. package/dist/core/core.esm.js.map +1 -1
  255. package/dist/core/p-0a24806a.entry.js +2 -0
  256. package/dist/core/{p-9d0f20ec.entry.js.map → p-0a24806a.entry.js.map} +1 -1
  257. package/dist/core/{p-9ff8f059.entry.js → p-0d2c4d31.entry.js} +2 -2
  258. package/dist/core/p-10f9bf55.entry.js +2 -0
  259. package/dist/core/{p-17015e36.entry.js.map → p-10f9bf55.entry.js.map} +1 -1
  260. package/dist/core/{p-0a952b3c.entry.js → p-12680890.entry.js} +2 -2
  261. package/dist/core/p-1600c1fb.entry.js +2 -0
  262. package/dist/core/p-18025823.entry.js +2 -0
  263. package/dist/core/p-18025823.entry.js.map +1 -0
  264. package/dist/core/p-18dbe177.entry.js +2 -0
  265. package/dist/core/p-18dbe177.entry.js.map +1 -0
  266. package/dist/core/{p-74e9ad9d.entry.js → p-1a550eee.entry.js} +2 -2
  267. package/dist/core/{p-9b41ac88.entry.js → p-1f1895c0.entry.js} +2 -2
  268. package/dist/core/p-1fdc2457.entry.js +2 -0
  269. package/dist/core/p-212759be.entry.js +2 -0
  270. package/dist/core/{p-db940455.entry.js.map → p-212759be.entry.js.map} +1 -1
  271. package/dist/core/p-215504c1.entry.js +2 -0
  272. package/dist/core/p-2c3ddc57.entry.js +2 -0
  273. package/dist/core/{p-83039b10.entry.js.map → p-2c3ddc57.entry.js.map} +1 -1
  274. package/dist/core/p-31e7d262.entry.js +2 -0
  275. package/dist/core/p-31e7d262.entry.js.map +1 -0
  276. package/dist/core/{p-b3acb156.entry.js → p-32bba4e7.entry.js} +2 -2
  277. package/dist/core/{p-fa7caad6.entry.js → p-378e0723.entry.js} +2 -2
  278. package/dist/core/{p-0ebc8365.entry.js → p-3844a27d.entry.js} +2 -2
  279. package/dist/core/p-4cb4de7b.entry.js +2 -0
  280. package/dist/core/{p-aa8adc45.entry.js.map → p-4cb4de7b.entry.js.map} +1 -1
  281. package/dist/core/p-56f9e026.entry.js +2 -0
  282. package/dist/core/p-57b0e670.entry.js +2 -0
  283. package/dist/core/{p-b55fc943.entry.js.map → p-57b0e670.entry.js.map} +1 -1
  284. package/dist/core/p-58dc3ec3.entry.js +2 -0
  285. package/dist/core/p-58dc3ec3.entry.js.map +1 -0
  286. package/dist/core/p-5ad3097c.entry.js +2 -0
  287. package/dist/core/{p-a5489b0e.entry.js.map → p-5ad3097c.entry.js.map} +1 -1
  288. package/dist/core/p-668ca722.entry.js +2 -0
  289. package/dist/core/{p-f1be099b.entry.js → p-67200095.entry.js} +2 -2
  290. package/dist/core/p-731fe7d8.entry.js +2 -0
  291. package/dist/core/{p-5c88f415.entry.js.map → p-731fe7d8.entry.js.map} +1 -1
  292. package/dist/core/p-7591976a.entry.js +2 -0
  293. package/dist/core/p-75ea368b.entry.js +2 -0
  294. package/dist/core/{p-ab9ae7ba.entry.js → p-7b48b1b8.entry.js} +2 -2
  295. package/dist/core/p-7de47344.entry.js +2 -0
  296. package/dist/core/p-7de47344.entry.js.map +1 -0
  297. package/dist/core/p-83aa4327.entry.js +2 -0
  298. package/dist/core/{p-28a7d3f7.js → p-842cb87f.js} +2 -2
  299. package/dist/core/{p-a1e95a5f.js → p-8506b611.js} +3 -3
  300. package/dist/core/p-8506b611.js.map +1 -0
  301. package/dist/core/p-880743a5.js.map +1 -1
  302. package/dist/core/p-89b69743.entry.js +2 -0
  303. package/dist/core/p-8a796fbe.entry.js +2 -0
  304. package/dist/core/p-8f10919c.entry.js +2 -0
  305. package/dist/core/{p-f456bd71.entry.js.map → p-8f10919c.entry.js.map} +1 -1
  306. package/dist/core/p-8fe36a5b.entry.js +2 -0
  307. package/dist/core/p-915e53ac.entry.js +2 -0
  308. package/dist/core/{p-47e364bb.entry.js.map → p-915e53ac.entry.js.map} +1 -1
  309. package/dist/core/p-92e13f9d.entry.js +2 -0
  310. package/dist/core/p-a274cdaa.entry.js +2 -0
  311. package/dist/core/p-a274cdaa.entry.js.map +1 -0
  312. package/dist/core/p-a9a095c2.entry.js +2 -0
  313. package/dist/core/p-a9a095c2.entry.js.map +1 -0
  314. package/dist/core/{p-81b0848c.entry.js → p-ab68c0b7.entry.js} +2 -2
  315. package/dist/core/p-b50ffab3.entry.js +2 -0
  316. package/dist/core/p-b70cc248.entry.js +2 -0
  317. package/dist/core/p-b822b9ff.entry.js +2 -0
  318. package/dist/core/p-c0a5a3f7.entry.js +2 -0
  319. package/dist/core/p-c5b5fd69.entry.js +2 -0
  320. package/dist/core/{p-6d772ff9.entry.js.map → p-c5b5fd69.entry.js.map} +1 -1
  321. package/dist/core/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  322. package/dist/core/p-cd6c2938.js.map +1 -0
  323. package/dist/core/{p-3f2b803c.entry.js → p-d1c4eb91.entry.js} +2 -2
  324. package/dist/core/{p-d2351924.entry.js → p-d3963396.entry.js} +2 -2
  325. package/dist/core/p-d4fbc249.entry.js +2 -0
  326. package/dist/core/{p-5dc0af54.entry.js.map → p-d4fbc249.entry.js.map} +1 -1
  327. package/dist/core/{p-fc90bf06.entry.js → p-d949aac7.entry.js} +2 -2
  328. package/dist/core/p-e6af4c58.entry.js +2 -0
  329. package/dist/core/p-ede7af0a.entry.js +2 -0
  330. package/dist/core/p-ede7af0a.entry.js.map +1 -0
  331. package/dist/core/p-eebc9e71.entry.js +2 -0
  332. package/dist/core/{p-2ed3afef.entry.js → p-eebf7ad8.entry.js} +2 -2
  333. package/dist/core/{p-dc3fab19.entry.js → p-f1c8a96b.entry.js} +2 -2
  334. package/dist/core/{p-dc3fab19.entry.js.map → p-f1c8a96b.entry.js.map} +1 -1
  335. package/dist/core/{p-35e66bef.entry.js → p-f963bb2f.entry.js} +2 -2
  336. package/dist/core/p-fb0df3a5.entry.js +2 -0
  337. package/dist/core/{p-7cf554e6.entry.js.map → p-fb0df3a5.entry.js.map} +1 -1
  338. package/dist/esm/core.js +3 -3
  339. package/dist/esm/gov-accordion-item.entry.js +8 -5
  340. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  341. package/dist/esm/gov-accordion.entry.js +1 -1
  342. package/dist/esm/gov-attachments_3.entry.js +6 -6
  343. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  344. package/dist/esm/gov-backdrop.entry.js +4 -4
  345. package/dist/esm/gov-breadcrumbs.entry.js +4 -4
  346. package/dist/esm/gov-button.entry.js +6 -6
  347. package/dist/esm/gov-card.entry.js +4 -4
  348. package/dist/esm/gov-chip.entry.js +4 -4
  349. package/dist/esm/gov-container.entry.js +2 -2
  350. package/dist/esm/gov-control-group.entry.js +2 -2
  351. package/dist/esm/gov-cookiebar.entry.js +2 -2
  352. package/dist/esm/gov-dialog.entry.js +4 -4
  353. package/dist/esm/gov-dialog.entry.js.map +1 -1
  354. package/dist/esm/gov-dropdown.entry.js +3 -3
  355. package/dist/esm/gov-empty.entry.js +2 -2
  356. package/dist/esm/gov-error-code.entry.js +2 -2
  357. package/dist/esm/gov-flex.entry.js +27 -0
  358. package/dist/esm/gov-flex.entry.js.map +1 -0
  359. package/dist/esm/gov-form-autocomplete.entry.js +3 -3
  360. package/dist/esm/gov-form-checkbox-group.entry.js +2 -2
  361. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  362. package/dist/esm/gov-form-control.entry.js +3 -3
  363. package/dist/esm/gov-form-file.entry.js +8 -3
  364. package/dist/esm/gov-form-file.entry.js.map +1 -1
  365. package/dist/esm/gov-form-group.entry.js +2 -2
  366. package/dist/esm/gov-form-input_2.entry.js +6 -6
  367. package/dist/esm/gov-form-label.entry.js +2 -2
  368. package/dist/esm/gov-form-multi-select.entry.js +7 -22
  369. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  370. package/dist/esm/gov-form-password-power.entry.js +2 -2
  371. package/dist/esm/gov-form-radio-group.entry.js +2 -2
  372. package/dist/esm/gov-form-radio.entry.js +2 -2
  373. package/dist/esm/gov-form-search.entry.js +2 -2
  374. package/dist/esm/gov-form-select.entry.js +4 -4
  375. package/dist/esm/gov-form-switch.entry.js +2 -2
  376. package/dist/esm/gov-grid-item.entry.js +2 -2
  377. package/dist/esm/gov-grid.entry.js +2 -2
  378. package/dist/esm/gov-icon.entry.js +2 -2
  379. package/dist/esm/gov-infobar.entry.js +3 -3
  380. package/dist/esm/gov-infobar.entry.js.map +1 -1
  381. package/dist/esm/gov-layout-column.entry.js +2 -2
  382. package/dist/esm/gov-layout.entry.js +2 -2
  383. package/dist/esm/gov-lifecycle.entry.js +43 -0
  384. package/dist/esm/gov-lifecycle.entry.js.map +1 -0
  385. package/dist/esm/gov-loading.entry.js +2 -2
  386. package/dist/esm/gov-message.entry.js +2 -2
  387. package/dist/esm/gov-pagination.entry.js +3 -3
  388. package/dist/esm/gov-pagination.entry.js.map +1 -1
  389. package/dist/esm/gov-spacer.entry.js +2 -2
  390. package/dist/esm/gov-stepper-item.entry.js +3 -3
  391. package/dist/esm/gov-stepper.entry.js +2 -2
  392. package/dist/esm/gov-tabs-item.entry.js +3 -3
  393. package/dist/esm/gov-tabs.entry.js +2 -2
  394. package/dist/esm/gov-tag.entry.js +2 -2
  395. package/dist/esm/gov-tag.entry.js.map +1 -1
  396. package/dist/esm/gov-theme-switch.entry.js +69 -0
  397. package/dist/esm/gov-theme-switch.entry.js.map +1 -0
  398. package/dist/esm/gov-tile.entry.js +2 -2
  399. package/dist/esm/gov-tiles.entry.js +2 -2
  400. package/dist/esm/gov-toast.entry.js +5 -6
  401. package/dist/esm/gov-toast.entry.js.map +1 -1
  402. package/dist/esm/gov-tooltip-content.entry.js +2 -2
  403. package/dist/esm/gov-tooltip.entry.js +4 -4
  404. package/dist/esm/gov-wizard-item.entry.js +4 -4
  405. package/dist/esm/gov-wizard.entry.js +4 -4
  406. package/dist/esm/{index-d8b4eb6c.js → index-c263e031.js} +20 -4
  407. package/dist/esm/index-c263e031.js.map +1 -0
  408. package/dist/esm/loader.js +3 -3
  409. package/dist/esm/{string.utils-5ce3f551.js → string.utils-1da8f8fb.js} +2 -2
  410. package/dist/esm/string.utils-1da8f8fb.js.map +1 -0
  411. package/dist/esm/{wcag-fa5ce56c.js → wcag-d7c6c252.js} +2 -2
  412. package/dist/esm/{wcag-fa5ce56c.js.map → wcag-d7c6c252.js.map} +1 -1
  413. package/dist/hydrate/index.js +277 -10021
  414. package/dist/hydrate/index.mjs +277 -10021
  415. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +1 -0
  416. package/dist/types/components/gov-flex/constants.d.ts +3 -0
  417. package/dist/types/components/gov-flex/gov-flex.d.ts +33 -0
  418. package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -0
  419. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -2
  420. package/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  421. package/dist/types/components.d.ts +74 -13
  422. package/dist/types/utils/string.utils.d.ts +1 -0
  423. package/package.json +2 -2
  424. package/dist/cjs/gov-app_2.cjs.entry.js +0 -9891
  425. package/dist/cjs/gov-app_2.cjs.entry.js.map +0 -1
  426. package/dist/cjs/index-1af4880c.js.map +0 -1
  427. package/dist/cjs/string.utils-2335838f.js.map +0 -1
  428. package/dist/collection/components/gov-app/gov-app.css +0 -68
  429. package/dist/collection/components/gov-app/gov-app.js +0 -93
  430. package/dist/collection/components/gov-app/gov-app.js.map +0 -1
  431. package/dist/components/gov-app.js +0 -2
  432. package/dist/components/gov-app.js.map +0 -1
  433. package/dist/components/p-95d41a3b.js.map +0 -1
  434. package/dist/components/p-ae3dada7.js.map +0 -1
  435. package/dist/components/p-ae7e6127.js +0 -2
  436. package/dist/components/p-e9b35956.js +0 -2
  437. package/dist/components/p-fe1842da.js +0 -2
  438. package/dist/core/p-006e52f1.entry.js +0 -2
  439. package/dist/core/p-023787b3.entry.js +0 -2
  440. package/dist/core/p-023787b3.entry.js.map +0 -1
  441. package/dist/core/p-17015e36.entry.js +0 -2
  442. package/dist/core/p-182189d2.entry.js +0 -2
  443. package/dist/core/p-2effdd60.entry.js +0 -2
  444. package/dist/core/p-2effdd60.entry.js.map +0 -1
  445. package/dist/core/p-477a5027.entry.js +0 -2
  446. package/dist/core/p-477a5027.entry.js.map +0 -1
  447. package/dist/core/p-47e364bb.entry.js +0 -2
  448. package/dist/core/p-5c88f415.entry.js +0 -2
  449. package/dist/core/p-5dc0af54.entry.js +0 -2
  450. package/dist/core/p-5dcbfca3.entry.js +0 -2
  451. package/dist/core/p-663d3db2.entry.js +0 -2
  452. package/dist/core/p-6b42a387.entry.js +0 -2
  453. package/dist/core/p-6d772ff9.entry.js +0 -2
  454. package/dist/core/p-6ed147a6.entry.js +0 -2
  455. package/dist/core/p-6ed147a6.entry.js.map +0 -1
  456. package/dist/core/p-7cf554e6.entry.js +0 -2
  457. package/dist/core/p-83039b10.entry.js +0 -2
  458. package/dist/core/p-904de5e6.entry.js +0 -2
  459. package/dist/core/p-91a9cd24.entry.js +0 -2
  460. package/dist/core/p-95d41a3b.js.map +0 -1
  461. package/dist/core/p-963f9fcd.entry.js +0 -2
  462. package/dist/core/p-9d0f20ec.entry.js +0 -2
  463. package/dist/core/p-9dde00d8.entry.js +0 -2
  464. package/dist/core/p-a1e95a5f.js.map +0 -1
  465. package/dist/core/p-a1ebb4da.entry.js +0 -2
  466. package/dist/core/p-a53a277a.entry.js +0 -2
  467. package/dist/core/p-a5489b0e.entry.js +0 -2
  468. package/dist/core/p-a54f1db9.entry.js +0 -2
  469. package/dist/core/p-aa8adc45.entry.js +0 -2
  470. package/dist/core/p-b55fc943.entry.js +0 -2
  471. package/dist/core/p-b838bb27.entry.js +0 -2
  472. package/dist/core/p-c214c202.entry.js +0 -2
  473. package/dist/core/p-c214c202.entry.js.map +0 -1
  474. package/dist/core/p-c4c7cb24.entry.js +0 -2
  475. package/dist/core/p-db940455.entry.js +0 -2
  476. package/dist/core/p-e134b123.entry.js +0 -2
  477. package/dist/core/p-e4978aab.entry.js +0 -2
  478. package/dist/core/p-edc05eff.entry.js +0 -2
  479. package/dist/core/p-edc05eff.entry.js.map +0 -1
  480. package/dist/core/p-eeb9cb73.entry.js +0 -2
  481. package/dist/core/p-f141ad5e.entry.js +0 -2
  482. package/dist/core/p-f456bd71.entry.js +0 -2
  483. package/dist/esm/gov-app_2.entry.js +0 -9886
  484. package/dist/esm/gov-app_2.entry.js.map +0 -1
  485. package/dist/esm/index-d8b4eb6c.js.map +0 -1
  486. package/dist/esm/string.utils-5ce3f551.js.map +0 -1
  487. package/dist/types/components/gov-app/gov-app.d.ts +0 -37
  488. /package/dist/components/{p-ae7e6127.js.map → p-1d3019f3.js.map} +0 -0
  489. /package/dist/components/{p-e183a7c7.js.map → p-1f3bb41d.js.map} +0 -0
  490. /package/dist/components/{p-6e19816b.js.map → p-23b7e680.js.map} +0 -0
  491. /package/dist/components/{p-5caf1fe1.js.map → p-387052e1.js.map} +0 -0
  492. /package/dist/components/{p-c9a15c52.js.map → p-3b807239.js.map} +0 -0
  493. /package/dist/components/{p-ff0cf148.js.map → p-5cc316bc.js.map} +0 -0
  494. /package/dist/components/{p-e20bb5dc.js.map → p-6ea84137.js.map} +0 -0
  495. /package/dist/components/{p-736e4917.js.map → p-bd22e21d.js.map} +0 -0
  496. /package/dist/components/{p-2da35aa8.js.map → p-c211c3e1.js.map} +0 -0
  497. /package/dist/components/{p-9a93146e.js.map → p-dcee21ca.js.map} +0 -0
  498. /package/dist/core/{p-9ff8f059.entry.js.map → p-0d2c4d31.entry.js.map} +0 -0
  499. /package/dist/core/{p-0a952b3c.entry.js.map → p-12680890.entry.js.map} +0 -0
  500. /package/dist/core/{p-e4978aab.entry.js.map → p-1600c1fb.entry.js.map} +0 -0
  501. /package/dist/core/{p-74e9ad9d.entry.js.map → p-1a550eee.entry.js.map} +0 -0
  502. /package/dist/core/{p-9b41ac88.entry.js.map → p-1f1895c0.entry.js.map} +0 -0
  503. /package/dist/core/{p-5dcbfca3.entry.js.map → p-1fdc2457.entry.js.map} +0 -0
  504. /package/dist/core/{p-f141ad5e.entry.js.map → p-215504c1.entry.js.map} +0 -0
  505. /package/dist/core/{p-b3acb156.entry.js.map → p-32bba4e7.entry.js.map} +0 -0
  506. /package/dist/core/{p-fa7caad6.entry.js.map → p-378e0723.entry.js.map} +0 -0
  507. /package/dist/core/{p-0ebc8365.entry.js.map → p-3844a27d.entry.js.map} +0 -0
  508. /package/dist/core/{p-182189d2.entry.js.map → p-56f9e026.entry.js.map} +0 -0
  509. /package/dist/core/{p-b838bb27.entry.js.map → p-668ca722.entry.js.map} +0 -0
  510. /package/dist/core/{p-f1be099b.entry.js.map → p-67200095.entry.js.map} +0 -0
  511. /package/dist/core/{p-6b42a387.entry.js.map → p-7591976a.entry.js.map} +0 -0
  512. /package/dist/core/{p-963f9fcd.entry.js.map → p-75ea368b.entry.js.map} +0 -0
  513. /package/dist/core/{p-ab9ae7ba.entry.js.map → p-7b48b1b8.entry.js.map} +0 -0
  514. /package/dist/core/{p-eeb9cb73.entry.js.map → p-83aa4327.entry.js.map} +0 -0
  515. /package/dist/core/{p-28a7d3f7.js.map → p-842cb87f.js.map} +0 -0
  516. /package/dist/core/{p-904de5e6.entry.js.map → p-89b69743.entry.js.map} +0 -0
  517. /package/dist/core/{p-e134b123.entry.js.map → p-8a796fbe.entry.js.map} +0 -0
  518. /package/dist/core/{p-663d3db2.entry.js.map → p-8fe36a5b.entry.js.map} +0 -0
  519. /package/dist/core/{p-a53a277a.entry.js.map → p-92e13f9d.entry.js.map} +0 -0
  520. /package/dist/core/{p-81b0848c.entry.js.map → p-ab68c0b7.entry.js.map} +0 -0
  521. /package/dist/core/{p-a54f1db9.entry.js.map → p-b50ffab3.entry.js.map} +0 -0
  522. /package/dist/core/{p-c4c7cb24.entry.js.map → p-b70cc248.entry.js.map} +0 -0
  523. /package/dist/core/{p-91a9cd24.entry.js.map → p-b822b9ff.entry.js.map} +0 -0
  524. /package/dist/core/{p-a1ebb4da.entry.js.map → p-c0a5a3f7.entry.js.map} +0 -0
  525. /package/dist/core/{p-3f2b803c.entry.js.map → p-d1c4eb91.entry.js.map} +0 -0
  526. /package/dist/core/{p-d2351924.entry.js.map → p-d3963396.entry.js.map} +0 -0
  527. /package/dist/core/{p-fc90bf06.entry.js.map → p-d949aac7.entry.js.map} +0 -0
  528. /package/dist/core/{p-006e52f1.entry.js.map → p-e6af4c58.entry.js.map} +0 -0
  529. /package/dist/core/{p-9dde00d8.entry.js.map → p-eebc9e71.entry.js.map} +0 -0
  530. /package/dist/core/{p-2ed3afef.entry.js.map → p-eebf7ad8.entry.js.map} +0 -0
  531. /package/dist/core/{p-35e66bef.entry.js.map → p-f963bb2f.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as t,c as i,h as s,a as e,g as h}from"./p-8506b611.js";import{g as a,l as n,m as o}from"./p-a693ffbf.js";import{g as r,c,t as d,d as l}from"./p-0075138f.js";import{v as f}from"./p-169b67af.js";import{c as u}from"./p-cd6c2938.js";import{A as p,a as m}from"./p-9ac55bd1.js";import{i as b}from"./p-d9a299a4.js";import{a as v}from"./p-45a30859.js";import{S as g}from"./p-92f420cb.js";import{C as y}from"./p-e3aeaca0.js";import"./p-6aa40794.js";import"./p-42d9924c.js";import"./p-2614044c.js";import"./p-b48a4aa0.js";import"./p-e0d428c9.js";var j;(function(t){t["INPUT"]="input";t["TEXTAREA"]="textarea"})(j||(j={}));const k=class{constructor(s){t(this,s);this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govInput=i(this,"gov-input",7);this.govKeyUp=i(this,"gov-keyup",7);this.govHydrated=i(this,"gov-hydrated",7);this.govKeyDown=i(this,"gov-keydown",7);this.value=undefined;this.identifier=undefined;this.success=undefined;this.size="m";this.name=undefined;this.multiline=undefined;this.rows=undefined;this.cols=undefined;this.required=false;this.disabled=false;this.placeholder=undefined;this.readonly=undefined;this.minlength=undefined;this.maxlength=undefined;this.min=undefined;this.max=undefined;this.autocomplete=undefined;this.autocorrect=undefined;this.spellcheck=undefined;this.inputLang=undefined;this.type=undefined;this.inputType="text";this.role=undefined;this.invalid=undefined;this.accessibleShowPasswordLabel="Zobrazit heslo";this.accessibleHidePasswordLabel="Skrýt heslo";this.focused=undefined;this.showPassword=false;this.inheritedAttributes={};this.h=r(this.host);this.inputId=u("GovInput");this.f=a(this.h)}validateSize(t){f(o,t,n.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",c(this.success));this.f.passAttrToControl("disabled",c(this.disabled));this.f.passAttrToControl("invalid",c(this.invalid));this.f.passAttrToControl("type",this.multiline?j.TEXTAREA:j.INPUT)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(m);this.govHydrated.emit()}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=b(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}disconnectedCallback(){this.attributeObserver.stopObserving()}render(){const t=this.multiline?j.TEXTAREA:j.INPUT;return s(e,{key:"940cdf78dbeff2e66654d5b79ebe6c88cca4d767",class:n.root,size:this.size,type:this.type},this.h.hasSlot("prefix")&&s("slot",{key:"68158bacaf2d4a63c9c5b87ab734b1aed58bc5c7",name:"prefix"}),s("span",{key:"9677512f5d6c3410443d2a9f958bdfda78ee590c",class:"element"},this.h.hasSlot("left-icon")&&s("slot",{key:"ff9434b0680ba90e27578db2f2ffecdfd6e1a511",name:"left-icon"}),this.h.hasSlot("right-icon")&&this.inputType!=="password"&&s("slot",{key:"92a3d61e8f92c0218e93a8e97ad15d0c532c9cd2",name:"right-icon"}),this.success&&!this.multiline&&s("gov-icon",{key:"822e179c3c97491ad64d95d54dc366e66f557ff1",slot:"validation-icon",class:"icon-validation",name:"check-lg"}),this.invalid&&!this.multiline&&s("gov-icon",{key:"7583571aef50ff442c529a882a9518b41e4d11b9",slot:"validation-icon",class:"icon-validation",name:"exclamation-lg"}),s(t,Object.assign({key:"bf1826c520a0f3032b51e8d069cdf3fe953c700e",type:this.inputType==="password"&&this.showPassword?"text":this.inputType,disabled:this.disabled,id:this.identifier||this.inputId,name:this.name,onFocus:this.onFocusHandler.bind(this),onInput:this.onInputHandler.bind(this),onBlur:this.onBlurHandler.bind(this),onKeyUp:this.onKeyUpHandler.bind(this),onKeyDown:this.onKeyDownHandler.bind(this),ref:t=>this.inputRef=t,placeholder:this.placeholder,spellcheck:d(this.spellcheck),lang:this.inputLang,readonly:d(this.readonly),autocomplete:l(this.autocomplete),autocorrect:l(this.autocorrect),minlength:this.minlength,maxlength:this.maxlength,min:this.min,max:this.max,required:this.required,rows:this.rows,cols:this.cols,role:this.role,value:this.value},this.inheritedAttributes,{"aria-required":d(this.required),"aria-invalid":d(this.invalid),"aria-disabled":d(this.disabled)})),this.inputType==="password"?s("gov-button",{color:"primary",type:"base",size:this.size,"aria-label":this.showPassword?this.accessibleHidePasswordLabel:this.accessibleShowPasswordLabel,"on-gov-click":()=>this.showPassword=!this.showPassword},s("gov-icon",{slot:"left-icon",name:"eye",type:"basic"})):null),this.h.hasSlot("sufix")&&s("slot",{key:"33b38abd971a46a31177035da5f8b42df16c09c2",name:"sufix"}))}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:n.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.focused=false;this.govBlur.emit({component:n.root,value:this.value,originalEvent:t})}onKeyUpHandler(t){t.stopPropagation();this.govKeyUp.emit({component:n.root,value:this.value,originalEvent:t})}onKeyDownHandler(t){t.stopPropagation();this.govKeyDown.emit({component:n.root,value:this.value,originalEvent:t})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:n.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 h(this)}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}};const w=v(g,["_XS","_S","_M","_L","_XL"]);v(y,["PRIMARY","NEUTRAL"]);var A;(function(t){t["CIRCLE"]="circle";t["LINE"]="line"})(A||(A={}));var x;(function(t){t["PULSE"]="pulse";t["PROGRESS"]="progress";t["FALSE"]="false"})(x||(x={}));const z={root:"gov-skeleton"};const C=class{constructor(i){t(this,i);this.items=[];this.size="m";this.color="neutral";this.shape="line";this.width=null;this.height=null;this.animation="progress";this.inheritedAttributes={};this.h=r(this.host)}validateSize(t){f(w,t,z.root)}validateShape(t){f(A,t,z.root)}validateAnimation(t){f(x,t,z.root)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(m)}componentWillLoad(){this.validateSize(this.size);this.validateShape(this.shape);this.validateAnimation(this.animation);this.init();this.inheritedAttributes=b(this.host)}componentWillUpdate(){this.init()}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}init(){this.items.fill(1)}get style(){const t={width:null,height:null};if(this.width){t.width=this.width}if(this.height){t.height=this.height}return Object.assign({},t)}render(){return s(e,Object.assign({key:"6927d3fcc9546be5b4934f4f04d41049847d04f2",size:this.size,color:this.color,class:{[z.root]:true,circle:this.shape==="circle",line:this.shape==="line",progress:this.animation==="progress",pulse:this.animation==="pulse"}},this.inheritedAttributes,{"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100",role:"progressbar",tabindex:"0",style:this.style}))}get host(){return h(this)}static get watchers(){return{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}}};export{k as gov_form_input,C as gov_skeleton};
2
+ //# sourceMappingURL=p-731fe7d8.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Tags","GovFormInput","constructor","hostRef","this","h","govHost","host","inputId","createID","f","govForm","validateSize","newValue","validateProp","FormInputSizes","FormInputClass","root","watchControlAttrs","passControlAttrs","passAttrToControl","size","toBoolAttr","success","disabled","invalid","multiline","TEXTAREA","INPUT","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","govHydrated","emit","componentWillLoad","inheritedAttributes","inheritAriaAttributes","componentDidRender","passAttrToLabel","String","required","removeAttribute","Object","assign","disconnectedCallback","stopObserving","render","Tag","Host","key","class","type","hasSlot","name","inputType","slot","showPassword","id","identifier","onFocus","onFocusHandler","bind","onInput","onInputHandler","onBlur","onBlurHandler","onKeyUp","onKeyUpHandler","onKeyDown","onKeyDownHandler","ref","el","inputRef","placeholder","spellcheck","toBoolAttrIfDefined","lang","inputLang","readonly","autocomplete","toOnOffAttrIfDefined","autocorrect","minlength","maxlength","min","max","rows","cols","role","value","color","accessibleHidePasswordLabel","accessibleShowPasswordLabel","e","stopPropagation","focused","govFocus","component","originalEvent","govBlur","govKeyUp","govKeyDown","target","govInput","setFocus","options","focus","setValue","clearValue","getRef","SkeletonSizes","pick","Sizes","Colors","SkeletonShapes","SkeletonAnimation","SkeletonClass","GovSkeleton","items","validateShape","validateAnimation","shape","animation","init","componentWillUpdate","fill","style","dimenssionsStyles","width","height","circle","line","progress","pulse","tabindex"],"sources":["../../../packages/core/src/components/gov-form/input/gov-form-input.tsx","../../../packages/core/src/components/gov-loading/skeleton/constants.ts","../../../packages/core/src/components/gov-loading/skeleton/gov-skeleton.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined, toOnOffAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {FormInputClass, FormInputSizes, FormInputSizesType, InputType, Type,} from \"./constants\"\nimport {FormInputEvent} from \"./gov-form-input.types\"\nimport {Nullable} from \"../../../types/interfaces\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\nenum Tags {\n\tINPUT = \"input\",\n\tTEXTAREA = \"textarea\",\n}\n\n@Component({\n\ttag: \"gov-form-input\",\n})\nexport class GovFormInput {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly inputId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.inputId = createID(\"GovInput\")\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormInputElement\n\t/**\n\t * Value of input\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Custom input identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly success: boolean\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Generates a texarea for the possibility of multiple lines\n\t */\n\t@Prop() readonly multiline: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows\n\t */\n\t@Prop() readonly rows: number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols\n\t */\n\t@Prop() readonly cols: number\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop({reflect:true}) readonly required: boolean = false\n\t/**\n\t * Makes the input component disabled.\n\t */\n\t@Prop({reflect:true}) readonly disabled: boolean = false\n\t/**\n\t * Text that appears in the form control when it has no value set\n\t */\n\t@Prop() readonly placeholder: string\n\t/**\n\t * The value is not editable\n\t */\n\t@Prop() readonly readonly: boolean\n\t/**\n\t * Minimum length (number of characters) of value\n\t */\n\t@Prop() readonly minlength: number\n\t/**\n\t * Maximum length (number of characters) of value\n\t */\n\t@Prop() readonly maxlength: number\n\t/**\n\t * Minimum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly min?: string | number\n\t/**\n\t * Maximum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly max?: string | number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocomplete\n\t */\n\t@Prop() readonly autocomplete: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocorrect\n\t */\n\t@Prop() readonly autocorrect: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck\n\t */\n\t@Prop() readonly spellcheck: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang\n\t */\n\t@Prop({attribute: \"input-lang\"}) readonly inputLang: string\n\t/**\n\t * Defined the visual style of input\n\t */\n\t@Prop() readonly type?: Type\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types\n\t */\n\t@Prop({attribute: \"input-type\"}) readonly inputType: InputType = \"text\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/input_role\n\t */\n\t@Prop() readonly role: Nullable<string>\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly invalid: boolean\n\t/**\n\t * Accessible text for password display\n\t */\n\t@Prop({attribute: \"accessible-show-password-label\"}) readonly accessibleShowPasswordLabel = 'Zobrazit heslo'\n\t/**\n\t * Accessible text to hide the password\n\t */\n\t@Prop({attribute: \"accessible-hide-password-label\"}) readonly accessibleHidePasswordLabel = 'Skrýt heslo'\n\t/**\n\t * Emitted when the input has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-input\"}) govInput: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keyup\"}) govKeyUp: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-hydrated\"}) govHydrated: EventEmitter<void>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keydown\"}) govKeyDown: EventEmitter<FormInputEvent>\n\t@State() focused: boolean\n\t@State() showPassword: boolean = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormInputSizes, newValue, FormInputClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"success\")\n\t@Watch(\"size\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"success\", toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"type\", this.multiline ? Tags.TEXTAREA : Tags.INPUT)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t\tthis.govHydrated.emit();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\trender() {\n\t\tconst Tag = this.multiline ? Tags.TEXTAREA : Tags.INPUT\n\n\t\treturn (\n\t\t\t<Host class={FormInputClass.root} size={this.size} type={this.type}>\n\t\t\t\t{this.h.hasSlot(\"prefix\") && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"/>}\n\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && this.inputType !== 'password' && <slot name=\"right-icon\"/>}\n\n\t\t\t\t\t{this.success && !this.multiline &&\n\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"check-lg\"></gov-icon>}\n\t\t\t\t\t{this.invalid && !this.multiline &&\n\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"exclamation-lg\"></gov-icon>}\n\t\t\t\t\t<Tag\n\t\t\t\t\t\ttype={this.inputType === 'password' && this.showPassword ? 'text' : this.inputType}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tid={this.identifier || this.inputId}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonInput={this.onInputHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\tonKeyUp={this.onKeyUpHandler.bind(this)}\n\t\t\t\t\t\tonKeyDown={this.onKeyDownHandler.bind(this)}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tspellcheck={toBoolAttrIfDefined(this.spellcheck)}\n\t\t\t\t\t\tlang={this.inputLang}\n\t\t\t\t\t\treadonly={toBoolAttrIfDefined(this.readonly)}\n\t\t\t\t\t\tautocomplete={toOnOffAttrIfDefined(this.autocomplete)}\n\t\t\t\t\t\tautocorrect={toOnOffAttrIfDefined(this.autocorrect)}\n\t\t\t\t\t\tminlength={this.minlength}\n\t\t\t\t\t\tmaxlength={this.maxlength}\n\t\t\t\t\t\tmin={this.min}\n\t\t\t\t\t\tmax={this.max}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\trows={this.rows}\n\t\t\t\t\t\tcols={this.cols}\n\t\t\t\t\t\trole={this.role}\n\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t\t{this.inputType === 'password' ? (\n\t\t\t\t\t\t<gov-button color={'primary'}\n\t\t\t\t\t\t\t\t\ttype={'base'}\n\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\taria-label={this.showPassword ? this.accessibleHidePasswordLabel : this.accessibleShowPasswordLabel}\n\t\t\t\t\t\t\t\t\ton-gov-click={() => this.showPassword = !this.showPassword}>\n\t\t\t\t\t\t\t<gov-icon slot=\"left-icon\" name=\"eye\" type=\"basic\"></gov-icon>\n\t\t\t\t\t\t</gov-button>) : null}\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot(\"sufix\") && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyUpHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyUp.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyDownHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyDown.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: InputEvent) {\n\t\tthis.value = (e.target as HTMLInputElement).value\n\t\te.stopPropagation()\n\t\tthis.govInput.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.inputRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.value = value\n\t}\n\n\t/**\n\t * Clears input value\n\t */\n\t@Method()\n\tasync clearValue(): Promise<void> {\n\t\tthis.value = \"\"\n\t\tthis.inputRef.value = \"\"\n\t}\n\n\t/**\n\t * Returns an instance of the native html input element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n","import { pick } from \"../../../utils/utils\"\nimport { ValueOf } from \"../../../types/interfaces\"\nimport {Sizes} from \"../../../core/constants/sizes\";\nimport {Colors} from \"../../../core/constants/colors\";\n\nexport const SkeletonSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type SkeletonSizesType = `${ValueOf<typeof SkeletonSizes>}`\n\nexport const SkeletonColors = pick(Colors, [\"PRIMARY\", \"NEUTRAL\"])\nexport type SkeletonColorType = `${ValueOf<typeof SkeletonColors>}`\n\nexport enum SkeletonShapes {\n\tCIRCLE = 'circle',\n\tLINE = 'line'\n}\nexport type SkeletonShapesType = `${ValueOf<typeof SkeletonShapes>}`\n\nexport enum SkeletonAnimation {\n\tPULSE = 'pulse',\n\tPROGRESS = 'progress',\n\tFALSE = 'false'\n}\nexport type SkeletonAnimationType = `${ValueOf<typeof SkeletonAnimation>}`\n\nexport const SkeletonClass = {\n\troot: 'gov-skeleton',\n}\n","import {Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {\n\tSkeletonAnimation,\n\tSkeletonAnimationType,\n\tSkeletonClass,\n\tSkeletonColorType,\n\tSkeletonShapes,\n\tSkeletonShapesType,\n\tSkeletonSizes,\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormInputSizesType} from \"../../gov-form/input/constants\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-skeleton\",\n})\nexport class GovSkeleton {\n\th: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovSkeletonElement\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Style variation of the skeleton.\n\t */\n\t@Prop() readonly color?: SkeletonColorType = \"neutral\"\n\t/**\n\t * Shape of the skeleton\n\t */\n\t@Prop() shape?: SkeletonShapesType = \"line\"\n\t/**\n\t * Width of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() width: string = null\n\t/**\n\t * Height of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() height: string = null\n\t/**\n\t * Animation type\n\t */\n\t@Prop() animation?: SkeletonAnimationType = \"progress\"\n\n\titems: number[] = []\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(SkeletonSizes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('shape')\n\tvalidateShape(newValue: string): void {\n\t\tvalidateProp(SkeletonShapes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('animation')\n\tvalidateAnimation(newValue: string): void {\n\t\tvalidateProp(SkeletonAnimation, newValue, SkeletonClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateShape(this.shape)\n\t\tthis.validateAnimation(this.animation)\n\t\tthis.init()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentWillUpdate() {\n\t\tthis.init()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tinit() {\n\t\tthis.items.fill(1)\n\t}\n\n\tget style() {\n\t\tconst dimenssionsStyles: {\n\t\t\twidth?: string,\n\t\t\theight?: string,\n\t\t} = {\n\t\t\twidth: null,\n\t\t\theight: null,\n\t\t}\n\t\tif (this.width) {\n\t\t\tdimenssionsStyles.width = this.width\n\t\t}\n\n\t\tif (this.height) {\n\t\t\tdimenssionsStyles.height = this.height\n\t\t}\n\n\t\treturn {...dimenssionsStyles}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t color={this.color}\n\t\t\t\t class={{\n\t\t\t\t\t [SkeletonClass.root]: true,\n\t\t\t\t\t circle: this.shape === \"circle\",\n\t\t\t\t\t line: this.shape === \"line\",\n\t\t\t\t\t progress: this.animation === \"progress\",\n\t\t\t\t\t pulse: this.animation === \"pulse\",\n\t\t\t\t }}\n\t\t\t\t {...this.inheritedAttributes}\n\t\t\t\t aria-busy=\"true\"\n\t\t\t\t aria-valuemin=\"0\"\n\t\t\t\t aria-valuemax=\"100\"\n\t\t\t\t role=\"progressbar\"\n\t\t\t\t tabindex=\"0\"\n\t\t\t\t style={this.style}>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"4hBAcA,IAAKA,GAAL,SAAKA,GACJA,EAAA,iBACAA,EAAA,sBACA,EAHD,CAAKA,MAAI,K,MAQIC,EAAY,MAOxB,WAAAC,CAAAC,G,0TAsB6C,I,mGAqBM,M,cAIA,M,wRAiDc,O,4EAa2B,iB,iCAIA,c,yCA0B3D,M,yBAeU,GAzJ1CC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,QAAUC,EAAS,YACxBL,KAAKM,EAAIC,EAAQP,KAAKC,E,CA2IvB,YAAAO,CAAaC,GACZC,EAAaC,EAAgBF,EAAUG,EAAeC,K,CAOvD,iBAAAC,GACCd,KAAKe,kB,CAKE,gBAAAA,GACPf,KAAKM,EAAEU,kBAAkB,OAAQhB,KAAKiB,MACtCjB,KAAKM,EAAEU,kBAAkB,UAAWE,EAAWlB,KAAKmB,UACpDnB,KAAKM,EAAEU,kBAAkB,WAAYE,EAAWlB,KAAKoB,WACrDpB,KAAKM,EAAEU,kBAAkB,UAAWE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CAG3E,IAAAkH,GACC3H,KAAKsH,MAAMO,KAAK,E,CAGjB,SAAIC,GACH,MAAMC,EAGF,CACHC,MAAO,KACPC,OAAQ,MAET,GAAIjI,KAAKgI,MAAO,CACfD,EAAkBC,MAAQhI,KAAKgI,K,CAGhC,GAAIhI,KAAKiI,OAAQ,CAChBF,EAAkBE,OAASjI,KAAKiI,M,CAGjC,OAAAvF,OAAAC,OAAA,GAAWoF,E,CAGZ,MAAAjF,GACC,OACC7C,EAAC+C,EAAIN,OAAAC,OAAA,CAAAM,IAAA,2CAAChC,KAAMjB,KAAKiB,KACdyE,MAAO1F,KAAK0F,MACZxC,MAAO,CACN,CAACkE,EAAcvG,MAAO,KACtBqH,OAAQlI,KAAKyH,QAAU,SACvBU,KAAMnI,KAAKyH,QAAU,OACrBW,SAAUpI,KAAK0H,YAAc,WAC7BW,MAAOrI,KAAK0H,YAAc,UAEvB1H,KAAKmC,oBAAmB,aAClB,OAAM,gBACF,IAAG,gBACH,MACdqD,KAAK,cACL8C,SAAS,IACTR,MAAO9H,KAAK8H,Q","ignoreList":[]}
1
+ {"version":3,"names":["Tags","GovFormInput","constructor","hostRef","this","h","govHost","host","inputId","createID","f","govForm","validateSize","newValue","validateProp","FormInputSizes","FormInputClass","root","watchControlAttrs","passControlAttrs","passAttrToControl","size","toBoolAttr","success","disabled","invalid","multiline","TEXTAREA","INPUT","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","govHydrated","emit","componentWillLoad","inheritedAttributes","inheritAriaAttributes","componentDidRender","passAttrToLabel","String","required","removeAttribute","Object","assign","disconnectedCallback","stopObserving","render","Tag","Host","key","class","type","hasSlot","name","inputType","slot","showPassword","id","identifier","onFocus","onFocusHandler","bind","onInput","onInputHandler","onBlur","onBlurHandler","onKeyUp","onKeyUpHandler","onKeyDown","onKeyDownHandler","ref","el","inputRef","placeholder","spellcheck","toBoolAttrIfDefined","lang","inputLang","readonly","autocomplete","toOnOffAttrIfDefined","autocorrect","minlength","maxlength","min","max","rows","cols","role","value","color","accessibleHidePasswordLabel","accessibleShowPasswordLabel","e","stopPropagation","focused","govFocus","component","originalEvent","govBlur","govKeyUp","govKeyDown","target","govInput","setFocus","options","focus","setValue","clearValue","getRef","SkeletonSizes","pick","Sizes","Colors","SkeletonShapes","SkeletonAnimation","SkeletonClass","GovSkeleton","items","validateShape","validateAnimation","shape","animation","init","componentWillUpdate","fill","style","dimenssionsStyles","width","height","circle","line","progress","pulse","tabindex"],"sources":["../../../packages/core/src/components/gov-form/input/gov-form-input.tsx","../../../packages/core/src/components/gov-loading/skeleton/constants.ts","../../../packages/core/src/components/gov-loading/skeleton/gov-skeleton.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined, toOnOffAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {FormInputClass, FormInputSizes, FormInputSizesType, InputType, Type,} from \"./constants\"\nimport {FormInputEvent} from \"./gov-form-input.types\"\nimport {Nullable} from \"../../../types/interfaces\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\nenum Tags {\n\tINPUT = \"input\",\n\tTEXTAREA = \"textarea\",\n}\n\n@Component({\n\ttag: \"gov-form-input\",\n})\nexport class GovFormInput {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly inputId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.inputId = createID(\"GovInput\")\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormInputElement\n\t/**\n\t * Value of input\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Custom input identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly success: boolean\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Generates a texarea for the possibility of multiple lines\n\t */\n\t@Prop() readonly multiline: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows\n\t */\n\t@Prop() readonly rows: number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols\n\t */\n\t@Prop() readonly cols: number\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop({reflect:true}) readonly required: boolean = false\n\t/**\n\t * Makes the input component disabled.\n\t */\n\t@Prop({reflect:true}) readonly disabled: boolean = false\n\t/**\n\t * Text that appears in the form control when it has no value set\n\t */\n\t@Prop() readonly placeholder: string\n\t/**\n\t * The value is not editable\n\t */\n\t@Prop() readonly readonly: boolean\n\t/**\n\t * Minimum length (number of characters) of value\n\t */\n\t@Prop() readonly minlength: number\n\t/**\n\t * Maximum length (number of characters) of value\n\t */\n\t@Prop() readonly maxlength: number\n\t/**\n\t * Minimum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly min?: string | number\n\t/**\n\t * Maximum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly max?: string | number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocomplete\n\t */\n\t@Prop() readonly autocomplete: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocorrect\n\t */\n\t@Prop() readonly autocorrect: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck\n\t */\n\t@Prop() readonly spellcheck: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang\n\t */\n\t@Prop({attribute: \"input-lang\"}) readonly inputLang: string\n\t/**\n\t * Defined the visual style of input\n\t */\n\t@Prop() readonly type?: Type\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types\n\t */\n\t@Prop({attribute: \"input-type\"}) readonly inputType: InputType = \"text\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/input_role\n\t */\n\t@Prop() readonly role: Nullable<string>\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly invalid: boolean\n\t/**\n\t * Accessible text for password display\n\t */\n\t@Prop({attribute: \"accessible-show-password-label\"}) readonly accessibleShowPasswordLabel = 'Zobrazit heslo'\n\t/**\n\t * Accessible text to hide the password\n\t */\n\t@Prop({attribute: \"accessible-hide-password-label\"}) readonly accessibleHidePasswordLabel = 'Skrýt heslo'\n\t/**\n\t * Emitted when the input has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-input\"}) govInput: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keyup\"}) govKeyUp: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-hydrated\"}) govHydrated: EventEmitter<void>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keydown\"}) govKeyDown: EventEmitter<FormInputEvent>\n\t@State() focused: boolean\n\t@State() showPassword: boolean = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormInputSizes, newValue, FormInputClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"success\")\n\t@Watch(\"size\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"success\", toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"type\", this.multiline ? Tags.TEXTAREA : Tags.INPUT)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t\tthis.govHydrated.emit();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\trender() {\n\t\tconst Tag = this.multiline ? Tags.TEXTAREA : Tags.INPUT\n\n\t\treturn (\n\t\t\t<Host class={FormInputClass.root} size={this.size} type={this.type}>\n\t\t\t\t{this.h.hasSlot(\"prefix\") && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"/>}\n\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && this.inputType !== 'password' && <slot name=\"right-icon\"/>}\n\n\t\t\t\t\t{this.success && !this.multiline &&\n\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"check-lg\"></gov-icon>}\n\t\t\t\t\t{this.invalid && !this.multiline &&\n\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"exclamation-lg\"></gov-icon>}\n\t\t\t\t\t<Tag\n\t\t\t\t\t\ttype={this.inputType === 'password' && this.showPassword ? 'text' : this.inputType}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tid={this.identifier || this.inputId}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonInput={this.onInputHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\tonKeyUp={this.onKeyUpHandler.bind(this)}\n\t\t\t\t\t\tonKeyDown={this.onKeyDownHandler.bind(this)}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tspellcheck={toBoolAttrIfDefined(this.spellcheck)}\n\t\t\t\t\t\tlang={this.inputLang}\n\t\t\t\t\t\treadonly={toBoolAttrIfDefined(this.readonly)}\n\t\t\t\t\t\tautocomplete={toOnOffAttrIfDefined(this.autocomplete)}\n\t\t\t\t\t\tautocorrect={toOnOffAttrIfDefined(this.autocorrect)}\n\t\t\t\t\t\tminlength={this.minlength}\n\t\t\t\t\t\tmaxlength={this.maxlength}\n\t\t\t\t\t\tmin={this.min}\n\t\t\t\t\t\tmax={this.max}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\trows={this.rows}\n\t\t\t\t\t\tcols={this.cols}\n\t\t\t\t\t\trole={this.role}\n\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t\t{this.inputType === 'password' ? (\n\t\t\t\t\t\t<gov-button color={'primary'}\n\t\t\t\t\t\t\t\t\ttype={'base'}\n\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\taria-label={this.showPassword ? this.accessibleHidePasswordLabel : this.accessibleShowPasswordLabel}\n\t\t\t\t\t\t\t\t\ton-gov-click={() => this.showPassword = !this.showPassword}>\n\t\t\t\t\t\t\t<gov-icon slot=\"left-icon\" name=\"eye\" type=\"basic\"></gov-icon>\n\t\t\t\t\t\t</gov-button>) : null}\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot(\"sufix\") && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyUpHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyUp.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyDownHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyDown.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: InputEvent) {\n\t\tthis.value = (e.target as HTMLInputElement).value\n\t\te.stopPropagation()\n\t\tthis.govInput.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.inputRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.value = value\n\t}\n\n\t/**\n\t * Clears input value\n\t */\n\t@Method()\n\tasync clearValue(): Promise<void> {\n\t\tthis.value = \"\"\n\t\tthis.inputRef.value = \"\"\n\t}\n\n\t/**\n\t * Returns an instance of the native html input element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n","import { pick } from \"../../../utils/utils\"\nimport { ValueOf } from \"../../../types/interfaces\"\nimport {Sizes} from \"../../../core/constants/sizes\";\nimport {Colors} from \"../../../core/constants/colors\";\n\nexport const SkeletonSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type SkeletonSizesType = `${ValueOf<typeof SkeletonSizes>}`\n\nexport const SkeletonColors = pick(Colors, [\"PRIMARY\", \"NEUTRAL\"])\nexport type SkeletonColorType = `${ValueOf<typeof SkeletonColors>}`\n\nexport enum SkeletonShapes {\n\tCIRCLE = 'circle',\n\tLINE = 'line'\n}\nexport type SkeletonShapesType = `${ValueOf<typeof SkeletonShapes>}`\n\nexport enum SkeletonAnimation {\n\tPULSE = 'pulse',\n\tPROGRESS = 'progress',\n\tFALSE = 'false'\n}\nexport type SkeletonAnimationType = `${ValueOf<typeof SkeletonAnimation>}`\n\nexport const SkeletonClass = {\n\troot: 'gov-skeleton',\n}\n","import {Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {\n\tSkeletonAnimation,\n\tSkeletonAnimationType,\n\tSkeletonClass,\n\tSkeletonColorType,\n\tSkeletonShapes,\n\tSkeletonShapesType,\n\tSkeletonSizes,\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormInputSizesType} from \"../../gov-form/input/constants\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-skeleton\",\n})\nexport class GovSkeleton {\n\th: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovSkeletonElement\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Style variation of the skeleton.\n\t */\n\t@Prop() readonly color?: SkeletonColorType = \"neutral\"\n\t/**\n\t * Shape of the skeleton\n\t */\n\t@Prop() shape?: SkeletonShapesType = \"line\"\n\t/**\n\t * Width of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() width: string = null\n\t/**\n\t * Height of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() height: string = null\n\t/**\n\t * Animation type\n\t */\n\t@Prop() animation?: SkeletonAnimationType = \"progress\"\n\n\titems: number[] = []\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(SkeletonSizes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('shape')\n\tvalidateShape(newValue: string): void {\n\t\tvalidateProp(SkeletonShapes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('animation')\n\tvalidateAnimation(newValue: string): void {\n\t\tvalidateProp(SkeletonAnimation, newValue, SkeletonClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateShape(this.shape)\n\t\tthis.validateAnimation(this.animation)\n\t\tthis.init()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentWillUpdate() {\n\t\tthis.init()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tinit() {\n\t\tthis.items.fill(1)\n\t}\n\n\tget style() {\n\t\tconst dimenssionsStyles: {\n\t\t\twidth?: string,\n\t\t\theight?: string,\n\t\t} = {\n\t\t\twidth: null,\n\t\t\theight: null,\n\t\t}\n\t\tif (this.width) {\n\t\t\tdimenssionsStyles.width = this.width\n\t\t}\n\n\t\tif (this.height) {\n\t\t\tdimenssionsStyles.height = this.height\n\t\t}\n\n\t\treturn {...dimenssionsStyles}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t color={this.color}\n\t\t\t\t class={{\n\t\t\t\t\t [SkeletonClass.root]: true,\n\t\t\t\t\t circle: this.shape === \"circle\",\n\t\t\t\t\t line: this.shape === \"line\",\n\t\t\t\t\t progress: this.animation === \"progress\",\n\t\t\t\t\t pulse: this.animation === \"pulse\",\n\t\t\t\t }}\n\t\t\t\t {...this.inheritedAttributes}\n\t\t\t\t aria-busy=\"true\"\n\t\t\t\t aria-valuemin=\"0\"\n\t\t\t\t aria-valuemax=\"100\"\n\t\t\t\t role=\"progressbar\"\n\t\t\t\t tabindex=\"0\"\n\t\t\t\t style={this.style}>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"iiBAcA,IAAKA,GAAL,SAAKA,GACJA,EAAA,iBACAA,EAAA,sBACA,EAHD,CAAKA,MAAI,K,MAQIC,EAAY,MAOxB,WAAAC,CAAAC,G,0TAsB6C,I,mGAqBM,M,cAIA,M,wRAiDc,O,4EAa2B,iB,iCAIA,c,yCA0B3D,M,yBAeU,GAzJ1CC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,QAAUC,EAAS,YACxBL,KAAKM,EAAIC,EAAQP,KAAKC,E,CA2IvB,YAAAO,CAAaC,GACZC,EAAaC,EAAgBF,EAAUG,EAAeC,K,CAOvD,iBAAAC,GACCd,KAAKe,kB,CAKE,gBAAAA,GACPf,KAAKM,EAAEU,kBAAkB,OAAQhB,KAAKiB,MACtCjB,KAAKM,EAAEU,kBAAkB,UAAWE,EAAWlB,KAAKmB,UACpDnB,KAAKM,EAAEU,kBAAkB,WAAYE,EAAWlB,KAAKoB,WACrDpB,KAAKM,EAAEU,kBAAkB,UAAWE,EAAWlB,KAAKqB,UACpDrB,KAAKM,EAAEU,kBAAkB,OAAQhB,KAAKsB,UAAY1B,EAAK2B,SAAW3B,EAAK4B,M,CAGxE,gBAAAC,GACCzB,KAAK0B,kBAAoB,IAAIC,EAAkB3B,KAAKG,MAAM,CAACyB,EAAenB,KACzET,KAAK6B,sBAAsBD,EAAenB,EAA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AAKiI,M,CAGjC,OAAAvF,OAAAC,OAAA,GAAWoF,E,CAGZ,MAAAjF,GACC,OACC7C,EAAC+C,EAAIN,OAAAC,OAAA,CAAAM,IAAA,2CAAChC,KAAMjB,KAAKiB,KACdyE,MAAO1F,KAAK0F,MACZxC,MAAO,CACN,CAACkE,EAAcvG,MAAO,KACtBqH,OAAQlI,KAAKyH,QAAU,SACvBU,KAAMnI,KAAKyH,QAAU,OACrBW,SAAUpI,KAAK0H,YAAc,WAC7BW,MAAOrI,KAAK0H,YAAc,UAEvB1H,KAAKmC,oBAAmB,aAClB,OAAM,gBACF,IAAG,gBACH,MACdqD,KAAK,cACL8C,SAAS,IACTR,MAAO9H,KAAK8H,Q","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as s,h as t,a as e,g as i}from"./p-8506b611.js";import{g as a,b as o}from"./p-a693ffbf.js";import{g as c}from"./p-0075138f.js";import{s as r}from"./p-cd6c2938.js";import"./p-92f420cb.js";import"./p-45a30859.js";import"./p-6aa40794.js";import"./p-e3aeaca0.js";import"./p-42d9924c.js";import"./p-2614044c.js";const f=class{constructor(t){s(this,t);this.identifier=undefined;this.invalid=false;this.disabled=false;this.success=false;this.fieldset=false;this.size="m";this.h=c(this.host);this.f=a(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("."+o.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=r(t.getAttribute("aria-describedby"));t.removeAttribute("aria-describedby");if(Array.isArray(e)){e.forEach((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 t(e,{key:"81635a0efe09a262be2b2359355dac108e542726",size:this.size,class:this.h.classes(o.root)},t(s,{key:"5251c4b5fba8f699c9a017e310932b85c8fb3abf",class:o.holder},this.h.hasSlot("top")&&t("slot",{key:"8f6695209e018ad74a8b7e32945cc51ead47dc2d",name:"top"}),t("slot",{key:"380304f4a8c70e9db2f1f062761ece479a0b6ca8"}),this.h.hasSlot("bottom")&&t("div",{key:"3f37cb4c4165cdf80e8e3fc081d8503c1f975230",class:o.bottom},t("slot",{key:"b6be21c67739f3f50d15bf3ca69aa1e71ca96e4c",name:"bottom"}))))}get host(){return i(this)}};export{f as gov_form_control};
2
+ //# sourceMappingURL=p-7591976a.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as s,c as t,h as a,a as i,g as e}from"./p-8506b611.js";import{v as o}from"./p-169b67af.js";import{W as r,a as c,b as p}from"./p-c990d746.js";import{g as d}from"./p-0075138f.js";import{v as h}from"./p-842cb87f.js";import{c as m}from"./p-e0d428c9.js";import{d as n}from"./p-45a30859.js";import"./p-b48a4aa0.js";import"./p-e3aeaca0.js";import"./p-92f420cb.js";import"./p-cd6c2938.js";import"./p-2aedc81e.js";const f=class{constructor(a){s(this,a);this.govChange=t(this,"gov-change",7);this.hydrated=false;this.size="m";this.wcagLabel=undefined;this.wcagLabelledBy=undefined;this.h=d(this.host)}validateSize(s){o(p,s,c.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(r.root).forEach((s=>{s.setAttribute("size",this.size)}))}async componentDidRender(){if(m()){await n(500);await this.validateWcag()}}connectedCallback(){this.hydrated=true}render(){return a(i,{key:"b31f7b2d27605da982cb379036be995ec9ef98ab",class:this.h.classes(c.root),role:"list",size:this.size,hydrated:this.hydrated},a("slot",{key:"4ccb835a27be7fed0be15809854bf33dbc7e48a3"}))}async validateWcag(){h(this.wcagLabel,this.wcagLabelledBy,c.root)}get host(){return e(this)}static get watchers(){return{size:["validateSize"]}}};export{f as gov_wizard};
2
+ //# sourceMappingURL=p-75ea368b.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as i,h as s,a as e,g as a}from"./p-a1e95a5f.js";import{v as n}from"./p-169b67af.js";import{B as o,a as h,c as r,N as c}from"./p-69d56f17.js";import{g as d,t as f}from"./p-0075138f.js";import{S as l}from"./p-92f420cb.js";import{v as p}from"./p-28a7d3f7.js";import{c as b}from"./p-e0d428c9.js";import{d as m}from"./p-45a30859.js";import{i as u}from"./p-d9a299a4.js";import{A as v,a as y}from"./p-9ac55bd1.js";import"./p-b48a4aa0.js";import"./p-e3aeaca0.js";import"./p-95d41a3b.js";import"./p-2aedc81e.js";function g(t){if(typeof t==="string"){return["true","True","TRUE","1"].indexOf(t)!==-1}else if(typeof t==="number"){return t>0}else if(typeof t==="boolean"){return t}else{return t?true:false}}var j;(function(t){t["A"]="a";t["BUTTON"]="button"})(j||(j={}));const k=class{constructor(s){t(this,s);this.govClick=i(this,"gov-click",7);this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.hydrated=false;this.color=undefined;this.size="m";this.type=undefined;this.expanded=false;this.name=undefined;this.disabled=false;this.nativeType="button";this.href=undefined;this.target=undefined;this.download=undefined;this.hreflang=undefined;this.referrerpolicy=undefined;this.rel=undefined;this.loading=undefined;this.focusable=true;this.identifier=undefined;this.inheritedAttributes={};this.h=d(this.host)}validateColor(t){n(h,t,o.root)}validateType(t){n(r,t,o.root)}validateSize(t){n(l,t,o.root)}validateNativeType(t){n(c,t,o.root)}componentDidLoad(){this.attributeObserver=new v(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(y)}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}disconnectedCallback(){this.attributeObserver.stopObserving()}componentWillLoad(){this.validateColor(this.color);this.validateType(this.type);this.validateSize(this.size);this.validateNativeType(this.nativeType);this.inheritedAttributes=u(this.host)}async componentDidRender(){if(b()){await m(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){const t=this.href?j.A:j.BUTTON;const i=t===j.A?undefined:this.nativeType;return s(e,{key:"2bb50646642155813d3b424d93abe66e402980fc",size:this.size,hydrated:this.hydrated,color:this.color,class:this.h.classes(o.root),type:this.type},s(t,Object.assign({key:"9eb0aef9aad90c4d8b36c98713f8b4368ec3ea60",class:"element",ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),disabled:this.disabled,id:this.identifier,href:this.href,target:this.target,download:this.download,hreflang:this.hreflang,rel:this.rel,name:this.name,type:i,tabindex:this.disabled?"-1":"0"},this.inheritedAttributes,{"aria-disabled":f(this.disabled)}),g(this.loading)&&!this.h.hasSlot("right-icon")&&s("gov-icon",{key:"32e8ad524e440068871b84a7cfe0a297d729cdb1",name:"loader",class:"gov-spin-animation"}),this.h.hasSlot("left-icon")&&s("slot",{key:"9cb9034730ff04ec4ecb17c7ab75618368074b5c",name:"left-icon"}),s("slot",{key:"ba5a094a07caa393510f956f5797b73f4811d0a9"}),this.h.hasSlot("right-icon")&&s("slot",{key:"4b62acb8f9c327c21ccd500688a1e0effa7bbfa8",name:"right-icon"}),g(this.loading)&&this.h.hasSlot("right-icon")&&s("gov-icon",{key:"25f567c70ee5e4a89c37747fa17df87d9a4e6fb2",name:"loader",class:"gov-spin-animation"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false){this.govClick.emit({component:o.root,originalEvent:t,ref:this.host})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:o.root,originalEvent:t,ref:this.host})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:o.root,originalEvent:t,ref:this.host})}async setFocus(){this.triggerRef.focus()}async getRef(){return this.triggerRef}async validateAccessibility(){if(this.focusable){p(this.triggerRef.getAttribute("aria-label"),this.triggerRef.getAttribute("aria-labelledby"),o.root,this.host)}}get host(){return a(this)}static get watchers(){return{color:["validateColor"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}}};export{k as gov_button};
2
- //# sourceMappingURL=p-ab9ae7ba.entry.js.map
1
+ import{r as t,c as i,h as s,a as e,g as a}from"./p-8506b611.js";import{v as n}from"./p-169b67af.js";import{B as o,a as h,c as r,N as c}from"./p-69d56f17.js";import{g as d,t as f}from"./p-0075138f.js";import{S as l}from"./p-92f420cb.js";import{v as p}from"./p-842cb87f.js";import{c as b}from"./p-e0d428c9.js";import{d as m}from"./p-45a30859.js";import{i as u}from"./p-d9a299a4.js";import{A as v,a as y}from"./p-9ac55bd1.js";import"./p-b48a4aa0.js";import"./p-e3aeaca0.js";import"./p-cd6c2938.js";import"./p-2aedc81e.js";function g(t){if(typeof t==="string"){return["true","True","TRUE","1"].indexOf(t)!==-1}else if(typeof t==="number"){return t>0}else if(typeof t==="boolean"){return t}else{return t?true:false}}var j;(function(t){t["A"]="a";t["BUTTON"]="button"})(j||(j={}));const k=class{constructor(s){t(this,s);this.govClick=i(this,"gov-click",7);this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.hydrated=false;this.color=undefined;this.size="m";this.type=undefined;this.expanded=false;this.name=undefined;this.disabled=false;this.nativeType="button";this.href=undefined;this.target=undefined;this.download=undefined;this.hreflang=undefined;this.referrerpolicy=undefined;this.rel=undefined;this.loading=undefined;this.focusable=true;this.identifier=undefined;this.inheritedAttributes={};this.h=d(this.host)}validateColor(t){n(h,t,o.root)}validateType(t){n(r,t,o.root)}validateSize(t){n(l,t,o.root)}validateNativeType(t){n(c,t,o.root)}componentDidLoad(){this.attributeObserver=new v(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(y)}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}disconnectedCallback(){this.attributeObserver.stopObserving()}componentWillLoad(){this.validateColor(this.color);this.validateType(this.type);this.validateSize(this.size);this.validateNativeType(this.nativeType);this.inheritedAttributes=u(this.host)}async componentDidRender(){if(b()){await m(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){const t=this.href?j.A:j.BUTTON;const i=t===j.A?undefined:this.nativeType;return s(e,{key:"4e5ef3fbf897b81b07452a9383985353d673fdd6",size:this.size,hydrated:this.hydrated,color:this.color,class:this.h.classes(o.root),type:this.type},s(t,Object.assign({key:"d0689b6c773257059fa9334d4bb1d003a0ec58c3",class:"element",ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),disabled:this.disabled,id:this.identifier,href:this.href,target:this.target,download:this.download,hreflang:this.hreflang,rel:this.rel,name:this.name,type:i,tabindex:this.disabled?"-1":"0"},this.inheritedAttributes,{"aria-disabled":f(this.disabled)}),g(this.loading)&&!this.h.hasSlot("right-icon")&&s("gov-icon",{key:"be89312696bdc6842d2717df100d5b790e20694f",name:"loader",class:"gov-spin-animation"}),this.h.hasSlot("left-icon")&&s("slot",{key:"6ccce190fa47027c603e008e37717c927dabd0b6",name:"left-icon"}),s("slot",{key:"d6eb7343fc7ad6f389743d7bbae3b0ab8d2f8e93"}),this.h.hasSlot("right-icon")&&s("slot",{key:"74736acdc5bec2f315c9cea45009b1d1b6ab6c8b",name:"right-icon"}),g(this.loading)&&this.h.hasSlot("right-icon")&&s("gov-icon",{key:"885f29b2d141823731e56ca50c6c89661c014322",name:"loader",class:"gov-spin-animation"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false){this.govClick.emit({component:o.root,originalEvent:t,ref:this.host})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:o.root,originalEvent:t,ref:this.host})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:o.root,originalEvent:t,ref:this.host})}async setFocus(){this.triggerRef.focus()}async getRef(){return this.triggerRef}async validateAccessibility(){if(this.focusable){p(this.triggerRef.getAttribute("aria-label"),this.triggerRef.getAttribute("aria-labelledby"),o.root,this.host)}}get host(){return a(this)}static get watchers(){return{color:["validateColor"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}}};export{k as gov_button};
2
+ //# sourceMappingURL=p-7b48b1b8.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as t,c as s,h as i,a as e,g as o}from"./p-8506b611.js";import{c as a}from"./p-cd6c2938.js";import{g as h,c as n,t as r}from"./p-0075138f.js";import{g as l}from"./p-a693ffbf.js";import{i as c}from"./p-d9a299a4.js";import{A as f,a as d}from"./p-9ac55bd1.js";import"./p-92f420cb.js";import"./p-45a30859.js";import"./p-6aa40794.js";import"./p-e3aeaca0.js";import"./p-42d9924c.js";import"./p-2614044c.js";const m={root:"gov-form-file",area:"gov-form-file__area",input:"gov-form-file__input",attachments:"gov-form-file__attachments"};function p(t){const s=["bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let i=0,e=parseInt(t,10)||0;while(e>=1024&&++i){e=e/1024}return e.toFixed(e<10&&i>0?1:0)+" "+s[i]}function u(t,s){if(typeof s==="string"&&s.length){return s.replace(/\s/g,"").split(",").filter((s=>new RegExp(s.replace("*",".*")).test(t.type))).length>0}else{return true}}function g(t,s){const i=Math.round(t.size);return i<=s}const v=class{constructor(i){t(this,i);this.govFocus=s(this,"gov-focus",7);this.govBlur=s(this,"gov-blur",7);this.govFiles=s(this,"gov-files",7);this.govAddFile=s(this,"gov-add-file",7);this.govRemoveFile=s(this,"gov-remove-file",7);this.eventsRegistered=false;this.expanded=false;this.required=false;this.disabled=false;this.resetAfterPick=false;this.ignoreFileDuplicationCheck=false;this.displayAttachments=true;this.name=undefined;this.accept=undefined;this.multiple=false;this.maxFileSize=-1;this.identifier=undefined;this.invalid=undefined;this.errorSize="Soubor je větší než povolená velikost {FILE_SIZE}";this.errorAccept="Soubor tohoto typu není povolen";this.attachmentsLabel="Přílohy";this.accessibleRemoveLabel="Odebrat soubor {FILE_NAME}";this.accessibleAttachmentsLabel="Přílohy";this.files=[];this.inheritedAttributes={};this.fileId=a("GovInputFile");this.h=h(this.host);this.f=l(this.h)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("invalid",n(this.invalid));this.f.passAttrToControl("disabled",n(this.disabled));this.f.passAttrToControl("type","File")}registerListeners(){if(this.eventsRegistered){return}this.eventsRegistered=true;function t(){this.areaRef.classList.add("highlight")}function s(){this.areaRef.classList.remove("highlight")}this.inputRef.addEventListener("change",(t=>{t.preventDefault();t.stopPropagation();const s=t.target.files;if(this.resetAfterPick){if(s.length){this.validateFiles(s)}}else{this.validateFiles(s)}}),false);if(this.expanded){const i=["dragover","dragleave"];const e=["dragenter","dragover","mouseenter"];const o=["dragleave","drop","mouseleave"];i.map((t=>this.inputRef.addEventListener(t,this.preventDefaults.bind(this),false)));e.map((s=>this.inputRef.addEventListener(s,t.bind(this),false)));o.forEach((t=>this.inputRef.addEventListener(t,s.bind(this),false)));this.areaRef.addEventListener("drop",this.handleDrop.bind(this),false)}}preventDefaults(t){t.preventDefault();t.stopPropagation()}handleDrop(t){const s=t.dataTransfer;this.validateFiles(s.files)}validateFiles(t){let s=[];Array.from(t).map((t=>{const i=this.files.find((s=>s.file.name===t.name&&s.file.size===t.size))||null;if(i===null||this.ignoreFileDuplicationCheck){const i=typeof this.maxFileSize==="number"&&this.maxFileSize>0?g(t,this.maxFileSize):true;const e=u(t,this.accept);const o={id:a("GovFormFile"),file:t,acceptValid:e,sizeValid:i};if(this.displayAttachments){this.files=[...this.files,o]}else{s=[...s,o]}this.govAddFile.emit({component:m.root,file:o})}}));this.govFiles.emit({component:m.root,files:s.length?s:this.files});if(this.resetAfterPick){this.reset().finally()}}componentDidLoad(){this.attributeObserver=new f(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs();this.inheritedAttributes=c(this.host)}async componentDidRender(){this.registerListeners()}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return i(e,{key:"1f69ad55f386a3e0429a0616020c04dbaadc8025",class:this.h.classes([m.root]),invalid:r(this.invalid),expanded:r(this.expanded)},i("div",{key:"0927e067de4a7fa12fe73b9eb3ac48af1a930092",class:m.area,ref:t=>this.areaRef=t},i("slot",{key:"810a669af48af7306884a3a32b81aaf3a8498c41"}),i("input",Object.assign({key:"c7c5e6f71ee55c154348503693d83f022f73c346",class:m.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":r(this.required),"aria-invalid":r(this.invalid),"aria-disabled":r(this.disabled)}))),this.h.hasSlot("attachments")?i("div",{class:m.attachments},i("slot",{name:"attachments"})):null,this.files.length&&this.displayAttachments?i("div",{class:m.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"}),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"}),this.errorSize.replace("{FILE_SIZE}",p(this.maxFileSize))):null,i("span",{slot:"info"},"(",p(t.file.size),")")))))):null)}onRemoveFileHandler(t){const s=this.files.findIndex((s=>s.id===t.id));if(s!==-1){const t=this.files;const i=this.files[s];t.splice(s,1);this.files=[...t];this.govRemoveFile.emit({component:m.root,file:i});this.govFiles.emit({component:m.root,files:t})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:m.root,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:m.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 o(this)}static get watchers(){return{disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}};export{v as gov_form_file};
2
+ //# sourceMappingURL=p-7de47344.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FormFileClass","root","area","input","attachments","formatBytes","bytes","units","l","n","parseInt","toFixed","fileAcceptValidation","file","accept","length","replace","split","filter","RegExp","test","type","fileSizeValidation","maxSize","fileSize","Math","round","size","GovFormFile","constructor","hostRef","this","eventsRegistered","fileId","createID","h","govHost","host","f","govForm","watchControlAttrs","passControlAttrs","passAttrToControl","toBoolAttr","invalid","disabled","registerListeners","highlight","areaRef","classList","add","unhighlight","remove","inputRef","addEventListener","e","preventDefault","stopPropagation","files","target","resetAfterPick","validateFiles","expanded","events","inEvents","outEvents","map","eventName","preventDefaults","bind","forEach","handleDrop","dataTransfer","filesBuffer","Array","from","isFile","find","item","name","ignoreFileDuplicationCheck","isSizeValid","maxFileSize","isAcceptValid","newFile","id","acceptValid","sizeValid","displayAttachments","govAddFile","emit","component","govFiles","reset","finally","componentDidLoad","attributeObserver","AttributeObserver","attributeName","newValue","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","passAttrToLabel","String","required","inheritedAttributes","inheritAriaAttributes","componentDidRender","disconnectedCallback","stopObserving","removeAttribute","Object","assign","render","Host","key","class","classes","toBoolAttrIfDefined","ref","el","identifier","multiple","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","hasSlot","label","accessibleAttachmentsLabel","onRemoveFileHandler","accessibleRemoveLabel","slot","color","errorAccept","errorSize","index","findIndex","removeFile","splice","govRemoveFile","govFocus","originalEvent","govBlur","getRef","getAreaRef","value"],"sources":["../../../packages/core/src/components/gov-form/file/constants.ts","../../../packages/core/src/utils/file.utils.ts","../../../packages/core/src/components/gov-form/file/gov-form-file.tsx"],"sourcesContent":["export const FormFileClass = {\n\troot: 'gov-form-file',\n\tarea: 'gov-form-file__area',\n\tinput: 'gov-form-file__input',\n\tattachments: 'gov-form-file__attachments',\n}\n","export function formatBytes(bytes: any): string {\n\tconst units = ['bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']\n\tlet l = 0,\n\t\tn = parseInt(bytes, 10) || 0\n\n\twhile (n >= 1024 && ++l) {\n\t\tn = n / 1024\n\t}\n\n\treturn n.toFixed(n < 10 && l > 0 ? 1 : 0) + ' ' + units[l]\n}\n\nexport function fileAcceptValidation(file: File, accept: string): boolean {\n\tif (typeof accept === 'string' && accept.length) {\n\t\treturn (\n\t\t\taccept\n\t\t\t\t.replace(/\\s/g, '')\n\t\t\t\t.split(',')\n\t\t\t\t.filter(accept => {\n\t\t\t\t\treturn new RegExp(accept.replace('*', '.*')).test(file.type)\n\t\t\t\t}).length > 0\n\t\t)\n\t} else {\n\t\treturn true\n\t}\n}\n\nexport function fileSizeValidation(file: File, maxSize: number): boolean {\n\tconst fileSize = Math.round(file.size)\n\treturn fileSize <= maxSize\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {FormFileClass} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {fileAcceptValidation, fileSizeValidation, formatBytes} from \"../../../utils/file.utils\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport {GovFormFileEvent, GovFormFileItem} from \"./gov-form-file.types\"\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\n\n@Component({\n\ttag: \"gov-form-file\",\n})\nexport class GovFormFile {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\n\tprivate areaRef?: HTMLDivElement\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly fileId: string\n\tprivate attributeObserver: AttributeObserver\n\tprivate eventsRegistered = false\n\n\tconstructor() {\n\t\tthis.fileId = createID(\"GovInputFile\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormFileElement\n\t/**\n\t * Expands the file input to fill 100% of the container width.\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the File component disabled.\n\t * This prevents users from being able to interact with the File, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * After selecting the files, the main input element will be reset.\n\t * The propagation of the event with the selected files will not be affected.\n\t */\n\t@Prop({attribute: \"reset-after-pick\"}) readonly resetAfterPick: boolean = false\n\t/**\n\t * Selected files will not be checked for duplicates based on name and size.\n\t */\n\t@Prop({attribute: \"ignore-file-duplication-check\"}) readonly ignoreFileDuplicationCheck: boolean = false\n\t/**\n\t * Show list of attachments\n\t */\n\t@Prop({attribute: \"display-attachments\"}) readonly displayAttachments: boolean = true\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept\n\t */\n\t@Prop() readonly accept: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple\n\t */\n\t@Prop() readonly multiple: boolean = false\n\t/**\n\t * Maximum embedded file size\n\t */\n\t@Prop({attribute: \"max-file-size\"}) readonly maxFileSize: number = -1\n\t/**\n\t * Custom File identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Error message when the maximum file size is exceeded\n\t */\n\t@Prop({attribute: \"error-size\"}) readonly errorSize: string = \"Soubor je větší než povolená velikost {FILE_SIZE}\"\n\t/**\n\t * Insert unsupported file error message\n\t */\n\t@Prop({attribute: \"error-accept\"}) readonly errorAccept: string = \"Soubor tohoto typu není povolen\"\n\t/**\n\t * Description of the list of attachments\n\t */\n\t@Prop({attribute: \"attachments-label\"}) readonly attachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: \"accessible-remove-label\"}) readonly accessibleRemoveLabel: string = \"Odebrat soubor {FILE_NAME}\"\n\t/**\n\t * Adds accessible label for the list of attachments.\n\t */\n\t@Prop({attribute: \"accessible-attachments-label\"}) readonly accessibleAttachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * Emitted when the File has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Emitted when the File loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when the list of inserted files is changed\n\t */\n\t@Event({eventName: \"gov-files\"}) govFiles: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a new file is added\n\t */\n\t@Event({eventName: \"gov-add-file\"}) govAddFile: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a file is removed from the list\n\t */\n\t@Event({eventName: \"gov-remove-file\"}) govRemoveFile: EventEmitter<GovFormFileEvent>\n\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() files: GovFormFileItem[] = []\n\t@State() inheritedAttributes: Attributes = {}\n\n\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"File\")\n\t}\n\n\n\tprivate registerListeners() {\n\t\tif (this.eventsRegistered) {\n\t\t\treturn\n\t\t}\n\t\tthis.eventsRegistered = true\n\n\t\tfunction highlight() {\n\t\t\tthis.areaRef.classList.add(\"highlight\")\n\t\t}\n\n\t\tfunction unhighlight() {\n\t\t\tthis.areaRef.classList.remove(\"highlight\")\n\t\t}\n\n\t\tthis.inputRef.addEventListener(\n\t\t\t\"change\",\n\t\t\te => {\n\t\t\t\te.preventDefault()\n\t\t\t\te.stopPropagation()\n\t\t\t\tconst files = (e.target as HTMLInputElement).files\n\t\t\t\tif (this.resetAfterPick) {\n\t\t\t\t\tif (files.length) {\n\t\t\t\t\t\tthis.validateFiles(files)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthis.validateFiles(files)\n\t\t\t\t}\n\t\t\t},\n\t\t\tfalse,\n\t\t)\n\n\t\tif (this.expanded) {\n\t\t\tconst events = [\"dragover\", \"dragleave\"]\n\t\t\tconst inEvents = [\"dragenter\", \"dragover\", \"mouseenter\"]\n\t\t\tconst outEvents = [\"dragleave\", \"drop\", \"mouseleave\"]\n\n\t\t\tevents.map(eventName => this.inputRef.addEventListener(eventName, this.preventDefaults.bind(this), false))\n\t\t\tinEvents.map(eventName => this.inputRef.addEventListener(eventName, highlight.bind(this), false))\n\t\t\toutEvents.forEach(eventName => this.inputRef.addEventListener(eventName, unhighlight.bind(this), false))\n\n\t\t\tthis.areaRef.addEventListener(\"drop\", this.handleDrop.bind(this), false)\n\t\t}\n\t}\n\n\tpreventDefaults(e) {\n\t\te.preventDefault()\n\t\te.stopPropagation()\n\t}\n\n\thandleDrop(e: DragEvent) {\n\t\tconst dataTransfer = e.dataTransfer\n\t\tthis.validateFiles(dataTransfer.files)\n\t}\n\n\tprivate validateFiles(files: FileList) {\n\t\tlet filesBuffer: GovFormFileItem[] = []\n\t\tArray.from(files).map(file => {\n\t\t\tconst isFile = this.files.find(item => item.file.name === file.name && item.file.size === file.size) || null\n\t\t\tif (isFile === null || this.ignoreFileDuplicationCheck) {\n\t\t\t\tconst isSizeValid = typeof this.maxFileSize === \"number\" && this.maxFileSize > 0 ? fileSizeValidation(file, this.maxFileSize) : true\n\t\t\t\tconst isAcceptValid = fileAcceptValidation(file, this.accept)\n\t\t\t\tconst newFile = {\n\t\t\t\t\tid: createID(\"GovFormFile\"),\n\t\t\t\t\tfile,\n\t\t\t\t\tacceptValid: isAcceptValid,\n\t\t\t\t\tsizeValid: isSizeValid,\n\t\t\t\t}\n\t\t\t\tif (this.displayAttachments) {\n\t\t\t\t\tthis.files = [...this.files, newFile]\n\t\t\t\t} else {\n\t\t\t\t\tfilesBuffer = [...filesBuffer, newFile]\n\t\t\t\t}\n\t\t\t\tthis.govAddFile.emit({\n\t\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\t\tfile: newFile,\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\n\t\tthis.govFiles.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\tfiles: filesBuffer.length ? filesBuffer : this.files,\n\t\t})\n\n\t\tif (this.resetAfterPick) {\n\t\t\tthis.reset().finally()\n\t\t}\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.registerListeners()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes([FormFileClass.root])}\n\t\t\t\t invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t expanded={toBoolAttrIfDefined(this.expanded)}>\n\t\t\t\t<div class={FormFileClass.area} ref={el => (this.areaRef = el as HTMLDivElement)}>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<input\n\t\t\t\t\t\tclass={FormFileClass.input}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tid={this.identifier || this.fileId}\n\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\taccept={this.accept}\n\t\t\t\t\t\tmultiple={this.multiple}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot(\"attachments\") ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<slot name={\"attachments\"}/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t{this.files.length && this.displayAttachments ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<gov-attachments label={this.accessibleAttachmentsLabel}\n\t\t\t\t\t\t\t\t\t\t accessible-label={this.accessibleAttachmentsLabel}>\n\t\t\t\t\t\t\t{this.files.map(item => (\n\t\t\t\t\t\t\t\t<gov-attachments-item accessible-remove-labelledby={item.id}\n\t\t\t\t\t\t\t\t\t\t\t\t\t on-gov-remove={() => this.onRemoveFileHandler(item)}>\n\t\t\t\t\t\t\t\t\t<span class={\"sr-only\"} id={item.id}>\n\t\t\t\t\t\t\t\t\t\t{this.accessibleRemoveLabel.replace(\"{FILE_NAME}\", item.file.name)}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t{item.file.name}\n\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" color=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? this.errorAccept : null}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t{item.sizeValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" color=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{this.errorSize.replace(\"{FILE_SIZE}\", formatBytes(this.maxFileSize))}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t<span slot=\"info\">({formatBytes(item.file.size)})</span>\n\t\t\t\t\t\t\t\t</gov-attachments-item>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</gov-attachments>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onRemoveFileHandler(file: GovFormFileItem) {\n\t\tconst index = this.files.findIndex(item => item.id === file.id)\n\t\tif (index !== -1) {\n\t\t\tconst files = this.files\n\t\t\tconst removeFile = this.files[index]\n\t\t\tfiles.splice(index, 1)\n\t\t\tthis.files = [...files]\n\t\t\tthis.govRemoveFile.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfile: removeFile,\n\t\t\t})\n\t\t\tthis.govFiles.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfiles,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Returns the reference of the native area element\n\t */\n\t@Method()\n\tasync getAreaRef(): Promise<HTMLDivElement> {\n\t\treturn this.areaRef\n\t}\n\n\t/**\n\t * Remove all files from component state\n\t */\n\t@Method()\n\tasync reset(): Promise<void> {\n\t\tthis.files = []\n\t\tthis.inputRef.value = '';\n\t}\n}\n"],"mappings":"yZAAO,MAAMA,EAAgB,CAC5BC,KAAM,gBACNC,KAAM,sBACNC,MAAO,uBACPC,YAAa,8B,SCJEC,EAAYC,GAC3B,MAAMC,EAAQ,CAAC,QAAS,MAAO,MAAO,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Ac,MAE/C,KACH5D,EAAKS,YAAc,MACnBpD,EAAA,oBAAkBqG,KAAK,UAAUC,MAAM,SACtCtG,EAAA,YAAUqG,KAAK,OAAOzD,KAAK,8BAC1BhD,KAAK4G,UAAU3H,QAAQ,cAAeX,EAAY0B,KAAKmD,eAEtD,KACJ/C,EAAA,QAAMqG,KAAK,QAAM,IAAGnI,EAAYyE,EAAKjE,KAAKc,MAAK,UAKhD,K,CAKC,mBAAA2G,CAAoBzH,GAC3B,MAAM+H,EAAQ7G,KAAK2B,MAAMmF,WAAU/D,GAAQA,EAAKO,KAAOxE,EAAKwE,KAC5D,GAAIuD,KAAW,EAAG,CACjB,MAAMlF,EAAQ3B,KAAK2B,MACnB,MAAMoF,EAAa/G,KAAK2B,MAAMkF,GAC9BlF,EAAMqF,OAAOH,EAAO,GACpB7G,KAAK2B,MAAQ,IAAIA,GACjB3B,KAAKiH,cAActD,KAAK,CACvBC,UAAW3F,EAAcC,KACzBY,KAAMiI,IAEP/G,KAAK6D,SAASF,KAAK,CAClBC,UAAW3F,EAAcC,KACzByD,S,EAKK,cAAAsE,CAAezE,GACtBA,EAAEE,kBACF1B,KAAKkH,SAASvD,KAAK,CAClBC,UAAW3F,EAAcC,KACzBiJ,cAAe3F,G,CAIT,aAAA2E,CAAc3E,GACrBA,EAAEE,kBACF1B,KAAKoH,QAAQzD,KAAK,CACjBC,UAAW3F,EAAcC,KACzBiJ,cAAe3F,G,CAIT,eAAAuE,CAAgBvE,GACvBA,EAAEE,iB,CAOH,YAAM2F,GACL,OAAOrH,KAAKsB,Q,CAOb,gBAAMgG,GACL,OAAOtH,KAAKiB,O,CAOb,WAAM6C,GACL9D,KAAK2B,MAAQ,GACb3B,KAAKsB,SAASiG,MAAQ,E","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,h as s,a as t,g as a}from"./p-8506b611.js";import{C as o}from"./p-e3aeaca0.js";import{a as r}from"./p-45a30859.js";import{S as c}from"./p-92f420cb.js";r(c,["_S","_M","_L"]);r(o,["PRIMARY","NEUTRAL"]);const f={root:"gov-form-search"};const d=class{constructor(s){e(this,s);this.size="m";this.color="neutral"}render(){return s(t,{key:"4a7e93e514a5077f4291761e23ca40b6de049838",class:f.root,color:this.color,size:this.size},s("slot",{key:"e15e0767f55d8c16b9e4328786cd12f6a6c8e733",name:"input"}),s("slot",{key:"adeef445bedb5d1ff0c88619081e098bcd582078",name:"button-erase"}),s("slot",{key:"5d56bcd4ed0fd8b35c997157dc68c92208b52bdf",name:"button"}))}get host(){return a(this)}};export{d as gov_form_search};
2
+ //# sourceMappingURL=p-83aa4327.entry.js.map
@@ -1,2 +1,2 @@
1
- import{g as e}from"./p-b48a4aa0.js";import{s as r}from"./p-95d41a3b.js";import{d as t}from"./p-e0d428c9.js";import{i}from"./p-2aedc81e.js";const n=(r,t,i)=>{if(r===undefined||String(r).length===0){e(`[${i}]: The (${t}) attribute is important for correct accessibility.`)}};const a=(i,n,a)=>{if(typeof i==="undefined"||i===undefined){return true}if(String(i).length===0){e(`[${a}]: Attribute (${n}) is defined with an empty value.`);return false}let s=[];const f=r(i);if(Array.isArray(f)){s=f.filter((function(e){return e.trim().length>0}))}return!!s.filter((e=>{if(t().getElementById(e)===null){return false}else{return true}})).length};const s=(r,n,a,s=undefined)=>{if(i(r)&&r.length>0){return true}if(typeof n==="string"&&n.length>0){const e=t().getElementById(n);if(e){return true}}e(`[${a}]: The element has no defined aria-label or aria-labelledby attribute.`,s);return false};export{a,n as b,s as v};
2
- //# sourceMappingURL=p-28a7d3f7.js.map
1
+ import{g as e}from"./p-b48a4aa0.js";import{s as r}from"./p-cd6c2938.js";import{d as t}from"./p-e0d428c9.js";import{i}from"./p-2aedc81e.js";const n=(r,t,i)=>{if(r===undefined||String(r).length===0){e(`[${i}]: The (${t}) attribute is important for correct accessibility.`)}};const a=(i,n,a)=>{if(typeof i==="undefined"||i===undefined){return true}if(String(i).length===0){e(`[${a}]: Attribute (${n}) is defined with an empty value.`);return false}let s=[];const f=r(i);if(Array.isArray(f)){s=f.filter((function(e){return e.trim().length>0}))}return!!s.filter((e=>{if(t().getElementById(e)===null){return false}else{return true}})).length};const s=(r,n,a,s=undefined)=>{if(i(r)&&r.length>0){return true}if(typeof n==="string"&&n.length>0){const e=t().getElementById(n);if(e){return true}}e(`[${a}]: The element has no defined aria-label or aria-labelledby attribute.`,s);return false};export{a,n as b,s as v};
2
+ //# sourceMappingURL=p-842cb87f.js.map
@@ -1,3 +1,3 @@
1
- const e="core";const t={allRenderFn:true,appendChildSlotFix:true,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:true,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:true,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:true,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:false,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:true,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var l=Object.defineProperty;var n=(e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:true})};var r=new WeakMap;var s=e=>r.get(e);var i=(e,t)=>r.set(t.t=e,t);var o=(e,t)=>{const l={l:0,$hostElement$:e,i:t,o:new Map};{l.u=new Promise((e=>l.v=e))}{l.p=new Promise((e=>l.h=e));e["s-p"]=[];e["s-rc"]=[]}return r.set(e,l)};var a=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var c=new Map;var u=(e,t,l)=>{const n=e.m.replace(/-/g,"_");const r=e.$;if(!r){return void 0}const s=c.get(r);if(s){return s[n]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${""}`).then((e=>{{c.set(r,e)}return e[n]}),f)};var v=new Map;var d="r";var p="o";var h="s";var m="t";var $="s-id";var y="sty-id";var b="c-id";var w="slot-fb{display:contents}slot-fb[hidden]{display:none}";var g="http://www.w3.org/1999/xlink";var S=typeof window!=="undefined"?window:{};var k=S.document||{head:{}};var C=S.HTMLElement||class{};var x={l:0,S:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,l,n)=>e.addEventListener(t,l,n),rel:(e,t,l,n)=>e.removeEventListener(t,l,n),ce:(e,t)=>new CustomEvent(e,t)};var j=t.shadowDom;var O=e=>Promise.resolve(e);var R=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var T=false;var D=[];var L=[];var E=(e,t)=>l=>{e.push(l);if(!T){T=true;if(t&&x.l&4){M(F)}else{x.raf(F)}}};var A=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var F=()=>{A(D);{A(L);if(T=D.length>0){x.raf(F)}}};var M=e=>O().then(e);var P=E(L,true);var U=e=>{const t=new URL(e,x.S);return t.origin!==S.location.origin?t.href:t.pathname};var N={};var W=e=>e!=null;var I=e=>{e=typeof e;return e==="object"||e==="function"};function H(e){var t,l,n;return(n=(l=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:l.getAttribute("content"))!=null?n:void 0}var z={};n(z,{err:()=>Q,map:()=>q,ok:()=>B,unwrap:()=>G,unwrapErr:()=>K});var B=e=>({isOk:true,isErr:false,value:e});var Q=e=>({isOk:false,isErr:true,value:e});function q(e,t){if(e.isOk){const l=t(e.value);if(l instanceof Promise){return l.then((e=>B(e)))}else{return B(l)}}if(e.isErr){const t=e.value;return Q(t)}throw"should never get here"}var G=e=>{if(e.isOk){return e.value}else{throw e.value}};var K=e=>{if(e.isErr){return e.value}else{throw e.value}};var V=(e,t="")=>{{return()=>{}}};var X=(e,t)=>{{return()=>{}}};var _=(e,t,...l)=>{let n=null;let r=null;let s=null;let i=false;let o=false;const a=[];const f=t=>{for(let l=0;l<t.length;l++){n=t[l];if(Array.isArray(n)){f(n)}else if(n!=null&&typeof n!=="boolean"){if(i=typeof e!=="function"&&!I(n)){n=String(n)}if(i&&o){a[a.length-1].k+=n}else{a.push(i?J(null,n):n)}o=i}}};f(l);if(t){if(t.key){r=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,a,ee)}const c=J(e,null);c.C=t;if(a.length>0){c.j=a}{c.O=r}{c.R=s}return c};var J=(e,t)=>{const l={l:0,T:e,k:t,D:null,j:null};{l.C=null}{l.O=null}{l.R=null}return l};var Y={};var Z=e=>e&&e.T===Y;var ee={forEach:(e,t)=>e.map(te).forEach(t),map:(e,t)=>e.map(te).map(t).map(le)};var te=e=>({vattrs:e.C,vchildren:e.j,vkey:e.O,vname:e.R,vtag:e.T,vtext:e.k});var le=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return _(e.vtag,t,...e.vchildren||[])}const t=J(e.vtag,e.vtext);t.C=e.vattrs;t.j=e.vchildren;t.O=e.vkey;t.R=e.vname;return t};var ne=(e,t,l,n)=>{const r=V("hydrateClient",t);const s=e.shadowRoot;const i=[];const o=[];const a=null;const f=n.L=J(t,null);if(!x.A){se(k.body,x.A=new Map)}e[$]=l;e.removeAttribute($);re(f,i,o,a,e,e,l);i.map((e=>{const l=e.F+"."+e.M;const n=x.A.get(l);const r=e.D;if(n&&j&&n["s-en"]===""){n.parentNode.insertBefore(r,n.nextSibling)}if(!s){r["s-hn"]=t;if(n){r["s-ol"]=n;r["s-ol"]["s-nr"]=r}}x.A.delete(l)}));r()};var re=(e,t,l,n,r,s,i)=>{let o;let a;let f;let c;if(s.nodeType===1){o=s.getAttribute(b);if(o){a=o.split(".");if(a[0]===i||a[0]==="0"){f={l:0,F:a[0],M:a[1],P:a[2],U:a[3],T:s.tagName.toLowerCase(),D:s,C:null,j:null,O:null,R:null,k:null};t.push(f);s.removeAttribute(b);if(!e.j){e.j=[]}e.j[f.U]=f;e=f;if(n&&f.P==="0"){n[f.U]=f.D}}}if(s.shadowRoot){for(c=s.shadowRoot.childNodes.length-1;c>=0;c--){re(e,t,l,n,r,s.shadowRoot.childNodes[c],i)}}for(c=s.childNodes.length-1;c>=0;c--){re(e,t,l,n,r,s.childNodes[c],i)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===i||a[1]==="0"){o=a[0];f={l:0,F:a[1],M:a[2],P:a[3],U:a[4],D:s,C:null,j:null,O:null,R:null,T:null,k:null};if(o===m){f.D=s.nextSibling;if(f.D&&f.D.nodeType===3){f.k=f.D.textContent;t.push(f);s.remove();if(!e.j){e.j=[]}e.j[f.U]=f;if(n&&f.P==="0"){n[f.U]=f.D}}}else if(f.F===i){if(o===h){f.T="slot";if(a[5]){s["s-sn"]=f.R=a[5]}else{s["s-sn"]=""}s["s-sr"]=true;l.push(f);if(!e.j){e.j=[]}e.j[f.U]=f}else if(o===d){{r["s-cr"]=s;s["s-cn"]=true}}}}}else if(e&&e.T==="style"){const t=J(null,s.textContent);t.D=s;t.U="0";e.j=[t]}};var se=(e,t)=>{if(e.nodeType===1){let l=0;if(e.shadowRoot){for(;l<e.shadowRoot.childNodes.length;l++){se(e.shadowRoot.childNodes[l],t)}}for(l=0;l<e.childNodes.length;l++){se(e.childNodes[l],t)}}else if(e.nodeType===8){const l=e.nodeValue.split(".");if(l[0]===p){t.set(l[1]+"."+l[2],e);e.nodeValue="";e["s-en"]=l[3]}}};var ie=(e,t)=>{if(e!=null&&!I(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var oe=e=>s(e).$hostElement$;var ae=(e,t,l)=>{const n=oe(e);return{emit:e=>fe(n,t,{bubbles:!!(l&4),composed:!!(l&2),cancelable:!!(l&1),detail:e})}};var fe=(e,t,l)=>{const n=x.ce(t,l);e.dispatchEvent(n);return n};var ce=new WeakMap;var ue=(e,t,l)=>{let n=v.get(e);if(R&&l){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}v.set(e,n)};var ve=(e,t,l)=>{var n;const r=pe(t);const s=v.get(r);e=e.nodeType===11?e:k;if(s){if(typeof s==="string"){e=e.head||e;let l=ce.get(e);let i;if(!l){ce.set(e,l=new Set)}if(!l.has(r)){if(e.host&&(i=e.querySelector(`[${y}="${r}"]`))){i.innerHTML=s}else{i=k.createElement("style");i.innerHTML=s;const l=(n=x.N)!=null?n:H(k);if(l!=null){i.setAttribute("nonce",l)}const r=!(t.l&1)||t.l&1&&e.nodeName!=="HEAD";if(r){e.insertBefore(i,e.querySelector("link"))}}if(t.l&4){i.innerHTML+=w}if(l){l.add(r)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return r};var de=e=>{const t=e.i;const l=e.$hostElement$;const n=V("attachStyles",t.m);ve(l.getRootNode(),t);n()};var pe=(e,t)=>"sc-"+e.m;var he=(e,t,l,n,r,s)=>{if(l!==n){let i=a(e,t);let o=t.toLowerCase();if(t==="class"){const t=e.classList;const r=$e(l);const s=$e(n);t.remove(...r.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!r.includes(e))))}else if(t==="style"){{for(const t in l){if(!n||n[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in n){if(!l||n[t]!==l[t]){if(t.includes("-")){e.style.setProperty(t,n[t])}else{e.style[t]=n[t]}}}}else if(t==="key");else if(t==="ref"){if(n){n(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(S,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(l||n){const r=t.endsWith(ye);t=t.replace(be,"");if(l){x.rel(e,t,l,r)}if(n){x.ael(e,t,n,r)}}}else{const a=I(n);if((i||a&&n!==null)&&!r){try{if(!e.tagName.includes("-")){const r=n==null?"":n;if(t==="list"){i=false}else if(l==null||e[t]!=r){e[t]=r}}else{e[t]=n}}catch(e){}}let f=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;f=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(f){e.removeAttributeNS(g,t)}else{e.removeAttribute(t)}}}else if((!i||s&4||r)&&!a){n=n===true?"":n;if(f){e.setAttributeNS(g,t,n)}else{e.setAttribute(t,n)}}}}};var me=/\s/;var $e=e=>!e?[]:e.split(me);var ye="Capture";var be=new RegExp(ye+"$");var we=(e,t,l)=>{const n=t.D.nodeType===11&&t.D.host?t.D.host:t.D;const r=e&&e.C||N;const s=t.C||N;{for(const e of ge(Object.keys(r))){if(!(e in s)){he(n,e,r[e],void 0,l,t.l)}}}for(const e of ge(Object.keys(s))){he(n,e,r[e],s[e],l,t.l)}};function ge(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Se;var ke;var Ce;var xe=false;var je=false;var Oe=false;var Re=false;var Te=(e,l,n,r)=>{var s;const i=l.j[n];let o=0;let a;let f;let c;if(!xe){Oe=true;if(i.T==="slot"){i.l|=i.j?2:1}}if(i.k!==null){a=i.D=k.createTextNode(i.k)}else if(i.l&1){a=i.D=k.createTextNode("")}else{a=i.D=k.createElement(!xe&&t.slotRelocation&&i.l&2?"slot-fb":i.T);{we(null,i,Re)}const l=a.getRootNode();const n=!l.querySelector("body");if(!n&&t.scoped&&W(Se)&&a["s-si"]!==Se){a.classList.add(a["s-si"]=Se)}if(i.j){for(o=0;o<i.j.length;++o){f=Te(e,i,o);if(f){a.appendChild(f)}}}}a["s-hn"]=Ce;{if(i.l&(2|1)){a["s-sr"]=true;a["s-cr"]=ke;a["s-sn"]=i.R||"";a["s-rf"]=(s=i.C)==null?void 0:s.ref;c=e&&e.j&&e.j[n];if(c&&c.T===i.T&&e.D){{De(e.D)}}}}return a};var De=e=>{x.l|=1;const t=e.closest(Ce.toLowerCase());if(t!=null){const l=Array.from(t.childNodes).find((e=>e["s-cr"]));const n=Array.from(e.childNodes);for(const e of l?n.reverse():n){if(e["s-sh"]!=null){Qe(t,e,l!=null?l:null);e["s-sh"]=void 0;Oe=true}}}x.l&=~1};var Le=(e,l)=>{x.l|=1;const n=Array.from(e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===Ce){n.push(t)}}}for(let e=n.length-1;e>=0;e--){const t=n[e];if(t["s-hn"]!==Ce&&t["s-ol"]){Qe(Ue(t),t,Pe(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;Oe=true}if(l){Le(t,l)}}x.l&=~1};var Ee=(e,t,l,n,r,s)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let o;for(;r<=s;++r){if(n[r]){o=Te(null,l,r);if(o){n[r].D=o;Qe(i,o,Pe(t))}}}};var Ae=(e,t,l)=>{for(let n=t;n<=l;++n){const t=e[n];if(t){const e=t.D;Be(t);if(e){{je=true;if(e["s-ol"]){e["s-ol"].remove()}else{Le(e,true)}}e.remove()}}}};var Fe=(e,t,l,n,r=false)=>{let s=0;let i=0;let o=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let v=n.length-1;let d=n[0];let p=n[v];let h;let m;while(s<=f&&i<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--f]}else if(d==null){d=n[++i]}else if(p==null){p=n[--v]}else if(Me(c,d,r)){Ne(c,d,r);c=t[++s];d=n[++i]}else if(Me(u,p,r)){Ne(u,p,r);u=t[--f];p=n[--v]}else if(Me(c,p,r)){if(c.T==="slot"||p.T==="slot"){Le(c.D.parentNode,false)}Ne(c,p,r);Qe(e,c.D,u.D.nextSibling);c=t[++s];p=n[--v]}else if(Me(u,d,r)){if(c.T==="slot"||p.T==="slot"){Le(u.D.parentNode,false)}Ne(u,d,r);Qe(e,u.D,c.D);u=t[--f];d=n[++i]}else{o=-1;{for(a=s;a<=f;++a){if(t[a]&&t[a].O!==null&&t[a].O===d.O){o=a;break}}}if(o>=0){m=t[o];if(m.T!==d.T){h=Te(t&&t[i],l,o)}else{Ne(m,d,r);t[o]=void 0;h=m.D}d=n[++i]}else{h=Te(t&&t[i],l,i);d=n[++i]}if(h){{Qe(Ue(c.D),h,Pe(c.D))}}}}if(s>f){Ee(e,n[v+1]==null?null:n[v+1].D,l,n,i,v)}else if(i>v){Ae(t,s,f)}};var Me=(e,t,l=false)=>{if(e.T===t.T){if(e.T==="slot"){if("M"in e&&l&&e.D.nodeType!==8){return false}return e.R===t.R}if(!l){return e.O===t.O}return true}return false};var Pe=e=>e&&e["s-ol"]||e;var Ue=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;var Ne=(e,l,n=false)=>{const r=l.D=e.D;const s=e.j;const i=l.j;const o=l.T;const a=l.k;let f;if(a===null){{if(o==="slot"&&!xe){if(e.R!==l.R){l.D["s-sn"]=l.R||"";De(l.D.parentElement)}}else{we(e,l,Re)}}if(s!==null&&i!==null){Fe(r,s,l,i,n)}else if(i!==null){if(e.k!==null){r.textContent=""}Ee(r,null,l,i,0,i.length-1)}else if(!n&&t.updatable&&s!==null){Ae(s,0,s.length-1)}}else if(f=r["s-cr"]){f.parentNode.textContent=a}else if(e.k!==a){r.data=a}};var We=e=>{const t=e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const l=e["s-sn"];e.hidden=false;for(const n of t){if(n!==e){if(n["s-hn"]!==e["s-hn"]||l!==""){if(n.nodeType===1&&(l===n.getAttribute("slot")||l===n["s-sn"])||n.nodeType===3&&l===n["s-sn"]){e.hidden=true;break}}else{if(n.nodeType===1||n.nodeType===3&&n.textContent.trim()!==""){e.hidden=true;break}}}}}We(e)}}};var Ie=[];var He=e=>{let t;let l;let n;for(const r of e.childNodes){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){l=t.parentNode.childNodes;const e=r["s-sn"];for(n=l.length-1;n>=0;n--){t=l[n];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==r["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==r["s-hn"])){if(ze(t,e)){let l=Ie.find((e=>e.W===t));je=true;t["s-sn"]=t["s-sn"]||e;if(l){l.W["s-sh"]=r["s-hn"];l.I=r}else{t["s-sh"]=r["s-hn"];Ie.push({I:r,W:t})}if(t["s-sr"]){Ie.map((e=>{if(ze(e.W,t["s-sn"])){l=Ie.find((e=>e.W===t));if(l&&!e.I){e.I=l.I}}}))}}else if(!Ie.some((e=>e.W===t))){Ie.push({W:t})}}}}if(r.nodeType===1){He(r)}}};var ze=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var Be=e=>{{e.C&&e.C.ref&&e.C.ref(null);e.j&&e.j.map(Be)}};var Qe=(e,t,l)=>{const n=e==null?void 0:e.insertBefore(t,l);return n};var qe=(e,t,l=false)=>{var n,r,s,i;const o=e.$hostElement$;const a=e.i;const f=e.L||J(null,null);const c=Z(t)?t:_(null,null,t);Ce=o.tagName;if(a.H){c.C=c.C||{};a.H.map((([e,t])=>c.C[t]=o[e]))}if(l&&c.C){for(const e of Object.keys(c.C)){if(o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){c.C[e]=o[e]}}}c.T=null;c.l|=4;e.L=c;c.D=f.D=o;xe=j;{ke=o["s-cr"];je=false}Ne(f,c,l);{x.l|=1;if(Oe){He(c.D);for(const e of Ie){const t=e.W;if(!t["s-ol"]){const e=k.createTextNode("");e["s-nr"]=t;Qe(t.parentNode,t["s-ol"]=e,t)}}for(const e of Ie){const t=e.W;const o=e.I;if(o){const e=o.parentNode;let l=o.nextSibling;if(l&&l.nodeType===1){let s=(n=t["s-ol"])==null?void 0:n.previousSibling;while(s){let n=(r=s["s-nr"])!=null?r:null;if(n&&n["s-sn"]===t["s-sn"]&&e===n.parentNode){n=n.nextSibling;while(n===t||(n==null?void 0:n["s-sr"])){n=n==null?void 0:n.nextSibling}if(!n||!n["s-nr"]){l=n;break}}s=s.previousSibling}}if(!l&&e!==t.parentNode||t.nextSibling!==l){if(t!==l){Qe(e,t,l);if(t.nodeType===1){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](t)}else{if(t.nodeType===1){if(l){t["s-ih"]=(i=t.hidden)!=null?i:false}t.hidden=true}}}}if(je){We(c.D)}x.l&=~1;Ie.length=0}ke=void 0};var Ge=(e,t)=>{if(t&&!e.B&&t["s-p"]){t["s-p"].push(new Promise((t=>e.B=t)))}};var Ke=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}Ge(e,e.q);const l=()=>Ve(e,t);return P(l)};var Ve=(e,t)=>{const l=e.$hostElement$;const n=V("scheduleUpdate",e.i.m);const r=e.t;if(!r){throw new Error(`Can't render component <${l.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{s=tt(r,"componentWillLoad")}}else{{s=tt(r,"componentWillUpdate")}}n();return Xe(s,(()=>Je(e,r,t)))};var Xe=(e,t)=>_e(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var _e=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Je=async(e,t,l)=>{var n;const r=e.$hostElement$;const s=V("update",e.i.m);const i=r["s-rc"];if(l){de(e)}const o=V("render",e.i.m);{Ye(e,t,r,l)}if(i){i.map((e=>e()));r["s-rc"]=void 0}o();s();{const t=(n=r["s-p"])!=null?n:[];const l=()=>Ze(e);if(t.length===0){l()}else{Promise.all(t).then(l);e.l|=4;t.length=0}}};var Ye=(e,t,l,n)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{qe(e,t,n)}}}}catch(t){f(t,e.$hostElement$)}return null};var Ze=e=>{const t=e.i.m;const l=e.$hostElement$;const n=V("postUpdate",t);const r=e.t;const s=e.q;{tt(r,"componentDidRender")}if(!(e.l&64)){e.l|=64;{lt(l)}{tt(r,"componentDidLoad")}n();{e.h(l);if(!s){et()}}}else{{tt(r,"componentDidUpdate")}n()}{e.v(l)}{if(e.B){e.B();e.B=void 0}if(e.l&512){M((()=>Ke(e,false)))}e.l&=~(4|512)}};var et=t=>{{lt(k.documentElement)}M((()=>fe(S,"appload",{detail:{namespace:e}})))};var tt=(e,t,l)=>{if(e&&e[t]){try{return e[t](l)}catch(e){f(e)}}return void 0};var lt=e=>{var l;return e.classList.add((l=t.hydratedSelectorName)!=null?l:"hydrated")};var nt=(e,t)=>s(e).o.get(t);var rt=(e,t,l,n)=>{const r=s(e);if(!r){throw new Error(`Couldn't find host element for "${n.m}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const i=r.$hostElement$;const o=r.o.get(t);const a=r.l;const c=r.t;l=ie(l,n.G[t][0]);const u=Number.isNaN(o)&&Number.isNaN(l);const v=l!==o&&!u;if((!(a&8)||o===void 0)&&v){r.o.set(t,l);if(c){if(n.K&&a&128){const e=n.K[t];if(e){e.map((e=>{try{c[e](l,o,t)}catch(e){f(e,i)}}))}}if((a&(2|16))===2){Ke(r,false)}}}};var st=(e,t,l)=>{var n,r;const i=e.prototype;if(t.G||(t.K||e.watchers)){if(e.watchers&&!t.K){t.K=e.watchers}const o=Object.entries((n=t.G)!=null?n:{});o.map((([e,[n]])=>{if(n&31||l&2&&n&32){Object.defineProperty(i,e,{get(){return nt(this,e)},set(l){rt(this,e,l,t)},configurable:true,enumerable:true})}else if(l&1&&n&64){Object.defineProperty(i,e,{value(...t){var l;const n=s(this);return(l=n==null?void 0:n.u)==null?void 0:l.then((()=>{var l;return(l=n.t)==null?void 0:l[e](...t)}))}})}}));if(l&1){const l=new Map;i.attributeChangedCallback=function(e,n,r){x.jmp((()=>{var o;const a=l.get(e);if(this.hasOwnProperty(a)){r=this[a];delete this[a]}else if(i.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==r){return}else if(a==null){const l=s(this);const i=l==null?void 0:l.l;if(i&&!(i&8)&&i&128&&r!==n){const s=l.t;const i=(o=t.K)==null?void 0:o[e];i==null?void 0:i.forEach((t=>{if(s[t]!=null){s[t].call(s,r,n,e)}}))}return}this[a]=r===null&&typeof this[a]==="boolean"?false:r}))};e.observedAttributes=Array.from(new Set([...Object.keys((r=t.K)!=null?r:{}),...o.filter((([e,t])=>t[0]&15)).map((([e,n])=>{var r;const s=n[1]||e;l.set(s,e);if(n[0]&512){(r=t.H)==null?void 0:r.push([e,s])}return s}))]))}}return e};var it=async(e,t,l,n)=>{let r;if((t.l&32)===0){t.l|=32;const n=l.$;if(n){const e=u(l);if(e&&"then"in e){const t=X();r=await e;t()}else{r=e}if(!r){throw new Error(`Constructor for "${l.m}#${t.V}" was not found`)}if(!r.isProxied){{l.K=r.watchers}st(r,l,2);r.isProxied=true}const n=V("createInstance",l.m);{t.l|=8}try{new r(t)}catch(e){f(e)}{t.l&=~8}{t.l|=128}n();ot(t.t)}else{r=e.constructor;const l=e.localName;customElements.whenDefined(l).then((()=>t.l|=128))}if(r&&r.style){let e;if(typeof r.style==="string"){e=r.style}const t=pe(l);if(!v.has(t)){const n=V("registerStyles",l.m);ue(t,e,!!(l.l&1));n()}}}const s=t.q;const i=()=>Ke(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var ot=e=>{{tt(e,"connectedCallback")}};var at=e=>{if((x.l&1)===0){const t=s(e);const l=t.i;const n=V("connectedCallback",l.m);if(!(t.l&1)){t.l|=1;let n;{n=e.getAttribute($);if(n){ne(e,l.m,n,t)}}if(!n){if(l.l&(4|8)){ft(e)}}{let l=e;while(l=l.parentNode||l.host){if(l.nodeType===1&&l.hasAttribute("s-id")&&l["s-p"]||l["s-p"]){Ge(t,t.q=l);break}}}if(l.G){Object.entries(l.G).map((([t,[l]])=>{if(l&31&&e.hasOwnProperty(t)){const l=e[t];delete e[t];e[t]=l}}))}{it(e,t,l)}}else{if(t==null?void 0:t.t){ot(t.t)}else if(t==null?void 0:t.p){t.p.then((()=>ot(t.t)))}}n()}};var ft=e=>{const t=e["s-cr"]=k.createComment("");t["s-cn"]=true;Qe(e,t,e.firstChild)};var ct=e=>{{tt(e,"disconnectedCallback")}};var ut=async e=>{if((x.l&1)===0){const t=s(e);if(t==null?void 0:t.t){ct(t.t)}else if(t==null?void 0:t.p){t.p.then((()=>ct(t.t)))}}};var vt=(e,t={})=>{var l;const n=V();const r=[];const i=t.exclude||[];const a=S.customElements;const f=k.head;const c=f.querySelector("meta[charset]");const u=k.createElement("style");const v=[];let d;let p=true;Object.assign(x,t);x.S=new URL(t.resourcesUrl||"./",k.baseURI).href;{x.l|=2}let h=false;e.map((e=>{e[1].map((t=>{var l;const n={l:t[0],m:t[1],G:t[2],X:t[3]};if(n.l&4){h=true}{n.G=t[2]}{n.H=[]}{n.K=(l=t[4])!=null?l:{}}const f=n.m;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;o(e,n)}connectedCallback(){s(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(p){v.push(this)}else{x.jmp((()=>at(this)))}}disconnectedCallback(){x.jmp((()=>ut(this)))}componentOnReady(){return s(this).p}};n.$=e[0];if(!i.includes(f)&&!a.get(f)){r.push(f);a.define(f,st(c,n,1))}}))}));if(r.length>0){if(h){u.textContent+=w}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(l=x.N)!=null?l:H(k);if(e!=null){u.setAttribute("nonce",e)}f.insertBefore(u,c?c.nextSibling:f.firstChild)}}p=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{x.jmp((()=>d=setTimeout(et,30)))}}n()};var dt=(e,t)=>t;var pt=e=>x.N=e;export{dt as F,C as H,Y as a,vt as b,ae as c,U as d,oe as g,_ as h,O as p,i as r,pt as s};
3
- //# sourceMappingURL=p-a1e95a5f.js.map
1
+ const e="core";const t={allRenderFn:true,appendChildSlotFix:true,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:true,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:true,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:true,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:true,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:false,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:true,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var l=Object.defineProperty;var n=(e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:true})};var r=new WeakMap;var s=e=>r.get(e);var i=(e,t)=>r.set(t.t=e,t);var o=(e,t)=>{const l={l:0,$hostElement$:e,i:t,o:new Map};{l.u=new Promise((e=>l.v=e))}{l.p=new Promise((e=>l.h=e));e["s-p"]=[];e["s-rc"]=[]}return r.set(e,l)};var a=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var c=new Map;var u=(e,t,l)=>{const n=e.m.replace(/-/g,"_");const r=e.$;if(!r){return void 0}const s=c.get(r);if(s){return s[n]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${""}`).then((e=>{{c.set(r,e)}return e[n]}),f)};var v=new Map;var d="r";var p="o";var h="s";var m="t";var $="s-id";var y="sty-id";var b="c-id";var w="slot-fb{display:contents}slot-fb[hidden]{display:none}";var g="http://www.w3.org/1999/xlink";var S=typeof window!=="undefined"?window:{};var k=S.document||{head:{}};var C=S.HTMLElement||class{};var x={l:0,S:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,l,n)=>e.addEventListener(t,l,n),rel:(e,t,l,n)=>e.removeEventListener(t,l,n),ce:(e,t)=>new CustomEvent(e,t)};var R=t.shadowDom;var j=e=>Promise.resolve(e);var O=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var T=false;var D=[];var L=[];var E=(e,t)=>l=>{e.push(l);if(!T){T=true;if(t&&x.l&4){M(F)}else{x.raf(F)}}};var A=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var F=()=>{A(D);{A(L);if(T=D.length>0){x.raf(F)}}};var M=e=>j().then(e);var P=E(L,true);var U=e=>{const t=new URL(e,x.S);return t.origin!==S.location.origin?t.href:t.pathname};var N={};var W=e=>e!=null;var I=e=>{e=typeof e;return e==="object"||e==="function"};function H(e){var t,l,n;return(n=(l=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:l.getAttribute("content"))!=null?n:void 0}var z={};n(z,{err:()=>Q,map:()=>q,ok:()=>B,unwrap:()=>G,unwrapErr:()=>K});var B=e=>({isOk:true,isErr:false,value:e});var Q=e=>({isOk:false,isErr:true,value:e});function q(e,t){if(e.isOk){const l=t(e.value);if(l instanceof Promise){return l.then((e=>B(e)))}else{return B(l)}}if(e.isErr){const t=e.value;return Q(t)}throw"should never get here"}var G=e=>{if(e.isOk){return e.value}else{throw e.value}};var K=e=>{if(e.isErr){return e.value}else{throw e.value}};var V=(e,t="")=>{{return()=>{}}};var X=(e,t)=>{{return()=>{}}};var _=(e,t,...l)=>{let n=null;let r=null;let s=null;let i=false;let o=false;const a=[];const f=t=>{for(let l=0;l<t.length;l++){n=t[l];if(Array.isArray(n)){f(n)}else if(n!=null&&typeof n!=="boolean"){if(i=typeof e!=="function"&&!I(n)){n=String(n)}if(i&&o){a[a.length-1].k+=n}else{a.push(i?J(null,n):n)}o=i}}};f(l);if(t){if(t.key){r=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,a,ee)}const c=J(e,null);c.C=t;if(a.length>0){c.R=a}{c.j=r}{c.O=s}return c};var J=(e,t)=>{const l={l:0,T:e,k:t,D:null,R:null};{l.C=null}{l.j=null}{l.O=null}return l};var Y={};var Z=e=>e&&e.T===Y;var ee={forEach:(e,t)=>e.map(te).forEach(t),map:(e,t)=>e.map(te).map(t).map(le)};var te=e=>({vattrs:e.C,vchildren:e.R,vkey:e.j,vname:e.O,vtag:e.T,vtext:e.k});var le=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return _(e.vtag,t,...e.vchildren||[])}const t=J(e.vtag,e.vtext);t.C=e.vattrs;t.R=e.vchildren;t.j=e.vkey;t.O=e.vname;return t};var ne=(e,t,l,n)=>{const r=V("hydrateClient",t);const s=e.shadowRoot;const i=[];const o=[];const a=null;const f=n.L=J(t,null);if(!x.A){se(k.body,x.A=new Map)}e[$]=l;e.removeAttribute($);re(f,i,o,a,e,e,l);i.map((e=>{const l=e.F+"."+e.M;const n=x.A.get(l);const r=e.D;if(n&&R&&n["s-en"]===""){n.parentNode.insertBefore(r,n.nextSibling)}if(!s){r["s-hn"]=t;if(n){r["s-ol"]=n;r["s-ol"]["s-nr"]=r}}x.A.delete(l)}));r()};var re=(e,t,l,n,r,s,i)=>{let o;let a;let f;let c;if(s.nodeType===1){o=s.getAttribute(b);if(o){a=o.split(".");if(a[0]===i||a[0]==="0"){f={l:0,F:a[0],M:a[1],P:a[2],U:a[3],T:s.tagName.toLowerCase(),D:s,C:null,R:null,j:null,O:null,k:null};t.push(f);s.removeAttribute(b);if(!e.R){e.R=[]}e.R[f.U]=f;e=f;if(n&&f.P==="0"){n[f.U]=f.D}}}if(s.shadowRoot){for(c=s.shadowRoot.childNodes.length-1;c>=0;c--){re(e,t,l,n,r,s.shadowRoot.childNodes[c],i)}}for(c=s.childNodes.length-1;c>=0;c--){re(e,t,l,n,r,s.childNodes[c],i)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===i||a[1]==="0"){o=a[0];f={l:0,F:a[1],M:a[2],P:a[3],U:a[4],D:s,C:null,R:null,j:null,O:null,T:null,k:null};if(o===m){f.D=s.nextSibling;if(f.D&&f.D.nodeType===3){f.k=f.D.textContent;t.push(f);s.remove();if(!e.R){e.R=[]}e.R[f.U]=f;if(n&&f.P==="0"){n[f.U]=f.D}}}else if(f.F===i){if(o===h){f.T="slot";if(a[5]){s["s-sn"]=f.O=a[5]}else{s["s-sn"]=""}s["s-sr"]=true;l.push(f);if(!e.R){e.R=[]}e.R[f.U]=f}else if(o===d){{r["s-cr"]=s;s["s-cn"]=true}}}}}else if(e&&e.T==="style"){const t=J(null,s.textContent);t.D=s;t.U="0";e.R=[t]}};var se=(e,t)=>{if(e.nodeType===1){let l=0;if(e.shadowRoot){for(;l<e.shadowRoot.childNodes.length;l++){se(e.shadowRoot.childNodes[l],t)}}for(l=0;l<e.childNodes.length;l++){se(e.childNodes[l],t)}}else if(e.nodeType===8){const l=e.nodeValue.split(".");if(l[0]===p){t.set(l[1]+"."+l[2],e);e.nodeValue="";e["s-en"]=l[3]}}};var ie=(e,t)=>{if(e!=null&&!I(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var oe=e=>s(e).$hostElement$;var ae=(e,t,l)=>{const n=oe(e);return{emit:e=>fe(n,t,{bubbles:!!(l&4),composed:!!(l&2),cancelable:!!(l&1),detail:e})}};var fe=(e,t,l)=>{const n=x.ce(t,l);e.dispatchEvent(n);return n};var ce=new WeakMap;var ue=(e,t,l)=>{let n=v.get(e);if(O&&l){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}v.set(e,n)};var ve=(e,t,l)=>{var n;const r=pe(t);const s=v.get(r);e=e.nodeType===11?e:k;if(s){if(typeof s==="string"){e=e.head||e;let l=ce.get(e);let i;if(!l){ce.set(e,l=new Set)}if(!l.has(r)){if(e.host&&(i=e.querySelector(`[${y}="${r}"]`))){i.innerHTML=s}else{i=k.createElement("style");i.innerHTML=s;const l=(n=x.N)!=null?n:H(k);if(l!=null){i.setAttribute("nonce",l)}const r=!(t.l&1)||t.l&1&&e.nodeName!=="HEAD";if(r){e.insertBefore(i,e.querySelector("link"))}}if(t.l&4){i.innerHTML+=w}if(l){l.add(r)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return r};var de=e=>{const t=e.i;const l=e.$hostElement$;const n=V("attachStyles",t.m);ve(l.getRootNode(),t);n()};var pe=(e,t)=>"sc-"+e.m;var he=(e,t,l,n,r,s)=>{if(l!==n){let i=a(e,t);let o=t.toLowerCase();if(t==="class"){const t=e.classList;const r=$e(l);const s=$e(n);t.remove(...r.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!r.includes(e))))}else if(t==="style"){{for(const t in l){if(!n||n[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in n){if(!l||n[t]!==l[t]){if(t.includes("-")){e.style.setProperty(t,n[t])}else{e.style[t]=n[t]}}}}else if(t==="key");else if(t==="ref"){if(n){n(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(S,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(l||n){const r=t.endsWith(ye);t=t.replace(be,"");if(l){x.rel(e,t,l,r)}if(n){x.ael(e,t,n,r)}}}else{const a=I(n);if((i||a&&n!==null)&&!r){try{if(!e.tagName.includes("-")){const r=n==null?"":n;if(t==="list"){i=false}else if(l==null||e[t]!=r){e[t]=r}}else{e[t]=n}}catch(e){}}let f=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;f=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(f){e.removeAttributeNS(g,t)}else{e.removeAttribute(t)}}}else if((!i||s&4||r)&&!a){n=n===true?"":n;if(f){e.setAttributeNS(g,t,n)}else{e.setAttribute(t,n)}}}}};var me=/\s/;var $e=e=>!e?[]:e.split(me);var ye="Capture";var be=new RegExp(ye+"$");var we=(e,t,l)=>{const n=t.D.nodeType===11&&t.D.host?t.D.host:t.D;const r=e&&e.C||N;const s=t.C||N;{for(const e of ge(Object.keys(r))){if(!(e in s)){he(n,e,r[e],void 0,l,t.l)}}}for(const e of ge(Object.keys(s))){he(n,e,r[e],s[e],l,t.l)}};function ge(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Se;var ke;var Ce;var xe=false;var Re=false;var je=false;var Oe=false;var Te=(e,l,n,r)=>{var s;const i=l.R[n];let o=0;let a;let f;let c;if(!xe){je=true;if(i.T==="slot"){i.l|=i.R?2:1}}if(i.k!==null){a=i.D=k.createTextNode(i.k)}else if(i.l&1){a=i.D=k.createTextNode("")}else{a=i.D=k.createElement(!xe&&t.slotRelocation&&i.l&2?"slot-fb":i.T);{we(null,i,Oe)}const l=a.getRootNode();const n=!l.querySelector("body");if(!n&&t.scoped&&W(Se)&&a["s-si"]!==Se){a.classList.add(a["s-si"]=Se)}if(i.R){for(o=0;o<i.R.length;++o){f=Te(e,i,o);if(f){a.appendChild(f)}}}}a["s-hn"]=Ce;{if(i.l&(2|1)){a["s-sr"]=true;a["s-cr"]=ke;a["s-sn"]=i.O||"";a["s-rf"]=(s=i.C)==null?void 0:s.ref;c=e&&e.R&&e.R[n];if(c&&c.T===i.T&&e.D){{De(e.D)}}}}return a};var De=e=>{x.l|=1;const t=e.closest(Ce.toLowerCase());if(t!=null){const l=Array.from(t.childNodes).find((e=>e["s-cr"]));const n=Array.from(e.childNodes);for(const e of l?n.reverse():n){if(e["s-sh"]!=null){Qe(t,e,l!=null?l:null);e["s-sh"]=void 0;je=true}}}x.l&=~1};var Le=(e,l)=>{x.l|=1;const n=Array.from(e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===Ce){n.push(t)}}}for(let e=n.length-1;e>=0;e--){const t=n[e];if(t["s-hn"]!==Ce&&t["s-ol"]){Qe(Ue(t),t,Pe(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;je=true}if(l){Le(t,l)}}x.l&=~1};var Ee=(e,t,l,n,r,s)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let o;for(;r<=s;++r){if(n[r]){o=Te(null,l,r);if(o){n[r].D=o;Qe(i,o,Pe(t))}}}};var Ae=(e,t,l)=>{for(let n=t;n<=l;++n){const t=e[n];if(t){const e=t.D;Be(t);if(e){{Re=true;if(e["s-ol"]){e["s-ol"].remove()}else{Le(e,true)}}e.remove()}}}};var Fe=(e,t,l,n,r=false)=>{let s=0;let i=0;let o=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let v=n.length-1;let d=n[0];let p=n[v];let h;let m;while(s<=f&&i<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--f]}else if(d==null){d=n[++i]}else if(p==null){p=n[--v]}else if(Me(c,d,r)){Ne(c,d,r);c=t[++s];d=n[++i]}else if(Me(u,p,r)){Ne(u,p,r);u=t[--f];p=n[--v]}else if(Me(c,p,r)){if(c.T==="slot"||p.T==="slot"){Le(c.D.parentNode,false)}Ne(c,p,r);Qe(e,c.D,u.D.nextSibling);c=t[++s];p=n[--v]}else if(Me(u,d,r)){if(c.T==="slot"||p.T==="slot"){Le(u.D.parentNode,false)}Ne(u,d,r);Qe(e,u.D,c.D);u=t[--f];d=n[++i]}else{o=-1;{for(a=s;a<=f;++a){if(t[a]&&t[a].j!==null&&t[a].j===d.j){o=a;break}}}if(o>=0){m=t[o];if(m.T!==d.T){h=Te(t&&t[i],l,o)}else{Ne(m,d,r);t[o]=void 0;h=m.D}d=n[++i]}else{h=Te(t&&t[i],l,i);d=n[++i]}if(h){{Qe(Ue(c.D),h,Pe(c.D))}}}}if(s>f){Ee(e,n[v+1]==null?null:n[v+1].D,l,n,i,v)}else if(i>v){Ae(t,s,f)}};var Me=(e,t,l=false)=>{if(e.T===t.T){if(e.T==="slot"){if("M"in e&&l&&e.D.nodeType!==8){return false}return e.O===t.O}if(!l){return e.j===t.j}return true}return false};var Pe=e=>e&&e["s-ol"]||e;var Ue=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;var Ne=(e,l,n=false)=>{const r=l.D=e.D;const s=e.R;const i=l.R;const o=l.T;const a=l.k;let f;if(a===null){{if(o==="slot"&&!xe){if(e.O!==l.O){l.D["s-sn"]=l.O||"";De(l.D.parentElement)}}else{we(e,l,Oe)}}if(s!==null&&i!==null){Fe(r,s,l,i,n)}else if(i!==null){if(e.k!==null){r.textContent=""}Ee(r,null,l,i,0,i.length-1)}else if(!n&&t.updatable&&s!==null){Ae(s,0,s.length-1)}}else if(f=r["s-cr"]){f.parentNode.textContent=a}else if(e.k!==a){r.data=a}};var We=e=>{const t=e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const l=e["s-sn"];e.hidden=false;for(const n of t){if(n!==e){if(n["s-hn"]!==e["s-hn"]||l!==""){if(n.nodeType===1&&(l===n.getAttribute("slot")||l===n["s-sn"])||n.nodeType===3&&l===n["s-sn"]){e.hidden=true;break}}else{if(n.nodeType===1||n.nodeType===3&&n.textContent.trim()!==""){e.hidden=true;break}}}}}We(e)}}};var Ie=[];var He=e=>{let t;let l;let n;for(const r of e.childNodes){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){l=t.parentNode.childNodes;const e=r["s-sn"];for(n=l.length-1;n>=0;n--){t=l[n];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==r["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==r["s-hn"])){if(ze(t,e)){let l=Ie.find((e=>e.W===t));Re=true;t["s-sn"]=t["s-sn"]||e;if(l){l.W["s-sh"]=r["s-hn"];l.I=r}else{t["s-sh"]=r["s-hn"];Ie.push({I:r,W:t})}if(t["s-sr"]){Ie.map((e=>{if(ze(e.W,t["s-sn"])){l=Ie.find((e=>e.W===t));if(l&&!e.I){e.I=l.I}}}))}}else if(!Ie.some((e=>e.W===t))){Ie.push({W:t})}}}}if(r.nodeType===1){He(r)}}};var ze=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var Be=e=>{{e.C&&e.C.ref&&e.C.ref(null);e.R&&e.R.map(Be)}};var Qe=(e,t,l)=>{const n=e==null?void 0:e.insertBefore(t,l);return n};var qe=(e,t,l=false)=>{var n,r,s,i;const o=e.$hostElement$;const a=e.i;const f=e.L||J(null,null);const c=Z(t)?t:_(null,null,t);Ce=o.tagName;if(a.H){c.C=c.C||{};a.H.map((([e,t])=>c.C[t]=o[e]))}if(l&&c.C){for(const e of Object.keys(c.C)){if(o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){c.C[e]=o[e]}}}c.T=null;c.l|=4;e.L=c;c.D=f.D=o;xe=R;{ke=o["s-cr"];Re=false}Ne(f,c,l);{x.l|=1;if(je){He(c.D);for(const e of Ie){const t=e.W;if(!t["s-ol"]){const e=k.createTextNode("");e["s-nr"]=t;Qe(t.parentNode,t["s-ol"]=e,t)}}for(const e of Ie){const t=e.W;const o=e.I;if(o){const e=o.parentNode;let l=o.nextSibling;if(l&&l.nodeType===1){let s=(n=t["s-ol"])==null?void 0:n.previousSibling;while(s){let n=(r=s["s-nr"])!=null?r:null;if(n&&n["s-sn"]===t["s-sn"]&&e===n.parentNode){n=n.nextSibling;while(n===t||(n==null?void 0:n["s-sr"])){n=n==null?void 0:n.nextSibling}if(!n||!n["s-nr"]){l=n;break}}s=s.previousSibling}}if(!l&&e!==t.parentNode||t.nextSibling!==l){if(t!==l){Qe(e,t,l);if(t.nodeType===1){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](t)}else{if(t.nodeType===1){if(l){t["s-ih"]=(i=t.hidden)!=null?i:false}t.hidden=true}}}}if(Re){We(c.D)}x.l&=~1;Ie.length=0}ke=void 0};var Ge=(e,t)=>{if(t&&!e.B&&t["s-p"]){t["s-p"].push(new Promise((t=>e.B=t)))}};var Ke=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}Ge(e,e.q);const l=()=>Ve(e,t);return P(l)};var Ve=(e,t)=>{const l=e.$hostElement$;const n=V("scheduleUpdate",e.i.m);const r=e.t;if(!r){throw new Error(`Can't render component <${l.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{s=tt(r,"componentWillLoad")}}else{{s=tt(r,"componentWillUpdate")}}{s=Xe(s,(()=>tt(r,"componentWillRender")))}n();return Xe(s,(()=>Je(e,r,t)))};var Xe=(e,t)=>_e(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var _e=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Je=async(e,t,l)=>{var n;const r=e.$hostElement$;const s=V("update",e.i.m);const i=r["s-rc"];if(l){de(e)}const o=V("render",e.i.m);{Ye(e,t,r,l)}if(i){i.map((e=>e()));r["s-rc"]=void 0}o();s();{const t=(n=r["s-p"])!=null?n:[];const l=()=>Ze(e);if(t.length===0){l()}else{Promise.all(t).then(l);e.l|=4;t.length=0}}};var Ye=(e,t,l,n)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{qe(e,t,n)}}}}catch(t){f(t,e.$hostElement$)}return null};var Ze=e=>{const t=e.i.m;const l=e.$hostElement$;const n=V("postUpdate",t);const r=e.t;const s=e.q;{tt(r,"componentDidRender")}if(!(e.l&64)){e.l|=64;{lt(l)}{tt(r,"componentDidLoad")}n();{e.h(l);if(!s){et()}}}else{{tt(r,"componentDidUpdate")}n()}{e.v(l)}{if(e.B){e.B();e.B=void 0}if(e.l&512){M((()=>Ke(e,false)))}e.l&=~(4|512)}};var et=t=>{{lt(k.documentElement)}M((()=>fe(S,"appload",{detail:{namespace:e}})))};var tt=(e,t,l)=>{if(e&&e[t]){try{return e[t](l)}catch(e){f(e)}}return void 0};var lt=e=>{var l;return e.classList.add((l=t.hydratedSelectorName)!=null?l:"hydrated")};var nt=(e,t)=>s(e).o.get(t);var rt=(e,t,l,n)=>{const r=s(e);if(!r){throw new Error(`Couldn't find host element for "${n.m}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const i=r.$hostElement$;const o=r.o.get(t);const a=r.l;const c=r.t;l=ie(l,n.G[t][0]);const u=Number.isNaN(o)&&Number.isNaN(l);const v=l!==o&&!u;if((!(a&8)||o===void 0)&&v){r.o.set(t,l);if(c){if(n.K&&a&128){const e=n.K[t];if(e){e.map((e=>{try{c[e](l,o,t)}catch(e){f(e,i)}}))}}if((a&(2|16))===2){if(c.componentShouldUpdate){if(c.componentShouldUpdate(l,o,t)===false){return}}Ke(r,false)}}}};var st=(e,t,l)=>{var n,r;const i=e.prototype;if(t.G||(t.K||e.watchers)){if(e.watchers&&!t.K){t.K=e.watchers}const o=Object.entries((n=t.G)!=null?n:{});o.map((([e,[n]])=>{if(n&31||l&2&&n&32){Object.defineProperty(i,e,{get(){return nt(this,e)},set(l){rt(this,e,l,t)},configurable:true,enumerable:true})}else if(l&1&&n&64){Object.defineProperty(i,e,{value(...t){var l;const n=s(this);return(l=n==null?void 0:n.u)==null?void 0:l.then((()=>{var l;return(l=n.t)==null?void 0:l[e](...t)}))}})}}));if(l&1){const l=new Map;i.attributeChangedCallback=function(e,n,r){x.jmp((()=>{var o;const a=l.get(e);if(this.hasOwnProperty(a)){r=this[a];delete this[a]}else if(i.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==r){return}else if(a==null){const l=s(this);const i=l==null?void 0:l.l;if(i&&!(i&8)&&i&128&&r!==n){const s=l.t;const i=(o=t.K)==null?void 0:o[e];i==null?void 0:i.forEach((t=>{if(s[t]!=null){s[t].call(s,r,n,e)}}))}return}this[a]=r===null&&typeof this[a]==="boolean"?false:r}))};e.observedAttributes=Array.from(new Set([...Object.keys((r=t.K)!=null?r:{}),...o.filter((([e,t])=>t[0]&15)).map((([e,n])=>{var r;const s=n[1]||e;l.set(s,e);if(n[0]&512){(r=t.H)==null?void 0:r.push([e,s])}return s}))]))}}return e};var it=async(e,t,l,n)=>{let r;if((t.l&32)===0){t.l|=32;const n=l.$;if(n){const e=u(l);if(e&&"then"in e){const t=X();r=await e;t()}else{r=e}if(!r){throw new Error(`Constructor for "${l.m}#${t.V}" was not found`)}if(!r.isProxied){{l.K=r.watchers}st(r,l,2);r.isProxied=true}const n=V("createInstance",l.m);{t.l|=8}try{new r(t)}catch(e){f(e)}{t.l&=~8}{t.l|=128}n();ot(t.t)}else{r=e.constructor;const l=e.localName;customElements.whenDefined(l).then((()=>t.l|=128))}if(r&&r.style){let e;if(typeof r.style==="string"){e=r.style}const t=pe(l);if(!v.has(t)){const n=V("registerStyles",l.m);ue(t,e,!!(l.l&1));n()}}}const s=t.q;const i=()=>Ke(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var ot=e=>{{tt(e,"connectedCallback")}};var at=e=>{if((x.l&1)===0){const t=s(e);const l=t.i;const n=V("connectedCallback",l.m);if(!(t.l&1)){t.l|=1;let n;{n=e.getAttribute($);if(n){ne(e,l.m,n,t)}}if(!n){if(l.l&(4|8)){ft(e)}}{let l=e;while(l=l.parentNode||l.host){if(l.nodeType===1&&l.hasAttribute("s-id")&&l["s-p"]||l["s-p"]){Ge(t,t.q=l);break}}}if(l.G){Object.entries(l.G).map((([t,[l]])=>{if(l&31&&e.hasOwnProperty(t)){const l=e[t];delete e[t];e[t]=l}}))}{it(e,t,l)}}else{if(t==null?void 0:t.t){ot(t.t)}else if(t==null?void 0:t.p){t.p.then((()=>ot(t.t)))}}n()}};var ft=e=>{const t=e["s-cr"]=k.createComment("");t["s-cn"]=true;Qe(e,t,e.firstChild)};var ct=e=>{{tt(e,"disconnectedCallback")}};var ut=async e=>{if((x.l&1)===0){const t=s(e);if(t==null?void 0:t.t){ct(t.t)}else if(t==null?void 0:t.p){t.p.then((()=>ct(t.t)))}}};var vt=(e,t={})=>{var l;const n=V();const r=[];const i=t.exclude||[];const a=S.customElements;const f=k.head;const c=f.querySelector("meta[charset]");const u=k.createElement("style");const v=[];let d;let p=true;Object.assign(x,t);x.S=new URL(t.resourcesUrl||"./",k.baseURI).href;{x.l|=2}let h=false;e.map((e=>{e[1].map((t=>{var l;const n={l:t[0],m:t[1],G:t[2],X:t[3]};if(n.l&4){h=true}{n.G=t[2]}{n.H=[]}{n.K=(l=t[4])!=null?l:{}}const f=n.m;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;o(e,n)}connectedCallback(){s(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(p){v.push(this)}else{x.jmp((()=>at(this)))}}disconnectedCallback(){x.jmp((()=>ut(this)))}componentOnReady(){return s(this).p}};n.$=e[0];if(!i.includes(f)&&!a.get(f)){r.push(f);a.define(f,st(c,n,1))}}))}));if(r.length>0){if(h){u.textContent+=w}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(l=x.N)!=null?l:H(k);if(e!=null){u.setAttribute("nonce",e)}f.insertBefore(u,c?c.nextSibling:f.firstChild)}}p=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{x.jmp((()=>d=setTimeout(et,30)))}}n()};var dt=(e,t)=>t;var pt=e=>x.N=e;export{dt as F,C as H,Y as a,vt as b,ae as c,U as d,oe as g,_ as h,j as p,i as r,pt as s};
3
+ //# sourceMappingURL=p-8506b611.js.map