@gov-design-system-ce/components 0.0.59 → 0.0.61

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 (226) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/gov-app.cjs.entry.js +78 -0
  3. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  5. package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +15 -15
  7. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
  9. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  10. package/dist/cjs/gov-form-control.cjs.entry.js +0 -17
  11. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
  13. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  14. package/dist/cjs/gov-form-input.cjs.entry.js +1 -1
  15. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
  16. package/dist/cjs/gov-form-multi-select.cjs.entry.js +29 -24
  17. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  18. package/dist/cjs/gov-form-radio.cjs.entry.js +1 -1
  19. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-form-select.cjs.entry.js +18 -17
  21. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
  23. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-icon.cjs.entry.js +2 -2
  25. package/dist/cjs/gov-icon.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-infobar.cjs.entry.js +1 -1
  27. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-pagination.cjs.entry.js +1 -1
  29. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
  31. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-toast.cjs.entry.js +4 -1
  33. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-wizard-item.cjs.entry.js +1 -1
  35. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/collection/components/gov-button/dropdown/gov-dropdown.css +0 -2
  38. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +23 -22
  39. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  40. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +4 -3
  41. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  42. package/dist/collection/components/gov-form/control/gov-form-control.js +0 -17
  43. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  44. package/dist/collection/components/gov-form/file/gov-form-file.js +3 -2
  45. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  46. package/dist/collection/components/gov-form/input/gov-form-input.js +3 -2
  47. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  48. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +48 -3
  49. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +86 -25
  50. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  51. package/dist/collection/components/gov-form/radio/gov-form-radio.js +3 -2
  52. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  53. package/dist/collection/components/gov-form/select/gov-form-select.css +48 -0
  54. package/dist/collection/components/gov-form/select/gov-form-select.js +38 -19
  55. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  56. package/dist/collection/components/gov-form/switch/gov-form-switch.js +4 -3
  57. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  58. package/dist/collection/components/gov-icon/gov-icon.css +2 -0
  59. package/dist/collection/components/gov-infobar/default/gov-infobar.css +1 -1
  60. package/dist/collection/components/gov-pagination/gov-pagination.css +1 -1
  61. package/dist/collection/components/gov-stepper/gov-stepper-item.css +1 -0
  62. package/dist/collection/components/gov-toast/gov-toast.js +4 -1
  63. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  64. package/dist/collection/components/gov-wizard/gov-wizard-item.css +1 -3
  65. package/dist/collection/data/color-definitions.js +307 -0
  66. package/dist/collection/data/font-definitions.js +94 -0
  67. package/dist/collection/pages/Forms.js +75 -0
  68. package/dist/collection/pages/Forms.js.map +1 -1
  69. package/dist/collection/pages/Stepper.js +3 -0
  70. package/dist/collection/pages/Stepper.js.map +1 -1
  71. package/dist/components/gov-accordion-item.js +1 -1
  72. package/dist/components/gov-app.js +1 -1
  73. package/dist/components/gov-app.js.map +1 -1
  74. package/dist/components/gov-attachments-item.js +1 -1
  75. package/dist/components/gov-button.js +1 -1
  76. package/dist/components/gov-card.js +1 -1
  77. package/dist/components/gov-dropdown.js +1 -1
  78. package/dist/components/gov-dropdown.js.map +1 -1
  79. package/dist/components/gov-form-autocomplete.js +1 -1
  80. package/dist/components/gov-form-checkbox.js +1 -1
  81. package/dist/components/gov-form-checkbox.js.map +1 -1
  82. package/dist/components/gov-form-control.js +1 -1
  83. package/dist/components/gov-form-control.js.map +1 -1
  84. package/dist/components/gov-form-file.js +1 -1
  85. package/dist/components/gov-form-file.js.map +1 -1
  86. package/dist/components/gov-form-input.js +1 -1
  87. package/dist/components/gov-form-multi-select.js +1 -1
  88. package/dist/components/gov-form-multi-select.js.map +1 -1
  89. package/dist/components/gov-form-radio.js +1 -1
  90. package/dist/components/gov-form-radio.js.map +1 -1
  91. package/dist/components/gov-form-select.js +1 -1
  92. package/dist/components/gov-form-switch.js +1 -1
  93. package/dist/components/gov-form-switch.js.map +1 -1
  94. package/dist/components/gov-icon.js +1 -1
  95. package/dist/components/gov-infobar.js +1 -1
  96. package/dist/components/gov-infobar.js.map +1 -1
  97. package/dist/components/gov-loading.js +1 -1
  98. package/dist/components/gov-modal.js +1 -1
  99. package/dist/components/gov-pagination.js +1 -1
  100. package/dist/components/gov-pagination.js.map +1 -1
  101. package/dist/components/gov-prompt.js +1 -1
  102. package/dist/components/gov-side-nav-item.js +1 -1
  103. package/dist/components/gov-stepper-item.js +1 -1
  104. package/dist/components/gov-stepper-item.js.map +1 -1
  105. package/dist/components/gov-tabs.js +1 -1
  106. package/dist/components/gov-tile.js +1 -1
  107. package/dist/components/gov-toast.js +1 -1
  108. package/dist/components/gov-toast.js.map +1 -1
  109. package/dist/components/gov-tooltip-content.js +1 -1
  110. package/dist/components/gov-wizard-item.js +1 -1
  111. package/dist/components/gov-wizard-item.js.map +1 -1
  112. package/dist/components/p-522dd298.js +2 -0
  113. package/dist/components/{p-afb7fc88.js.map → p-522dd298.js.map} +1 -1
  114. package/dist/components/{p-5d8154f9.js → p-94542a50.js} +2 -2
  115. package/dist/components/p-94542a50.js.map +1 -0
  116. package/dist/components/{p-ae179d8a.js → p-9ba6e755.js} +2 -2
  117. package/dist/components/{p-e24896b9.js → p-b3cb7945.js} +2 -2
  118. package/dist/components/p-bc5d5903.js +2 -0
  119. package/dist/components/p-bc5d5903.js.map +1 -0
  120. package/dist/components/{p-30af8d08.js → p-f72ecbef.js} +2 -2
  121. package/dist/components/p-f72ecbef.js.map +1 -0
  122. package/dist/core/core.css +1 -1
  123. package/dist/core/core.esm.js +1 -1
  124. package/dist/core/core.esm.js.map +1 -1
  125. package/dist/core/{p-f9dfaff1.entry.js → p-0553eb92.entry.js} +2 -2
  126. package/dist/core/{p-f9dfaff1.entry.js.map → p-0553eb92.entry.js.map} +1 -1
  127. package/dist/core/{p-cb37644f.entry.js → p-19a54ee9.entry.js} +2 -2
  128. package/dist/core/p-19a54ee9.entry.js.map +1 -0
  129. package/dist/core/p-19b897c0.entry.js +2 -0
  130. package/dist/core/p-19b897c0.entry.js.map +1 -0
  131. package/dist/core/{p-73fb7ac7.entry.js → p-1c40fdd5.entry.js} +2 -2
  132. package/dist/core/p-1c40fdd5.entry.js.map +1 -0
  133. package/dist/core/{p-fea58abc.entry.js → p-28f39f69.entry.js} +2 -2
  134. package/dist/core/p-28f39f69.entry.js.map +1 -0
  135. package/dist/core/{p-2c0ac7ab.entry.js → p-35c1c12c.entry.js} +2 -2
  136. package/dist/core/p-35c1c12c.entry.js.map +1 -0
  137. package/dist/core/p-80f5140b.entry.js +2 -0
  138. package/dist/core/{p-2944bf77.entry.js.map → p-80f5140b.entry.js.map} +1 -1
  139. package/dist/core/p-84f6b11a.entry.js +2 -0
  140. package/dist/core/{p-0c769f1a.entry.js.map → p-84f6b11a.entry.js.map} +1 -1
  141. package/dist/core/p-a7719b55.entry.js +2 -0
  142. package/dist/core/p-a7719b55.entry.js.map +1 -0
  143. package/dist/core/{p-ce262a72.entry.js → p-acd6a9f4.entry.js} +2 -2
  144. package/dist/core/p-acd6a9f4.entry.js.map +1 -0
  145. package/dist/core/p-bc6f1479.entry.js +2 -0
  146. package/dist/core/p-bc6f1479.entry.js.map +1 -0
  147. package/dist/core/p-c5d3efc2.entry.js +2 -0
  148. package/dist/core/{p-f8252fea.entry.js.map → p-c5d3efc2.entry.js.map} +1 -1
  149. package/dist/core/{p-307d4c56.entry.js → p-d84b290e.entry.js} +2 -2
  150. package/dist/core/{p-307d4c56.entry.js.map → p-d84b290e.entry.js.map} +1 -1
  151. package/dist/core/{p-49729bd4.entry.js → p-e2d6efaf.entry.js} +2 -2
  152. package/dist/core/p-e2d6efaf.entry.js.map +1 -0
  153. package/dist/core/{p-ff97a688.entry.js → p-e5227e40.entry.js} +2 -2
  154. package/dist/core/{p-ff97a688.entry.js.map → p-e5227e40.entry.js.map} +1 -1
  155. package/dist/core/p-f62efc34.entry.js +2 -0
  156. package/dist/core/p-f62efc34.entry.js.map +1 -0
  157. package/dist/core/{p-8667d5df.entry.js → p-fab698a7.entry.js} +2 -2
  158. package/dist/core/p-fab698a7.entry.js.map +1 -0
  159. package/dist/esm/core.js +1 -1
  160. package/dist/esm/gov-app.entry.js +78 -0
  161. package/dist/esm/gov-app.entry.js.map +1 -1
  162. package/dist/esm/gov-dropdown.entry.js +1 -1
  163. package/dist/esm/gov-dropdown.entry.js.map +1 -1
  164. package/dist/esm/gov-form-autocomplete.entry.js +15 -15
  165. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  166. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  167. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  168. package/dist/esm/gov-form-control.entry.js +0 -17
  169. package/dist/esm/gov-form-control.entry.js.map +1 -1
  170. package/dist/esm/gov-form-file.entry.js +1 -1
  171. package/dist/esm/gov-form-file.entry.js.map +1 -1
  172. package/dist/esm/gov-form-input.entry.js +1 -1
  173. package/dist/esm/gov-form-input.entry.js.map +1 -1
  174. package/dist/esm/gov-form-multi-select.entry.js +29 -24
  175. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  176. package/dist/esm/gov-form-radio.entry.js +1 -1
  177. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  178. package/dist/esm/gov-form-select.entry.js +18 -17
  179. package/dist/esm/gov-form-select.entry.js.map +1 -1
  180. package/dist/esm/gov-form-switch.entry.js +2 -2
  181. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  182. package/dist/esm/gov-icon.entry.js +2 -2
  183. package/dist/esm/gov-icon.entry.js.map +1 -1
  184. package/dist/esm/gov-infobar.entry.js +1 -1
  185. package/dist/esm/gov-infobar.entry.js.map +1 -1
  186. package/dist/esm/gov-pagination.entry.js +1 -1
  187. package/dist/esm/gov-pagination.entry.js.map +1 -1
  188. package/dist/esm/gov-stepper-item.entry.js +1 -1
  189. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  190. package/dist/esm/gov-toast.entry.js +4 -1
  191. package/dist/esm/gov-toast.entry.js.map +1 -1
  192. package/dist/esm/gov-wizard-item.entry.js +1 -1
  193. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  194. package/dist/esm/loader.js +1 -1
  195. package/dist/hydrate/index.js +159 -85
  196. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +3 -3
  197. package/dist/types/components/gov-form/control/gov-form-control.d.ts +0 -1
  198. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +15 -3
  199. package/dist/types/components/gov-form/select/gov-form-select.d.ts +7 -3
  200. package/dist/types/components.d.ts +32 -0
  201. package/package.json +2 -2
  202. package/dist/components/p-30af8d08.js.map +0 -1
  203. package/dist/components/p-5d8154f9.js.map +0 -1
  204. package/dist/components/p-afb7fc88.js +0 -2
  205. package/dist/components/p-b430ee05.js +0 -2
  206. package/dist/components/p-b430ee05.js.map +0 -1
  207. package/dist/core/p-0c769f1a.entry.js +0 -2
  208. package/dist/core/p-243a61bf.entry.js +0 -2
  209. package/dist/core/p-243a61bf.entry.js.map +0 -1
  210. package/dist/core/p-2944bf77.entry.js +0 -2
  211. package/dist/core/p-2c0ac7ab.entry.js.map +0 -1
  212. package/dist/core/p-49729bd4.entry.js.map +0 -1
  213. package/dist/core/p-73fb7ac7.entry.js.map +0 -1
  214. package/dist/core/p-8033916b.entry.js +0 -2
  215. package/dist/core/p-8033916b.entry.js.map +0 -1
  216. package/dist/core/p-8667d5df.entry.js.map +0 -1
  217. package/dist/core/p-ab426e50.entry.js +0 -2
  218. package/dist/core/p-ab426e50.entry.js.map +0 -1
  219. package/dist/core/p-ae04e58f.entry.js +0 -2
  220. package/dist/core/p-ae04e58f.entry.js.map +0 -1
  221. package/dist/core/p-cb37644f.entry.js.map +0 -1
  222. package/dist/core/p-ce262a72.entry.js.map +0 -1
  223. package/dist/core/p-f8252fea.entry.js +0 -2
  224. package/dist/core/p-fea58abc.entry.js.map +0 -1
  225. /package/dist/components/{p-ae179d8a.js.map → p-9ba6e755.js.map} +0 -0
  226. /package/dist/components/{p-e24896b9.js.map → p-b3cb7945.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govFormAutocompleteCss","GovFormAutocomplete","proxyCustomElement","H","constructor","this","templateResolver","item","nameKey","listBoxId","createID","validateVariant","newValue","validateProp","FormAutocompleteVariants","FormAutocompleteClass","root","validateSize","FormAutocompleteSizes","onArrowUp","arrowCounter","moveToView","finally","onArrowDown","list","length","delay","heightOfList","listRef","offsetHeight","selected","querySelector","offsetTop","scrollTo","top","behavior","doSearch","Number","isInteger","minlength","isValueAccepted","processing","searchCallback","value","then","response","catch","componentWillLoad","variant","size","render","h","Host","class","placeholder","name","disabled","readonly","autocomplete","required","invalid","success","role","maxlength","throttle","onInputHandler","bind","onKeyUpHandler","onKeyDownHandler","onFocusHandler","onBlurHandler","wcagAutocomplete","wcagDescribedBy","wcagLabelledBy","wcagOwns","join","wcagExpanded","focused","ref","el","inputRef","slot","id","messageEmpty","empty","loading","messageLoading","map","index","isSelected","innerHTML","tabindex","onClick","e","onSelectHandler","toBoolAttr","stopPropagation","govFocus","emit","originalEvent","component","setTimeout","govBlur","target","govInput","has","govSelect","event","detail","keyCode","preventDefault","setFocus","options","focus","setOptions","Array","isArray","clearValue","setProcessing","status","setSearchCallback","callback","setTemplateResolver"],"sources":["../../../packages/core/src/components/gov-form/autocomplete/gov-form-autocomplete.scss?tag=gov-form-autocomplete","../../../packages/core/src/components/gov-form/autocomplete/gov-form-autocomplete.tsx"],"sourcesContent":["$class: \".gov-form-autocomplete\";\n\n#{$class} {\n\t@include base();\n\t&__list {\n\t\t@include typography($font-size-s);\n\t\t@extend %reset-ul;\n\t\tposition: absolute;\n\t\ttop: 100%;\n\t\tright: 0;\n\t\tleft: 0;\n\t\tz-index: 5;\n\t\tmax-height: rem-calc(225);\n\t\tmargin-top: rem-calc(8);\n\t\tborder: $form-autocomplete-border;\n\t\tborder-radius: $border-radius;\n\t\tbackground: $form-autocomplete-bg;\n\t\toverflow-x: hidden;\n\t\toverflow-y: auto;\n\t\toverscroll-behavior: none;\n\t}\n\t&__list > &__item {\n\t\t@extend %reset-ul-li;\n\t\tpadding: rem-calc(12 8);\n\t\tcursor: pointer;\n\t}\n\t&__item {\n\t\t&--empty,\n\t\t&--loading {\n\t\t\tpadding: rem-calc(12 8);\n\t\t\tcolor: $form-autocomplete-item-disable-color;\n\t\t\t& .gov-icon {\n\t\t\t\theight: 12px;\n\t\t\t}\n\t\t}\n\t}\n\n\t// STATES\n\t&__list:empty {\n\t\tdisplay: none;\n\t}\n\n\t// HOVERS\n\t&__item {\n\t\t@include parameter(\"aria-selected\") {\n\t\t\tbackground: $form-autocomplete-item-select-bg;\n\t\t}\n\t\t@include hover() {\n\t\t\tbackground: $form-autocomplete-item-hover-bg;\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core'\nimport { toBoolAttr } from '../../../helpers/Dom/template'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { Nullable } from '../../../types/interfaces'\nimport { createID } from '../../../utils/string.utils'\nimport { delay, has, throttle } from '../../../utils/utils'\nimport { FormInputEvent } from '../input/gov-form-input.types'\nimport { FormAutocompleteClass, FormAutocompleteSizes, FormAutocompleteVariants, SizesType, VariantType } from './constants'\nimport { FormAutocompleteEvent, GovFormAutocompleteItem } from './gov-form-autocomplete.types'\n\n@Component({\n\ttag: 'gov-form-autocomplete',\n\tstyleUrl: 'gov-form-autocomplete.scss',\n})\nexport class GovFormAutocomplete {\n\tprivate inputRef?: HTMLGovFormInputElement\n\tprivate listRef?: HTMLUListElement\n\tprivate readonly listBoxId: string\n\tprivate searchCallback: (value: string) => Promise<GovFormAutocompleteItem[]>\n\tprivate templateResolver: (item: GovFormAutocompleteItem, selected: boolean) => string = item => item[this.nameKey]\n\n\tconstructor() {\n\t\tthis.listBoxId = createID('GovListBox')\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 = ''\n\t/**\n\t * Custom input identifier.\n\t */\n\t@Prop({ attribute: 'identifier' }) readonly identifier: string\n\t/**\n\t * Style variation of the form input.\n\t */\n\t@Prop() readonly variant?: VariantType\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() readonly success: boolean\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: SizesType = 'm'\n\t/**\n\t * Main key name in the object\n\t */\n\t@Prop() readonly nameKey: string = 'name'\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\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 input component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() 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 * 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 * Minimum length (number of characters) of value\n\t */\n\t@Prop() readonly minlength: number = 3\n\t/**\n\t * Maximum length (number of characters) of value\n\t */\n\t@Prop() readonly maxlength: number\n\t/**\n\t * Custom message for when there is a blank sheet\n\t */\n\t@Prop({ attribute: 'message-empty' }) readonly messageEmpty: string = 'Nebyly nalezeny žádné výsledky'\n\t/**\n\t * Custom message for when data is loaded\n\t */\n\t@Prop({ attribute: 'message-loading' }) readonly messageLoading: string = 'Načítám...'\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({ attribute: 'wcag-described-by' }) readonly wcagDescribedBy: string\n\t/**\n\t * Indicates the id of a component that labels the input.\n\t */\n\t@Prop({ attribute: 'wcag-labelled-by' }) readonly wcagLabelledBy: string\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-owns\n\t */\n\t@Prop({ attribute: 'wcag-owns' }) readonly wcagOwns: string\n\t/**\n\t * Emitted when the input has focus.\n\t */\n\t@Event({ eventName: 'gov-focus' }) govFocus: EventEmitter<FormAutocompleteEvent>\n\t/**\n\t * Emitted when the input loses focus.\n\t */\n\t@Event({ eventName: 'gov-blur' }) govBlur: EventEmitter<FormAutocompleteEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({ eventName: 'gov-input' }) govInput: EventEmitter<FormAutocompleteEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({ eventName: 'gov-select' }) govSelect: EventEmitter<FormAutocompleteEvent>\n\t@State() focused: boolean\n\t@State() processing = false\n\t@State() arrowCounter = -1\n\t@State() list: GovFormAutocompleteItem[] = []\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(FormAutocompleteVariants, newValue, FormAutocompleteClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormAutocompleteSizes, newValue, FormAutocompleteClass.root)\n\t}\n\n\tprivate onArrowUp() {\n\t\tif (this.arrowCounter > 0) {\n\t\t\tthis.arrowCounter = this.arrowCounter - 1\n\t\t\tthis.moveToView().finally()\n\t\t}\n\t}\n\n\tprivate onArrowDown() {\n\t\tif (this.arrowCounter < this.list.length - 1) {\n\t\t\tthis.arrowCounter = this.arrowCounter + 1\n\t\t\tthis.moveToView().finally()\n\t\t}\n\t}\n\n\tprivate async moveToView() {\n\t\tawait delay(200)\n\t\tconst heightOfList = this.listRef.offsetHeight\n\t\tconst selected = this.listRef.querySelector('li[aria-selected=\"true\"]') as HTMLUListElement\n\t\tif (selected && heightOfList) {\n\t\t\tconst offsetTop = selected.offsetTop\n\t\t\tthis.listRef.scrollTo({ top: offsetTop, behavior: 'smooth' })\n\t\t}\n\t}\n\n\tprivate doSearch() {\n\t\tif (Number.isInteger(this.minlength) && this.isValueAccepted === false && this.minlength) {\n\t\t\tthis.list = []\n\t\t\tthis.arrowCounter = -1\n\t\t\tthis.processing = false\n\t\t\treturn\n\t\t}\n\t\tif (this.searchCallback) {\n\t\t\tthis.processing = true\n\t\t\tthis.searchCallback(this.value)\n\t\t\t\t.then(response => (this.list = response))\n\t\t\t\t.catch(() => (this.list = []))\n\t\t\t\t.finally(() => {\n\t\t\t\t\tthis.arrowCounter = -1\n\t\t\t\t\tthis.processing = false\n\t\t\t\t})\n\t\t}\n\t}\n\n\tget isValueAccepted() {\n\t\tif (typeof this.value === 'string') {\n\t\t\treturn this.value.length >= this.minlength\n\t\t} else {\n\t\t\treturn false\n\t\t}\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormAutocompleteClass.root} size={this.size} variant={this.variant}>\n\t\t\t\t<gov-form-input\n\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\treadonly={this.readonly}\n\t\t\t\t\tautocomplete={false}\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t\tinvalid={this.invalid}\n\t\t\t\t\tsuccess={this.success}\n\t\t\t\t\trole={'searchbox'}\n\t\t\t\t\tvalue={this.value}\n\t\t\t\t\tminlength={this.minlength}\n\t\t\t\t\tmaxlength={this.maxlength}\n\t\t\t\t\ton-gov-input={throttle(this.onInputHandler.bind(this), 200)}\n\t\t\t\t\ton-gov-keyup={this.onKeyUpHandler.bind(this)}\n\t\t\t\t\ton-gov-keydown={this.onKeyDownHandler.bind(this)}\n\t\t\t\t\ton-gov-focus={this.onFocusHandler.bind(this)}\n\t\t\t\t\ton-gov-blur={this.onBlurHandler.bind(this)}\n\t\t\t\t\twcagAutocomplete={'list'}\n\t\t\t\t\twcagDescribedBy={this.wcagDescribedBy}\n\t\t\t\t\twcagLabelledBy={this.wcagLabelledBy}\n\t\t\t\t\twcagOwns={[this.listBoxId, this.wcagOwns].join(' ')}\n\t\t\t\t\twcagExpanded={this.list.length && this.focused}\n\t\t\t\t\tref={el => (this.inputRef = el as HTMLGovFormInputElement)}\n\t\t\t\t>\n\t\t\t\t\t<slot slot=\"right-icon\" name=\"right-icon\" />\n\t\t\t\t</gov-form-input>\n\t\t\t\t<ul class={FormAutocompleteClass.list} role={'listbox'} id={this.listBoxId} ref={el => (this.listRef = el as HTMLUListElement)}>\n\t\t\t\t\t{this.focused && this.list.length === 0 && this.processing === false && this.isValueAccepted && this.messageEmpty ? (\n\t\t\t\t\t\t<li class={FormAutocompleteClass.empty}>{this.messageEmpty}</li>\n\t\t\t\t\t) : null}\n\t\t\t\t\t{this.focused && this.processing === true && this.isValueAccepted ? (\n\t\t\t\t\t\t<li class={FormAutocompleteClass.loading}>\n\t\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>\n\t\t\t\t\t\t\t&nbsp;{this.messageLoading}\n\t\t\t\t\t\t</li>\n\t\t\t\t\t) : null}\n\t\t\t\t\t{this.list.map((item, index) => {\n\t\t\t\t\t\tconst isSelected = this.arrowCounter === index\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<li\n\t\t\t\t\t\t\t\tclass={FormAutocompleteClass.item}\n\t\t\t\t\t\t\t\tinnerHTML={this.templateResolver(item, isSelected)}\n\t\t\t\t\t\t\t\trole={'option'}\n\t\t\t\t\t\t\t\taria-posinset={index}\n\t\t\t\t\t\t\t\ttabindex={isSelected ? 0 : -1}\n\t\t\t\t\t\t\t\taria-setsize={this.list.length}\n\t\t\t\t\t\t\t\tonClick={(e: PointerEvent) => this.onSelectHandler(e, index)}\n\t\t\t\t\t\t\t\taria-selected={toBoolAttr(isSelected)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)\n\t\t\t\t\t})}\n\t\t\t\t</ul>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\tthis.focused = true\n\t\tthis.arrowCounter = -1\n\t\tif ((this.value || this.minlength === 0) && this.searchCallback) {\n\t\t\tthis.doSearch()\n\t\t}\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\toriginalEvent: e,\n\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\tvalue: this.value,\n\t\t\tselected: null,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\tthis.focused = false\n\t\tsetTimeout(() => (this.list = []), 200)\n\t\tthis.arrowCounter = -1\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\toriginalEvent: e,\n\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\tvalue: this.value,\n\t\t\tselected: null,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: InputEvent) {\n\t\tthis.value = (e.target as HTMLGovFormInputElement).value\n\t\te.stopPropagation()\n\t\tthis.govInput.emit({\n\t\t\toriginalEvent: e,\n\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\tvalue: this.value,\n\t\t\tselected: null,\n\t\t})\n\t\tthis.doSearch()\n\t}\n\n\tprivate onSelectHandler(e: PointerEvent | CustomEvent, index = -1) {\n\t\tlet selected: Nullable<GovFormAutocompleteItem> = null\n\t\tif (index > -1) {\n\t\t\tselected = this.list[index]\n\t\t} else if (has(this.arrowCounter, this.list)) {\n\t\t\tselected = this.list[this.arrowCounter]\n\t\t}\n\t\tif (selected) {\n\t\t\tthis.govSelect.emit({\n\t\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\t\tvalue: this.value,\n\t\t\t\tselected: selected,\n\t\t\t\toriginalEvent: e,\n\t\t\t})\n\t\t\tthis.list = []\n\t\t\tif (has(this.nameKey, selected) && typeof selected[this.nameKey] === 'string') {\n\t\t\t\tthis.value = selected[this.nameKey]\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate onKeyUpHandler(e: CustomEvent) {\n\t\tconst event = (e.detail as FormInputEvent).originalEvent as KeyboardEvent\n\t\te.stopPropagation()\n\t\tevent.stopPropagation()\n\t\tif (event.keyCode === 38) this.onArrowUp()\n\t\telse if (event.keyCode === 40) this.onArrowDown()\n\t\telse if (event.keyCode === 13) {\n\t\t\te.preventDefault()\n\t\t\tevent.preventDefault()\n\t\t\tthis.onSelectHandler(e)\n\t\t}\n\t}\n\n\tprivate onKeyDownHandler(e: CustomEvent) {\n\t\tconst event = (e.detail as FormInputEvent).originalEvent as KeyboardEvent\n\t\te.stopPropagation()\n\t\tevent.stopPropagation()\n\t\tif (event.keyCode === 13) {\n\t\t\te.preventDefault()\n\t\t\tevent.preventDefault()\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 * Set options for list\n\t */\n\t@Method()\n\tasync setOptions(options: GovFormAutocompleteItem[]): Promise<void> {\n\t\tthis.list = Array.isArray(options) ? options : []\n\t\tthis.arrowCounter = -1\n\t}\n\n\t/**\n\t * Clears whisperer value\n\t */\n\t@Method()\n\tasync clearValue(): Promise<void> {\n\t\tthis.value = ''\n\t\tthis.inputRef.value = ''\n\n\t\tawait this.inputRef.clearValue()\n\t}\n\n\t/**\n\t * Clears whisperer value\n\t */\n\t@Method()\n\tasync setProcessing(status: boolean): Promise<void> {\n\t\tthis.processing = status\n\t}\n\n\t/**\n\t * Set a custom asynchronous function for the whisperer\n\t */\n\t@Method()\n\tasync setSearchCallback(callback: (value: string) => Promise<any>) {\n\t\tthis.searchCallback = callback\n\t}\n\n\t/**\n\t * Setting a custom whisper result template\n\t * @param callback\n\t */\n\t@Method()\n\tasync setTemplateResolver(callback: (item: GovFormAutocompleteItem) => string) {\n\t\tthis.templateResolver = callback\n\t}\n}\n"],"mappings":"mVAAA,MAAMA,EAAyB,y8D,MCclBC,EAAmBC,EAAA,MAAAD,UAAAE,EAO/B,WAAAC,G,8KAFQC,KAAAC,iBAAiFC,GAAQA,EAAKF,KAAKG,S,WAU3D,G,kFAgBZ,I,aAID,O,kCASE,M,cAKA,M,yFAgBA,E,2CAQiC,iC,oBAII,a,4HA+BpD,M,mBACG,E,UACkB,GAtG1CH,KAAKI,UAAYC,EAAS,a,CAyG3B,eAAAC,CAAgBC,GACfC,EAAaC,EAA0BF,EAAUG,EAAsBC,K,CAIxE,YAAAC,CAAaL,GACZC,EAAaK,EAAuBN,EAAUG,EAAsBC,K,CAG7D,SAAAG,GACP,GAAId,KAAKe,aAAe,EAAG,CAC1Bf,KAAKe,aAAef,KAAKe,aAAe,EACxCf,KAAKgB,aAAaC,S,EAIZ,WAAAC,GACP,GAAIlB,KAAKe,aAAef,KAAKmB,KAAKC,OAAS,EAAG,CAC7CpB,KAAKe,aAAef,KAAKe,aAAe,EACxCf,KAAKgB,aAAaC,S,EAIZ,gBAAMD,SACPK,EAAM,KACZ,MAAMC,EAAetB,KAAKuB,QAAQC,aAClC,MAAMC,EAAWzB,KAAKuB,QAAQG,cAAc,4BAC5C,GAAID,GAAYH,EAAc,CAC7B,MAAMK,EAAYF,EAASE,UAC3B3B,KAAKuB,QAAQK,SAAS,CAAEC,IAAKF,EAAWG,SAAU,U,EAI5C,QAAAC,GACP,GAAIC,OAAOC,UAAUjC,KAAKkC,YAAclC,KAAKmC,kBAAoB,OAASnC,KAAKkC,UAAW,CACzFlC,KAAKmB,KAAO,GACZnB,KAAKe,cAAgB,EACrBf,KAAKoC,WAAa,MAClB,M,CAED,GAAIpC,KAAKqC,eAAgB,CACxBrC,KAAKoC,WAAa,KAClBpC,KAAKqC,eAAerC,KAAKsC,OACvBC,MAAKC,GAAaxC,KAAKmB,KAAOqB,IAC9BC,OAAM,IAAOzC,KAAKmB,KAAO,KACzBF,SAAQ,KACRjB,KAAKe,cAAgB,EACrBf,KAAKoC,WAAa,KAAK,G,EAK3B,mBAAID,GACH,UAAWnC,KAAKsC,QAAU,SAAU,CACnC,OAAOtC,KAAKsC,MAAMlB,QAAUpB,KAAKkC,S,KAC3B,CACN,OAAO,K,EAIT,iBAAAQ,GACC1C,KAAKM,gBAAgBN,KAAK2C,SAC1B3C,KAAKY,aAAaZ,KAAK4C,K,CAGxB,MAAAC,GACC,OACCC,EAACC,EAAI,CAACC,MAAOtC,EAAsBC,KAAMiC,KAAM5C,KAAK4C,KAAMD,QAAS3C,KAAK2C,SACvEG,EAAA,kBACCG,YAAajD,KAAKiD,YAClBC,KAAMlD,KAAKkD,KACXC,SAAUnD,KAAKmD,SACfC,SAAUpD,KAAKoD,SACfC,aAAc,MACdT,KAAM5C,KAAK4C,KACXD,QAAS3C,KAAK2C,QACdW,SAAUtD,KAAKsD,SACfC,QAASvD,KAAKuD,QACdC,QAASxD,KAAKwD,QACdC,KAAM,YACNnB,MAAOtC,KAAKsC,MACZJ,UAAWlC,KAAKkC,UAChBwB,UAAW1D,KAAK0D,UAAS,eACXC,EAAS3D,KAAK4D,eAAeC,KAAK7D,MAAO,KAAI,eAC7CA,KAAK8D,eAAeD,KAAK7D,MAAK,iBAC5BA,KAAK+D,iBAAiBF,KAAK7D,MAAK,eAClCA,KAAKgE,eAAeH,KAAK7D,MAAK,cAC/BA,KAAKiE,cAAcJ,KAAK7D,MACrCkE,iBAAkB,OAClBC,gBAAiBnE,KAAKmE,gBACtBC,eAAgBpE,KAAKoE,eACrBC,SAAU,CAACrE,KAAKI,UAAWJ,KAAKqE,UAAUC,KAAK,KAC/CC,aAAcvE,KAAKmB,KAAKC,QAAUpB,KAAKwE,QACvCC,IAAKC,GAAO1E,KAAK2E,SAAWD,GAE5B5B,EAAA,QAAM8B,KAAK,aAAa1B,KAAK,gBAE9BJ,EAAA,MAAIE,MAAOtC,EAAsBS,KAAMsC,KAAM,UAAWoB,GAAI7E,KAAKI,UAAWqE,IAAKC,GAAO1E,KAAKuB,QAAUmD,GACrG1E,KAAKwE,SAAWxE,KAAKmB,KAAKC,SAAW,GAAKpB,KAAKoC,aAAe,OAASpC,KAAKmC,iBAAmBnC,KAAK8E,aACpGhC,EAAA,MAAIE,MAAOtC,EAAsBqE,OAAQ/E,KAAK8E,cAC3C,KACH9E,KAAKwE,SAAWxE,KAAKoC,aAAe,MAAQpC,KAAKmC,gBACjDW,EAAA,MAAIE,MAAOtC,EAAsBsE,SAChClC,EAAA,YAAUI,KAAK,SAASF,MAAM,uBAAgC,IACvDhD,KAAKiF,gBAEV,KACHjF,KAAKmB,KAAK+D,KAAI,CAAChF,EAAMiF,KACrB,MAAMC,EAAapF,KAAKe,eAAiBoE,EACzC,OACCrC,EAAA,MACCE,MAAOtC,EAAsBR,KAC7BmF,UAAWrF,KAAKC,iBAAiBC,EAAMkF,GACvC3B,KAAM,SAAQ,gBACC0B,EACfG,SAAUF,EAAa,GAAK,EAAC,eACfpF,KAAKmB,KAAKC,OACxBmE,QAAUC,GAAoBxF,KAAKyF,gBAAgBD,EAAGL,GAAM,gBAC7CO,EAAWN,IACzB,K,CAQA,cAAApB,CAAewB,GACtBxF,KAAKwE,QAAU,KACfxE,KAAKe,cAAgB,EACrB,IAAKf,KAAKsC,OAAStC,KAAKkC,YAAc,IAAMlC,KAAKqC,eAAgB,CAChErC,KAAK+B,U,CAENyD,EAAEG,kBACF3F,KAAK4F,SAASC,KAAK,CAClBC,cAAeN,EACfO,UAAWrF,EAAsBC,KACjC2B,MAAOtC,KAAKsC,MACZb,SAAU,M,CAIJ,aAAAwC,CAAcuB,GACrBxF,KAAKwE,QAAU,MACfwB,YAAW,IAAOhG,KAAKmB,KAAO,IAAK,KACnCnB,KAAKe,cAAgB,EACrByE,EAAEG,kBACF3F,KAAKiG,QAAQJ,KAAK,CACjBC,cAAeN,EACfO,UAAWrF,EAAsBC,KACjC2B,MAAOtC,KAAKsC,MACZb,SAAU,M,CAIJ,cAAAmC,CAAe4B,GACtBxF,KAAKsC,MAASkD,EAAEU,OAAmC5D,MACnDkD,EAAEG,kBACF3F,KAAKmG,SAASN,KAAK,CAClBC,cAAeN,EACfO,UAAWrF,EAAsBC,KACjC2B,MAAOtC,KAAKsC,MACZb,SAAU,OAEXzB,KAAK+B,U,CAGE,eAAA0D,CAAgBD,EAA+BL,GAAS,GAC/D,IAAI1D,EAA8C,KAClD,GAAI0D,GAAS,EAAG,CACf1D,EAAWzB,KAAKmB,KAAKgE,E,MACf,GAAIiB,EAAIpG,KAAKe,aAAcf,KAAKmB,MAAO,CAC7CM,EAAWzB,KAAKmB,KAAKnB,KAAKe,a,CAE3B,GAAIU,EAAU,CACbzB,KAAKqG,UAAUR,KAAK,CACnBE,UAAWrF,EAAsBC,KACjC2B,MAAOtC,KAAKsC,MACZb,SAAUA,EACVqE,cAAeN,IAEhBxF,KAAKmB,KAAO,GACZ,GAAIiF,EAAIpG,KAAKG,QAASsB,WAAoBA,EAASzB,KAAKG,WAAa,SAAU,CAC9EH,KAAKsC,MAAQb,EAASzB,KAAKG,Q,GAKtB,cAAA2D,CAAe0B,GACtB,MAAMc,EAASd,EAAEe,OAA0BT,cAC3CN,EAAEG,kBACFW,EAAMX,kBACN,GAAIW,EAAME,UAAY,GAAIxG,KAAKc,iBAC1B,GAAIwF,EAAME,UAAY,GAAIxG,KAAKkB,mBAC/B,GAAIoF,EAAME,UAAY,GAAI,CAC9BhB,EAAEiB,iBACFH,EAAMG,iBACNzG,KAAKyF,gBAAgBD,E,EAIf,gBAAAzB,CAAiByB,GACxB,MAAMc,EAASd,EAAEe,OAA0BT,cAC3CN,EAAEG,kBACFW,EAAMX,kBACN,GAAIW,EAAME,UAAY,GAAI,CACzBhB,EAAEiB,iBACFH,EAAMG,gB,EAQR,cAAMC,CAASC,GACd,OAAO3G,KAAK2E,SAASiC,MAAMD,E,CAO5B,gBAAME,CAAWF,GAChB3G,KAAKmB,KAAO2F,MAAMC,QAAQJ,GAAWA,EAAU,GAC/C3G,KAAKe,cAAgB,C,CAOtB,gBAAMiG,GACLhH,KAAKsC,MAAQ,GACbtC,KAAK2E,SAASrC,MAAQ,SAEhBtC,KAAK2E,SAASqC,Y,CAOrB,mBAAMC,CAAcC,GACnBlH,KAAKoC,WAAa8E,C,CAOnB,uBAAMC,CAAkBC,GACvBpH,KAAKqC,eAAiB+E,C,CAQvB,yBAAMC,CAAoBD,GACzBpH,KAAKC,iBAAmBmH,C"}
