@gov-design-system-ce/components 0.0.42 → 0.0.44

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 (67) hide show
  1. package/dist/cjs/gov-app.cjs.entry.js +9 -2
  2. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  3. package/dist/cjs/gov-badge.cjs.entry.js +1 -1
  4. package/dist/cjs/gov-badge.cjs.entry.js.map +1 -1
  5. package/dist/cjs/gov-button.cjs.entry.js +1 -1
  6. package/dist/cjs/gov-form-file.cjs.entry.js +2 -2
  7. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gov-form-switch.cjs.entry.js +1 -1
  9. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  10. package/dist/cjs/gov-icon.cjs.entry.js +1 -1
  11. package/dist/collection/components/gov-badge/gov-badge.css +27 -2
  12. package/dist/collection/components/gov-button/default/gov-button.css +2 -2
  13. package/dist/collection/components/gov-form/file/gov-form-file.js +1 -1
  14. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  15. package/dist/collection/components/gov-form/switch/gov-form-switch.css +44 -6
  16. package/dist/collection/pages/Forms.js +9 -2
  17. package/dist/collection/pages/Forms.js.map +1 -1
  18. package/dist/collection/utils/file.utils.js +1 -1
  19. package/dist/collection/utils/file.utils.js.map +1 -1
  20. package/dist/components/gov-app.js +9 -2
  21. package/dist/components/gov-app.js.map +1 -1
  22. package/dist/components/gov-badge2.js +1 -1
  23. package/dist/components/gov-badge2.js.map +1 -1
  24. package/dist/components/gov-button2.js +1 -1
  25. package/dist/components/gov-form-file.js +2 -2
  26. package/dist/components/gov-form-file.js.map +1 -1
  27. package/dist/components/gov-form-switch.js +1 -1
  28. package/dist/components/gov-form-switch.js.map +1 -1
  29. package/dist/components/gov-icon2.js +1 -1
  30. package/dist/core/core.esm.js +1 -1
  31. package/dist/core/critical.css +1 -0
  32. package/dist/core/p-2507a42a.entry.js +2 -0
  33. package/dist/core/p-2507a42a.entry.js.map +1 -0
  34. package/dist/core/{p-1c4ad772.entry.js → p-a2f998a0.entry.js} +2 -2
  35. package/dist/core/p-a714637e.entry.js +2 -0
  36. package/dist/core/p-a714637e.entry.js.map +1 -0
  37. package/dist/core/p-bbfa3d9e.entry.js +2 -0
  38. package/dist/core/p-bbfa3d9e.entry.js.map +1 -0
  39. package/dist/core/{p-3042a794.entry.js → p-bc1c8436.entry.js} +2 -2
  40. package/dist/core/p-bc1c8436.entry.js.map +1 -0
  41. package/dist/core/{p-be903a7d.entry.js → p-ce42bc3a.entry.js} +2 -2
  42. package/dist/custom-elements/index.js +1 -1
  43. package/dist/custom-elements/index.js.map +1 -1
  44. package/dist/esm/gov-app.entry.js +9 -2
  45. package/dist/esm/gov-app.entry.js.map +1 -1
  46. package/dist/esm/gov-badge.entry.js +1 -1
  47. package/dist/esm/gov-badge.entry.js.map +1 -1
  48. package/dist/esm/gov-button.entry.js +1 -1
  49. package/dist/esm/gov-form-file.entry.js +2 -2
  50. package/dist/esm/gov-form-file.entry.js.map +1 -1
  51. package/dist/esm/gov-form-switch.entry.js +1 -1
  52. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  53. package/dist/esm/gov-icon.entry.js +1 -1
  54. package/dist/globals.d.ts +2 -0
  55. package/dist/hydrate/index.js +14 -7
  56. package/dist/types/types/typings.d.ts +6 -0
  57. package/hydrate/index.js +14 -7
  58. package/package.json +1 -1
  59. package/dist/core/p-3042a794.entry.js.map +0 -1
  60. package/dist/core/p-529363af.entry.js +0 -2
  61. package/dist/core/p-529363af.entry.js.map +0 -1
  62. package/dist/core/p-de227b73.entry.js +0 -2
  63. package/dist/core/p-de227b73.entry.js.map +0 -1
  64. package/dist/core/p-f5d42069.entry.js +0 -2
  65. package/dist/core/p-f5d42069.entry.js.map +0 -1
  66. /package/dist/core/{p-1c4ad772.entry.js.map → p-a2f998a0.entry.js.map} +0 -0
  67. /package/dist/core/{p-be903a7d.entry.js.map → p-ce42bc3a.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"gov-form-switch.js","mappings":"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","names":["GovFormSwitch"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.scss?tag=gov-form-switch","../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["/*\n * Switch\n */\n\n$class: \".gov-form-switch\";\n$indicator-ratio: calc(5 / 3);\n\n#{$class} {\n\tposition: relative;\n\tdisplay: flex;\n\t&__holder {\n\t\tdisplay: inline-flex;\n\t}\n\t&__input {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tz-index: 1;\n\t\tmargin: 0;\n\t\tappearance: none;\n\t}\n\t.gov-form-label__label {\n\t\tposition: relative;\n\t\tz-index: 1;\n\t\tmargin-bottom: 0;\n\t\tcolor: $form-switch-color;\n\t}\n\t&__indicator {\n\t\tposition: relative;\n\t\tflex: 0 0 auto;\n\t\tborder: $form-switch-indicator-border;\n\t\tbackground-color: $form-switch-indicator-bg;\n\t\ttransition: $t linear background-color;\n\t\t&::before {\n\t\t\t@include pseudo();\n\t\t\tborder-radius: 50%;\n\t\t\tbackground-color: $form-switch-indicator-circle-bg;\n\t\t\ttransition: $t linear left;\n\t\t\tbox-shadow: $form-switch-indicator-circle-box-shadow;\n\t\t}\n\t}\n\n\t// STATES\n\t// focus\n\t&__input:focus-visible ~ &__indicator {\n\t\toutline: $outline;\n\t}\n\t// checked\n\t&__input:checked + &__indicator {\n\t\tborder-color: $form-switch-indicator-bg-checked;\n\t\tbackground-color: $form-switch-indicator-bg-checked;\n\t}\n\n\t// disabled\n\t@include parameter(\"disabled\") {\n\t\tpointer-events: none;\n\t\t.gov-form-label__label {\n\t\t\tcolor: $form-state-color-disabled;\n\t\t}\n\t\t#{$class} {\n\t\t\t&__indicator {\n\t\t\t\t&::before {\n\t\t\t\t\tbackground: $form-state-bg-input-disabled;\n\t\t\t\t}\n\t\t\t}\n\t\t\t&__input:checked + #{$class}__indicator {\n\t\t\t\tborder-color: $form-state-bg-disabled;\n\t\t\t\tbackground-color: $form-state-bg-disabled;\n\t\t\t}\n\t\t}\n\t}\n\n\t// invalid\n\t@include parameter(\"invalid\") {\n\t\t.gov-form-label__label {\n\t\t\tcolor: $form-state-color-error;\n\t\t}\n\t\t#{$class} {\n\t\t\t&__indicator {\n\t\t\t\tborder-color: $form-state-color-error;\n\t\t\t}\n\t\t\t&__input:checked + #{$class}__indicator {\n\t\t\t\tbackground-color: $form-state-color-error;\n\t\t\t}\n\t\t}\n\t}\n\n\t// sizes\n\t@each $size, $definitions in $form-switch-sizes {\n\t\t$indicator-width: calc(get(\"indicator-height\", $definitions) * $indicator-ratio);\n\t\t$indicator-height: get(\"indicator-height\", $definitions);\n\t\t$border-offset: calc(get(\"toggle-offset\", $definitions) - rem-calc(1));\n\n\t\t&[size=\"#{$size}\"] {\n\t\t\t.gov-form-label__label {\n\t\t\t\t@include typography($size);\n\t\t\t\tmargin-bottom: 0;\n\t\t\t\tpadding-top: calc(($indicator-height - (var(--gov-text-#{$size}-font-size) * 1.5)) / 2);\n\t\t\t}\n\t\t\t#{$class} {\n\t\t\t\t&__holder {\n\t\t\t\t\tgap: get(\"gap\", $definitions);\n\t\t\t\t}\n\t\t\t\t&__indicator {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\twidth: $indicator-width;\n\t\t\t\t\theight: $indicator-height;\n\t\t\t\t\tborder-radius: calc($indicator-height * 0.5);\n\t\t\t\t\t&::before {\n\t\t\t\t\t\ttop: $border-offset;\n\t\t\t\t\t\tleft: $border-offset;\n\t\t\t\t\t\twidth: calc($indicator-height - (2 * get(\"toggle-offset\", $definitions)));\n\t\t\t\t\t\theight: calc($indicator-height - (2 * get(\"toggle-offset\", $definitions)));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// STATES\n\t\t\t\t&__input[aria-checked] + #{$class}__indicator {\n\t\t\t\t\t&::before {\n\t\t\t\t\t\tleft: calc($indicator-width - $indicator-height + $border-offset);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { createID } from \"../../../utils/string.utils\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\nimport { FormSwitchClass, FormSwitchSizes, FormSwitchSizesType } from \"./constants\"\nimport { govHost, toBoolAttr, toBoolAttrIfDefined } from \"../../../helpers/Dom/template\"\nimport { validateWcagLabelFor, validateWcagRef } from \"../../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../../helpers/Dom/win\"\nimport { delay } from \"../../../utils/utils\"\nimport { GovForm } from \"../../../helpers/Dom/form.types\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { govForm } from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport { FormSwitchEvent } from \"./gov-form-switch.types\"\n\n@Component({\n\ttag: \"gov-form-switch\",\n\tstyleUrl: \"gov-form-switch.scss\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\n\tprivate readonly checkboxId: string\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({ attribute: \"no-label\" }) readonly noLabel: boolean = false\n\t/**\n\t * Switch default state\n\t */\n\t@Prop({ reflect: true, mutable: true }) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t * This prevents users from being able to interact with the switch, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({ attribute: \"identifier\" }) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * 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 * Emitted when the switch has focus.\n\t */\n\t@Event({ eventName: \"gov-focus\" }) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({ eventName: \"gov-blur\" }) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.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\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\", \"switch\")\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\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\tconst wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} checked={this.checked} size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t<div class={FormSwitchClass.holder}>\n\t\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\t\taria-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}></span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</Fragment>,\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagDescribedBy, \"wcag-described-by\", FormSwitchClass.root)\n\t\tvalidateWcagRef(this.wcagLabelledBy, \"wcag-labelled-by\", FormSwitchClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.checkboxId, this.wcagLabelledBy, FormSwitchClass.root)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-form-switch.js","mappings":"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","names":["GovFormSwitch"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.scss?tag=gov-form-switch","../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["/*\n * Switch\n */\n\n$class: \".gov-form-switch\";\n$indicator-ratio: calc(5 / 3);\n\n#{$class} {\n\tposition: relative;\n\tdisplay: flex;\n\t&__holder {\n\t\tdisplay: inline-flex;\n\t}\n\t&__input {\n\t\tposition: relative;\n\t\tz-index: 1;\n\t\tappearance: none;\n\t}\n\t.gov-form-label__label {\n\t\tposition: relative;\n\t\tz-index: 1;\n\t\tmargin-bottom: 0;\n\t\tcolor: $form-switch-color;\n\t}\n\t&__indicator {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tborder: $form-switch-indicator-border;\n\t\tbackground-color: $form-switch-indicator-bg;\n\t\ttransition: $t linear background-color;\n\t\t&::before {\n\t\t\t@include pseudo();\n\t\t\tborder-radius: 50%;\n\t\t\tbackground-color: $form-switch-indicator-circle-bg;\n\t\t\ttransition: $t linear left;\n\t\t\tbox-shadow: $form-switch-indicator-circle-box-shadow;\n\t\t}\n\t}\n\n\t// STATES\n\t// focus\n\t&__input:focus-visible ~ &__indicator {\n\t\toutline: $outline;\n\t}\n\t// checked\n\t&__input:checked + &__indicator {\n\t\tborder-color: $form-switch-indicator-bg-checked;\n\t\tbackground-color: $form-switch-indicator-bg-checked;\n\t}\n\n\t// disabled\n\t@include parameter(\"disabled\") {\n\t\tpointer-events: none;\n\t\t.gov-form-label__label {\n\t\t\tcolor: $form-state-color-disabled;\n\t\t}\n\t\t#{$class} {\n\t\t\t&__indicator {\n\t\t\t\t&::before {\n\t\t\t\t\tbackground: $form-state-bg-input-disabled;\n\t\t\t\t}\n\t\t\t}\n\t\t\t&__input:checked + #{$class}__indicator {\n\t\t\t\tborder-color: $form-state-bg-disabled;\n\t\t\t\tbackground-color: $form-state-bg-disabled;\n\t\t\t}\n\t\t}\n\t}\n\n\t// invalid\n\t@include parameter(\"invalid\") {\n\t\t.gov-form-label__label {\n\t\t\tcolor: $form-state-color-error;\n\t\t}\n\t\t#{$class} {\n\t\t\t&__indicator {\n\t\t\t\tborder-color: $form-state-color-error;\n\t\t\t}\n\t\t\t&__input:checked + #{$class}__indicator {\n\t\t\t\tbackground-color: $form-state-color-error;\n\t\t\t}\n\t\t}\n\t}\n\n\t// sizes\n\t@each $size, $definitions in $form-switch-sizes {\n\t\t$indicator-width: calc(get(\"indicator-height\", $definitions) * $indicator-ratio);\n\t\t$indicator-height: get(\"indicator-height\", $definitions);\n\t\t$border-offset: calc(get(\"toggle-offset\", $definitions) - rem-calc(1));\n\n\t\t&[size=\"#{$size}\"] {\n\t\t\t.gov-form-label__label {\n\t\t\t\t@include typography($size);\n\t\t\t\tmargin-bottom: 0;\n\t\t\t\tpadding-top: calc(($indicator-height - (var(--gov-text-#{$size}-font-size) * 1.5)) / 2);\n\t\t\t}\n\t\t\t#{$class} {\n\t\t\t\t&__holder {\n\t\t\t\t\tgap: get(\"gap\", $definitions);\n\t\t\t\t}\n\t\t\t\t&__input {\n\t\t\t\t\twidth: calc($indicator-height * (5 / 2));\n\t\t\t\t\theight: $indicator-height;\n\t\t\t\t}\n\t\t\t\t&__indicator {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\twidth: $indicator-width;\n\t\t\t\t\theight: $indicator-height;\n\t\t\t\t\tborder-radius: calc($indicator-height * 0.5);\n\t\t\t\t\t&::before {\n\t\t\t\t\t\ttop: $border-offset;\n\t\t\t\t\t\tleft: $border-offset;\n\t\t\t\t\t\twidth: calc($indicator-height - (2 * get(\"toggle-offset\", $definitions)));\n\t\t\t\t\t\theight: calc($indicator-height - (2 * get(\"toggle-offset\", $definitions)));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// STATES\n\t\t\t\t&__input[aria-checked] + #{$class}__indicator {\n\t\t\t\t\t&::before {\n\t\t\t\t\t\tleft: calc($indicator-width - $indicator-height + $border-offset);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\t#{$class}__input {\n\t\t\t\t\twidth: $indicator-width;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { createID } from \"../../../utils/string.utils\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\nimport { FormSwitchClass, FormSwitchSizes, FormSwitchSizesType } from \"./constants\"\nimport { govHost, toBoolAttr, toBoolAttrIfDefined } from \"../../../helpers/Dom/template\"\nimport { validateWcagLabelFor, validateWcagRef } from \"../../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../../helpers/Dom/win\"\nimport { delay } from \"../../../utils/utils\"\nimport { GovForm } from \"../../../helpers/Dom/form.types\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { govForm } from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport { FormSwitchEvent } from \"./gov-form-switch.types\"\n\n@Component({\n\ttag: \"gov-form-switch\",\n\tstyleUrl: \"gov-form-switch.scss\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\n\tprivate readonly checkboxId: string\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({ attribute: \"no-label\" }) readonly noLabel: boolean = false\n\t/**\n\t * Switch default state\n\t */\n\t@Prop({ reflect: true, mutable: true }) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t * This prevents users from being able to interact with the switch, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({ attribute: \"identifier\" }) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * 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 * Emitted when the switch has focus.\n\t */\n\t@Event({ eventName: \"gov-focus\" }) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({ eventName: \"gov-blur\" }) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.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\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\", \"switch\")\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\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\tconst wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} checked={this.checked} size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t<div class={FormSwitchClass.holder}>\n\t\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\t\taria-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}></span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</Fragment>,\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagDescribedBy, \"wcag-described-by\", FormSwitchClass.root)\n\t\tvalidateWcagRef(this.wcagLabelledBy, \"wcag-labelled-by\", FormSwitchClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.checkboxId, this.wcagLabelledBy, FormSwitchClass.root)\n\t}\n}\n"],"version":3}
@@ -13,7 +13,7 @@ const IconClass = {
13
13
  holder: 'gov-icon__holder',
14
14
  };
15
15
 
16
- const version = "0.0.42";
16
+ const version = "0.0.44";
17
17
 
18
18
  const dsVersion = () => {
19
19
  return version;
@@ -1,2 +1,2 @@
1
- import{p as e,b as a}from"./p-4af5e4f4.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-de227b73",[[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],"validateWcag":[64]}]]],["p-0574a26a",[[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-02fb27e8",[[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-ed1e9d01",[[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-ce59c2ee",[[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-ec63daab",[[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-683fc65e",[[4,"gov-alert",{"headline":[1],"variant":[1],"inverse":[4],"wcagCloseLabel":[1,"wcag-close-label"],"wcagToggleLabel":[1,"wcag-toggle-label"],"closable":[4],"toggleContent":[32],"validateWcag":[64]}]]],["p-354c6a6d",[[4,"gov-loading",{"loading":[4]}]]],["p-8bebbcc7",[[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-042d5b20",[[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-5957ba08",[[4,"gov-accordion-item",{"variant":[1025],"identifier":[1],"size":[1025],"label":[1],"annotation":[1],"disabled":[4],"isExpanded":[4,"is-expanded"],"triggerTag":[1,"trigger-tag"],"noBorder":[4,"no-border"],"isExpandedState":[32],"open":[64],"close":[64],"toggle":[64],"currentState":[64]}]]],["p-070f9684",[[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-70a7e7f6",[[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-4db67975",[[4,"gov-tile",{"promotion":[4],"href":[1],"name":[1],"getTriggerRef":[64]}]]],["p-fb895b07",[[4,"gov-wizzard-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-7cde4bc8",[[4,"gov-accordion",{"size":[1],"variant":[1],"noBorder":[4,"no-border"],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-3042a794",[[0,"gov-app"]]],["p-d9e28400",[[4,"gov-breadcrumbs",{"collapsible":[4],"isExpanded":[4,"is-expanded"],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelded-by"],"validateWcag":[64]}]]],["p-2f88b6d9",[[4,"gov-container",{"slottedChildren":[64]}]]],["p-58047fab",[[4,"gov-control-group",{"variant":[1],"noBorder":[4,"no-border"]}]]],["p-6aa31f02",[[4,"gov-cookiebar"]]],["p-bd47b407",[[4,"gov-dropdown",{"open":[1028],"position":[1],"getState":[64],"setOpen":[64]}]]],["p-d90a2718",[[4,"gov-empty"]]],["p-1def0eb2",[[4,"gov-error-code"]]],["p-90330543",[[4,"gov-form-control",{"gap":[1],"identifier":[1],"invalid":[4],"disabled":[4],"success":[4],"fieldset":[4],"size":[1]}]]],["p-4d257c38",[[4,"gov-form-group",{"gap":[1]}]]],["p-63ef7826",[[4,"gov-form-label",{"identifier":[1],"size":[1],"required":[4],"legend":[4]}]]],["p-f644cad5",[[4,"gov-form-password-power",{"power":[2]}]]],["p-14a475a8",[[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-00c4dc0d",[[4,"gov-form-search",{"variant":[1]}]]],["p-529363af",[[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-5d348765",[[4,"gov-grid",{"alignX":[1,"align-x"],"alignY":[1,"align-y"]}]]],["p-a4d23e73",[[4,"gov-grid-item",{"size":[1],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]],["p-52dc68aa",[[4,"gov-layout",{"type":[1],"variant":[1],"inverse":[4]}]]],["p-50e94566",[[4,"gov-layout-column"]]],["p-dc94a1da",[[4,"gov-message",{"variant":[1]}]]],["p-22222994",[[4,"gov-nav",{"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-732f74fe",[[4,"gov-nav-item",{"href":[1],"isExpandedState":[32]}]]],["p-2e2be66b",[[4,"gov-side-nav",{"inverse":[4],"compact":[4],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-3d7ea15c",[[0,"gov-skeleton",{"variant":[1],"count":[2],"shape":[1],"width":[1],"height":[1],"animation":[1],"wcagLabel":[1,"wcag-label"],"validateWcag":[64]}]]],["p-76e2aa52",[[0,"gov-spacer",{"size":[1],"breakpoint":[1]}]]],["p-e4bb6100",[[4,"gov-statsbar",{"iconPosition":[1,"icon-position"],"variant":[1]}]]],["p-d8def432",[[4,"gov-statsbar-item",{"iconPosition":[1,"icon-position"]}]]],["p-a89c27c1",[[4,"gov-stepper",{"size":[1]}]]],["p-ca2b9685",[[4,"gov-stepper-item",{"variant":[1],"size":[1],"identifier":[1],"label":[1],"annotation":[1],"triggerTag":[1,"trigger-tag"],"isExpandedState":[32],"currentState":[64]}]]],["p-0f0564e8",[[4,"gov-tabs-item",{"identifier":[1],"triggerIdentifier":[1,"trigger-identifier"],"label":[1],"default":[4],"isActive":[32],"getIdentifier":[64],"getTriggerIdentifier":[64],"setActiveStatus":[64]}]]],["p-e1e4c8f8",[[4,"gov-tiles",{"columns":[2],"noBorder":[4,"no-border"]}]]],["p-ebf79ea8",[[4,"gov-tooltip",{"variant":[1],"size":[1],"position":[1],"message":[1],"identifier":[1],"icon":[4],"show":[64],"hide":[64]}]]],["p-42636ddf",[[4,"gov-tooltip-content",{"isVisible":[4,"is-visible"]}]]],["p-65aa3b0c",[[4,"gov-wizzard",{"size":[1],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-be903a7d",[[0,"gov-icon",{"name":[1],"type":[1],"iconData":[32],"visible":[32],"error":[32]}]]],["p-2e94d2d3",[[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-f656fffe",[[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-f1503456",[[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-f5d42069",[[4,"gov-badge",{"inverse":[4],"disabled":[4],"href":[1],"target":[1],"size":[1],"type":[1],"tag":[1],"variant":[1],"wcagLabel":[1,"wcag-label"],"getTriggerRef":[64]}]]],["p-4c6d7b65",[[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-60ff8457",[[0,"gov-backdrop",{"inverse":[4],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-1c4ad772",[[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-4af5e4f4.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-2507a42a",[[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],"validateWcag":[64]}]]],["p-0574a26a",[[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-02fb27e8",[[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-ed1e9d01",[[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-ce59c2ee",[[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-ec63daab",[[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-683fc65e",[[4,"gov-alert",{"headline":[1],"variant":[1],"inverse":[4],"wcagCloseLabel":[1,"wcag-close-label"],"wcagToggleLabel":[1,"wcag-toggle-label"],"closable":[4],"toggleContent":[32],"validateWcag":[64]}]]],["p-354c6a6d",[[4,"gov-loading",{"loading":[4]}]]],["p-8bebbcc7",[[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-042d5b20",[[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-5957ba08",[[4,"gov-accordion-item",{"variant":[1025],"identifier":[1],"size":[1025],"label":[1],"annotation":[1],"disabled":[4],"isExpanded":[4,"is-expanded"],"triggerTag":[1,"trigger-tag"],"noBorder":[4,"no-border"],"isExpandedState":[32],"open":[64],"close":[64],"toggle":[64],"currentState":[64]}]]],["p-070f9684",[[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-70a7e7f6",[[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-4db67975",[[4,"gov-tile",{"promotion":[4],"href":[1],"name":[1],"getTriggerRef":[64]}]]],["p-fb895b07",[[4,"gov-wizzard-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-7cde4bc8",[[4,"gov-accordion",{"size":[1],"variant":[1],"noBorder":[4,"no-border"],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-bc1c8436",[[0,"gov-app"]]],["p-d9e28400",[[4,"gov-breadcrumbs",{"collapsible":[4],"isExpanded":[4,"is-expanded"],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelded-by"],"validateWcag":[64]}]]],["p-2f88b6d9",[[4,"gov-container",{"slottedChildren":[64]}]]],["p-58047fab",[[4,"gov-control-group",{"variant":[1],"noBorder":[4,"no-border"]}]]],["p-6aa31f02",[[4,"gov-cookiebar"]]],["p-bd47b407",[[4,"gov-dropdown",{"open":[1028],"position":[1],"getState":[64],"setOpen":[64]}]]],["p-d90a2718",[[4,"gov-empty"]]],["p-1def0eb2",[[4,"gov-error-code"]]],["p-90330543",[[4,"gov-form-control",{"gap":[1],"identifier":[1],"invalid":[4],"disabled":[4],"success":[4],"fieldset":[4],"size":[1]}]]],["p-4d257c38",[[4,"gov-form-group",{"gap":[1]}]]],["p-63ef7826",[[4,"gov-form-label",{"identifier":[1],"size":[1],"required":[4],"legend":[4]}]]],["p-f644cad5",[[4,"gov-form-password-power",{"power":[2]}]]],["p-14a475a8",[[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-00c4dc0d",[[4,"gov-form-search",{"variant":[1]}]]],["p-a714637e",[[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-5d348765",[[4,"gov-grid",{"alignX":[1,"align-x"],"alignY":[1,"align-y"]}]]],["p-a4d23e73",[[4,"gov-grid-item",{"size":[1],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]],["p-52dc68aa",[[4,"gov-layout",{"type":[1],"variant":[1],"inverse":[4]}]]],["p-50e94566",[[4,"gov-layout-column"]]],["p-dc94a1da",[[4,"gov-message",{"variant":[1]}]]],["p-22222994",[[4,"gov-nav",{"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-732f74fe",[[4,"gov-nav-item",{"href":[1],"isExpandedState":[32]}]]],["p-2e2be66b",[[4,"gov-side-nav",{"inverse":[4],"compact":[4],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-3d7ea15c",[[0,"gov-skeleton",{"variant":[1],"count":[2],"shape":[1],"width":[1],"height":[1],"animation":[1],"wcagLabel":[1,"wcag-label"],"validateWcag":[64]}]]],["p-76e2aa52",[[0,"gov-spacer",{"size":[1],"breakpoint":[1]}]]],["p-e4bb6100",[[4,"gov-statsbar",{"iconPosition":[1,"icon-position"],"variant":[1]}]]],["p-d8def432",[[4,"gov-statsbar-item",{"iconPosition":[1,"icon-position"]}]]],["p-a89c27c1",[[4,"gov-stepper",{"size":[1]}]]],["p-ca2b9685",[[4,"gov-stepper-item",{"variant":[1],"size":[1],"identifier":[1],"label":[1],"annotation":[1],"triggerTag":[1,"trigger-tag"],"isExpandedState":[32],"currentState":[64]}]]],["p-0f0564e8",[[4,"gov-tabs-item",{"identifier":[1],"triggerIdentifier":[1,"trigger-identifier"],"label":[1],"default":[4],"isActive":[32],"getIdentifier":[64],"getTriggerIdentifier":[64],"setActiveStatus":[64]}]]],["p-e1e4c8f8",[[4,"gov-tiles",{"columns":[2],"noBorder":[4,"no-border"]}]]],["p-ebf79ea8",[[4,"gov-tooltip",{"variant":[1],"size":[1],"position":[1],"message":[1],"identifier":[1],"icon":[4],"show":[64],"hide":[64]}]]],["p-42636ddf",[[4,"gov-tooltip-content",{"isVisible":[4,"is-visible"]}]]],["p-65aa3b0c",[[4,"gov-wizzard",{"size":[1],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-ce42bc3a",[[0,"gov-icon",{"name":[1],"type":[1],"iconData":[32],"visible":[32],"error":[32]}]]],["p-2e94d2d3",[[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-f656fffe",[[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-f1503456",[[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-bbfa3d9e",[[4,"gov-badge",{"inverse":[4],"disabled":[4],"href":[1],"target":[1],"size":[1],"type":[1],"tag":[1],"variant":[1],"wcagLabel":[1,"wcag-label"],"getTriggerRef":[64]}]]],["p-4c6d7b65",[[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-60ff8457",[[0,"gov-backdrop",{"inverse":[4],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]}]]],["p-a2f998a0",[[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
@@ -0,0 +1 @@
1
+ gov-accordion:not(.hydrated),gov-accordion:not(.hydrated) gov-accordion-item,gov-alert:not(.hydrated){width:100%;position:relative}gov-alert:not(.hydrated),gov-container-test:not(.hydrated),gov-statsbar:not(.hydrated){max-width:calc(var(--gov-container-width,73.75rem) + 2 * var(--gov-container-padding,2.5rem))}.gov-pseudo-spin-animation::before,.gov-spin-animation{animation:4s linear infinite spin}@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%,100%{opacity:1}50%{opacity:.4}}gov-accordion:not(.hydrated){display:block;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}gov-accordion:not(.hydrated) p,gov-breadcrumbs:not(.hydrated) li::before,gov-card:not(.hydrated)[collapsible=""] gov-button,gov-card:not(.hydrated)[collapsible=""] p,gov-card:not(.hydrated)[collapsible="1"] gov-button,gov-card:not(.hydrated)[collapsible="1"] p,gov-card:not(.hydrated)[collapsible=true i] gov-button,gov-card:not(.hydrated)[collapsible=true i] p,gov-form-multi-select:not(.hydrated) option,gov-form-select:not(.hydrated) option,gov-side-nav:not(.hydrated) gov-side-nav-item gov-side-nav-item,gov-spacer:not(.hydrated)[breakpoint=lg],gov-spacer:not(.hydrated)[breakpoint=md],gov-spacer:not(.hydrated)[breakpoint=none],gov-spacer:not(.hydrated)[breakpoint=sm],gov-spacer:not(.hydrated)[breakpoint=xl],gov-wizzard:not(.hydrated) gov-wizzard-item p{display:none}gov-accordion:not(.hydrated) gov-accordion-item:before{content:"";position:absolute;display:block;right:0;bottom:-1px;left:0;height:1px}gov-accordion:not(.hydrated) gov-accordion-item[is-expanded=""] p,gov-accordion:not(.hydrated) gov-accordion-item[is-expanded="1"] p,gov-accordion:not(.hydrated) gov-accordion-item[is-expanded=true i] p,gov-form-select:not(.hydrated) option[selected]{display:inline-block}gov-accordion:not(.hydrated)[size=xs] gov-accordion-item{gap:var(--gov-accordion-s-headline-gap,.5rem);min-height:var(--gov-accordion-s-min-height,3rem);padding:var(--gov-accordion-s-padding-y,.75rem) var(--gov-accordion-s-padding-x,.5rem)}gov-accordion:not(.hydrated)[size=xs] gov-accordion-item gov-icon{width:calc(var(--gov-text-m-font-size) * 1.2);height:calc(var(--gov-text-m-font-size) * 1.2)}gov-accordion:not(.hydrated)[size=s] gov-accordion-item{gap:var(--gov-accordion-s-headline-gap,.5rem);min-height:var(--gov-accordion-s-min-height,3rem);padding:var(--gov-accordion-s-padding-y,1.125rem) var(--gov-accordion-s-padding-x,.5rem)}gov-accordion:not(.hydrated)[size=s] gov-accordion-item gov-icon{width:calc(var(--gov-text-xl-font-size) * 1.2);height:calc(var(--gov-text-xl-font-size) * 1.2)}gov-accordion:not(.hydrated)[size=m] gov-accordion-item{gap:var(--gov-accordion-m-headline-gap,1rem);min-height:var(--gov-accordion-m-min-height,4.5rem);padding:var(--gov-accordion-m-padding-y,1.25rem) var(--gov-accordion-m-padding-x,.5rem)}gov-accordion:not(.hydrated)[size=m] gov-accordion-item gov-icon{width:calc(var(--gov-text-2xl-font-size) * 1.2);height:calc(var(--gov-text-2xl-font-size) * 1.2)}gov-accordion:not(.hydrated)[size=l] gov-accordion-item{gap:var(--gov-accordion-l-headline-gap,1rem);min-height:var(--gov-accordion-l-min-height,5.5rem);padding:var(--gov-accordion-l-padding-y,1.375rem) var(--gov-accordion-l-padding-x,.5rem)}gov-accordion:not(.hydrated)[size=l] gov-accordion-item gov-icon{width:calc(var(--gov-text-3xl-font-size) * 1.2);height:calc(var(--gov-text-3xl-font-size) * 1.2)}gov-accordion:not(.hydrated)[variant=primary] gov-accordion-item{background-color:var(--gov-accordion-primary-background,transparent);color:var(--gov-accordion-primary-color,var(--gov-color-primary))}gov-accordion:not(.hydrated)[variant=primary] gov-accordion-item:before{background-color:var(--gov-accordion-primary-separator,var(--gov-color-secondary-500))}gov-accordion:not(.hydrated) gov-accordion-item[disabled=""],gov-accordion:not(.hydrated) gov-accordion-item[disabled="1"],gov-accordion:not(.hydrated) gov-accordion-item[disabled=true i]{color:var(--gov-accordion-primary-disabled-color,var(--gov-color-primary-400))}gov-accordion:not(.hydrated)[variant=secondary] gov-accordion-item{background-color:var(--gov-accordion-secondary-background,transparent);color:var(--gov-accordion-secondary-color,var(--gov-color-secondary))}gov-accordion:not(.hydrated)[variant=secondary] gov-accordion-item:before{background-color:var(--gov-accordion-secondary-separator,var(--gov-color-secondary-500))}gov-accordion:not(.hydrated) gov-accordion-item[disabled=""],gov-accordion:not(.hydrated) gov-accordion-item[disabled="1"],gov-accordion:not(.hydrated) gov-accordion-item[disabled=true i]{color:var(--gov-accordion-secondary-disabled-color,var(--gov-color-secondary-600))}gov-accordion:not(.hydrated)[no-border] gov-accordion-item:before{background-color:transparent}gov-alert:not(.hydrated){display:block;margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile,1.25rem);padding-left:var(--gov-container-padding-mobile,1.25rem);display:flex;gap:1rem;padding-top:1rem;padding-bottom:1rem}gov-badge:not(.hydrated),gov-button:not(.hydrated){font-weight:400;display:inline-flex;font-family:var(--gov-font-family, "Roboto", sans-serif);box-sizing:border-box}gov-alert:not(.hydrated) gov-icon:not(.hydrated){flex:0 0 auto}gov-alert:not(.hydrated) gov-icon:not(.hydrated)>*{width:1.25rem;height:1.25rem}gov-alert:not(.hydrated)[variant=warning]{background-color:var(--gov-alert-warning-bg-color,var(--gov-color-warning))}gov-alert:not(.hydrated)[variant=warning] gov-icon:not(.hydrated){color:var(--gov-alert-warning-icon-color,var(--gov-color-secondary))}gov-alert:not(.hydrated)[variant=warning] p{color:var(--gov-alert-warning-text-color,var(--gov-color-secondary))}gov-alert:not(.hydrated)[variant=error]{background-color:var(--gov-alert-error-bg-color,var(--gov-color-error))}gov-alert:not(.hydrated)[variant=error] gov-icon:not(.hydrated){color:var(--gov-alert-error-icon-color,var(--gov-color-neutral-white))}gov-alert:not(.hydrated)[variant=error] p{color:var(--gov-alert-error-text-color,var(--gov-color-neutral-white))}gov-alert:not(.hydrated)[variant=secondary]{background-color:var(--gov-alert-secondary-bg-color,var(--gov-color-secondary))}gov-alert:not(.hydrated)[variant=secondary] gov-icon:not(.hydrated){color:var(--gov-alert-secondary-icon-color,var(--gov-color-neutral-white))}gov-alert:not(.hydrated)[variant=secondary] p{color:var(--gov-alert-secondary-text-color,var(--gov-color-neutral-white))}gov-alert:not(.hydrated)[variant=success]{background-color:var(--gov-alert-success-bg-color,var(--gov-color-success-500))}gov-alert:not(.hydrated)[variant=success] gov-icon:not(.hydrated){color:var(--gov-alert-success-icon-color,var(--gov-color-neutral-white))}gov-alert:not(.hydrated)[variant=success] p{color:var(--gov-alert-success-text-color,var(--gov-color-neutral-white))}gov-alert:not(.hydrated)[variant=primary]{background-color:var(--gov-alert-primary-bg-color,var(--gov-color-primary))}gov-alert:not(.hydrated)[variant=primary] gov-icon:not(.hydrated){color:var(--gov-alert-primary-icon-color,var(--gov-color-neutral-white))}gov-alert:not(.hydrated)[variant=primary] p{color:var(--gov-alert-primary-text-color,var(--gov-color-neutral-white))}gov-badge:not(.hydrated){margin:0;padding:.25rem .625rem;border:var(--gov-button-border-width,.0625rem) solid transparent;letter-spacing:initial}gov-badge:not(.hydrated) gov-icon:not(.hydrated),gov-button:not(.hydrated) gov-icon:not(.hydrated){flex:0 0 auto;color:inherit}gov-badge:not(.hydrated) gov-button:not(.hydrated),gov-tiles:not(.hydrated)[no-border]>*{border:none}gov-badge:not(.hydrated)[type=solid][variant=primary],gov-button:not(.hydrated)[type=solid][variant=primary]{background-color:var(--gov-button-primary-solid-bg,var(--gov-color-primary));color:var(--gov-button-primary-solid-color,var(--gov-color-neutral-white));border-width:0}gov-badge:not(.hydrated)[type=outlined][variant=primary],gov-button:not(.hydrated)[type=outlined][variant=primary]{color:var(--gov-button-primary-outlined-color,var(--gov-color-primary));border-color:var(--gov-button-primary-outlined-border,var(--gov-color-primary))}gov-badge:not(.hydrated)[type=base][variant=primary],gov-button:not(.hydrated)[type=base][variant=primary]{color:var(--gov-button-primary-base-color,var(--gov-color-primary));border-width:0}gov-badge:not(.hydrated)[type=link][variant=primary],gov-button:not(.hydrated)[type=link][variant=primary]{color:var(--gov-button-primary-link-color,var(--gov-color-primary));border-width:0}gov-badge:not(.hydrated)[type=solid][variant=secondary],gov-button:not(.hydrated)[type=solid][variant=secondary]{background-color:var(--gov-button-secondary-solid-bg,var(--gov-color-secondary));color:var(--gov-button-secondary-solid-color,var(--gov-color-neutral-white));border-width:0}gov-badge:not(.hydrated)[type=outlined][variant=secondary],gov-button:not(.hydrated)[type=outlined][variant=secondary]{color:var(--gov-button-secondary-outlined-color,var(--gov-color-secondary));border-color:var(--gov-button-secondary-outlined-border,var(--gov-color-secondary))}gov-badge:not(.hydrated)[type=base][variant=secondary],gov-button:not(.hydrated)[type=base][variant=secondary]{color:var(--gov-button-secondary-base-color,var(--gov-color-secondary));border-width:0}gov-badge:not(.hydrated)[type=link][variant=secondary],gov-button:not(.hydrated)[type=link][variant=secondary]{color:var(--gov-button-secondary-link-color,var(--gov-color-secondary));border-width:0}gov-badge:not(.hydrated)[type=solid][variant=error],gov-button:not(.hydrated)[type=solid][variant=error]{background-color:var(--gov-button-error-solid-bg,var(--gov-color-error));color:var(--gov-button-error-solid-color,var(--gov-color-neutral-white));border-width:0}gov-badge:not(.hydrated)[type=outlined][variant=error],gov-button:not(.hydrated)[type=outlined][variant=error]{color:var(--gov-button-error-outlined-color,var(--gov-color-error));border-color:var(--gov-button-error-outlined-border,var(--gov-color-error))}gov-badge:not(.hydrated)[type=base][variant=error],gov-button:not(.hydrated)[type=base][variant=error]{color:var(--gov-button-error-base-color,var(--gov-color-error));border-width:0}gov-badge:not(.hydrated)[type=link][variant=error],gov-button:not(.hydrated)[type=link][variant=error]{color:var(--gov-button-error-link-color,var(--gov-color-error));border-width:0}gov-badge:not(.hydrated)[type=solid][variant=success],gov-button:not(.hydrated)[type=solid][variant=success]{background-color:var(--gov-button-success-solid-bg,var(--gov-color-success-500));color:var(--gov-button-success-solid-color,var(--gov-color-neutral-white));border-width:0}gov-badge:not(.hydrated)[type=outlined][variant=success],gov-button:not(.hydrated)[type=outlined][variant=success]{color:var(--gov-button-success-outlined-color,var(--gov-color-success-500));border-color:var(--gov-button-success-outlined-border,var(--gov-color-success-500))}gov-badge:not(.hydrated)[type=base][variant=success],gov-button:not(.hydrated)[type=base][variant=success]{color:var(--gov-button-success-base-color,var(--gov-color-success-500));border-width:0}gov-badge:not(.hydrated)[type=link][variant=success],gov-button:not(.hydrated)[type=link][variant=success]{color:var(--gov-button-success-link-color,var(--gov-color-success-500));border-width:0}gov-badge:not(.hydrated)[type=solid][variant=warning],gov-button:not(.hydrated)[type=solid][variant=warning]{background-color:var(--gov-button-warning-solid-bg,var(--gov-color-warning-500));color:var(--gov-button-warning-solid-color,var(--gov-color-neutral-white));border-width:0}gov-badge:not(.hydrated)[type=outlined][variant=warning],gov-button:not(.hydrated)[type=outlined][variant=warning]{color:var(--gov-button-warning-outlined-color,var(--gov-color-warning-500));border-color:var(--gov-button-warning-outlined-border,var(--gov-color-warning-500))}gov-badge:not(.hydrated)[type=base][variant=warning],gov-button:not(.hydrated)[type=base][variant=warning]{color:var(--gov-button-warning-base-color,var(--gov-color-warning-500));border-width:0}gov-badge:not(.hydrated)[type=link][variant=warning],gov-button:not(.hydrated)[type=link][variant=warning]{color:var(--gov-button-warning-link-color,var(--gov-color-warning-500));border-width:0}gov-badge:not(.hydrated)[size=xs]{font-weight:var(--gov-button-text-xs-font-weight,var(--gov-text-xs-font-weight));font-size:var(--gov-button-text-xs-font-size, var(--gov-text-xs-font-size));line-height:var(--gov-button-text-xs-line-height, var(--gov-text-xs-line-height));letter-spacing:var(--gov-button-text-xs-letter-spacing, var(--gov-text-xs-letter-spacing));column-gap:var(--gov-button-xs-padding-x,.625rem);min-height:var(--gov-button-xs-min-height,1.5rem);padding:var(--gov-button-xs-padding-y,.125rem) var(--gov-button-xs-padding-x,.625rem);border-radius:calc(var(--gov-button-xs-min-height,1.5rem) * .5)}gov-badge:not(.hydrated)[size=xs] gov-icon:not(.hydrated),gov-button:not(.hydrated)[size=xs] gov-icon:not(.hydrated){width:var(--gov-button-xs-icon-size,1rem);height:var(--gov-button-xs-icon-size,1rem)}gov-badge:not(.hydrated)[size=s]{font-weight:var(--gov-button-text-s-font-weight,var(--gov-text-s-font-weight));font-size:var(--gov-button-text-s-font-size, var(--gov-text-s-font-size));line-height:var(--gov-button-text-s-line-height, var(--gov-text-s-line-height));letter-spacing:var(--gov-button-text-s-letter-spacing, var(--gov-text-s-letter-spacing));column-gap:var(--gov-button-s-padding-x,.75rem);min-height:var(--gov-button-s-min-height,2rem);padding:var(--gov-button-s-padding-y,.25rem) var(--gov-button-s-padding-x,.75rem);border-radius:calc(var(--gov-button-s-min-height,2rem) * .5)}gov-badge:not(.hydrated)[size=s] gov-icon:not(.hydrated),gov-button:not(.hydrated)[size=s] gov-icon:not(.hydrated){width:var(--gov-button-s-icon-size,1rem);height:var(--gov-button-s-icon-size,1rem)}gov-badge:not(.hydrated)[size=m]{font-weight:var(--gov-button-text-m-font-weight,var(--gov-text-m-font-weight));font-size:var(--gov-button-text-m-font-size, var(--gov-text-m-font-size));line-height:var(--gov-button-text-m-line-height, var(--gov-text-m-line-height));letter-spacing:var(--gov-button-text-m-letter-spacing, var(--gov-text-m-letter-spacing));column-gap:var(--gov-button-m-padding-x,.75rem);min-height:var(--gov-button-m-min-height,2.5rem);padding:var(--gov-button-m-padding-y,.375rem) var(--gov-button-m-padding-x,.75rem);border-radius:calc(var(--gov-button-m-min-height,2.5rem) * .5)}gov-badge:not(.hydrated)[size=m] gov-icon:not(.hydrated),gov-button:not(.hydrated)[size=m] gov-icon:not(.hydrated){width:var(--gov-button-m-icon-size,1.25rem);height:var(--gov-button-m-icon-size,1.25rem)}gov-badge:not(.hydrated)[size=l]{font-weight:var(--gov-button-text-l-font-weight,var(--gov-text-l-font-weight));font-size:var(--gov-button-text-l-font-size, var(--gov-text-l-font-size));line-height:var(--gov-button-text-l-line-height, var(--gov-text-l-line-height));letter-spacing:var(--gov-button-text-l-letter-spacing, var(--gov-text-l-letter-spacing));column-gap:var(--gov-button-l-padding-x,1rem);min-height:var(--gov-button-l-min-height,3rem);padding:var(--gov-button-l-padding-y,.5rem) var(--gov-button-l-padding-x,1rem);border-radius:calc(var(--gov-button-l-min-height,3rem) * .5)}gov-badge:not(.hydrated)[size=l] gov-icon:not(.hydrated),gov-button:not(.hydrated)[size=l] gov-icon:not(.hydrated){width:var(--gov-button-l-icon-size,1.5rem);height:var(--gov-button-l-icon-size,1.5rem)}gov-badge:not(.hydrated)[size=xl]{font-weight:var(--gov-button-text-xl-font-weight,var(--gov-text-xl-font-weight));font-size:var(--gov-button-text-xl-font-size, var(--gov-text-xl-font-size));line-height:var(--gov-button-text-xl-line-height, var(--gov-text-xl-line-height));letter-spacing:var(--gov-button-text-xl-letter-spacing, var(--gov-text-xl-letter-spacing));column-gap:var(--gov-button-xl-padding-x,1.25rem);min-height:var(--gov-button-xl-min-height,3.5rem);padding:var(--gov-button-xl-padding-y,.75rem) var(--gov-button-xl-padding-x,1.25rem);border-radius:calc(var(--gov-button-xl-min-height,3.5rem) * .5)}gov-badge:not(.hydrated)[size=xl] gov-icon:not(.hydrated),gov-button:not(.hydrated)[size=xl] gov-icon:not(.hydrated){width:var(--gov-button-xl-icon-size,1.75rem);height:var(--gov-button-xl-icon-size,1.75rem)}gov-badge:not(.hydrated)[type=solid][variant=primary][inverse=""],gov-badge:not(.hydrated)[type=solid][variant=primary][inverse="1"],gov-badge:not(.hydrated)[type=solid][variant=primary][inverse=true i]{border-width:.0625rem;border-color:var(--gov-badge-inverse-primary-border-color,var(--gov-color-primary-200));background-color:var(--gov-badge-inverse-primary-bg,var(--gov-color-primary-100));color:var(--gov-badge-inverse-primary-color,var(--gov-color-primary))}gov-badge:not(.hydrated)[type=solid][variant=secondary][inverse=""],gov-badge:not(.hydrated)[type=solid][variant=secondary][inverse="1"],gov-badge:not(.hydrated)[type=solid][variant=secondary][inverse=true i]{border-width:.0625rem;border-color:var(--gov-badge-inverse-secondary-border-color,var(--gov-color-secondary-400));background-color:var(--gov-badge-inverse-secondary-bg,var(--gov-color-secondary-200));color:var(--gov-badge-inverse-secondary-color,var(--gov-color-secondary-900))}gov-badge:not(.hydrated)[type=solid][variant=success][inverse=""],gov-badge:not(.hydrated)[type=solid][variant=success][inverse="1"],gov-badge:not(.hydrated)[type=solid][variant=success][inverse=true i]{border-width:.0625rem;border-color:var(--gov-badge-inverse-success-border-color,var(--gov-color-success-200));background-color:var(--gov-badge-inverse-success-bg,var(--gov-color-success-100));color:var(--gov-badge-inverse-success-color,var(--gov-color-success-600))}gov-badge:not(.hydrated)[type=solid][variant=warning][inverse=""],gov-badge:not(.hydrated)[type=solid][variant=warning][inverse="1"],gov-badge:not(.hydrated)[type=solid][variant=warning][inverse=true i]{border-width:.0625rem;border-color:var(--gov-badge-inverse-warning-border-color,var(--gov-color-warning-200));background-color:var(--gov-badge-inverse-warning-bg,var(--gov-color-warning-100));color:var(--gov-badge-inverse-warning-color,var(--gov-color-warning-600))}gov-badge:not(.hydrated)[type=solid][variant=error][inverse=""],gov-badge:not(.hydrated)[type=solid][variant=error][inverse="1"],gov-badge:not(.hydrated)[type=solid][variant=error][inverse=true i]{border-width:.0625rem;border-color:var(--gov-badge-inverse-error-border-color,var(--gov-color-error-200));background-color:var(--gov-badge-inverse-error-bg,var(--gov-color-error-100));color:var(--gov-badge-inverse-error-color,var(--gov-color-error-500))}gov-breadcrumbs:not(.hydrated) ul{position:relative;display:flex;width:100%;margin:0;padding:0 0 .3125rem;overflow-x:auto}gov-breadcrumbs:not(.hydrated) li{display:flex;justify-content:flex-start;align-items:center;margin:0;padding:0;background:0 0;white-space:nowrap}gov-breadcrumbs:not(.hydrated) button{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;border:none;background:0 0;color:var(--gov-breadcrumbs-link-color,var(--gov-color-primary));text-decoration:underline}gov-breadcrumbs:not(.hydrated) gov-icon{width:.625rem;height:.625rem;margin:0 1rem;color:var(--gov-breadcrumbs-arrow-color,var(--gov-color-secondary-600))}gov-button:not(.hydrated){margin:0;padding:0;border:var(--gov-button-border-width,.0625rem) solid transparent;border-radius:var(--gov-border-radius,.1875rem)}gov-button:not(.hydrated)[type=link]{min-height:inherit;padding:0!important;line-height:inherit;text-decoration:underline}gov-button:not(.hydrated)[size=xs]{font-weight:var(--gov-button-text-xs-font-weight,var(--gov-text-xs-font-weight));font-size:var(--gov-button-text-xs-font-size, var(--gov-text-xs-font-size));line-height:var(--gov-button-text-xs-line-height, var(--gov-text-xs-line-height));letter-spacing:var(--gov-button-text-xs-letter-spacing, var(--gov-text-xs-letter-spacing));column-gap:var(--gov-button-xs-padding-x,.625rem);min-height:var(--gov-button-xs-min-height,1.5rem);padding:var(--gov-button-xs-padding-y,.125rem) var(--gov-button-xs-padding-x,.625rem);font-weight:var(--gov-button-xs-font-weight,700)}gov-button:not(.hydrated)[size=s]{font-weight:var(--gov-button-text-s-font-weight,var(--gov-text-s-font-weight));font-size:var(--gov-button-text-s-font-size, var(--gov-text-s-font-size));line-height:var(--gov-button-text-s-line-height, var(--gov-text-s-line-height));letter-spacing:var(--gov-button-text-s-letter-spacing, var(--gov-text-s-letter-spacing));column-gap:var(--gov-button-s-padding-x,.75rem);min-height:var(--gov-button-s-min-height,2rem);padding:var(--gov-button-s-padding-y,.25rem) var(--gov-button-s-padding-x,.75rem);font-weight:var(--gov-button-s-font-weight,700)}gov-button:not(.hydrated)[size=m]{font-weight:var(--gov-button-text-m-font-weight,var(--gov-text-m-font-weight));font-size:var(--gov-button-text-m-font-size, var(--gov-text-m-font-size));line-height:var(--gov-button-text-m-line-height, var(--gov-text-m-line-height));letter-spacing:var(--gov-button-text-m-letter-spacing, var(--gov-text-m-letter-spacing));column-gap:var(--gov-button-m-padding-x,.75rem);min-height:var(--gov-button-m-min-height,2.5rem);padding:var(--gov-button-m-padding-y,.375rem) var(--gov-button-m-padding-x,.75rem);font-weight:var(--gov-button-m-font-weight,700)}gov-button:not(.hydrated)[size=l]{font-weight:var(--gov-button-text-l-font-weight,var(--gov-text-l-font-weight));font-size:var(--gov-button-text-l-font-size, var(--gov-text-l-font-size));line-height:var(--gov-button-text-l-line-height, var(--gov-text-l-line-height));letter-spacing:var(--gov-button-text-l-letter-spacing, var(--gov-text-l-letter-spacing));column-gap:var(--gov-button-l-padding-x,1rem);min-height:var(--gov-button-l-min-height,3rem);padding:var(--gov-button-l-padding-y,.5rem) var(--gov-button-l-padding-x,1rem);font-weight:var(--gov-button-l-font-weight,700)}gov-button:not(.hydrated)[size=xl]{font-weight:var(--gov-button-text-xl-font-weight,var(--gov-text-xl-font-weight));font-size:var(--gov-button-text-xl-font-size, var(--gov-text-xl-font-size));line-height:var(--gov-button-text-xl-line-height, var(--gov-text-xl-line-height));letter-spacing:var(--gov-button-text-xl-letter-spacing, var(--gov-text-xl-letter-spacing));column-gap:var(--gov-button-xl-padding-x,1.25rem);min-height:var(--gov-button-xl-min-height,3.5rem);padding:var(--gov-button-xl-padding-y,.75rem) var(--gov-button-xl-padding-x,1.25rem);font-weight:var(--gov-button-xl-font-weight,700)}gov-card:not(.hydrated) [slot=footer],gov-form-autocomplete:not(.hydrated)[size=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-card:not(.hydrated){position:relative;display:flex;width:100%;flex-direction:column;border:var(--gov-card-border-width,.0625rem solid var(--gov-color-secondary-500));border-radius:var(--gov-border-radius,.1875rem);background:var(--gov-card-bg,var(--gov-color-neutral-white));overflow:hidden}gov-card:not(.hydrated) p{display:block;padding:1.5rem;margin-bottom:0}gov-card:not(.hydrated) gov-button{padding-left:1.5rem;padding-bottom:1.5rem}gov-card:not(.hydrated) img{width:100%;height:auto;margin:0;line-height:1}gov-card:not(.hydrated) gov-icon{flex:0 0 auto;width:2.5rem;height:2.5rem;color:var(--gov-card-icon-color,var(--gov-color-primary));margin-top:1.5rem;margin-left:1.5rem}gov-card:not(.hydrated) [slot=footer]{padding:1rem 1.5rem;background:var(--gov-card-footer-bg,var(--gov-color-primary-100))}gov-card:not(.hydrated)[collapsible=""][expanded=""] gov-button,gov-card:not(.hydrated)[collapsible=""][expanded=""] p,gov-card:not(.hydrated)[collapsible=""][expanded="1"] gov-button,gov-card:not(.hydrated)[collapsible=""][expanded="1"] p,gov-card:not(.hydrated)[collapsible=""][expanded=true i] gov-button,gov-card:not(.hydrated)[collapsible=""][expanded=true i] p,gov-card:not(.hydrated)[collapsible="1"][expanded=""] gov-button,gov-card:not(.hydrated)[collapsible="1"][expanded=""] p,gov-card:not(.hydrated)[collapsible="1"][expanded="1"] gov-button,gov-card:not(.hydrated)[collapsible="1"][expanded="1"] p,gov-card:not(.hydrated)[collapsible="1"][expanded=true i] gov-button,gov-card:not(.hydrated)[collapsible="1"][expanded=true i] p,gov-card:not(.hydrated)[collapsible=true i][expanded=""] gov-button,gov-card:not(.hydrated)[collapsible=true i][expanded=""] p,gov-card:not(.hydrated)[collapsible=true i][expanded="1"] gov-button,gov-card:not(.hydrated)[collapsible=true i][expanded="1"] p,gov-card:not(.hydrated)[collapsible=true i][expanded=true i] gov-button,gov-card:not(.hydrated)[collapsible=true i][expanded=true i] p,gov-wizzard:not(.hydrated) gov-wizzard-item[is-expanded=""] p,gov-wizzard:not(.hydrated) gov-wizzard-item[is-expanded="1"] p,gov-wizzard:not(.hydrated) gov-wizzard-item[is-expanded=true i] p{display:block}gov-container-test:not(.hydrated){display:block;width:100%;margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile,1.25rem);padding-left:var(--gov-container-padding-mobile,1.25rem)}gov-control-group:not(.hydrated){position:relative;display:flex;width:100%;align-items:center;border-radius:var(--gov-control-group-border-radius,.25rem)}gov-empty:not(.hydrated),gov-error-code:not(.hydrated),gov-side-nav:not(.hydrated),gov-spacer:not(.hydrated),gov-stepper:not(.hydrated),gov-stepper:not(.hydrated) gov-stepper-item,gov-wizzard:not(.hydrated){display:block;width:100%;position:relative}gov-control-group:not(.hydrated) *{border:none!important;border-radius:0}gov-control-group:not(.hydrated)[variant=primary]{border:var(--gov-control-group-border-primary,.0625rem solid var(--gov-color-primary-600))}gov-control-group:not(.hydrated)[variant=primary]>*{border-right:var(--gov-control-group-border-primary,.0625rem solid var(--gov-color-primary-600))!important}gov-control-group:not(.hydrated)[variant=secondary]{border:var(--gov-control-group-border-secondary,.0625rem solid var(--gov-color-secondary-700))}gov-control-group:not(.hydrated)[variant=secondary]>*{border-right:var(--gov-control-group-border-secondary,.0625rem solid var(--gov-color-secondary-700))!important}gov-control-group:not(.hydrated)>:last-child,gov-control-group:not(.hydrated)[no-border=""]>*,gov-control-group:not(.hydrated)[no-border="1"]>*,gov-control-group:not(.hydrated)[no-border=true i]>*{border-right:none!important}gov-empty:not(.hydrated) gov-icon{display:inline-flex;justify-content:center;align-items:center;width:6rem;height:6rem;margin-bottom:2rem;border-radius:50%;background:var(--gov-empty-icon-circle-bg,linear-gradient(to bottom,var(--gov-color-primary-200),var(--gov-color-neutral-white)));color:var(--gov-empty-icon-color,var(--gov-color-primary))}gov-empty:not(.hydrated) gov-icon>*{width:3.5rem;height:3.5rem}gov-error-code:not(.hydrated){margin:0 auto;text-align:center}gov-error-code:not(.hydrated) gov-icon{display:flex;justify-content:center;align-items:center;width:9.375rem;height:9.375rem;margin:0 auto 1.5rem;border-radius:50%;background:var(--gov-error-icon-circle-bg,linear-gradient(to bottom,var(--gov-color-primary-200),var(--gov-color-neutral-white)));color:var(--gov-error-icon-color,var(--gov-color-primary))}gov-error-code:not(.hydrated) gov-icon>*{width:7.125rem;height:7.125rem}gov-form-autocomplete:not(.hydrated){display:flex;align-items:center;justify-content:flex-end;position:relative;width:100%;border-radius:var(--gov-border-radius,.1875rem);background-color:var(--gov-form-bg-color,var(--gov-color-neutral-white));font-family:var(--gov-font-family, "Roboto", sans-serif)}gov-form-autocomplete:not(.hydrated)[size=s]{height:var(--gov-form-input-core-s-height,2rem);padding:var(--gov-form-input-core-s-padding,.25rem .75rem)}gov-form-autocomplete:not(.hydrated)[size=l],gov-form-autocomplete:not(.hydrated)[size=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-form-autocomplete:not(.hydrated)[size=m]{height:var(--gov-form-input-core-m-height,2.5rem);padding:var(--gov-form-input-core-m-padding,.4375rem .75rem)}gov-form-autocomplete:not(.hydrated)[size=l]{height:var(--gov-form-input-core-l-height,3rem);padding:var(--gov-form-input-core-l-padding,.6875rem .75rem)}gov-form-autocomplete:not(.hydrated)[size=xl]{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,.9375rem 1rem .875rem)}gov-form-checkbox:not(.hydrated)[size=xs],gov-form-radio:not(.hydrated)[size=xs],gov-form-switch:not(.hydrated)[size=xs] gov-form-label{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-form-autocomplete:not(.hydrated)[variant=primary],gov-form-input:not(.hydrated)[variant=primary],gov-form-multi-select:not(.hydrated)[variant=primary],gov-form-select:not(.hydrated)[variant=primary]{color:var(--gov-form-input-color-primary,var(--gov-color-secondary-700));border:var(--gov-form-input-border-primary,.0625rem solid var(--gov-color-primary-600))}gov-form-autocomplete:not(.hydrated)[variant=secondary],gov-form-input:not(.hydrated)[variant=secondary],gov-form-multi-select:not(.hydrated)[variant=secondary],gov-form-select:not(.hydrated)[variant=secondary]{color:var(--gov-form-input-color-secondary,var(--gov-color-secondary-700));border:var(--gov-form-input-border-secondary,.0625rem solid var(--gov-color-secondary-700))}gov-form-autocomplete:not(.hydrated)[disabled=""],gov-form-autocomplete:not(.hydrated)[disabled="1"],gov-form-autocomplete:not(.hydrated)[disabled=true i],gov-form-input:not(.hydrated)[disabled=""],gov-form-input:not(.hydrated)[disabled="1"],gov-form-input:not(.hydrated)[disabled=true i],gov-form-multi-select:not(.hydrated)[disabled=""],gov-form-multi-select:not(.hydrated)[disabled="1"],gov-form-multi-select:not(.hydrated)[disabled=true i],gov-form-select:not(.hydrated)[disabled=""],gov-form-select:not(.hydrated)[disabled="1"],gov-form-select:not(.hydrated)[disabled=true i]{pointer-events:none;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))}gov-form-file:not(.hydrated)[disabled=""] gov-form-label,gov-form-file:not(.hydrated)[disabled="1"] gov-form-label,gov-form-file:not(.hydrated)[disabled=true i] gov-form-label{pointer-events:none}gov-form-file:not(.hydrated)[disabled=""] gov-form-label *,gov-form-file:not(.hydrated)[disabled="1"] gov-form-label *,gov-form-file:not(.hydrated)[disabled=true i] gov-form-label *{color:var(--gov-form-file-disabled-color,var(--gov-color-secondary-600))}gov-form-file:not(.hydrated)[expanded=""],gov-form-file:not(.hydrated)[expanded="1"],gov-form-file:not(.hydrated)[expanded=true i]{position:relative;width:100%;padding:2rem 1.375rem 1.375rem;border:var(--gov-form-file-border,.0625rem dashed var(--gov-color-secondary-500));text-align:center}gov-form-file:not(.hydrated)[expanded=""] gov-form-label,gov-form-file:not(.hydrated)[expanded="1"] gov-form-label,gov-form-file:not(.hydrated)[expanded=true i] gov-form-label{width:100%;padding:1.375rem;border:var(--gov-form-file-border,.0625rem dashed var(--gov-color-secondary-500));text-align:center}gov-form-file:not(.hydrated)[expanded=""][disabled=""],gov-form-file:not(.hydrated)[expanded=""][disabled="1"],gov-form-file:not(.hydrated)[expanded=""][disabled=true i],gov-form-file:not(.hydrated)[expanded="1"][disabled=""],gov-form-file:not(.hydrated)[expanded="1"][disabled="1"],gov-form-file:not(.hydrated)[expanded="1"][disabled=true i],gov-form-file:not(.hydrated)[expanded=true i][disabled=""],gov-form-file:not(.hydrated)[expanded=true i][disabled="1"],gov-form-file:not(.hydrated)[expanded=true i][disabled=true i]{pointer-events:none;color:var(--gov-form-file-disabled-color,var(--gov-color-secondary-600))}gov-form-checkbox:not(.hydrated){display:block;border:var(--gov-form-checkbox-border-size,.125rem solid var(--gov-color-primary));background-color:var(--gov-form-checkbox-background-color,var(--gov-color-neutral-white));transition:border-color 150ms linear,background-color 150ms linear,outline-color 150ms linear}gov-form-checkbox:not(.hydrated) gov-form-label,gov-form-radio:not(.hydrated) gov-form-label,gov-grid:not(.hydrated) gov-grid-item[size="12/12"]{width:100%}gov-form-checkbox:not(.hydrated)[size=xs],gov-form-radio:not(.hydrated)[size=xs]{width:var(--gov-form-checkbox-core-xs-indicator-size,1.25rem);height:var(--gov-form-checkbox-core-xs-indicator-size,1.25rem)}gov-form-checkbox:not(.hydrated)[size=xs] gov-form-label,gov-form-radio:not(.hydrated)[size=xs] gov-form-label{padding-top:calc((var(--gov-form-checkbox-core-xs-indicator-size,1.25rem) - var(--gov-text-xs-font-size) * 1.5)/ 2);padding-left:calc(var(--gov-form-checkbox-core-xs-indicator-size,1.25rem) + var(--gov-form-checkbox-core-xs-gap,.75rem))}gov-form-checkbox:not(.hydrated)[size=s],gov-form-radio:not(.hydrated)[size=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);width:var(--gov-form-checkbox-core-s-indicator-size,1.375rem);height:var(--gov-form-checkbox-core-s-indicator-size,1.375rem)}gov-form-checkbox:not(.hydrated)[size=s] gov-form-label,gov-form-radio:not(.hydrated)[size=s] gov-form-label{padding-top:calc((var(--gov-form-checkbox-core-s-indicator-size,1.375rem) - var(--gov-text-s-font-size) * 1.5)/ 2);padding-left:calc(var(--gov-form-checkbox-core-s-indicator-size,1.375rem) + var(--gov-form-checkbox-core-s-gap,.75rem))}gov-form-checkbox:not(.hydrated)[size=m],gov-form-radio:not(.hydrated)[size=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);width:var(--gov-form-checkbox-core-m-indicator-size,1.5rem);height:var(--gov-form-checkbox-core-m-indicator-size,1.5rem)}gov-form-checkbox:not(.hydrated)[size=m] gov-form-label,gov-form-radio:not(.hydrated)[size=m] gov-form-label{padding-top:calc((var(--gov-form-checkbox-core-m-indicator-size,1.5rem) - var(--gov-text-m-font-size) * 1.5)/ 2);padding-left:calc(var(--gov-form-checkbox-core-m-indicator-size,1.5rem) + var(--gov-form-checkbox-core-m-gap,1rem))}gov-form-checkbox:not(.hydrated)[size=l],gov-form-radio:not(.hydrated)[size=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);width:var(--gov-form-checkbox-core-l-indicator-size,2rem);height:var(--gov-form-checkbox-core-l-indicator-size,2rem)}gov-form-checkbox:not(.hydrated)[size=l] gov-form-label,gov-form-radio:not(.hydrated)[size=l] gov-form-label{padding-top:calc((var(--gov-form-checkbox-core-l-indicator-size,2rem) - var(--gov-text-l-font-size) * 1.5)/ 2);padding-left:calc(var(--gov-form-checkbox-core-l-indicator-size,2rem) + var(--gov-form-checkbox-core-l-gap,1rem))}gov-form-checkbox:not(.hydrated)[disabled=""],gov-form-checkbox:not(.hydrated)[disabled="1"],gov-form-checkbox:not(.hydrated)[disabled=true i],gov-form-radio:not(.hydrated)[disabled=""],gov-form-radio:not(.hydrated)[disabled="1"],gov-form-radio:not(.hydrated)[disabled=true i]{pointer-events:none;border-color:var(--gov-form-input-disabled-bg,var(--gov-color-primary-400))}gov-form-checkbox:not(.hydrated)[disabled=""] gov-form-label,gov-form-checkbox:not(.hydrated)[disabled="1"] gov-form-label,gov-form-checkbox:not(.hydrated)[disabled=true i] gov-form-label,gov-form-radio:not(.hydrated)[disabled=""] gov-form-label,gov-form-radio:not(.hydrated)[disabled="1"] gov-form-label,gov-form-radio:not(.hydrated)[disabled=true i] gov-form-label,gov-form-switch:not(.hydrated)[disabled=""] gov-form-label,gov-form-switch:not(.hydrated)[disabled="1"] gov-form-label,gov-form-switch:not(.hydrated)[disabled=true i] gov-form-label{color:var(--gov-form-state-color-disabled,var(--gov-color-secondary-600))}gov-form-input:not(.hydrated),gov-form-multi-select:not(.hydrated),gov-form-select:not(.hydrated){display:flex;align-items:center;position:relative;width:100%;border-radius:var(--gov-border-radius,.1875rem);background-color:var(--gov-form-bg-color,var(--gov-color-neutral-white));font-family:var(--gov-font-family, "Roboto", sans-serif)}gov-form-input:not(.hydrated)[size=s],gov-form-multi-select:not(.hydrated)[size=s],gov-form-select:not(.hydrated)[size=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);gap:.5rem var(--gov-form-input-core-s-icon-size,1rem);height:var(--gov-form-input-core-s-height,2rem);padding:var(--gov-form-input-core-s-padding,.25rem .75rem)}gov-form-input:not(.hydrated)[size=m],gov-form-multi-select:not(.hydrated)[size=m],gov-form-select:not(.hydrated)[size=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);gap:.5rem var(--gov-form-input-core-m-icon-size,1rem);height:var(--gov-form-input-core-m-height,2.5rem);padding:var(--gov-form-input-core-m-padding,.4375rem .75rem)}gov-form-input:not(.hydrated)[size=l],gov-form-multi-select:not(.hydrated)[size=l],gov-form-select:not(.hydrated)[size=l]{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:.5rem var(--gov-form-input-core-l-icon-size,1rem);height:var(--gov-form-input-core-l-height,3rem);padding:var(--gov-form-input-core-l-padding,.6875rem .75rem)}gov-form-input:not(.hydrated)[size=xl],gov-form-multi-select:not(.hydrated)[size=xl],gov-form-select:not(.hydrated)[size=xl]{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:.5rem var(--gov-form-input-core-xl-icon-size,1.25rem);height:var(--gov-form-input-core-xl-height,3.5rem);padding:var(--gov-form-input-core-xl-padding,.9375rem 1rem .875rem)}gov-form-input:not(.hydrated)[multiline=""],gov-form-input:not(.hydrated)[multiline="1"],gov-form-input:not(.hydrated)[multiline=true i],gov-form-multi-select:not(.hydrated)[multiline=""],gov-form-multi-select:not(.hydrated)[multiline="1"],gov-form-multi-select:not(.hydrated)[multiline=true i],gov-form-select:not(.hydrated)[multiline=""],gov-form-select:not(.hydrated)[multiline="1"],gov-form-select:not(.hydrated)[multiline=true i]{height:5.625rem}gov-form-label:not(.hydrated){display:inline-block;width:100%;color:var(--gov-form-label-color,#686868);box-sizing:border-box}gov-form-multi-select:not(.hydrated) option[selected]{display:inline-block;padding:.25rem .5rem;background:var(--gov-form-multiselect-bg,var(--gov-color-primary-200))}gov-form-radio:not(.hydrated){display:block;border-radius:50%;border:var(--gov-form-checkbox-border-size,.125rem solid var(--gov-color-primary));background-color:var(--gov-form-checkbox-background-color,var(--gov-color-neutral-white))}gov-form-search:not(.hydrated){position:relative;display:flex;width:100%;gap:.5rem;align-items:center;border-radius:var(--gov-border-radius,.1875rem);background-color:var(--gov-form-bg-color,var(--gov-color-neutral-white))}gov-form-search:not(.hydrated) gov-form-input{flex:1 1 auto;height:auto;border-width:0!important}gov-form-search:not(.hydrated) gov-button{flex:0 0 auto;margin:.1875rem .1875rem .1875rem 0}gov-form-search:not(.hydrated)[variant=primary]{border:var(--gov-form-input-border-primary,.0625rem solid var(--gov-color-primary-600))}gov-form-search:not(.hydrated)[variant=secondary]{border:var(--gov-form-input-border-secondary,.0625rem solid var(--gov-color-secondary-700))}gov-form-switch:not(.hydrated){border-color:var(--gov-form-switch-indicator-bg-checked,var(--gov-color-primary));background-color:var(--gov-form-switch-indicator-bg-checked,var(--gov-color-primary))}gov-form-switch:not(.hydrated) gov-form-label{color:var(--gov-form-switch-color,var(--gov-color-secondary-800))}gov-form-switch:not(.hydrated)[size=xs]{display:block;width:calc(var(--gov-form-switch-xs-indicator-height,1.25rem) * 1.6666666667);height:var(--gov-form-switch-xs-indicator-height,1.25rem);border-radius:calc(var(--gov-form-switch-xs-indicator-height,1.25rem) * .5)}gov-form-switch:not(.hydrated)[size=xs] gov-form-label{padding-top:calc((var(--gov-form-switch-xs-indicator-height,1.25rem) - var(--gov-text-xs-font-size) * 1.5)/ 2);padding-left:calc(var(--gov-form-switch-xs-indicator-height,1.25rem) * 1.6666666667 + var(--gov-form-switch-xs-gap,.75rem))}gov-form-switch:not(.hydrated)[size=s] gov-form-label,gov-nav:not(.hydrated){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-form-switch:not(.hydrated)[size=s]{display:block;width:calc(var(--gov-form-switch-s-indicator-height,1.375rem) * 1.6666666667);height:var(--gov-form-switch-s-indicator-height,1.375rem);border-radius:calc(var(--gov-form-switch-s-indicator-height,1.375rem) * .5)}gov-form-switch:not(.hydrated)[size=s] gov-form-label{padding-top:calc((var(--gov-form-switch-s-indicator-height,1.375rem) - var(--gov-text-s-font-size) * 1.5)/ 2);padding-left:calc(var(--gov-form-switch-s-indicator-height,1.375rem) * 1.6666666667 + var(--gov-form-switch-s-gap,.75rem))}gov-form-switch:not(.hydrated)[size=m] gov-form-label,gov-message:not(.hydrated) p,gov-side-nav:not(.hydrated) gov-side-nav-item,gov-stepper:not(.hydrated) gov-stepper-item[size=xs] gov-icon,gov-stepper:not(.hydrated) gov-stepper-item[size=xs] span{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-form-switch:not(.hydrated)[size=m]{display:block;width:calc(var(--gov-form-switch-m-indicator-height,1.5rem) * 1.6666666667);height:var(--gov-form-switch-m-indicator-height,1.5rem);border-radius:calc(var(--gov-form-switch-m-indicator-height,1.5rem) * .5)}gov-form-switch:not(.hydrated)[size=m] gov-form-label{padding-top:calc((var(--gov-form-switch-m-indicator-height,1.5rem) - var(--gov-text-m-font-size) * 1.5)/ 2);padding-left:calc(var(--gov-form-switch-m-indicator-height,1.5rem) * 1.6666666667 + var(--gov-form-switch-m-gap,1rem))}gov-form-switch:not(.hydrated)[size=l]{display:block;width:calc(var(--gov-form-switch-l-indicator-height,2rem) * 1.6666666667);height:var(--gov-form-switch-l-indicator-height,2rem);border-radius:calc(var(--gov-form-switch-l-indicator-height,2rem) * .5)}gov-form-switch:not(.hydrated)[size=l] gov-form-label{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);padding-top:calc((var(--gov-form-switch-l-indicator-height,2rem) - var(--gov-text-l-font-size) * 1.5)/ 2);padding-left:calc(var(--gov-form-switch-l-indicator-height,2rem) * 1.6666666667 + var(--gov-form-switch-l-gap,1rem))}gov-form-switch:not(.hydrated)[disabled=""],gov-form-switch:not(.hydrated)[disabled="1"],gov-form-switch:not(.hydrated)[disabled=true i]{pointer-events:none;border-color:var(--gov-form-input-disabled-bg,var(--gov-color-primary-400));background-color:var(--gov-form-input-disabled-bg,var(--gov-color-primary-400))}gov-grid:not(.hydrated){position:relative;display:flex;width:100%;flex-wrap:wrap}gov-grid:not(.hydrated)[align-x=middle]{align-items:center}gov-grid:not(.hydrated)[align-x=bottom]{align-items:flex-end}gov-grid:not(.hydrated)[align-y=center],gov-stepper:not(.hydrated) gov-stepper-item span{justify-content:center}gov-grid:not(.hydrated)[align-y=right]{justify-content:flex-end}gov-grid:not(.hydrated)[align-y=space-between]{justify-content:space-between}gov-grid:not(.hydrated)[align-y=space-around]{justify-content:space-around}gov-grid:not(.hydrated) gov-grid-item{border:0 solid transparent}gov-grid:not(.hydrated) gov-grid-item[size="1/12"]{width:8.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size="2/12"]{width:16.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size="3/12"]{width:25%}gov-grid:not(.hydrated) gov-grid-item[size="4/12"]{width:33.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size="5/12"]{width:41.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size="6/12"]{width:50%}gov-grid:not(.hydrated) gov-grid-item[size="7/12"]{width:58.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size="8/12"]{width:66.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size="9/12"]{width:75%}gov-grid:not(.hydrated) gov-grid-item[size="10/12"]{width:83.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size="11/12"]{width:91.6666666667%}gov-icon:not(.hydrated){display:inline-flex;width:100%;height:100%}gov-layout:not(.hydrated){position:relative;display:block;width:100%;display:flex;gap:var(--gov-layout-gap,1.375rem);flex-direction:column}gov-message:not(.hydrated){position:relative;display:flex;gap:1rem;flex-direction:column;padding:.75rem 1rem;border-left:.25rem solid transparent;background:var(--gov-toast-message-bg,var(--gov-color-neutral-white))}gov-message:not(.hydrated) gov-icon{flex:0 0 1.25rem;width:1.25rem;height:1.25rem}gov-message:not(.hydrated) p{flex:1 1 auto}gov-message:not(.hydrated) p>:last-child,gov-statsbar:not(.hydrated) gov-statsbar-item p>:last-child,gov-wizzard:not(.hydrated)>:last-child{margin-bottom:0}gov-message:not(.hydrated)[shadow=""],gov-message:not(.hydrated)[shadow="1"],gov-message:not(.hydrated)[shadow=true i]{box-shadow:var(--gov-message-box-shadow,0 .25rem 1.25rem rgba(0,0,0,.1))}gov-message:not(.hydrated)[variant=warning]{border-left-color:var(--gov-message-warning-color,var(--gov-color-warning));background:var(--gov-message-warning-bg-color,var(--gov-color-warning-100))}gov-message:not(.hydrated)[variant=warning] gov-icon{color:var(--gov-message-warning-color,var(--gov-color-warning))}gov-message:not(.hydrated)[variant=error][inverse=""],gov-message:not(.hydrated)[variant=error][inverse="1"],gov-message:not(.hydrated)[variant=error][inverse=true i],gov-message:not(.hydrated)[variant=primary][inverse=""],gov-message:not(.hydrated)[variant=primary][inverse="1"],gov-message:not(.hydrated)[variant=primary][inverse=true i],gov-message:not(.hydrated)[variant=secondary][inverse=""],gov-message:not(.hydrated)[variant=secondary][inverse="1"],gov-message:not(.hydrated)[variant=secondary][inverse=true i],gov-message:not(.hydrated)[variant=success][inverse=""],gov-message:not(.hydrated)[variant=success][inverse="1"],gov-message:not(.hydrated)[variant=success][inverse=true i],gov-message:not(.hydrated)[variant=warning][inverse=""],gov-message:not(.hydrated)[variant=warning][inverse="1"],gov-message:not(.hydrated)[variant=warning][inverse=true i]{background:var(--gov-message-bg-inverse,var(--gov-color-neutral-white))}gov-message:not(.hydrated)[variant=error]{border-left-color:var(--gov-message-error-color,var(--gov-color-error));background:var(--gov-message-error-bg-color,var(--gov-color-error-100))}gov-message:not(.hydrated)[variant=error] gov-icon{color:var(--gov-message-error-color,var(--gov-color-error))}gov-message:not(.hydrated)[variant=secondary]{border-left-color:var(--gov-message-secondary-color,var(--gov-color-secondary));background:var(--gov-message-secondary-bg-color,var(--gov-color-secondary-200))}gov-message:not(.hydrated)[variant=secondary] gov-icon{color:var(--gov-message-secondary-color,var(--gov-color-secondary))}gov-message:not(.hydrated)[variant=success]{border-left-color:var(--gov-message-success-color,var(--gov-color-success));background:var(--gov-message-success-bg-color,var(--gov-color-success-100))}gov-message:not(.hydrated)[variant=success] gov-icon{color:var(--gov-message-success-color,var(--gov-color-success))}gov-message:not(.hydrated)[variant=primary]{border-left-color:var(--gov-message-primary-color,var(--gov-color-primary));background:var(--gov-message-primary-bg-color,var(--gov-color-primary-100))}gov-message:not(.hydrated)[variant=primary] gov-icon{color:var(--gov-message-primary-color,var(--gov-color-primary))}gov-nav:not(.hydrated){position:relative;display:block;width:100%;background:var(--gov-nav-bg,var(--gov-color-primary));font-weight:700;letter-spacing:.0125em;text-transform:uppercase}gov-nav:not(.hydrated) gov-nav-item{position:relative;display:block;padding:.9375rem 3rem .9375rem 2.25rem;color:var(--gov-nav-color,var(--gov-color-neutral-white));text-decoration:none}gov-side-nav:not(.hydrated) gov-side-nav-item{display:flex;border-bottom:var(--gov-side-nav-border,.0625rem solid var(--gov-color-secondary-500));padding:.75rem 1rem .75rem .5rem;min-height:3rem}gov-side-nav:not(.hydrated) gov-side-nav-item gov-icon{display:flex;flex:0 0 auto;width:1rem;height:1rem;margin:0;color:var(--gov-side-nav-color,var(--gov-color-secondary))}gov-side-nav:not(.hydrated)[compact=""] gov-side-nav-item,gov-side-nav:not(.hydrated)[compact="1"] gov-side-nav-item,gov-side-nav:not(.hydrated)[compact=true i] gov-side-nav-item{border-bottom:none}gov-spacer:not(.hydrated)[size=unset]{height:0}gov-spacer:not(.hydrated)[size="2xs"]{height:.25rem}gov-spacer:not(.hydrated)[size=xs]{height:.5rem}gov-spacer:not(.hydrated)[size=s]{height:.75rem}gov-spacer:not(.hydrated)[size=m]{height:1rem}gov-spacer:not(.hydrated)[size=l]{height:1.25rem}gov-spacer:not(.hydrated)[size=xl]{height:1.75rem}gov-spacer:not(.hydrated)[size="2xl"]{height:2rem}gov-spacer:not(.hydrated)[size="3xl"]{height:3rem}gov-spacer:not(.hydrated)[size="4xl"]{height:4.5rem}gov-statsbar:not(.hydrated){position:relative;display:block;width:100%;margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile,1.25rem);padding-left:var(--gov-container-padding-mobile,1.25rem)}gov-statsbar:not(.hydrated)[variant=primary]{background-color:var(--gov-statsbar-primary-bg-color,var(--gov-color-primary-200));color:var(--gov-statsbar-primary-text-color,var(--gov-color-primary))}gov-statsbar:not(.hydrated)[variant=primary][inverse=""],gov-statsbar:not(.hydrated)[variant=primary][inverse="1"],gov-statsbar:not(.hydrated)[variant=primary][inverse=true i]{background:var(--gov-color-neutral-white);color:var(--gov-statsbar-primary-text-color-inverse,var(--gov-color-primary))}gov-statsbar:not(.hydrated)[variant=secondary]{background-color:var(--gov-statsbar-secondary-bg-color,var(--gov-color-secondary));color:var(--gov-statsbar-secondary-text-color,var(--gov-color-neutral-white))}gov-statsbar:not(.hydrated)[variant=secondary][inverse=""],gov-statsbar:not(.hydrated)[variant=secondary][inverse="1"],gov-statsbar:not(.hydrated)[variant=secondary][inverse=true i]{background:var(--gov-color-neutral-white);color:var(--gov-statsbar-secondary-text-color-inverse,var(--gov-color-secondary))}gov-statsbar:not(.hydrated) gov-statsbar-item{position:relative;display:block;padding:1.25rem}gov-statsbar:not(.hydrated) gov-statsbar-item gov-icon{display:block;margin-bottom:1rem;width:2rem;height:2rem}gov-statsbar:not(.hydrated) gov-statsbar-item slot{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);margin-bottom:1rem}gov-statsbar:not(.hydrated) gov-statsbar-item p{letter-spacing:.0125em}gov-statsbar:not(.hydrated) gov-statsbar-item[icon-position=left]{padding-left:3rem}gov-statsbar:not(.hydrated) gov-statsbar-item[icon-position=left] gov-icon{position:absolute;top:1.5rem;left:0}@media (min-width:30em){gov-card:not(.hydrated)[promotion=""],gov-card:not(.hydrated)[promotion="1"],gov-card:not(.hydrated)[promotion=true i]{flex-direction:row;padding:2rem}gov-card:not(.hydrated)[promotion=""] p,gov-card:not(.hydrated)[promotion="1"] p,gov-card:not(.hydrated)[promotion=true i] p{padding-top:0;padding-bottom:0}gov-card:not(.hydrated)[promotion=""] gov-icon,gov-card:not(.hydrated)[promotion="1"] gov-icon,gov-card:not(.hydrated)[promotion=true i] gov-icon{width:3rem;height:3rem;margin:0}gov-card:not(.hydrated)[promotion=""] gov-button,gov-card:not(.hydrated)[promotion="1"] gov-button,gov-card:not(.hydrated)[promotion=true i] gov-button{flex-direction:column;padding:0}gov-form-file:not(.hydrated)[expanded=""] gov-form-label,gov-form-file:not(.hydrated)[expanded="1"] gov-form-label,gov-form-file:not(.hydrated)[expanded=true i] gov-form-label{padding:2rem}gov-grid:not(.hydrated) gov-grid-item[size-sm="1/12"]{width:8.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-sm="2/12"]{width:16.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-sm="3/12"]{width:25%}gov-grid:not(.hydrated) gov-grid-item[size-sm="4/12"]{width:33.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-sm="5/12"]{width:41.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-sm="6/12"]{width:50%}gov-grid:not(.hydrated) gov-grid-item[size-sm="7/12"]{width:58.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-sm="8/12"]{width:66.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-sm="9/12"]{width:75%}gov-grid:not(.hydrated) gov-grid-item[size-sm="10/12"]{width:83.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-sm="11/12"]{width:91.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-sm="12/12"]{width:100%}gov-message:not(.hydrated){flex-direction:row}gov-spacer:not(.hydrated)[breakpoint=sm]{display:block}gov-statsbar:not(.hydrated) gov-statsbar-item{flex:1 0 50%;max-width:50%}gov-statsbar:not(.hydrated){display:flex;flex-wrap:wrap;justify-content:center}}gov-stepper:not(.hydrated) gov-stepper-item gov-icon,gov-stepper:not(.hydrated) gov-stepper-item span{display:flex;flex:0 0 auto;align-items:center;border-radius:50%}gov-stepper:not(.hydrated) gov-stepper-item[size=xs]{min-height:calc(var(--gov-stepper-xs-indicator-size,1.5rem) + 3 * var(--gov-stepper-xs-connect-gap,.5rem))}gov-stepper:not(.hydrated) gov-stepper-item[size=m]:last-child,gov-stepper:not(.hydrated) gov-stepper-item[size=s]:last-child,gov-stepper:not(.hydrated) gov-stepper-item[size=xs]:last-child{min-height:0}gov-stepper:not(.hydrated) gov-stepper-item[size=xs] gov-icon{width:calc(var(--gov-stepper-xs-indicator-size,1.5rem) * .5);height:calc(var(--gov-stepper-xs-indicator-size,1.5rem) * .5);box-shadow:0 0 0 var(--gov-stepper-xs-connect-gap,.5rem) var(--gov-color-neutral-white)}gov-stepper:not(.hydrated) gov-stepper-item[size=xs] span{width:var(--gov-stepper-xs-indicator-size,1.5rem);height:var(--gov-stepper-xs-indicator-size,1.5rem);box-shadow:0 0 0 var(--gov-stepper-xs-connect-gap,.5rem) var(--gov-color-neutral-white)}gov-stepper:not(.hydrated) gov-stepper-item[size=s] gov-icon,gov-stepper:not(.hydrated) gov-stepper-item[size=s] span{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);box-shadow:0 0 0 var(--gov-stepper-s-connect-gap,1rem) var(--gov-color-neutral-white)}gov-stepper:not(.hydrated) gov-stepper-item[size=xs] div{padding:var(--gov-stepper-xs-content-padding,1rem 1rem 2rem 2.5rem)}gov-stepper:not(.hydrated) gov-stepper-item[size=s]{min-height:calc(var(--gov-stepper-s-indicator-size,2rem) + 3 * var(--gov-stepper-s-connect-gap,1rem))}gov-stepper:not(.hydrated) gov-stepper-item[size=s] gov-icon{width:calc(var(--gov-stepper-s-indicator-size,2rem) * .5);height:calc(var(--gov-stepper-s-indicator-size,2rem) * .5)}gov-stepper:not(.hydrated) gov-stepper-item[size=s] span{width:var(--gov-stepper-s-indicator-size,2rem);height:var(--gov-stepper-s-indicator-size,2rem)}gov-stepper:not(.hydrated) gov-stepper-item[size=m] gov-icon,gov-stepper:not(.hydrated) gov-stepper-item[size=m] span{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);box-shadow:0 0 0 var(--gov-stepper-m-connect-gap,1rem) var(--gov-color-neutral-white)}gov-stepper:not(.hydrated) gov-stepper-item[size=s] div{padding:var(--gov-stepper-s-content-padding,1rem 1rem 2rem 3rem)}gov-stepper:not(.hydrated) gov-stepper-item[size=m]{min-height:calc(var(--gov-stepper-m-indicator-size,2.5rem) + 3 * var(--gov-stepper-m-connect-gap,1rem))}gov-stepper:not(.hydrated) gov-stepper-item[size=m] gov-icon{width:calc(var(--gov-stepper-m-indicator-size,2.5rem) * .5);height:calc(var(--gov-stepper-m-indicator-size,2.5rem) * .5)}gov-stepper:not(.hydrated) gov-stepper-item[size=m] span{width:var(--gov-stepper-m-indicator-size,2.5rem);height:var(--gov-stepper-m-indicator-size,2.5rem)}gov-stepper:not(.hydrated) gov-stepper-item[size=m] div{padding:var(--gov-stepper-m-content-padding,1rem 1rem 2rem 3.5rem)}gov-stepper:not(.hydrated) gov-stepper-item[variant=primary] gov-icon,gov-stepper:not(.hydrated) gov-stepper-item[variant=primary] span,gov-wizzard:not(.hydrated) gov-wizzard-item[variant=primary] gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item[variant=primary] span{background:var(--gov-wizzard-primary-indicator-bg,var(--gov-color-primary-300));color:var(--gov-wizzard-primary-indicator-color,var(--gov-color-primary-800))}gov-stepper:not(.hydrated) gov-stepper-item[variant=secondary] gov-icon,gov-stepper:not(.hydrated) gov-stepper-item[variant=secondary] span,gov-wizzard:not(.hydrated) gov-wizzard-item[variant=secondary] gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item[variant=secondary] span{background:var(--gov-wizzard-secondary-indicator-bg,var(--gov-color-secondary-400));color:var(--gov-wizzard-secondary-indicator-color,var(--gov-color-secondary-700))}gov-stepper:not(.hydrated) gov-stepper-item[variant=success] gov-icon,gov-stepper:not(.hydrated) gov-stepper-item[variant=success] span,gov-wizzard:not(.hydrated) gov-wizzard-item[variant=success] gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item[variant=success] span{background:var(--gov-wizzard-success-indicator-bg,var(--gov-color-success));color:var(--gov-wizzard-success-indicator-color,var(--gov-color-neutral-white))}gov-stepper:not(.hydrated) gov-stepper-item[variant=error] gov-icon,gov-stepper:not(.hydrated) gov-stepper-item[variant=error] span,gov-wizzard:not(.hydrated) gov-wizzard-item[variant=error] gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item[variant=error] span{background:var(--gov-wizzard-error-indicator-bg,var(--gov-color-error));color:var(--gov-wizzard-error-indicator-color,var(--gov-color-neutral-white))}gov-stepper:not(.hydrated) gov-stepper-item[variant=warning] gov-icon,gov-stepper:not(.hydrated) gov-stepper-item[variant=warning] span,gov-wizzard:not(.hydrated) gov-wizzard-item[variant=warning] gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item[variant=warning] span{background:var(--gov-wizzard-warning-indicator-bg,var(--gov-color-warning));color:var(--gov-wizzard-warning-indicator-color,var(--gov-color-neutral-white))}gov-tabs:not(.hydrated) gov-tabs-item{display:none;color:var(--gov-tabs-text-color,var(--gov-color-secondary-700))}gov-tabs:not(.hydrated) gov-tabs-item[default=""],gov-tabs:not(.hydrated) gov-tabs-item[default="1"],gov-tabs:not(.hydrated) gov-tabs-item[default=true i]{display:block;padding-top:1.25rem;margin-top:2.5rem}gov-tabs:not(.hydrated):not([type=badge]) gov-tabs-item[default=""],gov-tabs:not(.hydrated):not([type=badge]) gov-tabs-item[default="1"],gov-tabs:not(.hydrated):not([type=badge]) gov-tabs-item[default=true i]{border-top:var(--gov-tabs-list-border-width,.0625rem solid var(--gov-color-secondary-500));margin-top:2.875rem}gov-tiles:not(.hydrated){overflow:hidden}gov-tiles:not(.hydrated)>*{margin:0 -.0625rem -.0625rem 0;border:.0625rem solid var(--gov-tiles-border-color,var(--gov-color-secondary-500));border-width:0 0 .0625rem}gov-tiles:not(.hydrated)>:last-child{border-bottom-width:0}@media (min-width:48em) and (max-width:63.99em){gov-tiles:not(.hydrated)[columns="3"],gov-tiles:not(.hydrated)[columns="4"]{grid-template-columns:repeat(2,1fr)}gov-tiles:not(.hydrated)[columns="3"]>*,gov-tiles:not(.hydrated)[columns="4"]>*{border-width:.0625rem .0625rem .0625rem 0}gov-tiles:not(.hydrated)[columns="3"]>:nth-child(-n+3),gov-tiles:not(.hydrated)[columns="4"]>:nth-child(-n+3){border-top-width:0}gov-tiles:not(.hydrated)[columns="3"]>:nth-child(2n+2),gov-tiles:not(.hydrated)[columns="4"]>:nth-child(2n+2){border-right-width:0}}@media (min-width:64em) and (max-width:74.99em){gov-tiles:not(.hydrated)[columns="4"]{grid-template-columns:repeat(3,1fr)}gov-tiles:not(.hydrated)[columns="4"]>*{border-width:.0625rem .0625rem .0625rem 0}gov-tiles:not(.hydrated)[columns="4"]>:nth-child(-n+4){border-top-width:0}gov-tiles:not(.hydrated)[columns="4"]>:nth-child(3n+3){border-right-width:0}}@media (min-width:75em){gov-grid:not(.hydrated) gov-grid-item[size-xl="1/12"]{width:8.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-xl="2/12"]{width:16.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-xl="3/12"]{width:25%}gov-grid:not(.hydrated) gov-grid-item[size-xl="4/12"]{width:33.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-xl="5/12"]{width:41.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-xl="6/12"]{width:50%}gov-grid:not(.hydrated) gov-grid-item[size-xl="7/12"]{width:58.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-xl="8/12"]{width:66.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-xl="9/12"]{width:75%}gov-grid:not(.hydrated) gov-grid-item[size-xl="10/12"]{width:83.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-xl="11/12"]{width:91.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-xl="12/12"]{width:100%}gov-spacer:not(.hydrated)[breakpoint=xl]{display:block}gov-tabs:not(.hydrated)[orientation=vertical] gov-tabs-item[default=""],gov-tabs:not(.hydrated)[orientation=vertical] gov-tabs-item[default="1"],gov-tabs:not(.hydrated)[orientation=vertical] gov-tabs-item[default=true i]{padding-top:0;margin-top:0;border-top:none;padding-left:1.25rem;margin-left:6.25rem;border-left:var(--gov-tabs-list-border-width,.0625rem solid var(--gov-color-secondary-500))}gov-tiles:not(.hydrated)[columns="4"]{grid-template-columns:repeat(4,1fr)}gov-tiles:not(.hydrated)[columns="4"]>*{border-width:.0625rem .0625rem .0625rem 0}gov-tiles:not(.hydrated)[columns="4"]>:nth-child(-n+5){border-top-width:0}gov-tiles:not(.hydrated)[columns="4"]>:nth-child(4n+4){border-right-width:0}}gov-tile:not(.hydrated){position:relative;display:block;width:100%;padding:.75rem}gov-tile:not(.hydrated) gov-icon{display:flex;margin:0 0 3.25rem;color:var(--gov-tile-main-color,var(--gov-color-primary));width:2.5rem;height:2.5rem}@media (min-width:30em){gov-tile:not(.hydrated)[promotion=""],gov-tile:not(.hydrated)[promotion="1"],gov-tile:not(.hydrated)[promotion=true i]{display:grid;grid-template-columns:auto 1fr;gap:0 .875rem}gov-tile:not(.hydrated)[promotion=""] gov-icon,gov-tile:not(.hydrated)[promotion="1"] gov-icon,gov-tile:not(.hydrated)[promotion=true i] gov-icon{grid-area:1/1/3/1;margin:0}gov-tile:not(.hydrated)[promotion=""] p,gov-tile:not(.hydrated)[promotion="1"] p,gov-tile:not(.hydrated)[promotion=true i] p{grid-area:2/2/2/2}}@media (min-width:64em){gov-grid:not(.hydrated) gov-grid-item[size-lg="1/12"]{width:8.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-lg="2/12"]{width:16.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-lg="3/12"]{width:25%}gov-grid:not(.hydrated) gov-grid-item[size-lg="4/12"]{width:33.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-lg="5/12"]{width:41.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-lg="6/12"]{width:50%}gov-grid:not(.hydrated) gov-grid-item[size-lg="7/12"]{width:58.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-lg="8/12"]{width:66.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-lg="9/12"]{width:75%}gov-grid:not(.hydrated) gov-grid-item[size-lg="10/12"]{width:83.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-lg="11/12"]{width:91.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-lg="12/12"]{width:100%}gov-layout:not(.hydrated){flex-direction:row}gov-layout:not(.hydrated)[type=aside][variant=left] gov-layout-column:last-child,gov-layout:not(.hydrated)[type=aside][variant=right] gov-layout-column:first-child{flex:1 1 auto;width:auto}gov-layout:not(.hydrated)[type=aside][variant=left] gov-layout-column:first-child,gov-layout:not(.hydrated)[type=aside][variant=right] gov-layout-column:last-child{flex:0 0 auto;width:calc(var(--gov-container-width,73.75rem)/ 3 - var(--gov-layout-gap,1.375rem))}gov-layout:not(.hydrated)[type=aside][variant=right][inverse=""] gov-layout-column:first-child,gov-layout:not(.hydrated)[type=aside][variant=right][inverse="1"] gov-layout-column:first-child,gov-layout:not(.hydrated)[type=aside][variant=right][inverse=true i] gov-layout-column:first-child{order:1}gov-layout:not(.hydrated)[type=aside][variant=left][inverse=""] gov-layout-column:first-child,gov-layout:not(.hydrated)[type=aside][variant=left][inverse="1"] gov-layout-column:first-child,gov-layout:not(.hydrated)[type=aside][variant=left][inverse=true i] gov-layout-column:first-child{order:2}gov-layout:not(.hydrated)[type=text]{width:var(--gov-layout-content-width,48.75rem);margin-right:auto;margin-left:auto}gov-layout:not(.hydrated)[type=text][variant=left]{width:var(--gov-layout-content-width,48.75rem);margin-right:auto;margin-left:0}gov-layout:not(.hydrated)[type=text][variant=right]{width:var(--gov-layout-content-width,48.75rem);margin-right:0;margin-left:auto}gov-spacer:not(.hydrated)[breakpoint=lg]{display:block}gov-statsbar:not(.hydrated) gov-statsbar-item{flex-basis:auto;max-width:25%}gov-tiles:not(.hydrated)[columns="3"]{grid-template-columns:repeat(3,1fr)}gov-tiles:not(.hydrated)[columns="3"]>*{border-width:.0625rem .0625rem .0625rem 0}gov-tiles:not(.hydrated)[columns="3"]>:nth-child(-n+4){border-top-width:0}gov-tiles:not(.hydrated)[columns="3"]>:nth-child(3n+3){border-right-width:0}gov-tile:not(.hydrated)[promotion=""],gov-tile:not(.hydrated)[promotion="1"],gov-tile:not(.hydrated)[promotion=true i]{gap:0 1.625rem}}gov-wizzard:not(.hydrated) gov-wizzard-item{position:relative;display:block;width:100%;gap:1rem;margin-bottom:1rem;padding:1rem;background:var(--gov-wizzard-bg-color,var(--gov-color-neutral-white))}gov-wizzard:not(.hydrated) gov-wizzard-item gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item span{align-items:center;border-radius:50%}gov-wizzard:not(.hydrated) gov-wizzard-item span[slot=prefix]{position:absolute;left:1rem;display:flex;justify-content:center;align-items:center}gov-wizzard:not(.hydrated) gov-wizzard-item[size=m],gov-wizzard:not(.hydrated) gov-wizzard-item[size=s],gov-wizzard:not(.hydrated) gov-wizzard-item[size=xs]{min-height:calc(var(--gov-wizzard-xs-indicator-size,1.5rem) + 30px)}gov-wizzard:not(.hydrated) gov-wizzard-item[size=m] gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item[size=m] span,gov-wizzard:not(.hydrated) gov-wizzard-item[size=s] gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item[size=s] span,gov-wizzard:not(.hydrated) gov-wizzard-item[size=xs] gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item[size=xs] span{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);width:var(--gov-wizzard-xs-indicator-size,1.5rem);height:var(--gov-wizzard-xs-indicator-size,1.5rem)}gov-wizzard:not(.hydrated) gov-wizzard-item[size=m] span[slot=prefix],gov-wizzard:not(.hydrated) gov-wizzard-item[size=s] span[slot=prefix],gov-wizzard:not(.hydrated) gov-wizzard-item[size=xs] span[slot=prefix]{top:var(--gov-wizzard-xs-top,1rem)}gov-wizzard:not(.hydrated) gov-wizzard-item[size=m] p,gov-wizzard:not(.hydrated) gov-wizzard-item[size=s] p,gov-wizzard:not(.hydrated) gov-wizzard-item[size=xs] p{padding:var(--gov-wizzard-content-padding,0 1rem 1rem 1rem)}@media (min-width:30em){gov-wizzard:not(.hydrated) gov-wizzard-item[size=m],gov-wizzard:not(.hydrated) gov-wizzard-item[size=s]{min-height:calc(var(--gov-wizzard-s-indicator-size,2rem) + 25px)}gov-wizzard:not(.hydrated) gov-wizzard-item[size=m] gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item[size=m] span,gov-wizzard:not(.hydrated) gov-wizzard-item[size=s] gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item[size=s] span{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);width:var(--gov-wizzard-s-indicator-size,2rem);height:var(--gov-wizzard-s-indicator-size,2rem)}gov-wizzard:not(.hydrated) gov-wizzard-item[size=m] span[slot=prefix],gov-wizzard:not(.hydrated) gov-wizzard-item[size=s] span[slot=prefix]{top:var(--gov-wizzard-s-top,.8125rem)}}@media (min-width:48em){gov-alert:not(.hydrated),gov-container-test:not(.hydrated),gov-statsbar:not(.hydrated){padding-right:var(--gov-container-padding,2.5rem);padding-left:var(--gov-container-padding,2.5rem)}gov-error-code:not(.hydrated) gov-icon{width:12.5rem;height:12.5rem;margin:0 auto 2rem}gov-error-code:not(.hydrated) gov-icon>*{width:9.5rem;height:9.5rem}gov-grid:not(.hydrated) gov-grid-item[size-md="1/12"]{width:8.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-md="2/12"]{width:16.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-md="3/12"]{width:25%}gov-grid:not(.hydrated) gov-grid-item[size-md="4/12"]{width:33.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-md="5/12"]{width:41.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-md="6/12"]{width:50%}gov-grid:not(.hydrated) gov-grid-item[size-md="7/12"]{width:58.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-md="8/12"]{width:66.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-md="9/12"]{width:75%}gov-grid:not(.hydrated) gov-grid-item[size-md="10/12"]{width:83.3333333333%}gov-grid:not(.hydrated) gov-grid-item[size-md="11/12"]{width:91.6666666667%}gov-grid:not(.hydrated) gov-grid-item[size-md="12/12"]{width:100%}gov-nav:not(.hydrated){text-align:center;display:flex;justify-content:space-between}gov-nav:not(.hydrated) gov-nav-item{display:inline-flex;justify-content:center;align-items:center;height:100%;padding:1.375rem 1.25rem 1.3125rem}gov-spacer:not(.hydrated)[breakpoint=md]{display:block}gov-statsbar:not(.hydrated) gov-statsbar-item{padding:2.5rem}gov-statsbar:not(.hydrated) gov-statsbar-item gov-icon{width:3rem;height:3rem}gov-statsbar:not(.hydrated) gov-statsbar-item[icon-position=left]{padding-left:4rem}gov-statsbar:not(.hydrated) gov-statsbar-item[icon-position=left] gov-icon{top:2.75rem}gov-tiles:not(.hydrated){display:grid}gov-tiles:not(.hydrated)[columns="2"]{grid-template-columns:repeat(2,1fr)}gov-tiles:not(.hydrated)[columns="2"]>*{border-width:.0625rem .0625rem .0625rem 0}gov-tiles:not(.hydrated)[columns="2"]>:nth-child(-n+3){border-top-width:0}gov-tiles:not(.hydrated)[columns="2"]>:nth-child(2n+2){border-right-width:0}gov-tile:not(.hydrated){padding:1.5rem}gov-tile:not(.hydrated) gov-icon{margin:0 0 4rem;width:3rem;height:3rem}gov-wizzard:not(.hydrated) gov-wizzard-item[size=m]{min-height:calc(var(--gov-wizzard-m-indicator-size,2.5rem) + 20px)}gov-wizzard:not(.hydrated) gov-wizzard-item[size=m] gov-icon,gov-wizzard:not(.hydrated) gov-wizzard-item[size=m] span{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);width:var(--gov-wizzard-m-indicator-size,2.5rem);height:var(--gov-wizzard-m-indicator-size,2.5rem)}gov-wizzard:not(.hydrated) gov-wizzard-item[size=m] span[slot=prefix]{top:var(--gov-wizzard-m-top,.5625rem)}gov-wizzard:not(.hydrated) gov-wizzard-item[size=xs] p{padding:var(--gov-wizzard-xs-content-padding,0 1rem 1rem 3.5rem)}gov-wizzard:not(.hydrated) gov-wizzard-item[size=s] p{padding:var(--gov-wizzard-s-content-padding,0 1rem 1rem 4rem)}gov-wizzard:not(.hydrated) gov-wizzard-item[size=m] p{padding:var(--gov-wizzard-m-content-padding,0 1rem 1rem 4.5rem)}}gov-attachments,gov-attachments-item,gov-backdrop,gov-cookiebar,gov-form-message,gov-form-password-power,gov-loading,gov-modal,gov-pagination,gov-prompt,gov-skeleton,gov-toast,gov-tooltip{visibility:hidden}gov-attachments-item.hydrated,gov-attachments.hydrated,gov-backdrop.hydrated,gov-cookiebar.hydrated,gov-form-message.hydrated,gov-form-password-power.hydrated,gov-loading.hydrated,gov-modal.hydrated,gov-pagination.hydrated,gov-prompt.hydrated,gov-skeleton.hydrated,gov-toast.hydrated,gov-tooltip.hydrated{visibility:inherit}
@@ -0,0 +1,2 @@
1
+ import{r as e,c as o,h as i,H as l,g as a}from"./p-4af5e4f4.js";import{c as r}from"./p-24636c53.js";import{g as t,a as f,t as s}from"./p-3f37ddb6.js";import{b as n,c as d}from"./p-0f5e2b0a.js";import{c as m}from"./p-34152b51.js";import{d as v}from"./p-03990da5.js";import{g}from"./p-34ed07f6.js";import"./p-561fa17b.js";import"./p-55500e5a.js";import"./p-ff7365ae.js";import"./p-6278531b.js";import"./p-9dab01be.js";import"./p-3464136c.js";const h={root:"gov-form-file",area:"gov-form-file__area",label:"gov-form-file__label",input:"gov-form-file__input",list:"gov-form-file__list",item:"gov-form-file__item",attachments:"gov-form-file__attachments"};function _(e){const o=["bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let i=0,l=parseInt(e,10)||0;while(l>=1024&&++i){l=l/1024}return l.toFixed(l<10&&i>0?1:0)+" "+o[i]}function b(e,o){if(typeof o==="string"&&o.length){return o.replace(/\s/g,"").split(",").filter((o=>new RegExp(o.replace("*",".*")).test(e.type))).length>0}else{return true}}function p(e,o){const i=Math.round(e.size);return i<=o}const c='.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-file{position:relative;display:block;width:100%}.gov-form-file__label .gov-form-label__label>*:last-child{margin-bottom:0}.gov-form-file__input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0.0001;cursor:pointer}.gov-form-file__attachments{margin-top:1rem 0rem 0rem}.gov-form-file__item{display:flex;gap:1rem;align-items:center}.gov-form-file[disabled=""] .gov-form-file__label .gov-form-label__label,.gov-form-file[disabled=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[disabled="1"] .gov-form-file__label .gov-form-label__label{pointer-events:none}.gov-form-file[disabled=""] .gov-form-file__label .gov-form-label__label *,.gov-form-file[disabled=true i] .gov-form-file__label .gov-form-label__label *,.gov-form-file[disabled="1"] .gov-form-file__label .gov-form-label__label *{color:var(--gov-form-file-disabled-color, var(--gov-color-secondary-600))}.gov-form-file[expanded=""] .gov-form-file__area,.gov-form-file[expanded=true i] .gov-form-file__area,.gov-form-file[expanded="1"] .gov-form-file__area{position:relative;width:100%;padding:2rem 1.375rem 1.375rem;border:var(--gov-form-file-border, 0.0625rem dashed var(--gov-color-secondary-500));text-align:center;transition:background-color 150ms ease-in-out;will-change:background-color}.gov-form-file[expanded=""] .gov-form-file__area.highlight,.gov-form-file[expanded=true i] .gov-form-file__area.highlight,.gov-form-file[expanded="1"] .gov-form-file__area.highlight{background-color:var(--gov-color-primary-200)}.gov-form-file[expanded=""] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded="1"] .gov-form-file__label .gov-form-label__label{width:100%;padding:1.375rem;border:var(--gov-form-file-border, 0.0625rem dashed var(--gov-color-secondary-500));text-align:center}.gov-form-file[expanded=""] .gov-form-file__attachments,.gov-form-file[expanded=true i] .gov-form-file__attachments,.gov-form-file[expanded="1"] .gov-form-file__attachments{margin:1.5rem 0rem 0rem}.gov-form-file[expanded=""][invalid=""] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=""][invalid=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=""][invalid="1"] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=true i][invalid=""] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=true i][invalid=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=true i][invalid="1"] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded="1"][invalid=""] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded="1"][invalid=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded="1"][invalid="1"] .gov-form-file__label .gov-form-label__label{border-color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-file[expanded=""][invalid=""] .gov-form-file__area,.gov-form-file[expanded=""][invalid=true i] .gov-form-file__area,.gov-form-file[expanded=""][invalid="1"] .gov-form-file__area,.gov-form-file[expanded=true i][invalid=""] .gov-form-file__area,.gov-form-file[expanded=true i][invalid=true i] .gov-form-file__area,.gov-form-file[expanded=true i][invalid="1"] .gov-form-file__area,.gov-form-file[expanded="1"][invalid=""] .gov-form-file__area,.gov-form-file[expanded="1"][invalid=true i] .gov-form-file__area,.gov-form-file[expanded="1"][invalid="1"] .gov-form-file__area{border-color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-file[expanded=""][disabled=""] .gov-form-file__area,.gov-form-file[expanded=""][disabled=true i] .gov-form-file__area,.gov-form-file[expanded=""][disabled="1"] .gov-form-file__area,.gov-form-file[expanded=true i][disabled=""] .gov-form-file__area,.gov-form-file[expanded=true i][disabled=true i] .gov-form-file__area,.gov-form-file[expanded=true i][disabled="1"] .gov-form-file__area,.gov-form-file[expanded="1"][disabled=""] .gov-form-file__area,.gov-form-file[expanded="1"][disabled=true i] .gov-form-file__area,.gov-form-file[expanded="1"][disabled="1"] .gov-form-file__area{pointer-events:none;color:var(--gov-form-file-disabled-color, var(--gov-color-secondary-600))}@media (min-width: 30em){.gov-form-file[expanded=""] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded=true i] .gov-form-file__label .gov-form-label__label,.gov-form-file[expanded="1"] .gov-form-file__label .gov-form-label__label{padding:2rem}}';const u=class{constructor(i){e(this,i);this.govFocus=o(this,"gov-focus",7);this.govBlur=o(this,"gov-blur",7);this.govFiles=o(this,"gov-files",7);this.govAddFile=o(this,"gov-add-file",7);this.govRemoveFile=o(this,"gov-remove-file",7);this.expanded=false;this.required=false;this.disabled=undefined;this.displayAttachments=true;this.name=undefined;this.accept=undefined;this.multiple=false;this.maxFileSize=-1;this.identifier=undefined;this.invalid=undefined;this.errorSize="Soubor je větší než povolená velikost {FILE_SIZE}";this.errorAccept="Soubor tohoto typu není povolen";this.attachmentsLabel="Přílohy";this.wcagDescribedBy=undefined;this.wcagLabelledBy=undefined;this.wcagRemoveLabel="Odebrat soubor {FILE_NAME}";this.wcagAttachmentsLabel="Přílohy";this.files=[];this.fileId=r("GovInputFile");this.h=t(this.host);this.f=g(this.h)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("disabled",f(this.disabled));this.f.passAttrToControl("invalid",f(this.invalid));this.f.passAttrToControl("type","File")}registerListeners(){function e(){this.areaRef.classList.add("highlight")}function o(){this.areaRef.classList.remove("highlight")}this.inputRef.addEventListener("change",(e=>{e.preventDefault();e.stopPropagation();const o=e.target.files;this.validateFiles(o)}),false);if(this.expanded){const i=["dragover","dragleave"];const l=["dragenter","dragover","mouseenter"];const a=["dragleave","drop","mouseleave"];i.map((e=>this.inputRef.addEventListener(e,this.preventDefaults.bind(this),false)));l.map((o=>this.inputRef.addEventListener(o,e.bind(this),false)));a.forEach((e=>this.inputRef.addEventListener(e,o.bind(this),false)));this.areaRef.addEventListener("drop",this.handleDrop.bind(this),false)}}preventDefaults(e){e.preventDefault();e.stopPropagation()}handleDrop(e){const o=e.dataTransfer;this.validateFiles(o.files)}validateFiles(e){Array.from(e).map((e=>{const o=this.files.find((o=>o.file.name===e.name&&o.file.size===e.size))||null;if(o===null){const o=typeof this.maxFileSize==="number"&&this.maxFileSize>0?p(e,this.maxFileSize):true;const i=b(e,this.accept);const l={id:r("GovFormFile"),file:e,acceptValid:i,sizeValid:o};this.files=[...this.files,l];this.govAddFile.emit({component:h.root,file:l})}}));this.govFiles.emit({component:h.root,files:this.files})}componentWillLoad(){this.f.passAttrToLabel("required",String(this.required));this.watchDisabled()}async componentDidRender(){if(m()){await v(500);await this.validateWcag()}this.registerListeners()}render(){return i(l,{class:this.h.classes([h.root]),invalid:s(this.invalid),expanded:s(this.expanded)},i("div",{class:h.area,ref:e=>this.areaRef=e},i("slot",null),i("input",{class:h.input,ref:e=>this.inputRef=e,id:this.identifier||this.fileId,type:"file",name:this.name,accept:this.accept,multiple:this.multiple,onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled,"aria-required":s(this.required),"aria-invalid":s(this.invalid),"aria-describedby":this.wcagDescribedBy,"aria-labelledby":this.wcagLabelledBy,"aria-disabled":s(this.disabled)})),this.h.hasSlot("attachments")?i("div",{class:h.attachments},i("slot",{name:"attachments"})):null,this.files.length&&this.displayAttachments?i("div",{class:h.attachments},i("gov-attachments",{label:this.wcagAttachmentsLabel,"wcag-label":this.wcagAttachmentsLabel},this.files.map((e=>i("gov-attachments-item",{"wcag-remove-labelled-by":e.id,"on-gov-remove":()=>this.onRemoveFileHandler(e)},i("span",{class:"sr-only",id:e.id},this.wcagRemoveLabel.replace("{FILE_NAME}",e.file.name)),e.file.name,e.acceptValid===false?i("gov-form-message",{slot:"message",variant:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill"}),e.acceptValid===false?this.errorAccept:null):null,e.sizeValid===false?i("gov-form-message",{slot:"message",variant:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill"}),this.errorSize.replace("{FILE_SIZE}",_(this.maxFileSize))):null,i("span",{slot:"info"},"(",_(e.file.size),")")))))):null)}onRemoveFileHandler(e){const o=this.files.findIndex((o=>o.id===e.id));if(o!==-1){const e=this.files;const i=this.files[o];e.splice(o,1);this.files=[...e];this.govRemoveFile.emit({component:h.root,file:i});this.govFiles.emit({component:h.root,files:e})}}onFocusHandler(e){e.stopPropagation();this.govFocus.emit({component:h.root,originalEvent:e})}onBlurHandler(e){e.stopPropagation();this.govBlur.emit({component:h.root,originalEvent:e})}onChangeHandler(e){e.stopPropagation()}async getRef(){return this.inputRef}async getAreaRef(){return this.areaRef}async validateWcag(){n(this.wcagDescribedBy,"wcag-described-by",h.root);n(this.wcagLabelledBy,"wcag-labelled-by",h.root);d(this.identifier||this.fileId,this.wcagLabelledBy,h.root)}get host(){return a(this)}static get watchers(){return{disabled:["watchDisabled"],invalid:["watchDisabled"]}}};u.style=c;export{u as gov_form_file};
2
+ //# sourceMappingURL=p-2507a42a.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/core/src/components/gov-form/file/constants.ts","../../../packages/core/src/utils/file.utils.ts","../../../packages/core/src/components/gov-form/file/gov-form-file.scss?tag=gov-form-file","../../../packages/core/src/components/gov-form/file/gov-form-file.tsx"],"names":["FormFileClass","root","area","label","input","list","item","attachments","formatBytes","bytes","units","l","n","parseInt","toFixed","fileAcceptValidation","file","accept","length","replace","split","filter","RegExp","test","type","fileSizeValidation","maxSize","fileSize","Math","round","size","govFormFileCss","GovFormFile","[object Object]","hostRef","this","fileId","createID","h","govHost","host","f","govForm","passControlAttrs","passAttrToControl","toBoolAttr","disabled","invalid","highlight","areaRef","classList","add","unhighlight","remove","inputRef","addEventListener","e","preventDefault","stopPropagation","files","target","validateFiles","expanded","events","inEvents","outEvents","map","eventName","preventDefaults","bind","forEach","handleDrop","dataTransfer","Array","from","isFile","find","name","isSizeValid","maxFileSize","isAcceptValid","newFile","id","acceptValid","sizeValid","govAddFile","emit","component","govFiles","passAttrToLabel","String","required","watchDisabled","canValidateWcagOnRender","delay","validateWcag","registerListeners","Host","class","classes","toBoolAttrIfDefined","ref","el","identifier","multiple","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","aria-required","aria-invalid","aria-describedby","wcagDescribedBy","aria-labelledby","wcagLabelledBy","aria-disabled","hasSlot","displayAttachments","wcagAttachmentsLabel","wcag-label","wcag-remove-labelled-by","on-gov-remove","onRemoveFileHandler","wcagRemoveLabel","slot","variant","errorAccept","errorSize","index","findIndex","removeFile","splice","govRemoveFile","govFocus","originalEvent","govBlur","validateWcagRef","validateWcagLabelFor"],"mappings":"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","sourcesContent":["export const FormFileClass = {\n\troot: 'gov-form-file',\n\tarea: 'gov-form-file__area',\n\tlabel: 'gov-form-file__label',\n\tinput: 'gov-form-file__input',\n\tlist: 'gov-form-file__list',\n\titem: 'gov-form-file__item',\n\tattachments: 'gov-form-file__attachments',\n}\n","export function formatBytes(bytes: any): string {\n\tconst units = ['bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']\n\tlet l = 0,\n\t\tn = parseInt(bytes, 10) || 0\n\n\twhile (n >= 1024 && ++l) {\n\t\tn = n / 1024\n\t}\n\n\treturn n.toFixed(n < 10 && l > 0 ? 1 : 0) + ' ' + units[l]\n}\n\nexport function fileAcceptValidation(file: File, accept: string): boolean {\n\tif (typeof accept === 'string' && accept.length) {\n\t\treturn (\n\t\t\taccept\n\t\t\t\t.replace(/\\s/g, '')\n\t\t\t\t.split(',')\n\t\t\t\t.filter(accept => {\n\t\t\t\t\treturn new RegExp(accept.replace('*', '.*')).test(file.type)\n\t\t\t\t}).length > 0\n\t\t)\n\t} else {\n\t\treturn true\n\t}\n}\n\nexport function fileSizeValidation(file: File, maxSize: number): boolean {\n\tconst fileSize = Math.round(file.size)\n\treturn fileSize <= maxSize\n}\n","/*\n * File\n */\n\n$class: \".gov-form-file\";\n\n#{$class} {\n\t@include base();\n\t&__label .gov-form-label__label {\n\t\t@include reset-last-margin();\n\t}\n\t&__input {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\topacity: 0.0001;\n\t\tcursor: pointer;\n\t}\n\t&__attachments {\n\t\tmargin-top: rem-calc(16 0 0);\n\t}\n\t&__item {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\talign-items: center;\n\t}\n\n\t// STATES\n\t@include parameter(\"disabled\") {\n\t\t#{$class} {\n\t\t\t&__label .gov-form-label__label {\n\t\t\t\tpointer-events: none;\n\t\t\t\t* {\n\t\t\t\t\tcolor: $form-file-disabled-color;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@include parameter(\"expanded\") {\n\t\t#{$class} {\n\t\t\t&__area {\n\t\t\t\tposition: relative;\n\t\t\t\twidth: 100%;\n\t\t\t\tpadding: rem-calc(32) rem-calc(22) rem-calc(22);\n\t\t\t\tborder: $form-file-border;\n\t\t\t\ttext-align: center;\n\t\t\t\ttransition: background-color $t ease-in-out;\n\t\t\t\twill-change: background-color;\n\t\t\t\t&.highlight {\n\t\t\t\t\tbackground-color: color(\"primary.200\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&__label .gov-form-label__label {\n\t\t\t\twidth: 100%;\n\t\t\t\tpadding: rem-calc(22);\n\t\t\t\tborder: $form-file-border;\n\t\t\t\ttext-align: center;\n\t\t\t}\n\t\t\t&__attachments {\n\t\t\t\tmargin: rem-calc(24 0 0);\n\t\t\t}\n\t\t}\n\n\t\t// STATES\n\t\t@include parameter(\"invalid\") {\n\t\t\t#{$class} {\n\t\t\t\t&__label .gov-form-label__label {\n\t\t\t\t\tborder-color: $form-state-color-error;\n\t\t\t\t}\n\t\t\t\t&__area {\n\t\t\t\t\tborder-color: $form-state-color-error;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@include parameter(\"disabled\") {\n\t\t\t#{$class} {\n\t\t\t\t&__area {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\tcolor: $form-file-disabled-color;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t@include parameter(\"expanded\") {\n\t\t\t#{$class} {\n\t\t\t\t&__label .gov-form-label__label {\n\t\t\t\t\tpadding: rem-calc(32);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from \"@stencil/core\"\nimport { createID } from \"../../../utils/string.utils\"\nimport { FormFileClass } from \"./constants\"\nimport { govHost, toBoolAttr, toBoolAttrIfDefined } from \"../../../helpers/Dom/template\"\nimport { validateWcagLabelFor, validateWcagRef } from \"../../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../../helpers/Dom/win\"\nimport { fileAcceptValidation, fileSizeValidation, formatBytes } from \"../../../utils/file.utils\"\nimport { delay } from \"../../../utils/utils\"\nimport { GovForm } from \"../../../helpers/Dom/form.types\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { govForm } from \"../../../helpers/Dom/form\"\nimport { GovFormFileEvent, GovFormFileItem } from \"./gov-form-file.types\"\n\n@Component({\n\ttag: \"gov-form-file\",\n\tstyleUrl: \"gov-form-file.scss\",\n})\nexport class GovFormFile {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\n\tprivate areaRef?: HTMLDivElement\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly fileId: string\n\n\tconstructor() {\n\t\tthis.fileId = createID(\"GovInputFile\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormFileElement\n\t/**\n\t * Expands the file input to fill 100% of the container width.\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the File component disabled.\n\t * This prevents users from being able to interact with the File, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean\n\t/**\n\t * Show list of attachments\n\t */\n\t@Prop({ attribute: \"display-attachments\" }) readonly displayAttachments: boolean = true\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept\n\t */\n\t@Prop() readonly accept: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple\n\t */\n\t@Prop() readonly multiple: boolean = false\n\t/**\n\t * Maximum embedded file size\n\t */\n\t@Prop({ attribute: \"max-file-size\" }) readonly maxFileSize: number = -1\n\t/**\n\t * Custom File identifier.\n\t */\n\t@Prop({ attribute: \"identifier\" }) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Error message when the maximum file size is exceeded\n\t */\n\t@Prop({ attribute: \"error-size\" }) readonly errorSize: string = \"Soubor je větší než povolená velikost {FILE_SIZE}\"\n\t/**\n\t * Insert unsupported file error message\n\t */\n\t@Prop({ attribute: \"error-accept\" }) readonly errorAccept: string = \"Soubor tohoto typu není povolen\"\n\t/**\n\t * Description of the list of attachments\n\t */\n\t@Prop({ attribute: \"attachments-label\" }) readonly attachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * 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 * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: \"wcag-remove-label\" }) readonly wcagRemoveLabel: string = \"Odebrat soubor {FILE_NAME}\"\n\t/**\n\t * Adds accessible label for the list of attachments.\n\t */\n\t@Prop({ attribute: \"wcag-attachments-label\" }) readonly wcagAttachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * Emitted when the File has focus.\n\t */\n\t@Event({ eventName: \"gov-focus\" }) govFocus: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Emitted when the File loses focus.\n\t */\n\t@Event({ eventName: \"gov-blur\" }) govBlur: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when the list of inserted files is changed\n\t */\n\t@Event({ eventName: \"gov-files\" }) govFiles: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a new file is added\n\t */\n\t@Event({ eventName: \"gov-add-file\" }) govAddFile: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a file is removed from the list\n\t */\n\t@Event({ eventName: \"gov-remove-file\" }) govRemoveFile: EventEmitter<GovFormFileEvent>\n\n\t@State() files: GovFormFileItem[] = []\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"type\", \"File\")\n\t}\n\n\n\tprivate registerListeners() {\n\t\tfunction highlight() {\n\t\t\tthis.areaRef.classList.add(\"highlight\")\n\t\t}\n\n\t\tfunction unhighlight() {\n\t\t\tthis.areaRef.classList.remove(\"highlight\")\n\t\t}\n\n\t\tthis.inputRef.addEventListener(\n\t\t\t\"change\",\n\t\t\te => {\n\t\t\t\te.preventDefault()\n\t\t\t\te.stopPropagation()\n\t\t\t\tconst files = (e.target as HTMLInputElement).files\n\t\t\t\tthis.validateFiles(files)\n\t\t\t},\n\t\t\tfalse,\n\t\t)\n\t\t//this.inputRef.addEventListener('focus')\n\n\t\tif (this.expanded) {\n\t\t\tconst events = [\"dragover\", \"dragleave\"]\n\t\t\tconst inEvents = [\"dragenter\", \"dragover\", \"mouseenter\"]\n\t\t\tconst outEvents = [\"dragleave\", \"drop\", \"mouseleave\"]\n\n\t\t\tevents.map(eventName => this.inputRef.addEventListener(eventName, this.preventDefaults.bind(this), false))\n\t\t\tinEvents.map(eventName => this.inputRef.addEventListener(eventName, highlight.bind(this), false))\n\t\t\toutEvents.forEach(eventName => this.inputRef.addEventListener(eventName, unhighlight.bind(this), false))\n\n\t\t\tthis.areaRef.addEventListener(\"drop\", this.handleDrop.bind(this), false)\n\t\t}\n\t}\n\n\tpreventDefaults(e) {\n\t\te.preventDefault()\n\t\te.stopPropagation()\n\t}\n\n\thandleDrop(e: DragEvent) {\n\t\tconst dataTransfer = e.dataTransfer\n\t\tthis.validateFiles(dataTransfer.files)\n\t}\n\n\tprivate validateFiles(files: FileList) {\n\t\tArray.from(files).map(file => {\n\t\t\tconst isFile = this.files.find(item => item.file.name === file.name && item.file.size === file.size) || null\n\t\t\tif (isFile === null) {\n\t\t\t\tconst isSizeValid = typeof this.maxFileSize === \"number\" && this.maxFileSize > 0 ? fileSizeValidation(file, this.maxFileSize) : true\n\t\t\t\tconst isAcceptValid = fileAcceptValidation(file, this.accept)\n\t\t\t\tconst newFile = {\n\t\t\t\t\tid: createID(\"GovFormFile\"),\n\t\t\t\t\tfile,\n\t\t\t\t\tacceptValid: isAcceptValid,\n\t\t\t\t\tsizeValid: isSizeValid,\n\t\t\t\t}\n\t\t\t\tthis.files = [...this.files, newFile]\n\t\t\t\tthis.govAddFile.emit({\n\t\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\t\tfile: newFile,\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\n\t\tthis.govFiles.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\tfiles: this.files,\n\t\t})\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.watchDisabled()\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\n\t\tthis.registerListeners()\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes([FormFileClass.root])} invalid={toBoolAttrIfDefined(this.invalid)} expanded={toBoolAttrIfDefined(this.expanded)}>\n\t\t\t\t<div class={FormFileClass.area} ref={el => (this.areaRef = el as HTMLDivElement)}>\n\t\t\t\t\t<slot />\n\t\t\t\t\t<input\n\t\t\t\t\t\tclass={FormFileClass.input}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tid={this.identifier || this.fileId}\n\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\taccept={this.accept}\n\t\t\t\t\t\tmultiple={this.multiple}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\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-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot(\"attachments\") ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<slot name={\"attachments\"} />\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t{this.files.length && this.displayAttachments ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<gov-attachments label={this.wcagAttachmentsLabel} wcag-label={this.wcagAttachmentsLabel}>\n\t\t\t\t\t\t\t{this.files.map(item => (\n\t\t\t\t\t\t\t\t<gov-attachments-item wcag-remove-labelled-by={item.id} on-gov-remove={() => this.onRemoveFileHandler(item)}>\n\t\t\t\t\t\t\t\t\t<span class={\"sr-only\"} id={item.id}>\n\t\t\t\t\t\t\t\t\t\t{this.wcagRemoveLabel.replace(\"{FILE_NAME}\", item.file.name)}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t{item.file.name}\n\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" variant=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? this.errorAccept : null}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t{item.sizeValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" variant=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{this.errorSize.replace(\"{FILE_SIZE}\", formatBytes(this.maxFileSize))}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t<span slot=\"info\">({formatBytes(item.file.size)})</span>\n\t\t\t\t\t\t\t\t</gov-attachments-item>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</gov-attachments>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onRemoveFileHandler(file: GovFormFileItem) {\n\t\tconst index = this.files.findIndex(item => item.id === file.id)\n\t\tif (index !== -1) {\n\t\t\tconst files = this.files\n\t\t\tconst removeFile = this.files[index]\n\t\t\tfiles.splice(index, 1)\n\t\t\tthis.files = [...files]\n\t\t\tthis.govRemoveFile.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfile: removeFile,\n\t\t\t})\n\t\t\tthis.govFiles.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfiles,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Returns the reference of the native area element\n\t */\n\t@Method()\n\tasync getAreaRef(): Promise<HTMLDivElement> {\n\t\treturn this.areaRef\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagDescribedBy, \"wcag-described-by\", FormFileClass.root)\n\t\tvalidateWcagRef(this.wcagLabelledBy, \"wcag-labelled-by\", FormFileClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.fileId, this.wcagLabelledBy, FormFileClass.root)\n\t}\n}\n"]}