@@ -1,2 +1,2 @@
1
- import{p as e,H as o,c as t,h as r,d as i}from"./p-80c0109d.js";import{g as s,o as l,p as a,q as c}from"./p-17c1ffc1.js";import{g as n,a as v,t as g}from"./p-3f37ddb6.js";import{c as m}from"./p-cac3881f.js";import{v as f}from"./p-26acf964.js";import{b as d,c as h}from"./p-ae894a40.js";import{c as p}from"./p-24636c53.js";import{d as u}from"./p-03990da5.js";import{d as z}from"./p-afb7fc88.js";const x='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-form-select{position:relative;display:flex;width:100%;align-items:center}.gov-form-select .element{position:relative;display:flex;flex:1 1 auto}.gov-form-select input,.gov-form-select select,.gov-form-select textarea{width:100%;border-radius:var(--gov-border-radius, 0.1875rem);background-color:var(--gov-form-bg-color, var(--gov-color-neutral-white));font-family:var(--gov-font-family, "Roboto", sans-serif)}.gov-form-select input:focus,.gov-form-select select:focus,.gov-form-select textarea:focus{outline:none}.gov-form-select input:focus-visible,.gov-form-select select:focus-visible,.gov-form-select textarea:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-form-select input::-moz-placeholder,.gov-form-select select::-moz-placeholder,.gov-form-select textarea::-moz-placeholder{color:var(--gov-form-placeholder-color, var(--gov-color-secondary-600))}.gov-form-select input::placeholder,.gov-form-select select::placeholder,.gov-form-select textarea::placeholder{color:var(--gov-form-placeholder-color, var(--gov-color-secondary-600))}.gov-form-select textarea{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);padding:0.5rem 0.75rem;resize:none}.gov-form-select *[slot=left-icon],.gov-form-select *[slot=right-icon]{position:absolute;top:50%;display:flex;justify-content:center;transform:translateY(-50%);pointer-events:none}.gov-form-select *[slot=left-icon]{left:0}.gov-form-select *[slot=right-icon]{right:0}.gov-form-select *[slot=prefix],.gov-form-select *[slot=sufix]{margin:0}[size=s].gov-form-select{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);gap:0.5rem var(--gov-form-input-core-s-icon-size, 1rem)}[size=s].gov-form-select input,[size=s].gov-form-select select{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);height:var(--gov-form-input-core-s-height, 2rem);padding:var(--gov-form-input-core-s-padding, 0.25rem 0.75rem)}[size=s].gov-form-select *[slot=left-icon],[size=s].gov-form-select *[slot=right-icon]{width:var(--gov-form-input-core-s-icon-size, 1rem);height:var(--gov-form-input-core-s-icon-size, 1rem)}[size=s].gov-form-select *[slot=left-icon]{left:calc((var(--gov-form-input-core-s-icon-padding, 2rem) - var(--gov-form-input-core-s-icon-size, 1rem)) / 2)}[size=s].gov-form-select *[slot=left-icon]~input{padding-left:var(--gov-form-input-core-s-icon-padding, 2rem)}[size=s].gov-form-select *[slot=right-icon]{right:calc((var(--gov-form-input-core-s-icon-padding, 2rem) - var(--gov-form-input-core-s-icon-size, 1rem)) / 2)}[size=s].gov-form-select *[slot=right-icon]~input,[size=s].gov-form-select *[slot=right-icon]~select{padding-right:var(--gov-form-input-core-s-icon-padding, 2rem)}[size=m].gov-form-select{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);gap:0.5rem var(--gov-form-input-core-m-icon-size, 1rem)}[size=m].gov-form-select input,[size=m].gov-form-select select{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);height:var(--gov-form-input-core-m-height, 2.5rem);padding:var(--gov-form-input-core-m-padding, 0.4375rem 0.75rem)}[size=m].gov-form-select *[slot=left-icon],[size=m].gov-form-select *[slot=right-icon]{width:var(--gov-form-input-core-m-icon-size, 1rem);height:var(--gov-form-input-core-m-icon-size, 1rem)}[size=m].gov-form-select *[slot=left-icon]{left:calc((var(--gov-form-input-core-m-icon-padding, 2.5rem) - var(--gov-form-input-core-m-icon-size, 1rem)) / 2)}[size=m].gov-form-select *[slot=left-icon]~input{padding-left:var(--gov-form-input-core-m-icon-padding, 2.5rem)}[size=m].gov-form-select *[slot=right-icon]{right:calc((var(--gov-form-input-core-m-icon-padding, 2.5rem) - var(--gov-form-input-core-m-icon-size, 1rem)) / 2)}[size=m].gov-form-select *[slot=right-icon]~input,[size=m].gov-form-select *[slot=right-icon]~select{padding-right:var(--gov-form-input-core-m-icon-padding, 2.5rem)}[size=l].gov-form-select{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);gap:0.5rem var(--gov-form-input-core-l-icon-size, 1rem)}[size=l].gov-form-select input,[size=l].gov-form-select select{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);height:var(--gov-form-input-core-l-height, 3rem);padding:var(--gov-form-input-core-l-padding, 0.6875rem 0.75rem)}[size=l].gov-form-select *[slot=left-icon],[size=l].gov-form-select *[slot=right-icon]{width:var(--gov-form-input-core-l-icon-size, 1rem);height:var(--gov-form-input-core-l-icon-size, 1rem)}[size=l].gov-form-select *[slot=left-icon]{left:calc((var(--gov-form-input-core-l-icon-padding, 2.5rem) - var(--gov-form-input-core-l-icon-size, 1rem)) / 2)}[size=l].gov-form-select *[slot=left-icon]~input{padding-left:var(--gov-form-input-core-l-icon-padding, 2.5rem)}[size=l].gov-form-select *[slot=right-icon]{right:calc((var(--gov-form-input-core-l-icon-padding, 2.5rem) - var(--gov-form-input-core-l-icon-size, 1rem)) / 2)}[size=l].gov-form-select *[slot=right-icon]~input,[size=l].gov-form-select *[slot=right-icon]~select{padding-right:var(--gov-form-input-core-l-icon-padding, 2.5rem)}[size=xl].gov-form-select{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing);gap:0.5rem var(--gov-form-input-core-xl-icon-size, 1.25rem)}[size=xl].gov-form-select input,[size=xl].gov-form-select select{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing);height:var(--gov-form-input-core-xl-height, 3.5rem);padding:var(--gov-form-input-core-xl-padding, 0.9375rem 1rem 0.875rem)}[size=xl].gov-form-select *[slot=left-icon],[size=xl].gov-form-select *[slot=right-icon]{width:var(--gov-form-input-core-xl-icon-size, 1.25rem);height:var(--gov-form-input-core-xl-icon-size, 1.25rem)}[size=xl].gov-form-select *[slot=left-icon]{left:calc((var(--gov-form-input-core-xl-icon-padding, 3rem) - var(--gov-form-input-core-xl-icon-size, 1.25rem)) / 2)}[size=xl].gov-form-select *[slot=left-icon]~input{padding-left:var(--gov-form-input-core-xl-icon-padding, 3rem)}[size=xl].gov-form-select *[slot=right-icon]{right:calc((var(--gov-form-input-core-xl-icon-padding, 3rem) - var(--gov-form-input-core-xl-icon-size, 1.25rem)) / 2)}[size=xl].gov-form-select *[slot=right-icon]~input,[size=xl].gov-form-select *[slot=right-icon]~select{padding-right:var(--gov-form-input-core-xl-icon-padding, 3rem)}[variant=primary].gov-form-select input,[variant=primary].gov-form-select select,[variant=primary].gov-form-select textarea{color:var(--gov-form-input-color-primary, var(--gov-color-secondary-700));border:var(--gov-form-input-border-primary, 0.0625rem solid var(--gov-color-primary-600))}[variant=primary].gov-form-select *[slot=left-icon],[variant=primary].gov-form-select *[slot=right-icon]:not(.icon-arrow){color:var(--gov-form-input-icon-color-primary, var(--gov-color-primary))}[variant=secondary].gov-form-select input,[variant=secondary].gov-form-select select,[variant=secondary].gov-form-select textarea{color:var(--gov-form-input-color-secondary, var(--gov-color-secondary-700));border:var(--gov-form-input-border-secondary, 0.0625rem solid var(--gov-color-secondary-700))}[variant=secondary].gov-form-select *[slot=left-icon],[variant=secondary].gov-form-select *[slot=right-icon]:not(.icon-arrow){color:var(--gov-form-input-icon-color-secondary, var(--gov-color-primary))}[disabled=""].gov-form-select,[disabled=true i].gov-form-select,[disabled="1"].gov-form-select{pointer-events:none}[disabled=""].gov-form-select input,[disabled=""].gov-form-select select,[disabled=""].gov-form-select textarea,[disabled=true i].gov-form-select input,[disabled=true i].gov-form-select select,[disabled=true i].gov-form-select textarea,[disabled="1"].gov-form-select input,[disabled="1"].gov-form-select select,[disabled="1"].gov-form-select textarea{border-color:var(--gov-form-state-color-disabled, var(--gov-color-secondary-600));background:var(--gov-form-input-disabled-bg, var(--gov-color-secondary-300));color:var(--gov-form-state-color-disabled, var(--gov-color-secondary-600))}[disabled=""].gov-form-select *[slot=left-icon],[disabled=""].gov-form-select *[slot=right-icon],[disabled=true i].gov-form-select *[slot=left-icon],[disabled=true i].gov-form-select *[slot=right-icon],[disabled="1"].gov-form-select *[slot=left-icon],[disabled="1"].gov-form-select *[slot=right-icon]{color:var(--gov-form-state-color-disabled, var(--gov-color-secondary-600)) !important}[invalid=""].gov-form-select input,[invalid=""].gov-form-select select,[invalid=""].gov-form-select textarea,[invalid=true i].gov-form-select input,[invalid=true i].gov-form-select select,[invalid=true i].gov-form-select textarea,[invalid="1"].gov-form-select input,[invalid="1"].gov-form-select select,[invalid="1"].gov-form-select textarea{border-color:var(--gov-form-state-color-error, var(--gov-color-error));color:var(--gov-form-state-color-error, var(--gov-color-error))}[invalid=""].gov-form-select input::-moz-placeholder,[invalid=""].gov-form-select select::-moz-placeholder,[invalid=""].gov-form-select textarea::-moz-placeholder,[invalid=true i].gov-form-select input::-moz-placeholder,[invalid=true i].gov-form-select select::-moz-placeholder,[invalid=true i].gov-form-select textarea::-moz-placeholder,[invalid="1"].gov-form-select input::-moz-placeholder,[invalid="1"].gov-form-select select::-moz-placeholder,[invalid="1"].gov-form-select textarea::-moz-placeholder{color:var(--gov-form-state-color-error, var(--gov-color-error-300))}[invalid=""].gov-form-select input::placeholder,[invalid=""].gov-form-select select::placeholder,[invalid=""].gov-form-select textarea::placeholder,[invalid=true i].gov-form-select input::placeholder,[invalid=true i].gov-form-select select::placeholder,[invalid=true i].gov-form-select textarea::placeholder,[invalid="1"].gov-form-select input::placeholder,[invalid="1"].gov-form-select select::placeholder,[invalid="1"].gov-form-select textarea::placeholder{color:var(--gov-form-state-color-error, var(--gov-color-error-300))}[invalid=""].gov-form-select *[slot=left-icon],[invalid=""].gov-form-select *[slot=right-icon],[invalid=true i].gov-form-select *[slot=left-icon],[invalid=true i].gov-form-select *[slot=right-icon],[invalid="1"].gov-form-select *[slot=left-icon],[invalid="1"].gov-form-select *[slot=right-icon]{color:var(--gov-form-state-color-error, var(--gov-color-error)) !important}[invalid=""].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow),[invalid=true i].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow),[invalid="1"].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow){display:none}[success=""].gov-form-select *[slot=right-icon]:not(.icon-arrow),[success=true i].gov-form-select *[slot=right-icon]:not(.icon-arrow),[success="1"].gov-form-select *[slot=right-icon]:not(.icon-arrow){color:var(--gov-form-state-color-success, var(--gov-color-success))}[success=""].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow),[success=true i].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow),[success="1"].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow){display:none}[multiline=""].gov-form-select *[slot=left-icon],[multiline=""].gov-form-select *[slot=right-icon],[multiline=true i].gov-form-select *[slot=left-icon],[multiline=true i].gov-form-select *[slot=right-icon],[multiline="1"].gov-form-select *[slot=left-icon],[multiline="1"].gov-form-select *[slot=right-icon]{display:none}.gov-form-select{background:none}.gov-form-select select{-webkit-appearance:none;-moz-appearance:none}.gov-form-select select::-ms-expand{display:none}[size=s].gov-form-select *[slot=right-icon]{right:var(--gov-form-select-s-arrow-right-position, 0.75rem);width:var(--gov-form-select-s-arrow-size, 0.75rem);height:var(--gov-form-select-s-arrow-size, 0.75rem)}[size=m].gov-form-select *[slot=right-icon]{right:var(--gov-form-select-m-arrow-right-position, 1rem);width:var(--gov-form-select-m-arrow-size, 0.75rem);height:var(--gov-form-select-m-arrow-size, 0.75rem)}[size=l].gov-form-select *[slot=right-icon]{right:var(--gov-form-select-l-arrow-right-position, 1rem);width:var(--gov-form-select-l-arrow-size, 1rem);height:var(--gov-form-select-l-arrow-size, 1rem)}[size=xl].gov-form-select *[slot=right-icon]{right:var(--gov-form-select-xl-arrow-right-position, 1.3125rem);width:var(--gov-form-select-xl-arrow-size, 1rem);height:var(--gov-form-select-xl-arrow-size, 1rem)}';const w=e(class e extends o{constructor(){super();this.__registerHost();this.govFocus=t(this,"gov-focus",7);this.govBlur=t(this,"gov-blur",7);this.govChange=t(this,"gov-change",7);this.value=undefined;this.identifier=undefined;this.variant="secondary";this.size="m";this.name=undefined;this.required=false;this.disabled=undefined;this.invalid=undefined;this.wcagActiveDescendant=undefined;this.wcagControls=undefined;this.wcagDescribedBy=undefined;this.wcagLabelledBy=undefined;this.wcagOwns=undefined;this.focused=undefined;this.h=n(this.host);this.f=s(this.h);this.selectId=p("GovSelect")}validateVariant(e){f(a,e,l.root)}validateSize(e){f(c,e,l.root)}watchDisabled(){this.passControlAttrs()}watchValue(){this.markSelectedValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("disabled",v(this.disabled));this.f.passAttrToControl("invalid",v(this.invalid));this.f.passAttrToControl("type","select")}componentWillLoad(){this.validateVariant(this.variant);this.validateSize(this.size);this.markSelectedValue();this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}async componentDidRender(){if(m()){await u(500);await this.validateWcag()}}markSelectedValue(){this.host.querySelectorAll("option").forEach((e=>{if(e.value===this.value){e.setAttribute("selected","selected")}else{e.removeAttribute("selected")}}))}render(){return r(i,{class:l.root,size:this.size,variant:this.variant},this.h.hasSlot("prefix")&&r("slot",{name:"prefix"}),r("span",{class:"element"},r("gov-icon",{slot:"right-icon",name:"chevron-down",class:"icon-arrow"}),r("select",{id:this.identifier||this.selectId,onFocus:this.onFocusHandler.bind(this),onChange:this.onChangeHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,name:this.name,disabled:this.disabled,ref:e=>this.selectRef=e,"aria-disabled":g(this.disabled),"aria-activedescendant":this.wcagActiveDescendant,"aria-controls":this.wcagControls,"aria-required":g(this.required),"aria-invalid":g(this.invalid),"aria-describedby":this.wcagDescribedBy,"aria-labelledby":this.wcagLabelledBy,"aria-owns":this.wcagOwns},r("slot",null))),this.h.hasSlot("sufix")&&r("slot",{name:"sufix"}))}onFocusHandler(e){this.focused=true;this.govFocus.emit({component:l.root,originalEvent:e,value:this.value})}onBlurHandler(e){this.focused=false;this.govBlur.emit({component:l.root,originalEvent:e,value:this.value})}onChangeHandler(e){this.value=e.target.value;e.stopPropagation();this.govChange.emit({component:l.root,originalEvent:e,value:this.value})}async setFocus(e){return this.selectRef.focus(e)}async setValue(e){this.value=e}async getRef(){return this.selectRef}async validateWcag(){d(this.wcagActiveDescendant,"wcag-active-descendant",l.root);d(this.wcagControls,"wcag-controls",l.root);d(this.wcagDescribedBy,"wcag-described-by",l.root);d(this.wcagOwns,"wcag-owns",l.root);h(this.identifier||this.selectId,this.wcagLabelledBy,l.root)}get host(){return this}static get watchers(){return{variant:["validateVariant"],size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"],value:["watchValue"]}}static get style(){return x}},[4,"gov-form-select",{value:[1537],identifier:[1],variant:[1],size:[1],name:[1],required:[4],disabled:[4],invalid:[4],wcagActiveDescendant:[1,"wcag-active-descendant"],wcagControls:[1,"wcag-controls"],wcagDescribedBy:[1,"wcag-described-by"],wcagLabelledBy:[1,"wcag-labelled-by"],wcagOwns:[1,"wcag-owns"],focused:[32],setFocus:[64],setValue:[64],getRef:[64],validateWcag:[64]}]);function b(){if(typeof customElements==="undefined"){return}const e=["gov-form-select","gov-icon"];e.forEach((e=>{switch(e){case"gov-form-select":if(!customElements.get(e)){customElements.define(e,w)}break;case"gov-icon":if(!customElements.get(e)){z()}break}}))}b();export{w as G,b as d};
2
- //# sourceMappingURL=p-30af8d08.js.map
1
+ import{p as e,H as o,c as i,h as t,d as r}from"./p-80c0109d.js";import{g as s,o as l,p as c,q as n}from"./p-17c1ffc1.js";import{g as a,a as g,t as v}from"./p-3f37ddb6.js";import{c as m}from"./p-cac3881f.js";import{v as f}from"./p-26acf964.js";import{b as d,c as h}from"./p-ae894a40.js";import{c as p}from"./p-24636c53.js";import{d as u}from"./p-03990da5.js";import{d as z}from"./p-522dd298.js";const x='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-form-select{position:relative;display:flex;width:100%;align-items:center}.gov-form-select .element{position:relative;display:flex;flex:1 1 auto}.gov-form-select input,.gov-form-select select,.gov-form-select textarea{width:100%;border-radius:var(--gov-border-radius, 0.1875rem);background-color:var(--gov-form-bg-color, var(--gov-color-neutral-white));font-family:var(--gov-font-family, "Roboto", sans-serif)}.gov-form-select input:focus,.gov-form-select select:focus,.gov-form-select textarea:focus{outline:none}.gov-form-select input:focus-visible,.gov-form-select select:focus-visible,.gov-form-select textarea:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-form-select input::-moz-placeholder,.gov-form-select select::-moz-placeholder,.gov-form-select textarea::-moz-placeholder{color:var(--gov-form-placeholder-color, var(--gov-color-secondary-600))}.gov-form-select input::placeholder,.gov-form-select select::placeholder,.gov-form-select textarea::placeholder{color:var(--gov-form-placeholder-color, var(--gov-color-secondary-600))}.gov-form-select textarea{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);padding:0.5rem 0.75rem;resize:none}.gov-form-select *[slot=left-icon],.gov-form-select *[slot=right-icon]{position:absolute;top:50%;display:flex;justify-content:center;transform:translateY(-50%);pointer-events:none}.gov-form-select *[slot=left-icon]{left:0}.gov-form-select *[slot=right-icon]{right:0}.gov-form-select *[slot=prefix],.gov-form-select *[slot=sufix]{margin:0}[size=s].gov-form-select{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);gap:0.5rem var(--gov-form-input-core-s-icon-size, 1rem)}[size=s].gov-form-select input,[size=s].gov-form-select select{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);height:var(--gov-form-input-core-s-height, 2rem);padding:var(--gov-form-input-core-s-padding, 0.25rem 0.75rem)}[size=s].gov-form-select *[slot=left-icon],[size=s].gov-form-select *[slot=right-icon]{width:var(--gov-form-input-core-s-icon-size, 1rem);height:var(--gov-form-input-core-s-icon-size, 1rem)}[size=s].gov-form-select *[slot=left-icon]{left:calc((var(--gov-form-input-core-s-icon-padding, 2rem) - var(--gov-form-input-core-s-icon-size, 1rem)) / 2)}[size=s].gov-form-select *[slot=left-icon]~input{padding-left:var(--gov-form-input-core-s-icon-padding, 2rem)}[size=s].gov-form-select *[slot=right-icon]{right:calc((var(--gov-form-input-core-s-icon-padding, 2rem) - var(--gov-form-input-core-s-icon-size, 1rem)) / 2)}[size=s].gov-form-select *[slot=right-icon]~input,[size=s].gov-form-select *[slot=right-icon]~select{padding-right:var(--gov-form-input-core-s-icon-padding, 2rem)}[size=m].gov-form-select{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);gap:0.5rem var(--gov-form-input-core-m-icon-size, 1rem)}[size=m].gov-form-select input,[size=m].gov-form-select select{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);height:var(--gov-form-input-core-m-height, 2.5rem);padding:var(--gov-form-input-core-m-padding, 0.4375rem 0.75rem)}[size=m].gov-form-select *[slot=left-icon],[size=m].gov-form-select *[slot=right-icon]{width:var(--gov-form-input-core-m-icon-size, 1rem);height:var(--gov-form-input-core-m-icon-size, 1rem)}[size=m].gov-form-select *[slot=left-icon]{left:calc((var(--gov-form-input-core-m-icon-padding, 2.5rem) - var(--gov-form-input-core-m-icon-size, 1rem)) / 2)}[size=m].gov-form-select *[slot=left-icon]~input{padding-left:var(--gov-form-input-core-m-icon-padding, 2.5rem)}[size=m].gov-form-select *[slot=right-icon]{right:calc((var(--gov-form-input-core-m-icon-padding, 2.5rem) - var(--gov-form-input-core-m-icon-size, 1rem)) / 2)}[size=m].gov-form-select *[slot=right-icon]~input,[size=m].gov-form-select *[slot=right-icon]~select{padding-right:var(--gov-form-input-core-m-icon-padding, 2.5rem)}[size=l].gov-form-select{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);gap:0.5rem var(--gov-form-input-core-l-icon-size, 1rem)}[size=l].gov-form-select input,[size=l].gov-form-select select{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);height:var(--gov-form-input-core-l-height, 3rem);padding:var(--gov-form-input-core-l-padding, 0.6875rem 0.75rem)}[size=l].gov-form-select *[slot=left-icon],[size=l].gov-form-select *[slot=right-icon]{width:var(--gov-form-input-core-l-icon-size, 1rem);height:var(--gov-form-input-core-l-icon-size, 1rem)}[size=l].gov-form-select *[slot=left-icon]{left:calc((var(--gov-form-input-core-l-icon-padding, 2.5rem) - var(--gov-form-input-core-l-icon-size, 1rem)) / 2)}[size=l].gov-form-select *[slot=left-icon]~input{padding-left:var(--gov-form-input-core-l-icon-padding, 2.5rem)}[size=l].gov-form-select *[slot=right-icon]{right:calc((var(--gov-form-input-core-l-icon-padding, 2.5rem) - var(--gov-form-input-core-l-icon-size, 1rem)) / 2)}[size=l].gov-form-select *[slot=right-icon]~input,[size=l].gov-form-select *[slot=right-icon]~select{padding-right:var(--gov-form-input-core-l-icon-padding, 2.5rem)}[size=xl].gov-form-select{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing);gap:0.5rem var(--gov-form-input-core-xl-icon-size, 1.25rem)}[size=xl].gov-form-select input,[size=xl].gov-form-select select{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing);height:var(--gov-form-input-core-xl-height, 3.5rem);padding:var(--gov-form-input-core-xl-padding, 0.9375rem 1rem 0.875rem)}[size=xl].gov-form-select *[slot=left-icon],[size=xl].gov-form-select *[slot=right-icon]{width:var(--gov-form-input-core-xl-icon-size, 1.25rem);height:var(--gov-form-input-core-xl-icon-size, 1.25rem)}[size=xl].gov-form-select *[slot=left-icon]{left:calc((var(--gov-form-input-core-xl-icon-padding, 3rem) - var(--gov-form-input-core-xl-icon-size, 1.25rem)) / 2)}[size=xl].gov-form-select *[slot=left-icon]~input{padding-left:var(--gov-form-input-core-xl-icon-padding, 3rem)}[size=xl].gov-form-select *[slot=right-icon]{right:calc((var(--gov-form-input-core-xl-icon-padding, 3rem) - var(--gov-form-input-core-xl-icon-size, 1.25rem)) / 2)}[size=xl].gov-form-select *[slot=right-icon]~input,[size=xl].gov-form-select *[slot=right-icon]~select{padding-right:var(--gov-form-input-core-xl-icon-padding, 3rem)}[variant=primary].gov-form-select input,[variant=primary].gov-form-select select,[variant=primary].gov-form-select textarea{color:var(--gov-form-input-color-primary, var(--gov-color-secondary-700));border:var(--gov-form-input-border-primary, 0.0625rem solid var(--gov-color-primary-600))}[variant=primary].gov-form-select *[slot=left-icon],[variant=primary].gov-form-select *[slot=right-icon]:not(.icon-arrow){color:var(--gov-form-input-icon-color-primary, var(--gov-color-primary))}[variant=secondary].gov-form-select input,[variant=secondary].gov-form-select select,[variant=secondary].gov-form-select textarea{color:var(--gov-form-input-color-secondary, var(--gov-color-secondary-700));border:var(--gov-form-input-border-secondary, 0.0625rem solid var(--gov-color-secondary-700))}[variant=secondary].gov-form-select *[slot=left-icon],[variant=secondary].gov-form-select *[slot=right-icon]:not(.icon-arrow){color:var(--gov-form-input-icon-color-secondary, var(--gov-color-primary))}[disabled=""].gov-form-select,[disabled=true i].gov-form-select,[disabled="1"].gov-form-select{pointer-events:none}[disabled=""].gov-form-select input,[disabled=""].gov-form-select select,[disabled=""].gov-form-select textarea,[disabled=true i].gov-form-select input,[disabled=true i].gov-form-select select,[disabled=true i].gov-form-select textarea,[disabled="1"].gov-form-select input,[disabled="1"].gov-form-select select,[disabled="1"].gov-form-select textarea{border-color:var(--gov-form-state-color-disabled, var(--gov-color-secondary-600));background:var(--gov-form-input-disabled-bg, var(--gov-color-secondary-300));color:var(--gov-form-state-color-disabled, var(--gov-color-secondary-600))}[disabled=""].gov-form-select *[slot=left-icon],[disabled=""].gov-form-select *[slot=right-icon],[disabled=true i].gov-form-select *[slot=left-icon],[disabled=true i].gov-form-select *[slot=right-icon],[disabled="1"].gov-form-select *[slot=left-icon],[disabled="1"].gov-form-select *[slot=right-icon]{color:var(--gov-form-state-color-disabled, var(--gov-color-secondary-600)) !important}[invalid=""].gov-form-select input,[invalid=""].gov-form-select select,[invalid=""].gov-form-select textarea,[invalid=true i].gov-form-select input,[invalid=true i].gov-form-select select,[invalid=true i].gov-form-select textarea,[invalid="1"].gov-form-select input,[invalid="1"].gov-form-select select,[invalid="1"].gov-form-select textarea{border-color:var(--gov-form-state-color-error, var(--gov-color-error));color:var(--gov-form-state-color-error, var(--gov-color-error))}[invalid=""].gov-form-select input::-moz-placeholder,[invalid=""].gov-form-select select::-moz-placeholder,[invalid=""].gov-form-select textarea::-moz-placeholder,[invalid=true i].gov-form-select input::-moz-placeholder,[invalid=true i].gov-form-select select::-moz-placeholder,[invalid=true i].gov-form-select textarea::-moz-placeholder,[invalid="1"].gov-form-select input::-moz-placeholder,[invalid="1"].gov-form-select select::-moz-placeholder,[invalid="1"].gov-form-select textarea::-moz-placeholder{color:var(--gov-form-state-color-error, var(--gov-color-error-300))}[invalid=""].gov-form-select input::placeholder,[invalid=""].gov-form-select select::placeholder,[invalid=""].gov-form-select textarea::placeholder,[invalid=true i].gov-form-select input::placeholder,[invalid=true i].gov-form-select select::placeholder,[invalid=true i].gov-form-select textarea::placeholder,[invalid="1"].gov-form-select input::placeholder,[invalid="1"].gov-form-select select::placeholder,[invalid="1"].gov-form-select textarea::placeholder{color:var(--gov-form-state-color-error, var(--gov-color-error-300))}[invalid=""].gov-form-select *[slot=left-icon],[invalid=""].gov-form-select *[slot=right-icon],[invalid=true i].gov-form-select *[slot=left-icon],[invalid=true i].gov-form-select *[slot=right-icon],[invalid="1"].gov-form-select *[slot=left-icon],[invalid="1"].gov-form-select *[slot=right-icon]{color:var(--gov-form-state-color-error, var(--gov-color-error)) !important}[invalid=""].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow),[invalid=true i].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow),[invalid="1"].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow){display:none}[success=""].gov-form-select *[slot=right-icon]:not(.icon-arrow),[success=true i].gov-form-select *[slot=right-icon]:not(.icon-arrow),[success="1"].gov-form-select *[slot=right-icon]:not(.icon-arrow){color:var(--gov-form-state-color-success, var(--gov-color-success))}[success=""].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow),[success=true i].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow),[success="1"].gov-form-select *[slot=right-icon]:not(.icon-validation):not(.icon-arrow){display:none}[multiline=""].gov-form-select *[slot=left-icon],[multiline=""].gov-form-select *[slot=right-icon],[multiline=true i].gov-form-select *[slot=left-icon],[multiline=true i].gov-form-select *[slot=right-icon],[multiline="1"].gov-form-select *[slot=left-icon],[multiline="1"].gov-form-select *[slot=right-icon]{display:none}.gov-form-select{background:none}.gov-form-select select{-webkit-appearance:none;-moz-appearance:none}.gov-form-select select::-ms-expand{display:none}[size=s].gov-form-select *[slot=right-icon]{right:var(--gov-form-select-s-arrow-right-position, 0.75rem);width:var(--gov-form-select-s-arrow-size, 0.75rem);height:var(--gov-form-select-s-arrow-size, 0.75rem)}[size=s][invalid=""].gov-form-select .icon-arrow,[size=s][invalid=true i].gov-form-select .icon-arrow,[size=s][invalid="1"].gov-form-select .icon-arrow{right:calc(3 * var(--gov-form-select-s-arrow-right-position, 0.75rem))}[size=s][success=""].gov-form-select .icon-arrow,[size=s][success=true i].gov-form-select .icon-arrow,[size=s][success="1"].gov-form-select .icon-arrow{right:calc(3 * var(--gov-form-select-s-arrow-right-position, 0.75rem))}[size=m].gov-form-select *[slot=right-icon]{right:var(--gov-form-select-m-arrow-right-position, 1rem);width:var(--gov-form-select-m-arrow-size, 0.75rem);height:var(--gov-form-select-m-arrow-size, 0.75rem)}[size=m][invalid=""].gov-form-select .icon-arrow,[size=m][invalid=true i].gov-form-select .icon-arrow,[size=m][invalid="1"].gov-form-select .icon-arrow{right:calc(3 * var(--gov-form-select-m-arrow-right-position, 1rem))}[size=m][success=""].gov-form-select .icon-arrow,[size=m][success=true i].gov-form-select .icon-arrow,[size=m][success="1"].gov-form-select .icon-arrow{right:calc(3 * var(--gov-form-select-m-arrow-right-position, 1rem))}[size=l].gov-form-select *[slot=right-icon]{right:var(--gov-form-select-l-arrow-right-position, 1rem);width:var(--gov-form-select-l-arrow-size, 1rem);height:var(--gov-form-select-l-arrow-size, 1rem)}[size=l][invalid=""].gov-form-select .icon-arrow,[size=l][invalid=true i].gov-form-select .icon-arrow,[size=l][invalid="1"].gov-form-select .icon-arrow{right:calc(3 * var(--gov-form-select-l-arrow-right-position, 1rem))}[size=l][success=""].gov-form-select .icon-arrow,[size=l][success=true i].gov-form-select .icon-arrow,[size=l][success="1"].gov-form-select .icon-arrow{right:calc(3 * var(--gov-form-select-l-arrow-right-position, 1rem))}[size=xl].gov-form-select *[slot=right-icon]{right:var(--gov-form-select-xl-arrow-right-position, 1.3125rem);width:var(--gov-form-select-xl-arrow-size, 1rem);height:var(--gov-form-select-xl-arrow-size, 1rem)}[size=xl][invalid=""].gov-form-select .icon-arrow,[size=xl][invalid=true i].gov-form-select .icon-arrow,[size=xl][invalid="1"].gov-form-select .icon-arrow{right:calc(3 * var(--gov-form-select-xl-arrow-right-position, 1.3125rem))}[size=xl][success=""].gov-form-select .icon-arrow,[size=xl][success=true i].gov-form-select .icon-arrow,[size=xl][success="1"].gov-form-select .icon-arrow{right:calc(3 * var(--gov-form-select-xl-arrow-right-position, 1.3125rem))}[size=s][invalid=""].gov-form-select *[slot=right-icon]~select,[size=s][invalid=""].gov-form-select *[slot=right-icon]~input,[size=s][invalid=true i].gov-form-select *[slot=right-icon]~select,[size=s][invalid=true i].gov-form-select *[slot=right-icon]~input,[size=s][invalid="1"].gov-form-select *[slot=right-icon]~select,[size=s][invalid="1"].gov-form-select *[slot=right-icon]~input{padding-right:calc(2 * var(--gov-form-input-core-s-icon-padding, 2rem))}[size=s][success=""].gov-form-select *[slot=right-icon]~select,[size=s][success=""].gov-form-select *[slot=right-icon]~input,[size=s][success=true i].gov-form-select *[slot=right-icon]~select,[size=s][success=true i].gov-form-select *[slot=right-icon]~input,[size=s][success="1"].gov-form-select *[slot=right-icon]~select,[size=s][success="1"].gov-form-select *[slot=right-icon]~input{padding-right:calc(2 * var(--gov-form-input-core-s-icon-padding, 2rem))}[size=m][invalid=""].gov-form-select *[slot=right-icon]~select,[size=m][invalid=""].gov-form-select *[slot=right-icon]~input,[size=m][invalid=true i].gov-form-select *[slot=right-icon]~select,[size=m][invalid=true i].gov-form-select *[slot=right-icon]~input,[size=m][invalid="1"].gov-form-select *[slot=right-icon]~select,[size=m][invalid="1"].gov-form-select *[slot=right-icon]~input{padding-right:calc(2 * var(--gov-form-input-core-m-icon-padding, 2.5rem))}[size=m][success=""].gov-form-select *[slot=right-icon]~select,[size=m][success=""].gov-form-select *[slot=right-icon]~input,[size=m][success=true i].gov-form-select *[slot=right-icon]~select,[size=m][success=true i].gov-form-select *[slot=right-icon]~input,[size=m][success="1"].gov-form-select *[slot=right-icon]~select,[size=m][success="1"].gov-form-select *[slot=right-icon]~input{padding-right:calc(2 * var(--gov-form-input-core-m-icon-padding, 2.5rem))}[size=l][invalid=""].gov-form-select *[slot=right-icon]~select,[size=l][invalid=""].gov-form-select *[slot=right-icon]~input,[size=l][invalid=true i].gov-form-select *[slot=right-icon]~select,[size=l][invalid=true i].gov-form-select *[slot=right-icon]~input,[size=l][invalid="1"].gov-form-select *[slot=right-icon]~select,[size=l][invalid="1"].gov-form-select *[slot=right-icon]~input{padding-right:calc(2 * var(--gov-form-input-core-l-icon-padding, 2.5rem))}[size=l][success=""].gov-form-select *[slot=right-icon]~select,[size=l][success=""].gov-form-select *[slot=right-icon]~input,[size=l][success=true i].gov-form-select *[slot=right-icon]~select,[size=l][success=true i].gov-form-select *[slot=right-icon]~input,[size=l][success="1"].gov-form-select *[slot=right-icon]~select,[size=l][success="1"].gov-form-select *[slot=right-icon]~input{padding-right:calc(2 * var(--gov-form-input-core-l-icon-padding, 2.5rem))}[size=xl][invalid=""].gov-form-select *[slot=right-icon]~select,[size=xl][invalid=""].gov-form-select *[slot=right-icon]~input,[size=xl][invalid=true i].gov-form-select *[slot=right-icon]~select,[size=xl][invalid=true i].gov-form-select *[slot=right-icon]~input,[size=xl][invalid="1"].gov-form-select *[slot=right-icon]~select,[size=xl][invalid="1"].gov-form-select *[slot=right-icon]~input{padding-right:calc(2 * var(--gov-form-input-core-xl-icon-padding, 3rem))}[size=xl][success=""].gov-form-select *[slot=right-icon]~select,[size=xl][success=""].gov-form-select *[slot=right-icon]~input,[size=xl][success=true i].gov-form-select *[slot=right-icon]~select,[size=xl][success=true i].gov-form-select *[slot=right-icon]~input,[size=xl][success="1"].gov-form-select *[slot=right-icon]~select,[size=xl][success="1"].gov-form-select *[slot=right-icon]~input{padding-right:calc(2 * var(--gov-form-input-core-xl-icon-padding, 3rem))}';const w=e(class e extends o{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govChange=i(this,"gov-change",7);this.value=undefined;this.identifier=undefined;this.variant="secondary";this.size="m";this.name=undefined;this.required=false;this.success=undefined;this.disabled=false;this.invalid=undefined;this.wcagActiveDescendant=undefined;this.wcagControls=undefined;this.wcagDescribedBy=undefined;this.wcagLabelledBy=undefined;this.wcagOwns=undefined;this.focused=undefined;this.h=a(this.host);this.f=s(this.h);this.selectId=p("GovSelect")}validateVariant(e){f(c,e,l.root)}validateSize(e){f(n,e,l.root)}watchDisabled(){this.passControlAttrs()}watchValue(){this.markSelectedValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("disabled",g(this.disabled));this.f.passAttrToControl("invalid",g(this.invalid));this.f.passAttrToControl("type","select")}componentWillLoad(){this.validateVariant(this.variant);this.validateSize(this.size);this.markSelectedValue();this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}async componentDidRender(){if(m()){await u(500);await this.validateWcag()}}markSelectedValue(){this.host.querySelectorAll("option").forEach((e=>{if(e.value===this.value){e.setAttribute("selected","selected")}else{e.removeAttribute("selected")}}))}render(){return t(r,{class:l.root,size:this.size,variant:this.variant},this.h.hasSlot("prefix")&&t("slot",{name:"prefix"}),t("span",{class:"element"},t("gov-icon",{slot:"right-icon",name:"chevron-down",class:"icon-arrow"}),this.h.hasSlot("right-icon")&&!(this.success||this.invalid)&&t("slot",{name:"right-icon"}),this.success&&t("gov-icon",{slot:"right-icon",class:"icon-validation",name:"check-lg"}),this.invalid&&t("gov-icon",{slot:"right-icon",class:"icon-validation",name:"exclamation-lg"}),t("select",{id:this.identifier||this.selectId,onFocus:this.onFocusHandler.bind(this),onChange:this.onChangeHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,name:this.name,disabled:this.disabled,ref:e=>this.selectRef=e,"aria-disabled":v(this.disabled),"aria-activedescendant":this.wcagActiveDescendant,"aria-controls":this.wcagControls,"aria-required":v(this.required),"aria-invalid":v(this.invalid),"aria-describedby":this.wcagDescribedBy,"aria-labelledby":this.wcagLabelledBy,"aria-owns":this.wcagOwns},t("slot",null))),this.h.hasSlot("sufix")&&t("slot",{name:"sufix"}))}onFocusHandler(e){this.focused=true;this.govFocus.emit({component:l.root,originalEvent:e,value:this.value})}onBlurHandler(e){this.focused=false;this.govBlur.emit({component:l.root,originalEvent:e,value:this.value})}onChangeHandler(e){this.value=e.target.value;e.stopPropagation();this.govChange.emit({component:l.root,originalEvent:e,value:this.value})}async setFocus(e){return this.selectRef.focus(e)}async setValue(e){this.value=e}async getRef(){return this.selectRef}async validateWcag(){d(this.wcagActiveDescendant,"wcag-active-descendant",l.root);d(this.wcagControls,"wcag-controls",l.root);d(this.wcagDescribedBy,"wcag-described-by",l.root);d(this.wcagOwns,"wcag-owns",l.root);h(this.identifier||this.selectId,this.wcagLabelledBy,l.root)}get host(){return this}static get watchers(){return{variant:["validateVariant"],size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"],value:["watchValue"]}}static get style(){return x}},[4,"gov-form-select",{value:[1537],identifier:[1],variant:[1],size:[1],name:[1],required:[4],success:[4],disabled:[4],invalid:[4],wcagActiveDescendant:[1,"wcag-active-descendant"],wcagControls:[1,"wcag-controls"],wcagDescribedBy:[1,"wcag-described-by"],wcagLabelledBy:[1,"wcag-labelled-by"],wcagOwns:[1,"wcag-owns"],focused:[32],setFocus:[64],setValue:[64],getRef:[64],validateWcag:[64]}]);function b(){if(typeof customElements==="undefined"){return}const e=["gov-form-select","gov-icon"];e.forEach((e=>{switch(e){case"gov-form-select":if(!customElements.get(e)){customElements.define(e,w)}break;case"gov-icon":if(!customElements.get(e)){z()}break}}))}b();export{w as G,b as d};
2
+ //# sourceMappingURL=p-f72ecbef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govFormSelectCss","GovFormSelect","proxyCustomElement","H","constructor","this","h","govHost","host","f","govForm","selectId","createID","validateVariant","newValue","validateProp","FormSelectVariants","FormSelectClass","root","validateSize","FormSelectSizes","watchDisabled","passControlAttrs","watchValue","markSelectedValue","passAttrToControl","size","toBoolAttr","disabled","invalid","componentWillLoad","variant","passAttrToLabel","String","required","componentDidRender","canValidateWcagOnRender","delay","validateWcag","querySelectorAll","forEach","option","value","setAttribute","removeAttribute","render","Host","class","hasSlot","name","slot","success","id","identifier","onFocus","onFocusHandler","bind","onChange","onChangeHandler","onBlur","onBlurHandler","ref","el","selectRef","toBoolAttrIfDefined","wcagActiveDescendant","wcagControls","wcagDescribedBy","wcagLabelledBy","wcagOwns","e","focused","govFocus","emit","component","originalEvent","govBlur","target","stopPropagation","govChange","setFocus","options","focus","setValue","getRef","validateWcagRef","validateWcagLabelFor"],"sources":["../../../packages/core/src/components/gov-form/select/gov-form-select.scss?tag=gov-form-select","../../../packages/core/src/components/gov-form/select/gov-form-select.tsx"],"sourcesContent":["/*\n * Select\n */\n\n@import \"../select/gov-form-select-core.scss\";\n\n$class: \".gov-form-select\";\n\n#{$class} {\n\t@extend %form-select-core;\n}\n","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 } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { canValidateWcagOnRender } from '../../../helpers/Dom/win'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { validateWcagLabelFor, validateWcagRef } from '../../../helpers/Validate/wcag'\nimport { createID } from '../../../utils/string.utils'\nimport { delay } from '../../../utils/utils'\nimport { FormSelectClass, FormSelectSizes, FormSelectSizesType, FormSelectVariants, FormSelectVariantType } from './constants'\nimport { FormSelectEvent } from './gov-form-select.types'\n\n@Component({\n\ttag: 'gov-form-select',\n\tstyleUrl: 'gov-form-select.scss',\n})\nexport class GovFormSelect {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate selectRef?: HTMLSelectElement\n\n\tprivate readonly selectId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t\tthis.selectId = createID('GovSelect')\n\t}\n\n\t@Element() host: HTMLGovFormSelectElement\n\t/**\n\t * Value of select\n\t */\n\t@Prop({ reflect: true, mutable: true }) value: string\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({ attribute: 'identifier' }) readonly identifier: string\n\t/**\n\t * Style variation of the form select.\n\t */\n\t@Prop() readonly variant?: FormSelectVariantType = 'secondary'\n\t/**\n\t * Select’s size.\n\t */\n\t@Prop() readonly size?: FormSelectSizesType = 'm'\n\t/**\n\t * Name of the select.\n\t */\n\t@Prop() readonly name: string\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 * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop() readonly success: boolean\n\t/**\n\t * Makes the select component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\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 * Indicates the id of a related component’s visually focused element.\n\t */\n\t@Prop({ attribute: 'wcag-active-descendant' }) readonly wcagActiveDescendant: string\n\t/**\n\t * Use this prop to add an aria-controls attribute. Use the attribute to indicate the id of a component controlled by this component.\n\t */\n\t@Prop({ attribute: 'wcag-controls' }) readonly wcagControls: string\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({ attribute: 'wcag-described-by' }) readonly wcagDescribedBy: string\n\t/**\n\t * Indicates the id of a component that labels the input.\n\t */\n\t@Prop({ attribute: 'wcag-labelled-by' }) readonly wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({ attribute: 'wcag-owns' }) readonly wcagOwns: string\n\t/**\n\t * Emitted when the select has focus.\n\t */\n\t@Event({ eventName: 'gov-focus' }) govFocus: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select loses focus.\n\t */\n\t@Event({ eventName: 'gov-blur' }) govBlur: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select change value.\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<FormSelectEvent>\n\t@State() focused: boolean\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(FormSelectVariants, newValue, FormSelectClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSelectSizes, newValue, FormSelectClass.root)\n\t}\n\n\t@Watch('disabled')\n\t@Watch('invalid')\n\t@Watch('size')\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@Watch('value')\n\twatchValue(): void {\n\t\tthis.markSelectedValue()\n\t}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl('size', this.size)\n\t\tthis.f.passAttrToControl('disabled', toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl('invalid', toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl('type', 'select')\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateSize(this.size)\n\n\t\tthis.markSelectedValue()\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel('required', String(this.required))\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\tprivate markSelectedValue() {\n\t\tthis.host.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\n\t\t\tif (option.value === this.value) {\n\t\t\t\toption.setAttribute('selected', 'selected')\n\t\t\t} else {\n\t\t\t\toption.removeAttribute('selected')\n\t\t\t}\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormSelectClass.root} size={this.size} variant={this.variant}>\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<gov-icon slot=\"right-icon\" name=\"chevron-down\" class=\"icon-arrow\"></gov-icon>\n\t\t\t\t\t{this.h.hasSlot('right-icon') && !(this.success || this.invalid) && <slot name=\"right-icon\" />}\n\t\t\t\t\t{this.success && <gov-icon slot=\"right-icon\" class=\"icon-validation\" name=\"check-lg\"></gov-icon>}\n\t\t\t\t\t{this.invalid && <gov-icon slot=\"right-icon\" class=\"icon-validation\" name=\"exclamation-lg\"></gov-icon>}\n\t\t\t\t\t<select\n\t\t\t\t\t\tid={this.identifier || this.selectId}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonChange={this.onChangeHandler.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\tname={this.name}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-activedescendant={this.wcagActiveDescendant}\n\t\t\t\t\t\taria-controls={this.wcagControls}\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-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\taria-owns={this.wcagOwns}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</select>\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\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.value = (e.target as HTMLSelectElement).value\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\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.selectRef.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 * Returns an instance of the native html select element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLSelectElement> {\n\t\treturn this.selectRef\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagActiveDescendant, 'wcag-active-descendant', FormSelectClass.root)\n\t\tvalidateWcagRef(this.wcagControls, 'wcag-controls', FormSelectClass.root)\n\t\tvalidateWcagRef(this.wcagDescribedBy, 'wcag-described-by', FormSelectClass.root)\n\t\tvalidateWcagRef(this.wcagOwns, 'wcag-owns', FormSelectClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.selectId, this.wcagLabelledBy, FormSelectClass.root)\n\t}\n}\n"],"mappings":"0YAAA,MAAMA,EAAmB,kxlB,MCiBZC,EAAaC,EAAA,MAAAD,UAAAE,EAOzB,WAAAC,G,sMAkBmD,Y,UAIL,I,kCAST,M,qCASA,M,mMAvCpCC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,EAAIC,EAAQL,KAAKC,GACtBD,KAAKM,SAAWC,EAAS,Y,CA6E1B,eAAAC,CAAgBC,GACfC,EAAaC,EAAoBF,EAAUG,EAAgBC,K,CAI5D,YAAAC,CAAaL,GACZC,EAAaK,EAAiBN,EAAUG,EAAgBC,K,CAMzD,aAAAG,GACChB,KAAKiB,kB,CAIN,UAAAC,GACClB,KAAKmB,mB,CAGE,gBAAAF,GACPjB,KAAKI,EAAEgB,kBAAkB,OAAQpB,KAAKqB,MACtCrB,KAAKI,EAAEgB,kBAAkB,WAAYE,EAAWtB,KAAKuB,WACrDvB,KAAKI,EAAEgB,kBAAkB,UAAWE,EAAWtB,KAAKwB,UACpDxB,KAAKI,EAAEgB,kBAAkB,OAAQ,S,CAGlC,iBAAAK,GACCzB,KAAKQ,gBAAgBR,KAAK0B,SAC1B1B,KAAKc,aAAad,KAAKqB,MAEvBrB,KAAKmB,oBACLnB,KAAKiB,mBACLjB,KAAKI,EAAEuB,gBAAgB,WAAYC,OAAO5B,KAAK6B,U,CAGhD,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNhC,KAAKiC,c,EAIL,iBAAAd,GACPnB,KAAKG,KAAK+B,iBAAiB,UAAUC,SAASC,IAC7C,GAAIA,EAAOC,QAAUrC,KAAKqC,MAAO,CAChCD,EAAOE,aAAa,WAAY,W,KAC1B,CACNF,EAAOG,gBAAgB,W,KAK1B,MAAAC,GACC,OACCvC,EAACwC,EAAI,CAACC,MAAO9B,EAAgBC,KAAMQ,KAAMrB,KAAKqB,KAAMK,QAAS1B,KAAK0B,SAChE1B,KAAKC,EAAE0C,QAAQ,WAAa1C,EAAA,QAAM2C,KAAK,WACxC3C,EAAA,QAAMyC,MAAM,WACXzC,EAAA,YAAU4C,KAAK,aAAaD,KAAK,eAAeF,MAAM,eACrD1C,KAAKC,EAAE0C,QAAQ,iBAAmB3C,KAAK8C,SAAW9C,KAAKwB,UAAYvB,EAAA,QAAM2C,KAAK,eAC9E5C,KAAK8C,SAAW7C,EAAA,YAAU4C,KAAK,aAAaH,MAAM,kBAAkBE,KAAK,aACzE5C,KAAKwB,SAAWvB,EAAA,YAAU4C,KAAK,aAAaH,MAAM,kBAAkBE,KAAK,mBAC1E3C,EAAA,UACC8C,GAAI/C,KAAKgD,YAAchD,KAAKM,SAC5B2C,QAASjD,KAAKkD,eAAeC,KAAKnD,MAClCoD,SAAUpD,KAAKqD,gBAAgBF,KAAKnD,MACpCsD,OAAQtD,KAAKuD,cAAcJ,KAAKnD,MAChC6B,SAAU7B,KAAK6B,SACfe,KAAM5C,KAAK4C,KACXrB,SAAUvB,KAAKuB,SACfiC,IAAKC,GAAOzD,KAAK0D,UAAYD,EAAwB,gBACtCE,EAAoB3D,KAAKuB,UAAS,wBAC1BvB,KAAK4D,qBAAoB,gBACjC5D,KAAK6D,aAAY,gBACjBF,EAAoB3D,KAAK6B,UAAS,eACnC8B,EAAoB3D,KAAKwB,SAAQ,mBAC7BxB,KAAK8D,gBAAe,kBACrB9D,KAAK+D,eAAc,YACzB/D,KAAKgE,UAEhB/D,EAAA,eAGDD,KAAKC,EAAE0C,QAAQ,UAAY1C,EAAA,QAAM2C,KAAK,U,CAKlC,cAAAM,CAAee,GACtBjE,KAAKkE,QAAU,KACflE,KAAKmE,SAASC,KAAK,CAClBC,UAAWzD,EAAgBC,KAC3ByD,cAAeL,EACf5B,MAAOrC,KAAKqC,O,CAIN,aAAAkB,CAAcU,GACrBjE,KAAKkE,QAAU,MACflE,KAAKuE,QAAQH,KAAK,CACjBC,UAAWzD,EAAgBC,KAC3ByD,cAAeL,EACf5B,MAAOrC,KAAKqC,O,CAIN,eAAAgB,CAAgBY,GACvBjE,KAAKqC,MAAS4B,EAAEO,OAA6BnC,MAC7C4B,EAAEQ,kBACFzE,KAAK0E,UAAUN,KAAK,CACnBC,UAAWzD,EAAgBC,KAC3ByD,cAAeL,EACf5B,MAAOrC,KAAKqC,O,CAQd,cAAMsC,CAASC,GACd,OAAO5E,KAAK0D,UAAUmB,MAAMD,E,CAO7B,cAAME,CAASzC,GACdrC,KAAKqC,MAAQA,C,CAOd,YAAM0C,GACL,OAAO/E,KAAK0D,S,CAOb,kBAAMzB,GACL+C,EAAgBhF,KAAK4D,qBAAsB,yBAA0BhD,EAAgBC,MACrFmE,EAAgBhF,KAAK6D,aAAc,gBAAiBjD,EAAgBC,MACpEmE,EAAgBhF,KAAK8D,gBAAiB,oBAAqBlD,EAAgBC,MAC3EmE,EAAgBhF,KAAKgE,SAAU,YAAapD,EAAgBC,MAC5DoE,EAAqBjF,KAAKgD,YAAchD,KAAKM,SAAUN,KAAK+D,eAAgBnD,EAAgBC,K"}
@@ -1 +1 @@
1
- .gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}*{margin:0}h1,.h1{font-weight:var(--gov-text-6xl-font-weight);font-size:var(--gov-text-6xl-font-size);line-height:var(--gov-text-6xl-line-height);letter-spacing:var(--gov-text-6xl-letter-spacing)}h2,.h2{font-weight:var(--gov-text-5xl-font-weight);font-size:var(--gov-text-5xl-font-size);line-height:var(--gov-text-5xl-line-height);letter-spacing:var(--gov-text-5xl-letter-spacing)}h3,.h3{font-weight:var(--gov-text-4xl-font-weight);font-size:var(--gov-text-4xl-font-size);line-height:var(--gov-text-4xl-line-height);letter-spacing:var(--gov-text-4xl-letter-spacing)}h4,.h4{font-weight:var(--gov-text-3xl-font-weight);font-size:var(--gov-text-3xl-font-size);line-height:var(--gov-text-3xl-line-height);letter-spacing:var(--gov-text-3xl-letter-spacing)}h5,.h5{font-weight:var(--gov-text-2xl-font-weight);font-size:var(--gov-text-2xl-font-size);line-height:var(--gov-text-2xl-line-height);letter-spacing:var(--gov-text-2xl-letter-spacing)}h6,.h6{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing)}p{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-text--xs{font-weight:var(--gov-text-xs-font-weight);font-size:var(--gov-text-xs-font-size);line-height:var(--gov-text-xs-line-height);letter-spacing:var(--gov-text-xs-letter-spacing)}.gov-text--s{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-text--m{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-text--l{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing)}.gov-text--xl{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing)}.gov-text--2xl{font-weight:var(--gov-text-2xl-font-weight);font-size:var(--gov-text-2xl-font-size);line-height:var(--gov-text-2xl-line-height);letter-spacing:var(--gov-text-2xl-letter-spacing)}.gov-text--3xl{font-weight:var(--gov-text-3xl-font-weight);font-size:var(--gov-text-3xl-font-size);line-height:var(--gov-text-3xl-line-height);letter-spacing:var(--gov-text-3xl-letter-spacing)}.gov-text--4xl{font-weight:var(--gov-text-4xl-font-weight);font-size:var(--gov-text-4xl-font-size);line-height:var(--gov-text-4xl-line-height);letter-spacing:var(--gov-text-4xl-letter-spacing)}.gov-text--5xl{font-weight:var(--gov-text-5xl-font-weight);font-size:var(--gov-text-5xl-font-size);line-height:var(--gov-text-5xl-line-height);letter-spacing:var(--gov-text-5xl-letter-spacing)}.gov-text--6xl{font-weight:var(--gov-text-6xl-font-weight);font-size:var(--gov-text-6xl-font-size);line-height:var(--gov-text-6xl-line-height);letter-spacing:var(--gov-text-6xl-letter-spacing)}a,.gov-link{color:var(--gov-color-primary);text-decoration:underline;transition:color 150ms ease-in-out;cursor:pointer}a:focus,.gov-link:focus{outline:none}a:focus-visible,.gov-link:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0.0625rem}a>*,.gov-link>*{color:var(--gov-color-primary)}a .gov-link--icon-unset .gov-icon,.gov-link .gov-link--icon-unset .gov-icon{display:none !important}a .gov-link--external-unset:after,.gov-link .gov-link--external-unset:after{display:none !important}@media not all and (pointer: coarse){a:hover,.gov-link:hover{text-decoration:none}}a .gov-link--external.gov-text--xs::after,a[target=_blank].gov-text--xs::after,.gov-link .gov-link--external.gov-text--xs::after,.gov-link[target=_blank].gov-text--xs::after{font-size:calc(var(--gov-text-xs-font-size) * 1.4)}a .gov-link--external.gov-text--s::after,a[target=_blank].gov-text--s::after,.gov-link .gov-link--external.gov-text--s::after,.gov-link[target=_blank].gov-text--s::after{font-size:calc(var(--gov-text-s-font-size) * 1.4)}a .gov-link--external.gov-text--m::after,a[target=_blank].gov-text--m::after,.gov-link .gov-link--external.gov-text--m::after,.gov-link[target=_blank].gov-text--m::after{font-size:calc(var(--gov-text-m-font-size) * 1.4)}a .gov-link--external.gov-text--l::after,a[target=_blank].gov-text--l::after,.gov-link .gov-link--external.gov-text--l::after,.gov-link[target=_blank].gov-text--l::after{font-size:calc(var(--gov-text-l-font-size) * 1.4)}a .gov-link--external.gov-text--xl::after,a[target=_blank].gov-text--xl::after,.gov-link .gov-link--external.gov-text--xl::after,.gov-link[target=_blank].gov-text--xl::after{font-size:calc(var(--gov-text-xl-font-size) * 1.4)}a .gov-link--external.gov-text--2xl::after,a[target=_blank].gov-text--2xl::after,.gov-link .gov-link--external.gov-text--2xl::after,.gov-link[target=_blank].gov-text--2xl::after{font-size:calc(var(--gov-text-2xl-font-size) * 1.4)}a .gov-link--external.gov-text--3xl::after,a[target=_blank].gov-text--3xl::after,.gov-link .gov-link--external.gov-text--3xl::after,.gov-link[target=_blank].gov-text--3xl::after{font-size:calc(var(--gov-text-3xl-font-size) * 1.4)}a .gov-link--external.gov-text--4xl::after,a[target=_blank].gov-text--4xl::after,.gov-link .gov-link--external.gov-text--4xl::after,.gov-link[target=_blank].gov-text--4xl::after{font-size:calc(var(--gov-text-4xl-font-size) * 1.4)}a .gov-link--external.gov-text--5xl::after,a[target=_blank].gov-text--5xl::after,.gov-link .gov-link--external.gov-text--5xl::after,.gov-link[target=_blank].gov-text--5xl::after{font-size:calc(var(--gov-text-5xl-font-size) * 1.4)}a .gov-link--external.gov-text--6xl::after,a[target=_blank].gov-text--6xl::after,.gov-link .gov-link--external.gov-text--6xl::after,.gov-link[target=_blank].gov-text--6xl::after{font-size:calc(var(--gov-text-6xl-font-size) * 1.4)}a .gov-link--external.gov-text--2xl::after,a[target=_blank].gov-text--2xl::after,.gov-link .gov-link--external.gov-text--2xl::after,.gov-link[target=_blank].gov-text--2xl::after{font-size:calc(var(--gov-text-2xl-font-size) * 1.4)}a .gov-link--external.gov-text--3xl::after,a[target=_blank].gov-text--3xl::after,.gov-link .gov-link--external.gov-text--3xl::after,.gov-link[target=_blank].gov-text--3xl::after{font-size:calc(var(--gov-text-3xl-font-size) * 1.4)}a .gov-link--external.gov-text--4xl::after,a[target=_blank].gov-text--4xl::after,.gov-link .gov-link--external.gov-text--4xl::after,.gov-link[target=_blank].gov-text--4xl::after{font-size:calc(var(--gov-text-4xl-font-size) * 1.4)}a .gov-link--external.gov-text--5xl::after,a[target=_blank].gov-text--5xl::after,.gov-link .gov-link--external.gov-text--5xl::after,.gov-link[target=_blank].gov-text--5xl::after{font-size:calc(var(--gov-text-5xl-font-size) * 1.4)}a .gov-link--external.gov-text--6xl::after,a[target=_blank].gov-text--6xl::after,.gov-link .gov-link--external.gov-text--6xl::after,.gov-link[target=_blank].gov-text--6xl::after{font-size:calc(var(--gov-text-6xl-font-size) * 1.4)}ol,.gov-ordered-list{margin:0}ol>li,ol>.gov-ordered-list__item,.gov-ordered-list>li,.gov-ordered-list>.gov-ordered-list__item{margin-bottom:0.25rem}ul,.gov-list{margin:0;list-style:none}ul>*:last-child,.gov-list>*:last-child{margin-bottom:0}ul--plain,.gov-list--plain{padding-left:0}ul--plain>li,ul--plain>.gov-list__item,.gov-list--plain>li,.gov-list--plain>.gov-list__item{margin-bottom:0.25rem}ul--plain>li::before,ul--plain>.gov-list__item::before,.gov-list--plain>li::before,.gov-list--plain>.gov-list__item::before{display:none}ul--inline>li,ul--inline>.gov-list__item,.gov-list--inline>li,.gov-list--inline>.gov-list__item{display:inline-block;margin-right:0.75rem}ul>li,.gov-list>li,.gov-list__item{position:relative;margin-bottom:0.5rem}ul>li::before,.gov-list>li::before,.gov-list__item::before{content:"";position:absolute;display:block;top:0.625rem;left:-0.875rem;width:0.3125rem;height:0.3125rem;border-radius:100%;background-color:var(--gov-color-primary)}.gov-box-shadow--unset{box-shadow:none}.gov-box-shadow--s{box-shadow:0 0 0.75rem rgba(var(--gov-color-secondary-800-rgb), 0.16)}.gov-box-shadow--m{box-shadow:0 0 1.25rem rgba(var(--gov-color-secondary-800-rgb), 0.2)}.gov-box-shadow--l{box-shadow:0 0 1.5rem rgba(var(--gov-color-secondary-800-rgb), 0.24)}.gov-box-shadow--xl{box-shadow:0 0 2rem rgba(var(--gov-color-secondary-800-rgb), 0.32)}.gov-bg--primary-100{background-color:var(--gov-color-primary-100)}.gov-bg--primary-200{background-color:var(--gov-color-primary-200)}.gov-bg--primary-300{background-color:var(--gov-color-primary-300)}.gov-bg--primary-400{background-color:var(--gov-color-primary-400)}.gov-bg--primary-500{background-color:var(--gov-color-primary-500)}.gov-bg--primary-600{background-color:var(--gov-color-primary-600)}.gov-bg--primary-700{background-color:var(--gov-color-primary-700)}.gov-bg--primary-800{background-color:var(--gov-color-primary-800)}.gov-bg--primary-900{background-color:var(--gov-color-primary-900)}.gov-bg--secondary-100{background-color:var(--gov-color-secondary-100)}.gov-bg--secondary-200{background-color:var(--gov-color-secondary-200)}.gov-bg--secondary-300{background-color:var(--gov-color-secondary-300)}.gov-bg--secondary-400{background-color:var(--gov-color-secondary-400)}.gov-bg--secondary-500{background-color:var(--gov-color-secondary-500)}.gov-bg--secondary-600{background-color:var(--gov-color-secondary-600)}.gov-bg--secondary-700{background-color:var(--gov-color-secondary-700)}.gov-bg--secondary-800{background-color:var(--gov-color-secondary-800)}.gov-bg--secondary-900{background-color:var(--gov-color-secondary-900)}.gov-bg--success-100{background-color:var(--gov-color-success-100)}.gov-bg--success-200{background-color:var(--gov-color-success-200)}.gov-bg--success-300{background-color:var(--gov-color-success-300)}.gov-bg--success-400{background-color:var(--gov-color-success-400)}.gov-bg--success-500{background-color:var(--gov-color-success-500)}.gov-bg--success-600{background-color:var(--gov-color-success-600)}.gov-bg--success-700{background-color:var(--gov-color-success-700)}.gov-bg--warning-100{background-color:var(--gov-color-warning-100)}.gov-bg--warning-200{background-color:var(--gov-color-warning-200)}.gov-bg--warning-300{background-color:var(--gov-color-warning-300)}.gov-bg--warning-400{background-color:var(--gov-color-warning-400)}.gov-bg--warning-500{background-color:var(--gov-color-warning-500)}.gov-bg--warning-600{background-color:var(--gov-color-warning-600)}.gov-bg--warning-700{background-color:var(--gov-color-warning-700)}.gov-bg--error-100{background-color:var(--gov-color-error-100)}.gov-bg--error-200{background-color:var(--gov-color-error-200)}.gov-bg--error-300{background-color:var(--gov-color-error-300)}.gov-bg--error-400{background-color:var(--gov-color-error-400)}.gov-bg--error-500{background-color:var(--gov-color-error-500)}.gov-bg--error-600{background-color:var(--gov-color-error-600)}.gov-bg--focus-base{background-color:var(--gov-color-focus-base)}.gov-bg--neutral-black{background-color:var(--gov-color-neutral-black)}.gov-bg--neutral-white{background-color:var(--gov-color-neutral-white)}.gov-color--primary-100{color:var(--gov-color-primary-100)}.gov-color--primary-200{color:var(--gov-color-primary-200)}.gov-color--primary-300{color:var(--gov-color-primary-300)}.gov-color--primary-400{color:var(--gov-color-primary-400)}.gov-color--primary-500{color:var(--gov-color-primary-500)}.gov-color--primary-600{color:var(--gov-color-primary-600)}.gov-color--primary-700{color:var(--gov-color-primary-700)}.gov-color--primary-800{color:var(--gov-color-primary-800)}.gov-color--primary-900{color:var(--gov-color-primary-900)}.gov-color--secondary-100{color:var(--gov-color-secondary-100)}.gov-color--secondary-200{color:var(--gov-color-secondary-200)}.gov-color--secondary-300{color:var(--gov-color-secondary-300)}.gov-color--secondary-400{color:var(--gov-color-secondary-400)}.gov-color--secondary-500{color:var(--gov-color-secondary-500)}.gov-color--secondary-600{color:var(--gov-color-secondary-600)}.gov-color--secondary-700{color:var(--gov-color-secondary-700)}.gov-color--secondary-800{color:var(--gov-color-secondary-800)}.gov-color--secondary-900{color:var(--gov-color-secondary-900)}.gov-color--success-100{color:var(--gov-color-success-100)}.gov-color--success-200{color:var(--gov-color-success-200)}.gov-color--success-300{color:var(--gov-color-success-300)}.gov-color--success-400{color:var(--gov-color-success-400)}.gov-color--success-500{color:var(--gov-color-success-500)}.gov-color--success-600{color:var(--gov-color-success-600)}.gov-color--success-700{color:var(--gov-color-success-700)}.gov-color--warning-100{color:var(--gov-color-warning-100)}.gov-color--warning-200{color:var(--gov-color-warning-200)}.gov-color--warning-300{color:var(--gov-color-warning-300)}.gov-color--warning-400{color:var(--gov-color-warning-400)}.gov-color--warning-500{color:var(--gov-color-warning-500)}.gov-color--warning-600{color:var(--gov-color-warning-600)}.gov-color--warning-700{color:var(--gov-color-warning-700)}.gov-color--error-100{color:var(--gov-color-error-100)}.gov-color--error-200{color:var(--gov-color-error-200)}.gov-color--error-300{color:var(--gov-color-error-300)}.gov-color--error-400{color:var(--gov-color-error-400)}.gov-color--error-500{color:var(--gov-color-error-500)}.gov-color--error-600{color:var(--gov-color-error-600)}.gov-color--focus-base{color:var(--gov-color-focus-base)}.gov-color--neutral-black{color:var(--gov-color-neutral-black)}.gov-color--neutral-white{color:var(--gov-color-neutral-white)}.gov-hide{display:none}@media (max-width: 29.99em){.gov-hide--sm{display:none;visibility:hidden}}@media (max-width: 47.99em){.gov-hide--md{display:none;visibility:hidden}}@media (max-width: 63.99em){.gov-hide--lg{display:none;visibility:hidden}}@media (max-width: 74.99em){.gov-hide--xl{display:none;visibility:hidden}}:root,:host{--gov-color-primary:#2362a2;--gov-color-secondary:#3b3b3b;--gov-color-success:#6fbd2c;--gov-color-warning:#f9c13c;--gov-color-error:#c52a3a;--gov-color-primary-100-rgb:236, 247, 255;--gov-color-primary-100:#ecf7ff;--gov-color-primary-200-rgb:217, 239, 255;--gov-color-primary-200:#d9efff;--gov-color-primary-300-rgb:181, 217, 243;--gov-color-primary-300:#b5d9f3;--gov-color-primary-400-rgb:102, 161, 216;--gov-color-primary-400:#66a1d8;--gov-color-primary-500-rgb:48, 119, 183;--gov-color-primary-500:#3077b7;--gov-color-primary-600-rgb:35, 98, 162;--gov-color-primary-600:#2362a2;--gov-color-primary-700-rgb:37, 78, 128;--gov-color-primary-700:#254e80;--gov-color-primary-800-rgb:21, 53, 94;--gov-color-primary-800:#15355e;--gov-color-primary-900-rgb:13, 33, 58;--gov-color-primary-900:#0d213a;--gov-color-secondary-100-rgb:252, 252, 252;--gov-color-secondary-100:#fcfcfc;--gov-color-secondary-200-rgb:250, 250, 250;--gov-color-secondary-200:#fafafa;--gov-color-secondary-300-rgb:245, 245, 245;--gov-color-secondary-300:#f5f5f5;--gov-color-secondary-400-rgb:234, 234, 234;--gov-color-secondary-400:#eaeaea;--gov-color-secondary-500-rgb:221, 221, 221;--gov-color-secondary-500:#dddddd;--gov-color-secondary-600-rgb:168, 168, 168;--gov-color-secondary-600:#a8a8a8;--gov-color-secondary-700-rgb:104, 104, 104;--gov-color-secondary-700:#686868;--gov-color-secondary-800-rgb:59, 59, 59;--gov-color-secondary-800:#3b3b3b;--gov-color-secondary-900-rgb:35, 35, 35;--gov-color-secondary-900:#232323;--gov-color-success-100-rgb:245, 250, 240;--gov-color-success-100:#f5faf0;--gov-color-success-200-rgb:220, 239, 204;--gov-color-success-200:#dcefcc;--gov-color-success-300-rgb:163, 213, 120;--gov-color-success-300:#a3d578;--gov-color-success-400-rgb:111, 189, 44;--gov-color-success-400:#6fbd2c;--gov-color-success-500-rgb:72, 133, 21;--gov-color-success-500:#488515;--gov-color-success-600-rgb:58, 98, 23;--gov-color-success-600:#3a6217;--gov-color-success-700-rgb:44, 79, 13;--gov-color-success-700:#2c4f0d;--gov-color-warning-100-rgb:254, 249, 239;--gov-color-warning-100:#fef9ef;--gov-color-warning-200-rgb:250, 236, 200;--gov-color-warning-200:#faecc8;--gov-color-warning-300-rgb:250, 212, 123;--gov-color-warning-300:#fad47b;--gov-color-warning-400-rgb:249, 193, 60;--gov-color-warning-400:#f9c13c;--gov-color-warning-500-rgb:199, 131, 0;--gov-color-warning-500:#c78300;--gov-color-warning-600-rgb:153, 98, 15;--gov-color-warning-600:#99620f;--gov-color-warning-700-rgb:134, 81, 2;--gov-color-warning-700:#865102;--gov-color-error-100-rgb:255, 232, 234;--gov-color-error-100:#ffe8ea;--gov-color-error-200-rgb:247, 205, 210;--gov-color-error-200:#f7cdd2;--gov-color-error-300-rgb:217, 102, 113;--gov-color-error-300:#d96671;--gov-color-error-400-rgb:197, 42, 58;--gov-color-error-400:#c52a3a;--gov-color-error-500-rgb:158, 6, 21;--gov-color-error-500:#9e0615;--gov-color-error-600-rgb:131, 7, 19;--gov-color-error-600:#830713;--gov-color-focus-base-rgb:0, 123, 255;--gov-color-focus-base:#007bff;--gov-color-neutral-black-rgb:0, 0, 0;--gov-color-neutral-black:#000000;--gov-color-neutral-white-rgb:255, 255, 255;--gov-color-neutral-white:#ffffff;--gov-box-shadow-unset:none;--gov-box-shadow-s:0 0 0.75rem rgba(var(--gov-color-secondary-800-rgb), 0.16);--gov-box-shadow-m:0 0 1.25rem rgba(var(--gov-color-secondary-800-rgb), 0.2);--gov-box-shadow-l:0 0 1.5rem rgba(var(--gov-color-secondary-800-rgb), 0.24);--gov-box-shadow-xl:0 0 2rem rgba(var(--gov-color-secondary-800-rgb), 0.32)}@media (min-width: 0){:root,:host{--gov-text-xs-font-size:0.75rem;--gov-text-xs-line-height:150%;--gov-text-xs-font-weight:400;--gov-text-xs-letter-spacing:0.0166em;--gov-text-xs-margin-bottom:0.5rem;--gov-text-s-font-size:0.875rem;--gov-text-s-line-height:150%;--gov-text-s-font-weight:400;--gov-text-s-letter-spacing:0.0125em;--gov-text-s-margin-bottom:0.5rem;--gov-text-m-font-size:1rem;--gov-text-m-line-height:150%;--gov-text-m-font-weight:400;--gov-text-m-letter-spacing:0.0125em;--gov-text-m-margin-bottom:0.5rem;--gov-text-l-font-size:1.125rem;--gov-text-l-line-height:150%;--gov-text-l-font-weight:400;--gov-text-l-letter-spacing:0.0125em;--gov-text-l-margin-bottom:0.5rem;--gov-text-xl-font-size:1.25rem;--gov-text-xl-line-height:150%;--gov-text-xl-font-weight:500;--gov-text-xl-letter-spacing:0.0125em;--gov-text-xl-margin-top:0.5rem;--gov-text-xl-margin-bottom:0.5rem;--gov-text-2xl-font-size:1.375rem;--gov-text-2xl-line-height:150%;--gov-text-2xl-font-weight:500;--gov-text-2xl-letter-spacing:0.0312em;--gov-text-2xl-margin-top:0.5rem;--gov-text-2xl-margin-bottom:0.5rem;--gov-text-3xl-font-size:1.625rem;--gov-text-3xl-line-height:150%;--gov-text-3xl-font-weight:400;--gov-text-3xl-margin-top:1rem;--gov-text-3xl-margin-bottom:0.5rem;--gov-text-4xl-font-size:2rem;--gov-text-4xl-line-height:130%;--gov-text-4xl-font-weight:300;--gov-text-4xl-margin-top:1rem;--gov-text-4xl-margin-bottom:1rem;--gov-text-5xl-font-size:2.25rem;--gov-text-5xl-line-height:125%;--gov-text-5xl-font-weight:300;--gov-text-5xl-margin-top:1.5rem;--gov-text-5xl-margin-bottom:1rem;--gov-text-6xl-font-size:3rem;--gov-text-6xl-line-height:125%;--gov-text-6xl-font-weight:300;--gov-text-6xl-margin-top:2rem;--gov-text-6xl-margin-bottom:1.5rem}}@media (min-width: 48em){:root,:host{--gov-text-2xl-font-size:1.375rem;--gov-text-2xl-margin-top:1rem;--gov-text-3xl-font-size:1.75rem;--gov-text-3xl-line-height:150%;--gov-text-3xl-margin-top:1.5rem;--gov-text-4xl-font-size:2.25rem;--gov-text-4xl-margin-top:1.5rem;--gov-text-5xl-font-size:2.625rem;--gov-text-5xl-margin-top:2rem;--gov-text-6xl-font-size:3.625rem;--gov-text-6xl-margin-top:2.5rem}}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-content h1,.gov-content .h1{margin-bottom:var(--gov-text-6xl-margin-bottom)}*+.gov-content h1,*+.gov-content .h1{margin-top:var(--gov-text-6xl-margin-top)}.gov-content h2,.gov-content .h2{margin-bottom:var(--gov-text-5xl-margin-bottom)}*+.gov-content h2,*+.gov-content .h2{margin-top:var(--gov-text-5xl-margin-top)}.gov-content h3,.gov-content .h3{margin-bottom:var(--gov-text-4xl-margin-bottom)}*+.gov-content h3,*+.gov-content .h3{margin-top:var(--gov-text-4xl-margin-top)}.gov-content h4,.gov-content .h4{margin-bottom:var(--gov-text-3xl-margin-bottom)}*+.gov-content h4,*+.gov-content .h4{margin-top:var(--gov-text-3xl-margin-top)}.gov-content h5,.gov-content .h5{margin-bottom:var(--gov-text-2xl-margin-bottom)}*+.gov-content h5,*+.gov-content .h5{margin-top:var(--gov-text-2xl-margin-top)}.gov-content h6,.gov-content .h6{margin-bottom:var(--gov-text-xl-margin-bottom)}*+.gov-content h6,*+.gov-content .h6{margin-top:var(--gov-text-xl-margin-top)}.gov-content p{margin-bottom:var(--gov-text-m-margin-bottom)}*+.gov-content p{margin-top:var(--gov-text-m-margin-top)}.gov-content .gov-text--xs{margin-bottom:var(--gov-text-xs-margin-bottom)}*+.gov-content .gov-text--xs{margin-top:var(--gov-text-xs-margin-top)}.gov-content .gov-text--s{margin-bottom:var(--gov-text-s-margin-bottom)}*+.gov-content .gov-text--s{margin-top:var(--gov-text-s-margin-top)}.gov-content .gov-text--m{margin-bottom:var(--gov-text-m-margin-bottom)}*+.gov-content .gov-text--m{margin-top:var(--gov-text-m-margin-top)}.gov-content .gov-text--l{margin-bottom:var(--gov-text-l-margin-bottom)}*+.gov-content .gov-text--l{margin-top:var(--gov-text-l-margin-top)}.gov-content .gov-text--xl{margin-bottom:var(--gov-text-xl-margin-bottom)}*+.gov-content .gov-text--xl{margin-top:var(--gov-text-xl-margin-top)}.gov-content .gov-text--2xl{margin-bottom:var(--gov-text-2xl-margin-bottom)}*+.gov-content .gov-text--2xl{margin-top:var(--gov-text-2xl-margin-top)}.gov-content .gov-text--3xl{margin-bottom:var(--gov-text-3xl-margin-bottom)}*+.gov-content .gov-text--3xl{margin-top:var(--gov-text-3xl-margin-top)}.gov-content .gov-text--4xl{margin-bottom:var(--gov-text-4xl-margin-bottom)}*+.gov-content .gov-text--4xl{margin-top:var(--gov-text-4xl-margin-top)}.gov-content .gov-text--5xl{margin-bottom:var(--gov-text-5xl-margin-bottom)}*+.gov-content .gov-text--5xl{margin-top:var(--gov-text-5xl-margin-top)}.gov-content .gov-text--6xl{margin-bottom:var(--gov-text-6xl-margin-bottom)}*+.gov-content .gov-text--6xl{margin-top:var(--gov-text-6xl-margin-top)}html{font-size:16px;box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}body,:host{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);min-width:var(--gov-layout-min-width, 20rem);margin:0;padding:0;color:var(--gov-color-secondary);font-family:var(--gov-font-family, "Roboto", sans-serif)}body.body-fixed,:host.body-fixed{overflow:hidden}:first-child{margin-top:0}hr{height:0;border:0 none;border-top:1px solid gainsboro;font-size:0}legend{margin-bottom:1rem;color:var(--gov-form-legend-color, #3b3b3b)}fieldset{border:none;padding:0}
1
+ .gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}*{margin:0}h1,.h1{font-weight:var(--gov-text-6xl-font-weight);font-size:var(--gov-text-6xl-font-size);line-height:var(--gov-text-6xl-line-height);letter-spacing:var(--gov-text-6xl-letter-spacing)}h2,.h2{font-weight:var(--gov-text-5xl-font-weight);font-size:var(--gov-text-5xl-font-size);line-height:var(--gov-text-5xl-line-height);letter-spacing:var(--gov-text-5xl-letter-spacing)}h3,.h3{font-weight:var(--gov-text-4xl-font-weight);font-size:var(--gov-text-4xl-font-size);line-height:var(--gov-text-4xl-line-height);letter-spacing:var(--gov-text-4xl-letter-spacing)}h4,.h4{font-weight:var(--gov-text-3xl-font-weight);font-size:var(--gov-text-3xl-font-size);line-height:var(--gov-text-3xl-line-height);letter-spacing:var(--gov-text-3xl-letter-spacing)}h5,.h5{font-weight:var(--gov-text-2xl-font-weight);font-size:var(--gov-text-2xl-font-size);line-height:var(--gov-text-2xl-line-height);letter-spacing:var(--gov-text-2xl-letter-spacing)}h6,.h6{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing)}p{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-text--xs{font-weight:var(--gov-text-xs-font-weight);font-size:var(--gov-text-xs-font-size);line-height:var(--gov-text-xs-line-height);letter-spacing:var(--gov-text-xs-letter-spacing)}.gov-text--s{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-text--m{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-text--l{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing)}.gov-text--xl{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing)}.gov-text--2xl{font-weight:var(--gov-text-2xl-font-weight);font-size:var(--gov-text-2xl-font-size);line-height:var(--gov-text-2xl-line-height);letter-spacing:var(--gov-text-2xl-letter-spacing)}.gov-text--3xl{font-weight:var(--gov-text-3xl-font-weight);font-size:var(--gov-text-3xl-font-size);line-height:var(--gov-text-3xl-line-height);letter-spacing:var(--gov-text-3xl-letter-spacing)}.gov-text--4xl{font-weight:var(--gov-text-4xl-font-weight);font-size:var(--gov-text-4xl-font-size);line-height:var(--gov-text-4xl-line-height);letter-spacing:var(--gov-text-4xl-letter-spacing)}.gov-text--5xl{font-weight:var(--gov-text-5xl-font-weight);font-size:var(--gov-text-5xl-font-size);line-height:var(--gov-text-5xl-line-height);letter-spacing:var(--gov-text-5xl-letter-spacing)}.gov-text--6xl{font-weight:var(--gov-text-6xl-font-weight);font-size:var(--gov-text-6xl-font-size);line-height:var(--gov-text-6xl-line-height);letter-spacing:var(--gov-text-6xl-letter-spacing)}a,.gov-link{color:var(--gov-color-primary);text-decoration:underline;transition:color 150ms ease-in-out;cursor:pointer}a:focus,.gov-link:focus{outline:none}a:focus-visible,.gov-link:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0.0625rem}a>*,.gov-link>*{color:var(--gov-color-primary)}a .gov-link--icon-unset .gov-icon,.gov-link .gov-link--icon-unset .gov-icon{display:none !important}a .gov-link--external-unset:after,.gov-link .gov-link--external-unset:after{display:none !important}@media not all and (pointer: coarse){a:hover,.gov-link:hover{text-decoration:none}}a .gov-link--external.gov-text--xs::after,a[target=_blank].gov-text--xs::after,.gov-link .gov-link--external.gov-text--xs::after,.gov-link[target=_blank].gov-text--xs::after{font-size:calc(var(--gov-text-xs-font-size) * 1.4)}a .gov-link--external.gov-text--s::after,a[target=_blank].gov-text--s::after,.gov-link .gov-link--external.gov-text--s::after,.gov-link[target=_blank].gov-text--s::after{font-size:calc(var(--gov-text-s-font-size) * 1.4)}a .gov-link--external.gov-text--m::after,a[target=_blank].gov-text--m::after,.gov-link .gov-link--external.gov-text--m::after,.gov-link[target=_blank].gov-text--m::after{font-size:calc(var(--gov-text-m-font-size) * 1.4)}a .gov-link--external.gov-text--l::after,a[target=_blank].gov-text--l::after,.gov-link .gov-link--external.gov-text--l::after,.gov-link[target=_blank].gov-text--l::after{font-size:calc(var(--gov-text-l-font-size) * 1.4)}a .gov-link--external.gov-text--xl::after,a[target=_blank].gov-text--xl::after,.gov-link .gov-link--external.gov-text--xl::after,.gov-link[target=_blank].gov-text--xl::after{font-size:calc(var(--gov-text-xl-font-size) * 1.4)}a .gov-link--external.gov-text--2xl::after,a[target=_blank].gov-text--2xl::after,.gov-link .gov-link--external.gov-text--2xl::after,.gov-link[target=_blank].gov-text--2xl::after{font-size:calc(var(--gov-text-2xl-font-size) * 1.4)}a .gov-link--external.gov-text--3xl::after,a[target=_blank].gov-text--3xl::after,.gov-link .gov-link--external.gov-text--3xl::after,.gov-link[target=_blank].gov-text--3xl::after{font-size:calc(var(--gov-text-3xl-font-size) * 1.4)}a .gov-link--external.gov-text--4xl::after,a[target=_blank].gov-text--4xl::after,.gov-link .gov-link--external.gov-text--4xl::after,.gov-link[target=_blank].gov-text--4xl::after{font-size:calc(var(--gov-text-4xl-font-size) * 1.4)}a .gov-link--external.gov-text--5xl::after,a[target=_blank].gov-text--5xl::after,.gov-link .gov-link--external.gov-text--5xl::after,.gov-link[target=_blank].gov-text--5xl::after{font-size:calc(var(--gov-text-5xl-font-size) * 1.4)}a .gov-link--external.gov-text--6xl::after,a[target=_blank].gov-text--6xl::after,.gov-link .gov-link--external.gov-text--6xl::after,.gov-link[target=_blank].gov-text--6xl::after{font-size:calc(var(--gov-text-6xl-font-size) * 1.4)}a .gov-link--external.gov-text--2xl::after,a[target=_blank].gov-text--2xl::after,.gov-link .gov-link--external.gov-text--2xl::after,.gov-link[target=_blank].gov-text--2xl::after{font-size:calc(var(--gov-text-2xl-font-size) * 1.4)}a .gov-link--external.gov-text--3xl::after,a[target=_blank].gov-text--3xl::after,.gov-link .gov-link--external.gov-text--3xl::after,.gov-link[target=_blank].gov-text--3xl::after{font-size:calc(var(--gov-text-3xl-font-size) * 1.4)}a .gov-link--external.gov-text--4xl::after,a[target=_blank].gov-text--4xl::after,.gov-link .gov-link--external.gov-text--4xl::after,.gov-link[target=_blank].gov-text--4xl::after{font-size:calc(var(--gov-text-4xl-font-size) * 1.4)}a .gov-link--external.gov-text--5xl::after,a[target=_blank].gov-text--5xl::after,.gov-link .gov-link--external.gov-text--5xl::after,.gov-link[target=_blank].gov-text--5xl::after{font-size:calc(var(--gov-text-5xl-font-size) * 1.4)}a .gov-link--external.gov-text--6xl::after,a[target=_blank].gov-text--6xl::after,.gov-link .gov-link--external.gov-text--6xl::after,.gov-link[target=_blank].gov-text--6xl::after{font-size:calc(var(--gov-text-6xl-font-size) * 1.4)}ol,.gov-ordered-list{margin:0}ol>li,ol>.gov-ordered-list__item,.gov-ordered-list>li,.gov-ordered-list>.gov-ordered-list__item{margin-bottom:0.25rem}ul,.gov-list{margin:0;list-style:none}ul>*:last-child,.gov-list>*:last-child{margin-bottom:0}ul--plain,.gov-list--plain{padding-left:0}ul--plain>li,ul--plain>.gov-list__item,.gov-list--plain>li,.gov-list--plain>.gov-list__item{margin-bottom:0.25rem}ul--plain>li::before,ul--plain>.gov-list__item::before,.gov-list--plain>li::before,.gov-list--plain>.gov-list__item::before{display:none}ul--inline>li,ul--inline>.gov-list__item,.gov-list--inline>li,.gov-list--inline>.gov-list__item{display:inline-block;margin-right:0.75rem}ul>li,.gov-list>li,.gov-list__item{position:relative;margin-bottom:0.5rem}ul>li::before,.gov-list>li::before,.gov-list__item::before{content:"";position:absolute;display:block;top:0.625rem;left:-0.875rem;width:0.3125rem;height:0.3125rem;border-radius:100%;background-color:var(--gov-color-primary)}.gov-box-shadow--unset{box-shadow:none}.gov-box-shadow--s{box-shadow:0 0 0.75rem rgba(var(--gov-color-secondary-800-rgb), 0.16)}.gov-box-shadow--m{box-shadow:0 0 1.25rem rgba(var(--gov-color-secondary-800-rgb), 0.2)}.gov-box-shadow--l{box-shadow:0 0 1.5rem rgba(var(--gov-color-secondary-800-rgb), 0.24)}.gov-box-shadow--xl{box-shadow:0 0 2rem rgba(var(--gov-color-secondary-800-rgb), 0.32)}.gov-bg--primary-100{background-color:var(--gov-color-primary-100)}.gov-bg--primary-200{background-color:var(--gov-color-primary-200)}.gov-bg--primary-300{background-color:var(--gov-color-primary-300)}.gov-bg--primary-400{background-color:var(--gov-color-primary-400)}.gov-bg--primary-500{background-color:var(--gov-color-primary-500)}.gov-bg--primary-600{background-color:var(--gov-color-primary-600)}.gov-bg--primary-700{background-color:var(--gov-color-primary-700)}.gov-bg--primary-800{background-color:var(--gov-color-primary-800)}.gov-bg--primary-900{background-color:var(--gov-color-primary-900)}.gov-bg--secondary-100{background-color:var(--gov-color-secondary-100)}.gov-bg--secondary-200{background-color:var(--gov-color-secondary-200)}.gov-bg--secondary-300{background-color:var(--gov-color-secondary-300)}.gov-bg--secondary-400{background-color:var(--gov-color-secondary-400)}.gov-bg--secondary-500{background-color:var(--gov-color-secondary-500)}.gov-bg--secondary-600{background-color:var(--gov-color-secondary-600)}.gov-bg--secondary-700{background-color:var(--gov-color-secondary-700)}.gov-bg--secondary-800{background-color:var(--gov-color-secondary-800)}.gov-bg--secondary-900{background-color:var(--gov-color-secondary-900)}.gov-bg--success-100{background-color:var(--gov-color-success-100)}.gov-bg--success-200{background-color:var(--gov-color-success-200)}.gov-bg--success-300{background-color:var(--gov-color-success-300)}.gov-bg--success-400{background-color:var(--gov-color-success-400)}.gov-bg--success-500{background-color:var(--gov-color-success-500)}.gov-bg--success-600{background-color:var(--gov-color-success-600)}.gov-bg--success-700{background-color:var(--gov-color-success-700)}.gov-bg--warning-100{background-color:var(--gov-color-warning-100)}.gov-bg--warning-200{background-color:var(--gov-color-warning-200)}.gov-bg--warning-300{background-color:var(--gov-color-warning-300)}.gov-bg--warning-400{background-color:var(--gov-color-warning-400)}.gov-bg--warning-500{background-color:var(--gov-color-warning-500)}.gov-bg--warning-600{background-color:var(--gov-color-warning-600)}.gov-bg--warning-700{background-color:var(--gov-color-warning-700)}.gov-bg--error-100{background-color:var(--gov-color-error-100)}.gov-bg--error-200{background-color:var(--gov-color-error-200)}.gov-bg--error-300{background-color:var(--gov-color-error-300)}.gov-bg--error-400{background-color:var(--gov-color-error-400)}.gov-bg--error-500{background-color:var(--gov-color-error-500)}.gov-bg--error-600{background-color:var(--gov-color-error-600)}.gov-bg--focus-base{background-color:var(--gov-color-focus-base)}.gov-bg--neutral-black{background-color:var(--gov-color-neutral-black)}.gov-bg--neutral-white{background-color:var(--gov-color-neutral-white)}.gov-color--primary-100{color:var(--gov-color-primary-100)}.gov-color--primary-200{color:var(--gov-color-primary-200)}.gov-color--primary-300{color:var(--gov-color-primary-300)}.gov-color--primary-400{color:var(--gov-color-primary-400)}.gov-color--primary-500{color:var(--gov-color-primary-500)}.gov-color--primary-600{color:var(--gov-color-primary-600)}.gov-color--primary-700{color:var(--gov-color-primary-700)}.gov-color--primary-800{color:var(--gov-color-primary-800)}.gov-color--primary-900{color:var(--gov-color-primary-900)}.gov-color--secondary-100{color:var(--gov-color-secondary-100)}.gov-color--secondary-200{color:var(--gov-color-secondary-200)}.gov-color--secondary-300{color:var(--gov-color-secondary-300)}.gov-color--secondary-400{color:var(--gov-color-secondary-400)}.gov-color--secondary-500{color:var(--gov-color-secondary-500)}.gov-color--secondary-600{color:var(--gov-color-secondary-600)}.gov-color--secondary-700{color:var(--gov-color-secondary-700)}.gov-color--secondary-800{color:var(--gov-color-secondary-800)}.gov-color--secondary-900{color:var(--gov-color-secondary-900)}.gov-color--success-100{color:var(--gov-color-success-100)}.gov-color--success-200{color:var(--gov-color-success-200)}.gov-color--success-300{color:var(--gov-color-success-300)}.gov-color--success-400{color:var(--gov-color-success-400)}.gov-color--success-500{color:var(--gov-color-success-500)}.gov-color--success-600{color:var(--gov-color-success-600)}.gov-color--success-700{color:var(--gov-color-success-700)}.gov-color--warning-100{color:var(--gov-color-warning-100)}.gov-color--warning-200{color:var(--gov-color-warning-200)}.gov-color--warning-300{color:var(--gov-color-warning-300)}.gov-color--warning-400{color:var(--gov-color-warning-400)}.gov-color--warning-500{color:var(--gov-color-warning-500)}.gov-color--warning-600{color:var(--gov-color-warning-600)}.gov-color--warning-700{color:var(--gov-color-warning-700)}.gov-color--error-100{color:var(--gov-color-error-100)}.gov-color--error-200{color:var(--gov-color-error-200)}.gov-color--error-300{color:var(--gov-color-error-300)}.gov-color--error-400{color:var(--gov-color-error-400)}.gov-color--error-500{color:var(--gov-color-error-500)}.gov-color--error-600{color:var(--gov-color-error-600)}.gov-color--focus-base{color:var(--gov-color-focus-base)}.gov-color--neutral-black{color:var(--gov-color-neutral-black)}.gov-color--neutral-white{color:var(--gov-color-neutral-white)}.gov-hide{display:none}@media (max-width: 29.99em){.gov-hide--sm{display:none;visibility:hidden}}@media (max-width: 47.99em){.gov-hide--md{display:none;visibility:hidden}}@media (max-width: 63.99em){.gov-hide--lg{display:none;visibility:hidden}}@media (max-width: 74.99em){.gov-hide--xl{display:none;visibility:hidden}}:root,:host{--gov-color-primary:#2362a2;--gov-color-secondary:#3b3b3b;--gov-color-success:#6fbd2c;--gov-color-warning:#f9c13c;--gov-color-error:#c52a3a;--gov-color-primary-100-rgb:236, 247, 255;--gov-color-primary-100:#ecf7ff;--gov-color-primary-200-rgb:217, 239, 255;--gov-color-primary-200:#d9efff;--gov-color-primary-300-rgb:181, 217, 243;--gov-color-primary-300:#b5d9f3;--gov-color-primary-400-rgb:102, 161, 216;--gov-color-primary-400:#66a1d8;--gov-color-primary-500-rgb:48, 119, 183;--gov-color-primary-500:#3077b7;--gov-color-primary-600-rgb:35, 98, 162;--gov-color-primary-600:#2362a2;--gov-color-primary-700-rgb:37, 78, 128;--gov-color-primary-700:#254e80;--gov-color-primary-800-rgb:21, 53, 94;--gov-color-primary-800:#15355e;--gov-color-primary-900-rgb:13, 33, 58;--gov-color-primary-900:#0d213a;--gov-color-secondary-100-rgb:252, 252, 252;--gov-color-secondary-100:#fcfcfc;--gov-color-secondary-200-rgb:250, 250, 250;--gov-color-secondary-200:#fafafa;--gov-color-secondary-300-rgb:245, 245, 245;--gov-color-secondary-300:#f5f5f5;--gov-color-secondary-400-rgb:234, 234, 234;--gov-color-secondary-400:#eaeaea;--gov-color-secondary-500-rgb:221, 221, 221;--gov-color-secondary-500:#dddddd;--gov-color-secondary-600-rgb:168, 168, 168;--gov-color-secondary-600:#a8a8a8;--gov-color-secondary-700-rgb:104, 104, 104;--gov-color-secondary-700:#686868;--gov-color-secondary-800-rgb:59, 59, 59;--gov-color-secondary-800:#3b3b3b;--gov-color-secondary-900-rgb:35, 35, 35;--gov-color-secondary-900:#232323;--gov-color-success-100-rgb:245, 250, 240;--gov-color-success-100:#f5faf0;--gov-color-success-200-rgb:220, 239, 204;--gov-color-success-200:#dcefcc;--gov-color-success-300-rgb:163, 213, 120;--gov-color-success-300:#a3d578;--gov-color-success-400-rgb:111, 189, 44;--gov-color-success-400:#6fbd2c;--gov-color-success-500-rgb:72, 133, 21;--gov-color-success-500:#488515;--gov-color-success-600-rgb:58, 98, 23;--gov-color-success-600:#3a6217;--gov-color-success-700-rgb:44, 79, 13;--gov-color-success-700:#2c4f0d;--gov-color-warning-100-rgb:254, 249, 239;--gov-color-warning-100:#fef9ef;--gov-color-warning-200-rgb:250, 236, 200;--gov-color-warning-200:#faecc8;--gov-color-warning-300-rgb:250, 212, 123;--gov-color-warning-300:#fad47b;--gov-color-warning-400-rgb:249, 193, 60;--gov-color-warning-400:#f9c13c;--gov-color-warning-500-rgb:199, 131, 0;--gov-color-warning-500:#c78300;--gov-color-warning-600-rgb:153, 98, 15;--gov-color-warning-600:#99620f;--gov-color-warning-700-rgb:134, 81, 2;--gov-color-warning-700:#865102;--gov-color-error-100-rgb:255, 232, 234;--gov-color-error-100:#ffe8ea;--gov-color-error-200-rgb:247, 205, 210;--gov-color-error-200:#f7cdd2;--gov-color-error-300-rgb:217, 102, 113;--gov-color-error-300:#d96671;--gov-color-error-400-rgb:197, 42, 58;--gov-color-error-400:#c52a3a;--gov-color-error-500-rgb:158, 6, 21;--gov-color-error-500:#9e0615;--gov-color-error-600-rgb:131, 7, 19;--gov-color-error-600:#830713;--gov-color-focus-base-rgb:0, 123, 255;--gov-color-focus-base:#007bff;--gov-color-neutral-black-rgb:0, 0, 0;--gov-color-neutral-black:#000000;--gov-color-neutral-white-rgb:255, 255, 255;--gov-color-neutral-white:#ffffff;--gov-box-shadow-unset:none;--gov-box-shadow-s:0 0 0.75rem rgba(var(--gov-color-secondary-800-rgb), 0.16);--gov-box-shadow-m:0 0 1.25rem rgba(var(--gov-color-secondary-800-rgb), 0.2);--gov-box-shadow-l:0 0 1.5rem rgba(var(--gov-color-secondary-800-rgb), 0.24);--gov-box-shadow-xl:0 0 2rem rgba(var(--gov-color-secondary-800-rgb), 0.32)}@media (min-width: 0){:root,:host{--gov-text-xs-font-size:0.75rem;--gov-text-xs-line-height:150%;--gov-text-xs-font-weight:400;--gov-text-xs-letter-spacing:0.0166em;--gov-text-xs-margin-bottom:0.5rem;--gov-text-s-font-size:0.875rem;--gov-text-s-line-height:150%;--gov-text-s-font-weight:400;--gov-text-s-letter-spacing:0.0125em;--gov-text-s-margin-bottom:0.5rem;--gov-text-m-font-size:1rem;--gov-text-m-line-height:150%;--gov-text-m-font-weight:400;--gov-text-m-letter-spacing:0.0125em;--gov-text-m-margin-bottom:0.5rem;--gov-text-l-font-size:1.125rem;--gov-text-l-line-height:150%;--gov-text-l-font-weight:400;--gov-text-l-letter-spacing:0.0125em;--gov-text-l-margin-bottom:0.5rem;--gov-text-xl-font-size:1.25rem;--gov-text-xl-line-height:150%;--gov-text-xl-font-weight:500;--gov-text-xl-letter-spacing:0.0125em;--gov-text-xl-margin-top:0.5rem;--gov-text-xl-margin-bottom:0.5rem;--gov-text-2xl-font-size:1.375rem;--gov-text-2xl-line-height:150%;--gov-text-2xl-font-weight:500;--gov-text-2xl-letter-spacing:0.0312em;--gov-text-2xl-margin-top:0.5rem;--gov-text-2xl-margin-bottom:0.5rem;--gov-text-3xl-font-size:1.625rem;--gov-text-3xl-line-height:150%;--gov-text-3xl-font-weight:400;--gov-text-3xl-margin-top:1rem;--gov-text-3xl-margin-bottom:0.5rem;--gov-text-4xl-font-size:2rem;--gov-text-4xl-line-height:130%;--gov-text-4xl-font-weight:300;--gov-text-4xl-margin-top:1rem;--gov-text-4xl-margin-bottom:1rem;--gov-text-5xl-font-size:2.25rem;--gov-text-5xl-line-height:125%;--gov-text-5xl-font-weight:300;--gov-text-5xl-margin-top:1.5rem;--gov-text-5xl-margin-bottom:1rem;--gov-text-6xl-font-size:3rem;--gov-text-6xl-line-height:125%;--gov-text-6xl-font-weight:300;--gov-text-6xl-margin-top:2rem;--gov-text-6xl-margin-bottom:1.5rem}}@media (min-width: 48em){:root,:host{--gov-text-2xl-font-size:1.375rem;--gov-text-2xl-margin-top:1rem;--gov-text-3xl-font-size:1.75rem;--gov-text-3xl-line-height:150%;--gov-text-3xl-margin-top:1.5rem;--gov-text-4xl-font-size:2.25rem;--gov-text-4xl-margin-top:1.5rem;--gov-text-5xl-font-size:2.625rem;--gov-text-5xl-margin-top:2rem;--gov-text-6xl-font-size:3.625rem;--gov-text-6xl-margin-top:2.5rem}}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-content h1,.gov-content .h1{margin-bottom:var(--gov-text-6xl-margin-bottom);margin-top:var(--gov-text-6xl-margin-top)}.gov-content h2,.gov-content .h2{margin-bottom:var(--gov-text-5xl-margin-bottom);margin-top:var(--gov-text-5xl-margin-top)}.gov-content h3,.gov-content .h3{margin-bottom:var(--gov-text-4xl-margin-bottom);margin-top:var(--gov-text-4xl-margin-top)}.gov-content h4,.gov-content .h4{margin-bottom:var(--gov-text-3xl-margin-bottom);margin-top:var(--gov-text-3xl-margin-top)}.gov-content h5,.gov-content .h5{margin-bottom:var(--gov-text-2xl-margin-bottom);margin-top:var(--gov-text-2xl-margin-top)}.gov-content h6,.gov-content .h6{margin-bottom:var(--gov-text-xl-margin-bottom);margin-top:var(--gov-text-xl-margin-top)}.gov-content p{margin-bottom:var(--gov-text-m-margin-bottom);margin-top:var(--gov-text-m-margin-top)}.gov-content .gov-text--xs{margin-bottom:var(--gov-text-xs-margin-bottom);margin-top:var(--gov-text-xs-margin-top)}.gov-content .gov-text--s{margin-bottom:var(--gov-text-s-margin-bottom);margin-top:var(--gov-text-s-margin-top)}.gov-content .gov-text--m{margin-bottom:var(--gov-text-m-margin-bottom);margin-top:var(--gov-text-m-margin-top)}.gov-content .gov-text--l{margin-bottom:var(--gov-text-l-margin-bottom);margin-top:var(--gov-text-l-margin-top)}.gov-content .gov-text--xl{margin-bottom:var(--gov-text-xl-margin-bottom);margin-top:var(--gov-text-xl-margin-top)}.gov-content .gov-text--2xl{margin-bottom:var(--gov-text-2xl-margin-bottom);margin-top:var(--gov-text-2xl-margin-top)}.gov-content .gov-text--3xl{margin-bottom:var(--gov-text-3xl-margin-bottom);margin-top:var(--gov-text-3xl-margin-top)}.gov-content .gov-text--4xl{margin-bottom:var(--gov-text-4xl-margin-bottom);margin-top:var(--gov-text-4xl-margin-top)}.gov-content .gov-text--5xl{margin-bottom:var(--gov-text-5xl-margin-bottom);margin-top:var(--gov-text-5xl-margin-top)}.gov-content .gov-text--6xl{margin-bottom:var(--gov-text-6xl-margin-bottom);margin-top:var(--gov-text-6xl-margin-top)}.gov-content *:first-child{margin-top:0}.gov-content *:last-child{margin-bottom:0}html{font-size:16px;box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}body,:host{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);min-width:var(--gov-layout-min-width, 20rem);margin:0;padding:0;color:var(--gov-color-secondary);font-family:var(--gov-font-family, "Roboto", sans-serif)}body.body-fixed,:host.body-fixed{overflow:hidden}:first-child{margin-top:0}hr{height:0;border:0 none;border-top:1px solid gainsboro;font-size:0}legend{margin-bottom:1rem;color:var(--gov-form-legend-color, #3b3b3b)}fieldset{border:none;padding:0}
@@ -1,2 +1,2 @@
1
- import{p as e,b as a}from"./p-10cbc3fe.js";export{s as setNonce}from"./p-10cbc3fe.js";const l=()=>{const a=import.meta.url;const l={};if(a!==""){l.resourcesUrl=new URL(".",a).href}return e(l)};l().then((e=>a(JSON.parse('[["p-fea58abc",[[4,"gov-form-file",{"expanded":[4],"required":[4],"disabled":[4],"displayAttachments":[4,"display-attachments"],"name":[1],"accept":[1],"multiple":[4],"maxFileSize":[2,"max-file-size"],"identifier":[1],"invalid":[4],"errorSize":[1,"error-size"],"errorAccept":[1,"error-accept"],"attachmentsLabel":[1,"attachments-label"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagRemoveLabel":[1,"wcag-remove-label"],"wcagAttachmentsLabel":[1,"wcag-attachments-label"],"files":[32],"getRef":[64],"getAreaRef":[64],"reset":[64],"validateWcag":[64]}]]],["p-49729bd4",[[4,"gov-form-multi-select",{"identifier":[1],"placeholder":[1],"variant":[1],"size":[1],"name":[1],"required":[4],"disabled":[4],"invalid":[4],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagOwns":[1,"wcag-owns"],"focused":[32],"value":[32],"selectedOptions":[32],"setFocus":[64],"setValue":[64],"getRef":[64],"validateWcag":[64]}]]],["p-afa12399",[[4,"gov-modal",{"open":[1028],"label":[1],"role":[1],"labelTag":[1,"label-tag"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagCloseLabel":[1,"wcag-close-label"],"wcagCloseLabelledBy":[1,"wcag-close-labelled-by"],"show":[64],"hide":[64],"validateWcag":[64]}]]],["p-243a61bf",[[0,"gov-pagination",{"type":[1],"current":[2],"total":[2],"inverse":[4],"size":[1],"variant":[1],"pageSize":[2,"page-size"],"maxPages":[2,"max-pages"],"link":[1],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagSelectLabel":[1,"wcag-select-label"],"wcagPageLabel":[1,"wcag-page-label"],"pagination":[32],"validateWcag":[64]}]]],["p-998c3336",[[4,"gov-prompt",{"open":[1028],"label":[1],"role":[1],"labelTag":[1,"label-tag"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagCloseLabel":[1,"wcag-close-label"],"wcagCloseLabelledBy":[1,"wcag-close-labelled-by"],"show":[64],"hide":[64],"validateWcag":[64]}]]],["p-c4c9ff83",[[4,"gov-tabs",{"type":[1],"variant":[1],"orientation":[1],"wcagLabel":[1,"wcag-label"],"wcagSelectLabel":[1,"wcag-select-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"controller":[32],"focusIndex":[32],"compactControls":[32],"refresh":[64],"currentTab":[64],"setActiveTab":[64],"validateWcag":[64]}]]],["p-f9dfaff1",[[4,"gov-infobar",{"headline":[1],"variant":[1],"inverse":[4],"wcagCloseLabel":[1,"wcag-close-label"],"wcagToggleLabel":[1,"wcag-toggle-label"],"closable":[4],"toggleContent":[32],"validateWcag":[64]}]]],["p-2bb9f781",[[4,"gov-loading"]]],["p-49926f53",[[4,"gov-side-nav-item",{"inverse":[4],"compact":[4],"identifier":[1],"count":[4],"label":[1],"disabled":[4],"href":[1],"isExpanded":[4,"is-expanded"],"isExpandedState":[32],"open":[64],"close":[64],"toggle":[64],"currentState":[64]}]]],["p-ff97a688",[[4,"gov-toast",{"variant":[1],"gravity":[1],"position":[1],"type":[1],"time":[2],"closeLabel":[1,"close-label"],"wcagCloseLabel":[1,"wcag-close-label"],"destroy":[64]}]]],["p-bcf71ab5",[[4,"gov-tooltip-content",{"variant":[1],"size":[1],"persist":[4],"isVisible":[1028,"is-visible"],"parentId":[1,"parent-id"]}]]],["p-de5c9181",[[4,"gov-accordion-item",{"variant":[1],"identifier":[1],"size":[1],"disabled":[4],"isExpanded":[1028,"is-expanded"],"isExpandedState":[32],"open":[64],"close":[64],"toggle":[64],"currentState":[64]}]]],["p-0c57e410",[[4,"gov-card",{"promotion":[4],"label":[1],"collapsible":[4],"expanded":[4],"headlineTag":[1,"headline-tag"],"wcagTriggerLabel":[1,"wcag-trigger-label"],"wcagTriggerLabelledBy":[1,"wcag-trigger-labelled-by"],"isExpanded":[32],"open":[64],"close":[64],"validateWcag":[64]}]]],["p-2c0ac7ab",[[4,"gov-form-checkbox",{"value":[1],"checked":[1540],"required":[4],"disabled":[4],"name":[1],"size":[1],"identifier":[1],"noLabel":[4,"no-label"],"invalid":[4],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"getRef":[64],"validateWcag":[64]}]]],["p-74ce7780",[[4,"gov-tile",{"href":[1],"target":[1],"getTriggerRef":[64]}]]],["p-f8252fea",[[4,"gov-wizard-item",{"variant":[1],"size":[1],"identifier":[1],"collapsible":[4],"annotation":[1],"label":[1],"disabled":[4],"isExpanded":[1028,"is-expanded"],"labelTag":[1,"label-tag"],"open":[64],"close":[64],"toggle":[64],"currentState":[64]}]]],["p-7702c8c2",[[4,"gov-accordion",{"size":[1],"variant":[1],"noBorder":[4,"no-border"],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-307d4c56",[[0,"gov-app"]]],["p-2bf0c1c5",[[4,"gov-breadcrumbs",{"collapsible":[4],"isExpanded":[4,"is-expanded"],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labeled-by"],"validateWcag":[64]}]]],["p-1c62f175",[[4,"gov-container",{"slottedChildren":[64]}]]],["p-89921159",[[4,"gov-control-group",{"variant":[1],"noBorder":[4,"no-border"]}]]],["p-041d30b1",[[4,"gov-cookiebar"]]],["p-0c769f1a",[[4,"gov-dropdown",{"open":[1028],"position":[1],"getState":[64],"setOpen":[64]}]]],["p-1da9f871",[[4,"gov-empty"]]],["p-88a78167",[[4,"gov-error-code"]]],["p-ab426e50",[[4,"gov-form-control",{"gap":[1],"identifier":[1],"invalid":[4],"disabled":[4],"success":[4],"fieldset":[4],"size":[1]}]]],["p-06699657",[[4,"gov-form-group",{"gap":[1],"orientation":[1]}]]],["p-82b4b522",[[4,"gov-form-label",{"identifier":[1],"size":[1],"required":[4],"legend":[4]}]]],["p-da762184",[[4,"gov-form-password-power",{"power":[2]}]]],["p-ce262a72",[[4,"gov-form-radio",{"value":[1],"noLabel":[4,"no-label"],"checked":[1540],"required":[4],"disabled":[4],"name":[1],"size":[1],"identifier":[1],"invalid":[4],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"getRef":[64],"validateWcag":[64]}]]],["p-5e23a6ba",[[4,"gov-form-search",{"variant":[1]}]]],["p-8667d5df",[[4,"gov-form-switch",{"value":[1],"noLabel":[4,"no-label"],"checked":[1540],"required":[4],"disabled":[4],"name":[1],"size":[1],"identifier":[1],"invalid":[4],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"getRef":[64],"validateWcag":[64]}]]],["p-0eb11cfc",[[4,"gov-grid",{"alignX":[1,"align-x"],"alignY":[1,"align-y"]}]]],["p-739dd451",[[4,"gov-grid-item",{"size":[1],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]],["p-6f43bd00",[[4,"gov-layout",{"type":[1],"variant":[1],"inverse":[4]}]]],["p-93042b25",[[4,"gov-layout-column"]]],["p-5316e768",[[4,"gov-message",{"variant":[1]}]]],["p-b0c97376",[[4,"gov-nav",{"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-33895061",[[4,"gov-nav-item",{"href":[1],"isExpandedState":[32]}]]],["p-7fa1290e",[[4,"gov-side-nav",{"inverse":[4],"compact":[4],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-7372b066",[[0,"gov-skeleton",{"variant":[1],"count":[2],"shape":[1],"width":[1],"height":[1],"animation":[1],"wcagLabel":[1,"wcag-label"],"validateWcag":[64]}]]],["p-88010439",[[0,"gov-spacer",{"size":[1],"breakpoint":[1]}]]],["p-e1780dba",[[4,"gov-statsbar",{"iconPosition":[1,"icon-position"],"variant":[1]}]]],["p-c81d62db",[[4,"gov-statsbar-item",{"iconPosition":[1,"icon-position"]}]]],["p-2fe9d3ea",[[4,"gov-stepper",{"size":[1]}]]],["p-2944bf77",[[4,"gov-stepper-item",{"variant":[1],"size":[1],"identifier":[1],"label":[1],"annotation":[1],"triggerTag":[1,"trigger-tag"],"isExpandedState":[32],"currentState":[64]}]]],["p-9633e7b5",[[4,"gov-tabs-item",{"identifier":[1],"triggerIdentifier":[1,"trigger-identifier"],"label":[1],"default":[4],"isActive":[32],"getIdentifier":[64],"getTriggerIdentifier":[64],"setActiveStatus":[64]}]]],["p-228da18e",[[4,"gov-tiles",{"columns":[2],"noBorder":[4,"no-border"]}]]],["p-5cc3e768",[[4,"gov-tooltip",{"variant":[1],"size":[1],"position":[1],"message":[1],"identifier":[1],"icon":[4],"persist":[32],"show":[64],"hide":[64]}]]],["p-4452c278",[[4,"gov-wizard",{"size":[1],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-8033916b",[[0,"gov-icon",{"name":[1],"type":[1],"iconData":[32],"visible":[32],"error":[32]}]]],["p-73fb7ac7",[[4,"gov-form-input",{"value":[1537],"identifier":[1],"variant":[1],"success":[4],"size":[1],"name":[1],"multiline":[4],"rows":[2],"cols":[2],"required":[4],"disabled":[4],"placeholder":[1],"readonly":[4],"minlength":[2],"maxlength":[2],"min":[8],"max":[8],"autocomplete":[4],"autocorrect":[4],"type":[1],"inputType":[1,"input-type"],"role":[1],"invalid":[4],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagOwns":[1,"wcag-owns"],"wcagAutocomplete":[1,"wcag-autocomplete"],"wcagExpanded":[4,"wcag-expanded"],"focused":[32],"setFocus":[64],"setValue":[64],"clearValue":[64],"getRef":[64],"validateWcag":[64]}]]],["p-ae04e58f",[[4,"gov-form-autocomplete",{"value":[1537],"identifier":[1],"variant":[1],"success":[4],"size":[1],"nameKey":[1,"name-key"],"name":[1],"required":[4],"disabled":[4],"placeholder":[1],"readonly":[4],"invalid":[4],"minlength":[2],"maxlength":[2],"messageEmpty":[1,"message-empty"],"messageLoading":[1,"message-loading"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagOwns":[1,"wcag-owns"],"focused":[32],"processing":[32],"arrowCounter":[32],"list":[32],"setFocus":[64],"setOptions":[64],"clearValue":[64],"setProcessing":[64],"setSearchCallback":[64],"setTemplateResolver":[64]}]]],["p-cb37644f",[[4,"gov-form-select",{"value":[1537],"identifier":[1],"variant":[1],"size":[1],"name":[1],"required":[4],"disabled":[4],"invalid":[4],"wcagActiveDescendant":[1,"wcag-active-descendant"],"wcagControls":[1,"wcag-controls"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagOwns":[1,"wcag-owns"],"focused":[32],"setFocus":[64],"setValue":[64],"getRef":[64],"validateWcag":[64]}]]],["p-c61444f7",[[4,"gov-badge",{"inverse":[4],"disabled":[4],"href":[1],"target":[1],"size":[1],"tag":[1],"variant":[1],"wcagLabel":[1,"wcag-label"],"getTriggerRef":[64]}]]],["p-7e8d2066",[[4,"gov-attachments-item",{"wcagRemoveLabel":[1,"wcag-remove-label"],"wcagRemoveLabelledBy":[1,"wcag-remove-labelled-by"],"validateWcag":[64]}],[4,"gov-attachments",{"label":[1],"wcagLabel":[1,"wcag-label"],"validateWcag":[64]}],[4,"gov-form-message",{"variant":[1],"identifier":[64]}]]],["p-93897e60",[[0,"gov-backdrop",{"inverse":[4],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-32a4b7e3",[[4,"gov-button",{"variant":[513],"size":[513],"type":[513],"expanded":[4],"inverse":[4],"name":[1],"disabled":[516],"nativeType":[1,"native-type"],"href":[1],"target":[1],"download":[4],"hreflang":[1],"referrerpolicy":[1],"rel":[1],"loading":[1],"focusable":[4],"identifier":[1],"wcagActiveDescendant":[1,"wcag-active-descendant"],"wcagControls":[1,"wcag-controls"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagDescription":[1,"wcag-description"],"wcagDetails":[1,"wcag-details"],"wcagExpanded":[4,"wcag-expanded"],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagOwns":[1,"wcag-owns"],"wcagHasPopup":[1,"wcag-has-popup"],"wcagPressed":[1,"wcag-pressed"],"wcagCurrent":[1,"wcag-current"],"isPressed":[32],"setFocus":[64],"getTriggerRef":[64],"validateWcag":[64]}]]]]'),e)));
1
+ import{p as e,b as a}from"./p-10cbc3fe.js";export{s as setNonce}from"./p-10cbc3fe.js";const l=()=>{const a=import.meta.url;const l={};if(a!==""){l.resourcesUrl=new URL(".",a).href}return e(l)};l().then((e=>a(JSON.parse('[["p-28f39f69",[[4,"gov-form-file",{"expanded":[4],"required":[4],"disabled":[4],"displayAttachments":[4,"display-attachments"],"name":[1],"accept":[1],"multiple":[4],"maxFileSize":[2,"max-file-size"],"identifier":[1],"invalid":[4],"errorSize":[1,"error-size"],"errorAccept":[1,"error-accept"],"attachmentsLabel":[1,"attachments-label"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagRemoveLabel":[1,"wcag-remove-label"],"wcagAttachmentsLabel":[1,"wcag-attachments-label"],"files":[32],"getRef":[64],"getAreaRef":[64],"reset":[64],"validateWcag":[64]}]]],["p-e2d6efaf",[[4,"gov-form-multi-select",{"identifier":[1],"placeholder":[1],"variant":[1],"size":[1],"name":[1],"required":[4],"disabled":[4],"invalid":[4],"success":[4],"messageEmpty":[1,"message-empty"],"messageLoading":[1,"message-loading"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagOwns":[1,"wcag-owns"],"focused":[32],"value":[32],"selectedOptions":[32],"setFocus":[64],"setValue":[64],"getRef":[64],"validateWcag":[64]}]]],["p-afa12399",[[4,"gov-modal",{"open":[1028],"label":[1],"role":[1],"labelTag":[1,"label-tag"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagCloseLabel":[1,"wcag-close-label"],"wcagCloseLabelledBy":[1,"wcag-close-labelled-by"],"show":[64],"hide":[64],"validateWcag":[64]}]]],["p-19b897c0",[[0,"gov-pagination",{"type":[1],"current":[2],"total":[2],"inverse":[4],"size":[1],"variant":[1],"pageSize":[2,"page-size"],"maxPages":[2,"max-pages"],"link":[1],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagSelectLabel":[1,"wcag-select-label"],"wcagPageLabel":[1,"wcag-page-label"],"pagination":[32],"validateWcag":[64]}]]],["p-998c3336",[[4,"gov-prompt",{"open":[1028],"label":[1],"role":[1],"labelTag":[1,"label-tag"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagCloseLabel":[1,"wcag-close-label"],"wcagCloseLabelledBy":[1,"wcag-close-labelled-by"],"show":[64],"hide":[64],"validateWcag":[64]}]]],["p-c4c9ff83",[[4,"gov-tabs",{"type":[1],"variant":[1],"orientation":[1],"wcagLabel":[1,"wcag-label"],"wcagSelectLabel":[1,"wcag-select-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"controller":[32],"focusIndex":[32],"compactControls":[32],"refresh":[64],"currentTab":[64],"setActiveTab":[64],"validateWcag":[64]}]]],["p-0553eb92",[[4,"gov-infobar",{"headline":[1],"variant":[1],"inverse":[4],"wcagCloseLabel":[1,"wcag-close-label"],"wcagToggleLabel":[1,"wcag-toggle-label"],"closable":[4],"toggleContent":[32],"validateWcag":[64]}]]],["p-2bb9f781",[[4,"gov-loading"]]],["p-49926f53",[[4,"gov-side-nav-item",{"inverse":[4],"compact":[4],"identifier":[1],"count":[4],"label":[1],"disabled":[4],"href":[1],"isExpanded":[4,"is-expanded"],"isExpandedState":[32],"open":[64],"close":[64],"toggle":[64],"currentState":[64]}]]],["p-e5227e40",[[4,"gov-toast",{"variant":[1],"gravity":[1],"position":[1],"type":[1],"time":[2],"closeLabel":[1,"close-label"],"wcagCloseLabel":[1,"wcag-close-label"],"destroy":[64]}]]],["p-bcf71ab5",[[4,"gov-tooltip-content",{"variant":[1],"size":[1],"persist":[4],"isVisible":[1028,"is-visible"],"parentId":[1,"parent-id"]}]]],["p-de5c9181",[[4,"gov-accordion-item",{"variant":[1],"identifier":[1],"size":[1],"disabled":[4],"isExpanded":[1028,"is-expanded"],"isExpandedState":[32],"open":[64],"close":[64],"toggle":[64],"currentState":[64]}]]],["p-0c57e410",[[4,"gov-card",{"promotion":[4],"label":[1],"collapsible":[4],"expanded":[4],"headlineTag":[1,"headline-tag"],"wcagTriggerLabel":[1,"wcag-trigger-label"],"wcagTriggerLabelledBy":[1,"wcag-trigger-labelled-by"],"isExpanded":[32],"open":[64],"close":[64],"validateWcag":[64]}]]],["p-35c1c12c",[[4,"gov-form-checkbox",{"value":[1],"checked":[1540],"required":[4],"disabled":[4],"name":[1],"size":[1],"identifier":[1],"noLabel":[4,"no-label"],"invalid":[4],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"getRef":[64],"validateWcag":[64]}]]],["p-74ce7780",[[4,"gov-tile",{"href":[1],"target":[1],"getTriggerRef":[64]}]]],["p-c5d3efc2",[[4,"gov-wizard-item",{"variant":[1],"size":[1],"identifier":[1],"collapsible":[4],"annotation":[1],"label":[1],"disabled":[4],"isExpanded":[1028,"is-expanded"],"labelTag":[1,"label-tag"],"open":[64],"close":[64],"toggle":[64],"currentState":[64]}]]],["p-7702c8c2",[[4,"gov-accordion",{"size":[1],"variant":[1],"noBorder":[4,"no-border"],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-d84b290e",[[0,"gov-app"]]],["p-2bf0c1c5",[[4,"gov-breadcrumbs",{"collapsible":[4],"isExpanded":[4,"is-expanded"],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labeled-by"],"validateWcag":[64]}]]],["p-1c62f175",[[4,"gov-container",{"slottedChildren":[64]}]]],["p-89921159",[[4,"gov-control-group",{"variant":[1],"noBorder":[4,"no-border"]}]]],["p-041d30b1",[[4,"gov-cookiebar"]]],["p-84f6b11a",[[4,"gov-dropdown",{"open":[1028],"position":[1],"getState":[64],"setOpen":[64]}]]],["p-1da9f871",[[4,"gov-empty"]]],["p-88a78167",[[4,"gov-error-code"]]],["p-f62efc34",[[4,"gov-form-control",{"gap":[1],"identifier":[1],"invalid":[4],"disabled":[4],"success":[4],"fieldset":[4],"size":[1]}]]],["p-06699657",[[4,"gov-form-group",{"gap":[1],"orientation":[1]}]]],["p-82b4b522",[[4,"gov-form-label",{"identifier":[1],"size":[1],"required":[4],"legend":[4]}]]],["p-da762184",[[4,"gov-form-password-power",{"power":[2]}]]],["p-acd6a9f4",[[4,"gov-form-radio",{"value":[1],"noLabel":[4,"no-label"],"checked":[1540],"required":[4],"disabled":[4],"name":[1],"size":[1],"identifier":[1],"invalid":[4],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"getRef":[64],"validateWcag":[64]}]]],["p-5e23a6ba",[[4,"gov-form-search",{"variant":[1]}]]],["p-fab698a7",[[4,"gov-form-switch",{"value":[1],"noLabel":[4,"no-label"],"checked":[1540],"required":[4],"disabled":[4],"name":[1],"size":[1],"identifier":[1],"invalid":[4],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"getRef":[64],"validateWcag":[64]}]]],["p-0eb11cfc",[[4,"gov-grid",{"alignX":[1,"align-x"],"alignY":[1,"align-y"]}]]],["p-739dd451",[[4,"gov-grid-item",{"size":[1],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]],["p-6f43bd00",[[4,"gov-layout",{"type":[1],"variant":[1],"inverse":[4]}]]],["p-93042b25",[[4,"gov-layout-column"]]],["p-5316e768",[[4,"gov-message",{"variant":[1]}]]],["p-b0c97376",[[4,"gov-nav",{"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-33895061",[[4,"gov-nav-item",{"href":[1],"isExpandedState":[32]}]]],["p-7fa1290e",[[4,"gov-side-nav",{"inverse":[4],"compact":[4],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-7372b066",[[0,"gov-skeleton",{"variant":[1],"count":[2],"shape":[1],"width":[1],"height":[1],"animation":[1],"wcagLabel":[1,"wcag-label"],"validateWcag":[64]}]]],["p-88010439",[[0,"gov-spacer",{"size":[1],"breakpoint":[1]}]]],["p-e1780dba",[[4,"gov-statsbar",{"iconPosition":[1,"icon-position"],"variant":[1]}]]],["p-c81d62db",[[4,"gov-statsbar-item",{"iconPosition":[1,"icon-position"]}]]],["p-2fe9d3ea",[[4,"gov-stepper",{"size":[1]}]]],["p-80f5140b",[[4,"gov-stepper-item",{"variant":[1],"size":[1],"identifier":[1],"label":[1],"annotation":[1],"triggerTag":[1,"trigger-tag"],"isExpandedState":[32],"currentState":[64]}]]],["p-9633e7b5",[[4,"gov-tabs-item",{"identifier":[1],"triggerIdentifier":[1,"trigger-identifier"],"label":[1],"default":[4],"isActive":[32],"getIdentifier":[64],"getTriggerIdentifier":[64],"setActiveStatus":[64]}]]],["p-228da18e",[[4,"gov-tiles",{"columns":[2],"noBorder":[4,"no-border"]}]]],["p-5cc3e768",[[4,"gov-tooltip",{"variant":[1],"size":[1],"position":[1],"message":[1],"identifier":[1],"icon":[4],"persist":[32],"show":[64],"hide":[64]}]]],["p-4452c278",[[4,"gov-wizard",{"size":[1],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-bc6f1479",[[0,"gov-icon",{"name":[1],"type":[1],"iconData":[32],"visible":[32],"error":[32]}]]],["p-1c40fdd5",[[4,"gov-form-input",{"value":[1537],"identifier":[1],"variant":[1],"success":[4],"size":[1],"name":[1],"multiline":[4],"rows":[2],"cols":[2],"required":[4],"disabled":[4],"placeholder":[1],"readonly":[4],"minlength":[2],"maxlength":[2],"min":[8],"max":[8],"autocomplete":[4],"autocorrect":[4],"type":[1],"inputType":[1,"input-type"],"role":[1],"invalid":[4],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagOwns":[1,"wcag-owns"],"wcagAutocomplete":[1,"wcag-autocomplete"],"wcagExpanded":[4,"wcag-expanded"],"focused":[32],"setFocus":[64],"setValue":[64],"clearValue":[64],"getRef":[64],"validateWcag":[64]}]]],["p-a7719b55",[[4,"gov-form-autocomplete",{"value":[1537],"identifier":[1],"variant":[1],"success":[4],"size":[1],"nameKey":[1,"name-key"],"name":[1],"required":[4],"disabled":[4],"placeholder":[1],"readonly":[4],"invalid":[4],"minlength":[2],"maxlength":[2],"messageEmpty":[1,"message-empty"],"messageLoading":[1,"message-loading"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagOwns":[1,"wcag-owns"],"focused":[32],"processing":[32],"arrowCounter":[32],"list":[32],"setFocus":[64],"setOptions":[64],"clearValue":[64],"setProcessing":[64],"setSearchCallback":[64],"setTemplateResolver":[64]}]]],["p-19a54ee9",[[4,"gov-form-select",{"value":[1537],"identifier":[1],"variant":[1],"size":[1],"name":[1],"required":[4],"success":[4],"disabled":[4],"invalid":[4],"wcagActiveDescendant":[1,"wcag-active-descendant"],"wcagControls":[1,"wcag-controls"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagOwns":[1,"wcag-owns"],"focused":[32],"setFocus":[64],"setValue":[64],"getRef":[64],"validateWcag":[64]}]]],["p-c61444f7",[[4,"gov-badge",{"inverse":[4],"disabled":[4],"href":[1],"target":[1],"size":[1],"tag":[1],"variant":[1],"wcagLabel":[1,"wcag-label"],"getTriggerRef":[64]}]]],["p-7e8d2066",[[4,"gov-attachments-item",{"wcagRemoveLabel":[1,"wcag-remove-label"],"wcagRemoveLabelledBy":[1,"wcag-remove-labelled-by"],"validateWcag":[64]}],[4,"gov-attachments",{"label":[1],"wcagLabel":[1,"wcag-label"],"validateWcag":[64]}],[4,"gov-form-message",{"variant":[1],"identifier":[64]}]]],["p-93897e60",[[0,"gov-backdrop",{"inverse":[4],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-32a4b7e3",[[4,"gov-button",{"variant":[513],"size":[513],"type":[513],"expanded":[4],"inverse":[4],"name":[1],"disabled":[516],"nativeType":[1,"native-type"],"href":[1],"target":[1],"download":[4],"hreflang":[1],"referrerpolicy":[1],"rel":[1],"loading":[1],"focusable":[4],"identifier":[1],"wcagActiveDescendant":[1,"wcag-active-descendant"],"wcagControls":[1,"wcag-controls"],"wcagDescribedBy":[1,"wcag-described-by"],"wcagDescription":[1,"wcag-description"],"wcagDetails":[1,"wcag-details"],"wcagExpanded":[4,"wcag-expanded"],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"wcagOwns":[1,"wcag-owns"],"wcagHasPopup":[1,"wcag-has-popup"],"wcagPressed":[1,"wcag-pressed"],"wcagCurrent":[1,"wcag-current"],"isPressed":[32],"setFocus":[64],"getTriggerRef":[64],"validateWcag":[64]}]]]]'),e)));
2
2
  //# sourceMappingURL=core.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","JSON","parse"],"sources":["../../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.2.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAKA,MAAMA,EAAe,KAyBjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,EC/B/BH,IAAeQ,MAAKC,GAEXC,EAAcC,KAAAC,MAAA,y+VAAuCH"}
1
+ {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","JSON","parse"],"sources":["../../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.2.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAKA,MAAMA,EAAe,KAyBjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,EC/B/BH,IAAeQ,MAAKC,GAEXC,EAAcC,KAAAC,MAAA,+kWAAuCH"}
@@ -1,2 +1,2 @@
1
- import{r as o,c as r,h as a,H as n,g as i}from"./p-10cbc3fe.js";import{v}from"./p-26acf964.js";import{V as e}from"./p-ff7365ae.js";import{p as t,d as c}from"./p-03990da5.js";import{g as s,a as g}from"./p-3f37ddb6.js";import{F as b}from"./p-1c1d0bbe.js";import{c as f}from"./p-570ef4e5.js";import{c as l}from"./p-cac3881f.js";import"./p-561fa17b.js";import"./p-24636c53.js";const _=t(e,["PRIMARY","SECONDARY","WARNING","ERROR","SUCCESS"]);const d={root:"gov-infobar",section:"gov-infobar__section",icon:"gov-infobar__icon",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const m='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-infobar{position:relative;display:block;width:100%}.gov-infobar__section{display:flex;gap:1rem;padding:1rem}.gov-infobar__icon{flex:0 0 auto}.gov-infobar__icon>*{width:1.25rem;height:1.25rem}.gov-infobar__headline{display:flex;gap:1rem}.gov-infobar__headline+div{margin-top:0.5rem}.gov-infobar__headline p{margin-bottom:0}.gov-infobar__headline gov-button{margin-top:-0.25rem}.gov-infobar__content{padding-right:3.5rem}.gov-infobar__content>*:last-child{margin-bottom:0}.gov-infobar__content p{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-infobar__content a{color:inherit}@media not all and (pointer: coarse){.gov-infobar__content a:hover{color:inherit}}.gov-infobar__close{position:absolute;top:0.625rem;right:1rem}.gov-infobar[variant=warning]{background-color:var(--gov-infobar-warning-bg-color, var(--gov-color-warning))}.gov-infobar[variant=warning] .gov-infobar__icon{color:var(--gov-infobar-warning-icon-color, var(--gov-color-secondary))}.gov-infobar[variant=warning] .gov-infobar__content{color:var(--gov-infobar-warning-text-color, var(--gov-color-secondary))}.gov-infobar[variant=warning][inverse=""],.gov-infobar[variant=warning][inverse=true i],.gov-infobar[variant=warning][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=warning][inverse=""] .gov-infobar__icon,.gov-infobar[variant=warning][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=warning][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-warning-bg-color, var(--gov-color-warning))}.gov-infobar[variant=warning][inverse=""] .gov-infobar__content,.gov-infobar[variant=warning][inverse=true i] .gov-infobar__content,.gov-infobar[variant=warning][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=error]{background-color:var(--gov-infobar-error-bg-color, var(--gov-color-error))}.gov-infobar[variant=error] .gov-infobar__icon{color:var(--gov-infobar-error-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=error] .gov-infobar__content{color:var(--gov-infobar-error-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=error][inverse=""],.gov-infobar[variant=error][inverse=true i],.gov-infobar[variant=error][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=error][inverse=""] .gov-infobar__icon,.gov-infobar[variant=error][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=error][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-error-bg-color, var(--gov-color-error))}.gov-infobar[variant=error][inverse=""] .gov-infobar__content,.gov-infobar[variant=error][inverse=true i] .gov-infobar__content,.gov-infobar[variant=error][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=secondary]{background-color:var(--gov-infobar-secondary-bg-color, var(--gov-color-secondary))}.gov-infobar[variant=secondary] .gov-infobar__icon{color:var(--gov-infobar-secondary-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=secondary] .gov-infobar__content{color:var(--gov-infobar-secondary-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=secondary][inverse=""],.gov-infobar[variant=secondary][inverse=true i],.gov-infobar[variant=secondary][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=secondary][inverse=""] .gov-infobar__icon,.gov-infobar[variant=secondary][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=secondary][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-secondary-bg-color, var(--gov-color-secondary))}.gov-infobar[variant=secondary][inverse=""] .gov-infobar__content,.gov-infobar[variant=secondary][inverse=true i] .gov-infobar__content,.gov-infobar[variant=secondary][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=success]{background-color:var(--gov-infobar-success-bg-color, var(--gov-color-success-500))}.gov-infobar[variant=success] .gov-infobar__icon{color:var(--gov-infobar-success-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=success] .gov-infobar__content{color:var(--gov-infobar-success-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=success][inverse=""],.gov-infobar[variant=success][inverse=true i],.gov-infobar[variant=success][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=success][inverse=""] .gov-infobar__icon,.gov-infobar[variant=success][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=success][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-success-bg-color, var(--gov-color-success-500))}.gov-infobar[variant=success][inverse=""] .gov-infobar__content,.gov-infobar[variant=success][inverse=true i] .gov-infobar__content,.gov-infobar[variant=success][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=primary]{background-color:var(--gov-infobar-primary-bg-color, var(--gov-color-primary))}.gov-infobar[variant=primary] .gov-infobar__icon{color:var(--gov-infobar-primary-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=primary] .gov-infobar__content{color:var(--gov-infobar-primary-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=primary][inverse=""],.gov-infobar[variant=primary][inverse=true i],.gov-infobar[variant=primary][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=primary][inverse=""] .gov-infobar__icon,.gov-infobar[variant=primary][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=primary][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-primary-bg-color, var(--gov-color-primary))}.gov-infobar[variant=primary][inverse=""] .gov-infobar__content,.gov-infobar[variant=primary][inverse=true i] .gov-infobar__content,.gov-infobar[variant=primary][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}@media (min-width: 75em){.gov-infobar__content{padding-right:2rem}}';const h=class{constructor(a){o(this,a);this.govClose=r(this,"gov-close",7);this.headline=undefined;this.variant="primary";this.inverse=false;this.wcagCloseLabel=undefined;this.wcagToggleLabel=undefined;this.closable=false;this.toggleContent=false;this.h=s(this.host)}validateVariant(o){v(_,o,d.root)}componentWillLoad(){this.validateVariant(this.variant)}async componentDidRender(){if(l()){await c(500);await this.validateWcag()}}render(){let o=!this.inverse;let r=this.inverse?"secondary":this.variant;if(this.variant=="warning"){o=false;r="secondary"}const i=a("div",{class:d.close},a("gov-button",{size:"s","aria-label":this.wcagCloseLabel,type:"base",variant:r,inverse:o,"on-gov-click":this.onCloseHandler.bind(this)},a("gov-icon",{name:"x-lg"})));return a(n,{class:this.h.classes(d.root),variant:this.variant},a("section",{class:d.section,role:"infobar"},this.h.hasSlot("icon")&&a("div",{class:d.icon},a("slot",{name:"icon"})),a("div",{class:d.content},this.headline?a(b,null,a("div",{class:d.headline},a("p",null,this.headline),a("gov-button",{size:"s","aria-label":this.wcagToggleLabel,type:"base",variant:r,inverse:o,"on-gov-click":()=>this.toggleContent=!this.toggleContent},a("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down"}))),a("div",{hidden:!this.toggleContent,"aria-hidden":g(this.toggleContent)},a("slot",null))):a("slot",null))),this.closable&&i)}onCloseHandler(o){this.govClose.emit({component:d.root,ref:this.host,originalEvent:o})}async validateWcag(){if(this.closable){f(this.wcagCloseLabel,"wcag-close-label",d.root)}if(this.headline){f(this.wcagToggleLabel,"wcag-toggle-label",d.root)}}get host(){return i(this)}static get watchers(){return{variant:["validateVariant"]}}};h.style=m;export{h as gov_infobar};
2
- //# sourceMappingURL=p-f9dfaff1.entry.js.map
1
+ import{r as o,c as r,h as a,H as n,g as i}from"./p-10cbc3fe.js";import{v}from"./p-26acf964.js";import{V as e}from"./p-ff7365ae.js";import{p as t,d as c}from"./p-03990da5.js";import{g as s,a as g}from"./p-3f37ddb6.js";import{F as b}from"./p-1c1d0bbe.js";import{c as f}from"./p-570ef4e5.js";import{c as l}from"./p-cac3881f.js";import"./p-561fa17b.js";import"./p-24636c53.js";const _=t(e,["PRIMARY","SECONDARY","WARNING","ERROR","SUCCESS"]);const d={root:"gov-infobar",section:"gov-infobar__section",icon:"gov-infobar__icon",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const m='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-infobar{position:relative;display:block;width:100%}.gov-infobar__section{display:flex;gap:1rem;padding:1rem}.gov-infobar__icon{flex:0 0 auto}.gov-infobar__icon>*{width:1.25rem;height:1.25rem}.gov-infobar__headline{display:flex;gap:1rem}.gov-infobar__headline+div{margin-top:0.5rem}.gov-infobar__headline p{margin-bottom:0}.gov-infobar__headline gov-button{margin-top:-0.25rem}.gov-infobar__content{padding-right:3.5rem}.gov-infobar__content>*:last-child{margin-bottom:0}.gov-infobar__content p{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-infobar__content a{color:inherit}@media not all and (pointer: coarse){.gov-infobar__content a:hover{color:inherit}}.gov-infobar__close{position:absolute;top:0.875rem;right:1rem}.gov-infobar[variant=warning]{background-color:var(--gov-infobar-warning-bg-color, var(--gov-color-warning))}.gov-infobar[variant=warning] .gov-infobar__icon{color:var(--gov-infobar-warning-icon-color, var(--gov-color-secondary))}.gov-infobar[variant=warning] .gov-infobar__content{color:var(--gov-infobar-warning-text-color, var(--gov-color-secondary))}.gov-infobar[variant=warning][inverse=""],.gov-infobar[variant=warning][inverse=true i],.gov-infobar[variant=warning][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=warning][inverse=""] .gov-infobar__icon,.gov-infobar[variant=warning][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=warning][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-warning-bg-color, var(--gov-color-warning))}.gov-infobar[variant=warning][inverse=""] .gov-infobar__content,.gov-infobar[variant=warning][inverse=true i] .gov-infobar__content,.gov-infobar[variant=warning][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=error]{background-color:var(--gov-infobar-error-bg-color, var(--gov-color-error))}.gov-infobar[variant=error] .gov-infobar__icon{color:var(--gov-infobar-error-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=error] .gov-infobar__content{color:var(--gov-infobar-error-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=error][inverse=""],.gov-infobar[variant=error][inverse=true i],.gov-infobar[variant=error][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=error][inverse=""] .gov-infobar__icon,.gov-infobar[variant=error][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=error][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-error-bg-color, var(--gov-color-error))}.gov-infobar[variant=error][inverse=""] .gov-infobar__content,.gov-infobar[variant=error][inverse=true i] .gov-infobar__content,.gov-infobar[variant=error][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=secondary]{background-color:var(--gov-infobar-secondary-bg-color, var(--gov-color-secondary))}.gov-infobar[variant=secondary] .gov-infobar__icon{color:var(--gov-infobar-secondary-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=secondary] .gov-infobar__content{color:var(--gov-infobar-secondary-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=secondary][inverse=""],.gov-infobar[variant=secondary][inverse=true i],.gov-infobar[variant=secondary][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=secondary][inverse=""] .gov-infobar__icon,.gov-infobar[variant=secondary][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=secondary][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-secondary-bg-color, var(--gov-color-secondary))}.gov-infobar[variant=secondary][inverse=""] .gov-infobar__content,.gov-infobar[variant=secondary][inverse=true i] .gov-infobar__content,.gov-infobar[variant=secondary][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=success]{background-color:var(--gov-infobar-success-bg-color, var(--gov-color-success-500))}.gov-infobar[variant=success] .gov-infobar__icon{color:var(--gov-infobar-success-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=success] .gov-infobar__content{color:var(--gov-infobar-success-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=success][inverse=""],.gov-infobar[variant=success][inverse=true i],.gov-infobar[variant=success][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=success][inverse=""] .gov-infobar__icon,.gov-infobar[variant=success][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=success][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-success-bg-color, var(--gov-color-success-500))}.gov-infobar[variant=success][inverse=""] .gov-infobar__content,.gov-infobar[variant=success][inverse=true i] .gov-infobar__content,.gov-infobar[variant=success][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=primary]{background-color:var(--gov-infobar-primary-bg-color, var(--gov-color-primary))}.gov-infobar[variant=primary] .gov-infobar__icon{color:var(--gov-infobar-primary-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=primary] .gov-infobar__content{color:var(--gov-infobar-primary-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=primary][inverse=""],.gov-infobar[variant=primary][inverse=true i],.gov-infobar[variant=primary][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=primary][inverse=""] .gov-infobar__icon,.gov-infobar[variant=primary][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=primary][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-primary-bg-color, var(--gov-color-primary))}.gov-infobar[variant=primary][inverse=""] .gov-infobar__content,.gov-infobar[variant=primary][inverse=true i] .gov-infobar__content,.gov-infobar[variant=primary][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}@media (min-width: 75em){.gov-infobar__content{padding-right:2rem}}';const h=class{constructor(a){o(this,a);this.govClose=r(this,"gov-close",7);this.headline=undefined;this.variant="primary";this.inverse=false;this.wcagCloseLabel=undefined;this.wcagToggleLabel=undefined;this.closable=false;this.toggleContent=false;this.h=s(this.host)}validateVariant(o){v(_,o,d.root)}componentWillLoad(){this.validateVariant(this.variant)}async componentDidRender(){if(l()){await c(500);await this.validateWcag()}}render(){let o=!this.inverse;let r=this.inverse?"secondary":this.variant;if(this.variant=="warning"){o=false;r="secondary"}const i=a("div",{class:d.close},a("gov-button",{size:"s","aria-label":this.wcagCloseLabel,type:"base",variant:r,inverse:o,"on-gov-click":this.onCloseHandler.bind(this)},a("gov-icon",{name:"x-lg"})));return a(n,{class:this.h.classes(d.root),variant:this.variant},a("section",{class:d.section,role:"infobar"},this.h.hasSlot("icon")&&a("div",{class:d.icon},a("slot",{name:"icon"})),a("div",{class:d.content},this.headline?a(b,null,a("div",{class:d.headline},a("p",null,this.headline),a("gov-button",{size:"s","aria-label":this.wcagToggleLabel,type:"base",variant:r,inverse:o,"on-gov-click":()=>this.toggleContent=!this.toggleContent},a("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down"}))),a("div",{hidden:!this.toggleContent,"aria-hidden":g(this.toggleContent)},a("slot",null))):a("slot",null))),this.closable&&i)}onCloseHandler(o){this.govClose.emit({component:d.root,ref:this.host,originalEvent:o})}async validateWcag(){if(this.closable){f(this.wcagCloseLabel,"wcag-close-label",d.root)}if(this.headline){f(this.wcagToggleLabel,"wcag-toggle-label",d.root)}}get host(){return i(this)}static get watchers(){return{variant:["validateVariant"]}}};h.style=m;export{h as gov_infobar};
2
+ //# sourceMappingURL=p-0553eb92.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["InfobarVariants","pick","Variants","InfobarClass","root","section","icon","content","headline","close","govInfobarCss","GovInfobar","constructor","hostRef","this","h","govHost","host","validateVariant","newValue","validateProp","componentWillLoad","variant","componentDidRender","canValidateWcagOnRender","delay","validateWcag","render","inverse","closeButton","class","size","wcagCloseLabel","type","onCloseHandler","bind","name","Host","classes","role","hasSlot","Fragment","wcagToggleLabel","toggleContent","hidden","toBoolAttr","closable","e","govClose","emit","component","ref","originalEvent","validateWcagProp"],"sources":["../../../packages/core/src/components/gov-infobar/default/constants.ts","../../../packages/core/src/components/gov-infobar/default/gov-infobar.scss?tag=gov-infobar","../../../packages/core/src/components/gov-infobar/default/gov-infobar.tsx"],"sourcesContent":["import { Variants } from '../../../core/constants/variants'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const InfobarVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type VariantType = `${ValueOf<typeof InfobarVariants>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\ticon: 'gov-infobar__icon',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","/*\n * Infobar\n */\n\n$class: \".gov-infobar\";\n\n#{$class} {\n\t@include base();\n\n\t&__section {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tpadding: rem-calc(16);\n\t}\n\n\t&__icon {\n\t\tflex: 0 0 auto;\n\n\t\t& > * {\n\t\t\twidth: rem-calc(20);\n\t\t\theight: rem-calc(20);\n\t\t}\n\t}\n\n\t&__headline {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\n\t\t+ div {\n\t\t\tmargin-top: rem-calc(8);\n\t\t}\n\n\t\tp {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\tgov-button {\n\t\t\tmargin-top: rem-calc(-4);\n\t\t}\n\t}\n\n\t&__content {\n\t\t@include reset-last-margin();\n\t\tpadding-right: rem-calc(56);\n\n\t\tp {\n\t\t\t@include typography($font-size-m);\n\t\t}\n\n\t\ta {\n\t\t\tcolor: inherit;\n\t\t\t@include hover() {\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__close {\n\t\tposition: absolute;\n\t\ttop: rem-calc(10);\n\t\tright: rem-calc(16);\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $infobar-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tbackground-color: get(\"bg-color\", $definitions);\n\n\t\t\t#{$class} {\n\t\t\t\t&__icon {\n\t\t\t\t\tcolor: get(\"icon-color\", $definitions);\n\t\t\t\t}\n\n\t\t\t\t&__content {\n\t\t\t\t\tcolor: get(\"text-color\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@if deep-map-check($definitions, \"border\") {\n\t\t\t\tborder-bottom: $infobar-border;\n\t\t\t}\n\n\t\t\t// STATES\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\tborder-bottom: $infobar-border;\n\t\t\t\tbackground-color: $infobar-inverse-bg;\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__icon {\n\t\t\t\t\t\tcolor: get(\"bg-color\", $definitions);\n\t\t\t\t\t}\n\n\t\t\t\t\t&__content {\n\t\t\t\t\t\tcolor: $infobar-inverse-color;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: xl) {\n\t\t&__content {\n\t\t\tpadding-right: rem-calc(32);\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\nimport { InfobarClass, InfobarVariants, VariantType } from \"./constants\"\nimport { govHost, toBoolAttr } from \"../../../helpers/Dom/template\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { InfobarEvent } from \"./gov-infobar.types\"\nimport { ButtonEvent } from \"../../gov-button/default/gov-button.types\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport { validateWcagProp } from \"../../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../../helpers/Dom/win\"\nimport { delay } from \"../../../utils/utils\"\n\n@Component({\n\ttag: \"gov-infobar\",\n\tstyleUrl: \"gov-infobar.scss\",\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly headline: string\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant: VariantType = \"primary\"\n\t/**\n\t * Determine if component should have inverse colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({ attribute: \"wcag-close-label\" }) readonly wcagCloseLabel: string\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({ attribute: \"wcag-toggle-label\" }) readonly wcagToggleLabel: string\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({ eventName: \"gov-close\" }) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(InfobarVariants, newValue, InfobarClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\tlet inverse = !this.inverse\n\t\tlet variant = this.inverse ? \"secondary\" : this.variant\n\n\t\tif (this.variant == \"warning\") {\n\t\t\tinverse = false\n\t\t\tvariant = \"secondary\"\n\t\t}\n\n\t\tconst closeButton = (\n\t\t\t<div class={InfobarClass.close}>\n\t\t\t\t<gov-button\n\t\t\t\t\tsize=\"s\"\n\t\t\t\t\taria-label={this.wcagCloseLabel}\n\t\t\t\t\ttype=\"base\"\n\t\t\t\t\tvariant={variant}\n\t\t\t\t\tinverse={inverse}\n\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t>\n\t\t\t\t\t<gov-icon name=\"x-lg\"></gov-icon>\n\t\t\t\t</gov-button>\n\t\t\t</div>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} variant={this.variant}>\n\t\t\t\t<section class={InfobarClass.section} role=\"infobar\">\n\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t\t<div class={InfobarClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.headline ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<p>{this.headline}</p>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\taria-label={this.wcagToggleLabel}\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tvariant={variant}\n\t\t\t\t\t\t\t\t\t\tinverse={inverse}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.toggleContent = !this.toggleContent}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'}></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</section>\n\t\t\t\t{this.closable && closeButton}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tif (this.closable) {\n\t\t\tvalidateWcagProp(this.wcagCloseLabel, 'wcag-close-label', InfobarClass.root)\n\t\t}\n\t\tif (this.headline) {\n\t\t\tvalidateWcagProp(this.wcagToggleLabel, 'wcag-toggle-label', InfobarClass.root)\n\t\t}\n\t}\n}\n"],"mappings":"qXAIO,MAAMA,EAAkBC,EAAKC,EAAU,CAAC,UAAW,YAAa,UAAW,QAAS,YAGpF,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,uBACTC,KAAM,oBACNC,QAAS,uBACTC,SAAU,wBACVC,MAAO,sBCbR,MAAMC,EAAgB,+gO,MCgBTC,EAAU,MAGtB,WAAAC,CAAAC,G,mFAawC,U,aAIJ,M,2EAgBE,M,mBAEb,MAlCxBC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAqCvB,eAAAC,CAAgBC,GACfC,EAAapB,EAAiBmB,EAAUhB,EAAaC,K,CAGtD,iBAAAiB,GACCP,KAAKI,gBAAgBJ,KAAKQ,Q,CAG3B,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNX,KAAKY,c,EAIb,MAAAC,GACC,IAAIC,GAAWd,KAAKc,QACpB,IAAIN,EAAUR,KAAKc,QAAU,YAAcd,KAAKQ,QAEhD,GAAIR,KAAKQ,SAAW,UAAW,CAC9BM,EAAU,MACVN,EAAU,W,CAGX,MAAMO,EACLd,EAAA,OAAKe,MAAO3B,EAAaM,OACxBM,EAAA,cACCgB,KAAK,IAAG,aACIjB,KAAKkB,eACjBC,KAAK,OACLX,QAASA,EACTM,QAASA,EAAO,eACFd,KAAKoB,eAAeC,KAAKrB,OAEvCC,EAAA,YAAUqB,KAAK,WAKlB,OACCrB,EAACsB,EAAI,CAACP,MAAOhB,KAAKC,EAAEuB,QAAQnC,EAAaC,MAAOkB,QAASR,KAAKQ,SAC7DP,EAAA,WAASe,MAAO3B,EAAaE,QAASkC,KAAK,WACzCzB,KAAKC,EAAEyB,QAAQ,SACfzB,EAAA,OAAKe,MAAO3B,EAAaG,MACxBS,EAAA,QAAMqB,KAAK,UAGbrB,EAAA,OAAKe,MAAO3B,EAAaI,SACvBO,KAAKN,SACLO,EAAC0B,EAAQ,KACR1B,EAAA,OAAKe,MAAO3B,EAAaK,UACxBO,EAAA,SAAID,KAAKN,UACTO,EAAA,cACCgB,KAAK,IAAG,aACIjB,KAAK4B,gBACjBT,KAAK,OACLX,QAASA,EACTM,QAASA,EAAO,eACF,IAAMd,KAAK6B,eAAiB7B,KAAK6B,eAE/C5B,EAAA,YAAUqB,KAAMtB,KAAK6B,cAAgB,aAAe,mBAGtD5B,EAAA,OAAK6B,QAAS9B,KAAK6B,cAAa,cAAeE,EAAW/B,KAAK6B,gBAC9D5B,EAAA,eAIFA,EAAA,eAIFD,KAAKgC,UAAYjB,E,CAKrB,cAAAK,CAAea,GACdjC,KAAKkC,SAASC,KAAK,CAClBC,UAAW/C,EAAaC,KACxB+C,IAAKrC,KAAKG,KACVmC,cAAeL,G,CAQjB,kBAAMrB,GACL,GAAIZ,KAAKgC,SAAU,CAClBO,EAAiBvC,KAAKkB,eAAgB,mBAAoB7B,EAAaC,K,CAExE,GAAIU,KAAKN,SAAU,CAClB6C,EAAiBvC,KAAK4B,gBAAiB,oBAAqBvC,EAAaC,K"}
1
+ {"version":3,"names":["InfobarVariants","pick","Variants","InfobarClass","root","section","icon","content","headline","close","govInfobarCss","GovInfobar","constructor","hostRef","this","h","govHost","host","validateVariant","newValue","validateProp","componentWillLoad","variant","componentDidRender","canValidateWcagOnRender","delay","validateWcag","render","inverse","closeButton","class","size","wcagCloseLabel","type","onCloseHandler","bind","name","Host","classes","role","hasSlot","Fragment","wcagToggleLabel","toggleContent","hidden","toBoolAttr","closable","e","govClose","emit","component","ref","originalEvent","validateWcagProp"],"sources":["../../../packages/core/src/components/gov-infobar/default/constants.ts","../../../packages/core/src/components/gov-infobar/default/gov-infobar.scss?tag=gov-infobar","../../../packages/core/src/components/gov-infobar/default/gov-infobar.tsx"],"sourcesContent":["import { Variants } from '../../../core/constants/variants'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const InfobarVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type VariantType = `${ValueOf<typeof InfobarVariants>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\ticon: 'gov-infobar__icon',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","/*\n * Infobar\n */\n\n$class: \".gov-infobar\";\n\n#{$class} {\n\t@include base();\n\n\t&__section {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tpadding: rem-calc(16);\n\t}\n\n\t&__icon {\n\t\tflex: 0 0 auto;\n\n\t\t& > * {\n\t\t\twidth: rem-calc(20);\n\t\t\theight: rem-calc(20);\n\t\t}\n\t}\n\n\t&__headline {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\n\t\t+ div {\n\t\t\tmargin-top: rem-calc(8);\n\t\t}\n\n\t\tp {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\tgov-button {\n\t\t\tmargin-top: rem-calc(-4);\n\t\t}\n\t}\n\n\t&__content {\n\t\t@include reset-last-margin();\n\t\tpadding-right: rem-calc(56);\n\n\t\tp {\n\t\t\t@include typography($font-size-m);\n\t\t}\n\n\t\ta {\n\t\t\tcolor: inherit;\n\t\t\t@include hover() {\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__close {\n\t\tposition: absolute;\n\t\ttop: rem-calc(14);\n\t\tright: rem-calc(16);\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $infobar-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tbackground-color: get(\"bg-color\", $definitions);\n\n\t\t\t#{$class} {\n\t\t\t\t&__icon {\n\t\t\t\t\tcolor: get(\"icon-color\", $definitions);\n\t\t\t\t}\n\n\t\t\t\t&__content {\n\t\t\t\t\tcolor: get(\"text-color\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@if deep-map-check($definitions, \"border\") {\n\t\t\t\tborder-bottom: $infobar-border;\n\t\t\t}\n\n\t\t\t// STATES\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\tborder-bottom: $infobar-border;\n\t\t\t\tbackground-color: $infobar-inverse-bg;\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__icon {\n\t\t\t\t\t\tcolor: get(\"bg-color\", $definitions);\n\t\t\t\t\t}\n\n\t\t\t\t\t&__content {\n\t\t\t\t\t\tcolor: $infobar-inverse-color;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: xl) {\n\t\t&__content {\n\t\t\tpadding-right: rem-calc(32);\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\nimport { InfobarClass, InfobarVariants, VariantType } from \"./constants\"\nimport { govHost, toBoolAttr } from \"../../../helpers/Dom/template\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { InfobarEvent } from \"./gov-infobar.types\"\nimport { ButtonEvent } from \"../../gov-button/default/gov-button.types\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport { validateWcagProp } from \"../../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../../helpers/Dom/win\"\nimport { delay } from \"../../../utils/utils\"\n\n@Component({\n\ttag: \"gov-infobar\",\n\tstyleUrl: \"gov-infobar.scss\",\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly headline: string\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant: VariantType = \"primary\"\n\t/**\n\t * Determine if component should have inverse colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({ attribute: \"wcag-close-label\" }) readonly wcagCloseLabel: string\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({ attribute: \"wcag-toggle-label\" }) readonly wcagToggleLabel: string\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({ eventName: \"gov-close\" }) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(InfobarVariants, newValue, InfobarClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\tlet inverse = !this.inverse\n\t\tlet variant = this.inverse ? \"secondary\" : this.variant\n\n\t\tif (this.variant == \"warning\") {\n\t\t\tinverse = false\n\t\t\tvariant = \"secondary\"\n\t\t}\n\n\t\tconst closeButton = (\n\t\t\t<div class={InfobarClass.close}>\n\t\t\t\t<gov-button\n\t\t\t\t\tsize=\"s\"\n\t\t\t\t\taria-label={this.wcagCloseLabel}\n\t\t\t\t\ttype=\"base\"\n\t\t\t\t\tvariant={variant}\n\t\t\t\t\tinverse={inverse}\n\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t>\n\t\t\t\t\t<gov-icon name=\"x-lg\"></gov-icon>\n\t\t\t\t</gov-button>\n\t\t\t</div>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} variant={this.variant}>\n\t\t\t\t<section class={InfobarClass.section} role=\"infobar\">\n\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t\t<div class={InfobarClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.headline ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<p>{this.headline}</p>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\taria-label={this.wcagToggleLabel}\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tvariant={variant}\n\t\t\t\t\t\t\t\t\t\tinverse={inverse}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.toggleContent = !this.toggleContent}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'}></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</section>\n\t\t\t\t{this.closable && closeButton}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tif (this.closable) {\n\t\t\tvalidateWcagProp(this.wcagCloseLabel, 'wcag-close-label', InfobarClass.root)\n\t\t}\n\t\tif (this.headline) {\n\t\t\tvalidateWcagProp(this.wcagToggleLabel, 'wcag-toggle-label', InfobarClass.root)\n\t\t}\n\t}\n}\n"],"mappings":"qXAIO,MAAMA,EAAkBC,EAAKC,EAAU,CAAC,UAAW,YAAa,UAAW,QAAS,YAGpF,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,uBACTC,KAAM,oBACNC,QAAS,uBACTC,SAAU,wBACVC,MAAO,sBCbR,MAAMC,EAAgB,+gO,MCgBTC,EAAU,MAGtB,WAAAC,CAAAC,G,mFAawC,U,aAIJ,M,2EAgBE,M,mBAEb,MAlCxBC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAqCvB,eAAAC,CAAgBC,GACfC,EAAapB,EAAiBmB,EAAUhB,EAAaC,K,CAGtD,iBAAAiB,GACCP,KAAKI,gBAAgBJ,KAAKQ,Q,CAG3B,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNX,KAAKY,c,EAIb,MAAAC,GACC,IAAIC,GAAWd,KAAKc,QACpB,IAAIN,EAAUR,KAAKc,QAAU,YAAcd,KAAKQ,QAEhD,GAAIR,KAAKQ,SAAW,UAAW,CAC9BM,EAAU,MACVN,EAAU,W,CAGX,MAAMO,EACLd,EAAA,OAAKe,MAAO3B,EAAaM,OACxBM,EAAA,cACCgB,KAAK,IAAG,aACIjB,KAAKkB,eACjBC,KAAK,OACLX,QAASA,EACTM,QAASA,EAAO,eACFd,KAAKoB,eAAeC,KAAKrB,OAEvCC,EAAA,YAAUqB,KAAK,WAKlB,OACCrB,EAACsB,EAAI,CAACP,MAAOhB,KAAKC,EAAEuB,QAAQnC,EAAaC,MAAOkB,QAASR,KAAKQ,SAC7DP,EAAA,WAASe,MAAO3B,EAAaE,QAASkC,KAAK,WACzCzB,KAAKC,EAAEyB,QAAQ,SACfzB,EAAA,OAAKe,MAAO3B,EAAaG,MACxBS,EAAA,QAAMqB,KAAK,UAGbrB,EAAA,OAAKe,MAAO3B,EAAaI,SACvBO,KAAKN,SACLO,EAAC0B,EAAQ,KACR1B,EAAA,OAAKe,MAAO3B,EAAaK,UACxBO,EAAA,SAAID,KAAKN,UACTO,EAAA,cACCgB,KAAK,IAAG,aACIjB,KAAK4B,gBACjBT,KAAK,OACLX,QAASA,EACTM,QAASA,EAAO,eACF,IAAMd,KAAK6B,eAAiB7B,KAAK6B,eAE/C5B,EAAA,YAAUqB,KAAMtB,KAAK6B,cAAgB,aAAe,mBAGtD5B,EAAA,OAAK6B,QAAS9B,KAAK6B,cAAa,cAAeE,EAAW/B,KAAK6B,gBAC9D5B,EAAA,eAIFA,EAAA,eAIFD,KAAKgC,UAAYjB,E,CAKrB,cAAAK,CAAea,GACdjC,KAAKkC,SAASC,KAAK,CAClBC,UAAW/C,EAAaC,KACxB+C,IAAKrC,KAAKG,KACVmC,cAAeL,G,CAQjB,kBAAMrB,GACL,GAAIZ,KAAKgC,SAAU,CAClBO,EAAiBvC,KAAKkB,eAAgB,mBAAoB7B,EAAaC,K,CAExE,GAAIU,KAAKN,SAAU,CAClB6C,EAAiBvC,KAAK4B,gBAAiB,oBAAqBvC,EAAaC,K"}